Raymond Hettinger [Tue, 20 Jan 2009 13:00:59 +0000 (13:00 +0000)]
Fix typos.
Antoine Pitrou [Tue, 20 Jan 2009 11:42:11 +0000 (11:42 +0000)]
Fix typo
Raymond Hettinger [Tue, 20 Jan 2009 07:24:44 +0000 (07:24 +0000)]
Issue 4998: Decimal should not subclass or register with numbers.Real.
Raymond Hettinger [Tue, 20 Jan 2009 07:15:22 +0000 (07:15 +0000)]
Forward port r68797: Fix-up jump targets in collections docs.
Benjamin Peterson [Tue, 20 Jan 2009 04:02:27 +0000 (04:02 +0000)]
Blocked revisions 68789,68792 via svnmerge
........
r68789 | raymond.hettinger | 2009-01-19 19:19:26 -0600 (Mon, 19 Jan 2009) | 6 lines
Build-outs for Counter() class:
* Constructor and update() support keyword args (like their dict counterparts).
* The 'del' statement no longer raises KeyError for missing values.
* Add multiset operations: __add__, __sub__, __and__, __or__.
........
r68792 | raymond.hettinger | 2009-01-19 20:24:38 -0600 (Mon, 19 Jan 2009) | 1 line
Add Counter() to __all__.
........
Raymond Hettinger [Tue, 20 Jan 2009 03:41:22 +0000 (03:41 +0000)]
Forward port r68792 and r68789 putting Counter in __all__ and adding Counter buildouts.
Brett Cannon [Tue, 20 Jan 2009 02:21:27 +0000 (02:21 +0000)]
Document the (very small) public API for importlib. As time goes on and some
key refactorings occur more of the API will be exposed and documented.
Brett Cannon [Tue, 20 Jan 2009 02:09:18 +0000 (02:09 +0000)]
Clarify how the specify the name of a module with the 'module' directive.
Jesse Noller [Tue, 20 Jan 2009 00:23:01 +0000 (00:23 +0000)]
merge r68787 to py3k
Benjamin Peterson [Mon, 19 Jan 2009 21:11:05 +0000 (21:11 +0000)]
Blocked revisions 68785 via svnmerge
........
r68785 | benjamin.peterson | 2009-01-19 15:08:37 -0600 (Mon, 19 Jan 2009) | 1 line
I'm sick of these deprecations warnings in test_os
........
Benjamin Peterson [Mon, 19 Jan 2009 21:00:09 +0000 (21:00 +0000)]
Merged revisions 68779 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68779 | benjamin.peterson | 2009-01-19 11:37:42 -0600 (Mon, 19 Jan 2009) | 1 line
make bad file descriptor tests more robust
........
Benjamin Peterson [Mon, 19 Jan 2009 17:53:36 +0000 (17:53 +0000)]
Merged revisions 68763,68773 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68763 | kristjan.jonsson | 2009-01-19 07:10:27 -0600 (Mon, 19 Jan 2009) | 2 lines
Issue 4957
Let os.ftruncate raise OSError like documented.
........
r68773 | benjamin.peterson | 2009-01-19 09:51:27 -0600 (Mon, 19 Jan 2009) | 1 line
simplify code
........
Jesse Noller [Mon, 19 Jan 2009 16:23:53 +0000 (16:23 +0000)]
merge r68768 to py3k
Benjamin Peterson [Mon, 19 Jan 2009 15:19:46 +0000 (15:19 +0000)]
fix compiler warning
Benjamin Peterson [Mon, 19 Jan 2009 15:15:02 +0000 (15:15 +0000)]
reenable the invalid fd test for fdopen
Benjamin Peterson [Mon, 19 Jan 2009 15:11:51 +0000 (15:11 +0000)]
Merged revisions 68755 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68755 | benjamin.peterson | 2009-01-18 18:08:08 -0600 (Sun, 18 Jan 2009) | 1 line
raise an OSError for invalid fds #4991
........
Brett Cannon [Mon, 19 Jan 2009 07:07:58 +0000 (07:07 +0000)]
Remove a debugging print statement that accidentally got left in.
Brett Cannon [Mon, 19 Jan 2009 06:56:16 +0000 (06:56 +0000)]
Fix a typo in some code that is not tested or supported yet.
Closes issue 4993. Thanks Antoine Pitrou for the catch.
Benjamin Peterson [Sun, 18 Jan 2009 22:58:55 +0000 (22:58 +0000)]
Blocked revisions 68544-68545,68597 via svnmerge
........
r68544 | kristjan.jonsson | 2009-01-12 03:20:34 -0600 (Mon, 12 Jan 2009) | 1 line
Update Misc/NEWS for issue 3582
........
r68545 | kristjan.jonsson | 2009-01-12 03:24:04 -0600 (Mon, 12 Jan 2009) | 1 line
Misc/NEWS for issue 4293
........
r68597 | benjamin.peterson | 2009-01-13 17:43:50 -0600 (Tue, 13 Jan 2009) | 1 line
fix test_xmlrpc failures #4939
........
Benjamin Peterson [Sun, 18 Jan 2009 22:46:33 +0000 (22:46 +0000)]
Merged revisions 68546 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68546 | raymond.hettinger | 2009-01-12 04:37:32 -0600 (Mon, 12 Jan 2009) | 1 line
Optimize heapq.nsmallest/nlargest for cases where n==1 or n>=size.
........
Benjamin Peterson [Sun, 18 Jan 2009 22:27:04 +0000 (22:27 +0000)]
Merged revisions 68633,68648,68667,68706,68718,68720-68721,68724-68727,68739 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68633 | thomas.heller | 2009-01-16 12:53:44 -0600 (Fri, 16 Jan 2009) | 3 lines
Change an example in the docs to avoid a mistake when the code is copy
pasted and changed afterwards.
........
r68648 | benjamin.peterson | 2009-01-16 22:28:57 -0600 (Fri, 16 Jan 2009) | 1 line
use enumerate
........
r68667 | amaury.forgeotdarc | 2009-01-17 14:18:59 -0600 (Sat, 17 Jan 2009) | 3 lines
#4077: No need to append \n when calling Py_FatalError
+ fix a declaration to make it match the one in pythonrun.h
........
r68706 | benjamin.peterson | 2009-01-17 19:28:46 -0600 (Sat, 17 Jan 2009) | 1 line
fix grammar
........
r68718 | georg.brandl | 2009-01-18 04:42:35 -0600 (Sun, 18 Jan 2009) | 1 line
#4976: union() and intersection() take multiple args, but talk about "the other".
........
r68720 | georg.brandl | 2009-01-18 04:45:22 -0600 (Sun, 18 Jan 2009) | 1 line
#4974: fix redundant mention of lists and tuples.
........
r68721 | georg.brandl | 2009-01-18 04:48:16 -0600 (Sun, 18 Jan 2009) | 1 line
#4914: trunc is in math.
........
r68724 | georg.brandl | 2009-01-18 07:24:10 -0600 (Sun, 18 Jan 2009) | 1 line
#4979: correct result range for some random functions.
........
r68725 | georg.brandl | 2009-01-18 07:47:26 -0600 (Sun, 18 Jan 2009) | 1 line
#4857: fix augmented assignment target spec.
........
r68726 | georg.brandl | 2009-01-18 08:41:52 -0600 (Sun, 18 Jan 2009) | 1 line
#4923: clarify what was added.
........
r68727 | georg.brandl | 2009-01-18 12:25:30 -0600 (Sun, 18 Jan 2009) | 1 line
#4986: augassigns are not expressions.
........
r68739 | benjamin.peterson | 2009-01-18 15:11:38 -0600 (Sun, 18 Jan 2009) | 1 line
fix test that wasn't working as expected #4990
........
Benjamin Peterson [Sun, 18 Jan 2009 22:10:38 +0000 (22:10 +0000)]
Merged revisions 68568,68665 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68568 | georg.brandl | 2009-01-13 02:11:07 -0600 (Tue, 13 Jan 2009) | 2 lines
Fix call signature and markup.
........
r68665 | amaury.forgeotdarc | 2009-01-17 11:11:50 -0600 (Sat, 17 Jan 2009) | 3 lines
#4930: Slightly cleaner (and faster) code in type creation:
compare slots by address, not by name.
........
Jesse Noller [Sun, 18 Jan 2009 21:12:58 +0000 (21:12 +0000)]
merge cl r68737 to py3k
Benjamin Peterson [Sun, 18 Jan 2009 21:02:37 +0000 (21:02 +0000)]
Merged revisions 68547,68607,68610,68618,68621-68622,68649,68722 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68547 | kristjan.jonsson | 2009-01-12 12:09:27 -0600 (Mon, 12 Jan 2009) | 1 line
Add tests for invalid format specifiers in strftime, and for handling of invalid file descriptors in the os module.
........
r68607 | kristjan.jonsson | 2009-01-14 04:50:57 -0600 (Wed, 14 Jan 2009) | 2 lines
Re-enable all tests for windows platforms.
Also, explicitly connect to the IPV4 address. On windows platforms supporting AF_INET6, the SocketProxy would connect using socket.create_connection('localhost', port) which would cycle through all address families and try to connect. It would try connecting using AF_INET6 first and this would cause a delay of up to a second.
........
r68610 | kristjan.jonsson | 2009-01-15 03:09:13 -0600 (Thu, 15 Jan 2009) | 3 lines
Fix recently introduced test cases.
For datetime, gentoo didn't seem to mind the %e format for strftime. So, we just excercise those instead making sure that we don't crash.
For test_os, two cases were incorrect.
........
r68618 | kristjan.jonsson | 2009-01-15 11:20:21 -0600 (Thu, 15 Jan 2009) | 1 line
Issue 4929: Handle socket errors when receiving
........
r68621 | kristjan.jonsson | 2009-01-15 16:40:03 -0600 (Thu, 15 Jan 2009) | 1 line
Fix two test cases in test_os. ftruncate raises IOError unlike all the others which raise OSError. And close() on some platforms doesn't complain when given an invalid file descriptor.
........
r68622 | kristjan.jonsson | 2009-01-15 16:46:26 -0600 (Thu, 15 Jan 2009) | 1 line
Make all the invalid fd tests for os subject to the function being available.
........
r68649 | benjamin.peterson | 2009-01-16 22:39:05 -0600 (Fri, 16 Jan 2009) | 1 line
trying to find some fpathconf() settings that all unixs support...
........
r68722 | kristjan.jonsson | 2009-01-18 04:58:44 -0600 (Sun, 18 Jan 2009) | 1 line
issue 4293: make test_capi.py more robutst, it times out on some platforms, presumably waiting for threads. Lower the thread count to 16.
........
Martin v. Löwis [Sun, 18 Jan 2009 20:23:36 +0000 (20:23 +0000)]
Issue #4815: Offer conversion to UTF-8 if source files have
no encoding declaration and are not encoded in UTF-8.
Martin v. Löwis [Sun, 18 Jan 2009 20:15:42 +0000 (20:15 +0000)]
Issue #4008: Fix problems with non-ASCII source files.
Jesse Noller [Sun, 18 Jan 2009 19:45:18 +0000 (19:45 +0000)]
Correct issue number for 68728 checkin
Jesse Noller [Sun, 18 Jan 2009 19:44:02 +0000 (19:44 +0000)]
Issues #10867: remove old cPickle imports from multiprocessing
Georg Brandl [Sun, 18 Jan 2009 10:43:58 +0000 (10:43 +0000)]
#4975: fix bytes/str issue.
Georg Brandl [Sun, 18 Jan 2009 10:40:25 +0000 (10:40 +0000)]
#4983: clarify what "byte sequence" is.
Georg Brandl [Sun, 18 Jan 2009 10:38:16 +0000 (10:38 +0000)]
#4984: fix number of types.
Brett Cannon [Sun, 18 Jan 2009 06:55:05 +0000 (06:55 +0000)]
Tests of case-sensitivity were being executed on OSs which did not have a
case-insensitive file system, leading to test failures. This was due to using
the TestCase objects directly instead of the guard in the test_main() function.
Move over to a class decorator instead to control if the tests should be run.
Jesse Noller [Sun, 18 Jan 2009 03:11:38 +0000 (03:11 +0000)]
Merge r68708 to py3k, fixes 4449
Benjamin Peterson [Sun, 18 Jan 2009 01:29:28 +0000 (01:29 +0000)]
Blocked revisions 68705 via svnmerge
........
r68705 | benjamin.peterson | 2009-01-17 19:28:09 -0600 (Sat, 17 Jan 2009) | 1 line
bytearrays are mutable sequences
........
Brett Cannon [Sun, 18 Jan 2009 00:36:55 +0000 (00:36 +0000)]
NOTES for importlib should mention the ultimate end-goal for the package.
Brett Cannon [Sun, 18 Jan 2009 00:36:22 +0000 (00:36 +0000)]
Skip over any file or folder that starts with a dot (e.g. .svn).
Amaury Forgeot d'Arc [Sun, 18 Jan 2009 00:29:02 +0000 (00:29 +0000)]
Merged revisions 68678 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68678 | amaury.forgeotdarc | 2009-01-17 23:43:50 +0100 (Sat, 17 Jan 2009) | 3 lines
follow-up of #3997: since 0xFFFF numbers are not enough to indicate a zip64 format,
always try to read the "zip64 end of directory structure".
........
Brett Cannon [Sun, 18 Jan 2009 00:24:28 +0000 (00:24 +0000)]
Add initial implementation of importlib. See the NOTES files for what is
planned for the package.
There are no docs yet, but they are coming once the API for the first new
function, importlib.import_module() is finalized.
Benjamin Peterson [Sun, 18 Jan 2009 00:08:45 +0000 (00:08 +0000)]
Merged revisions 68459 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68459 | kristjan.jonsson | 2009-01-09 14:27:16 -0600 (Fri, 09 Jan 2009) | 1 line
Issue 4336: Let users of HTTPConnection.endheaders() submit a message body to the function if required.
........
Benjamin Peterson [Sun, 18 Jan 2009 00:04:57 +0000 (00:04 +0000)]
Merged revisions 68458 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68458 | kristjan.jonsson | 2009-01-09 14:23:16 -0600 (Fri, 09 Jan 2009) | 1 line
Issue 4336: HTTPRequest._send_output() now deals with the case of the message body not being a string. This allows clients to use endheaders(message_body) instead of endheaders() + send(message_body) without making any extra checks.
........
Benjamin Peterson [Sat, 17 Jan 2009 23:46:54 +0000 (23:46 +0000)]
fix compiler warning
Benjamin Peterson [Sat, 17 Jan 2009 23:43:58 +0000 (23:43 +0000)]
Merged revisions 68460 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68460 | kristjan.jonsson | 2009-01-09 14:31:26 -0600 (Fri, 09 Jan 2009) | 1 line
Issue 4293: Make Py_AddPendingCall() thread safe
........
Benjamin Peterson [Sat, 17 Jan 2009 23:28:17 +0000 (23:28 +0000)]
I'm just going to assume that all of these revisions don't need to be merge, since it's not indicated:
Blocked revisions 68559,68562,68565-68567,68569,68603-68605 via svnmerge
........
r68559 | raymond.hettinger | 2009-01-12 16:58:41 -0600 (Mon, 12 Jan 2009) | 1 line
Issue
1696199: Add collections.Counter().
........
r68562 | raymond.hettinger | 2009-01-12 19:05:03 -0600 (Mon, 12 Jan 2009) | 7 lines
Simplify Counter() API. Replace items keyword argument
with a mapping. Makes Counter() idempotent, makes update()
API the same as Counter.__init__(), makes a more readable
repr, makes the API more dict-like, and allows Steven
Bethard's update() example to work.
........
r68565 | raymond.hettinger | 2009-01-12 21:49:43 -0600 (Mon, 12 Jan 2009) | 1 line
Minor documentation tweaks and simpler update() example.
........
r68566 | raymond.hettinger | 2009-01-12 22:13:53 -0600 (Mon, 12 Jan 2009) | 1 line
Fixup and simplify docstrings and doctests.
........
r68567 | raymond.hettinger | 2009-01-12 22:50:35 -0600 (Mon, 12 Jan 2009) | 1 line
Speed-up __repr__. Eliminate duplicate tests. Use a from-irmport.
........
r68569 | raymond.hettinger | 2009-01-13 02:38:14 -0600 (Tue, 13 Jan 2009) | 7 lines
Add table of idioms/patterns for using Counter objects.
Improve the appearance and flow of the References section -- it used
to have a box around it that wasn't distinct from the preceding code
boxes and it had a weird bolding pattern and hanging indents that
made the section disproportionately large.
........
r68603 | raymond.hettinger | 2009-01-13 18:15:21 -0600 (Tue, 13 Jan 2009) | 1 line
Minor doc tweaks.
........
r68604 | raymond.hettinger | 2009-01-13 19:15:06 -0600 (Tue, 13 Jan 2009) | 1 line
Add tests for __init__() and update() with no args.
........
r68605 | raymond.hettinger | 2009-01-13 19:39:51 -0600 (Tue, 13 Jan 2009) | 1 line
Fix-up indentation of sample code blocks for namedtuple mthod definitions.
........
Benjamin Peterson [Sat, 17 Jan 2009 22:41:18 +0000 (22:41 +0000)]
Merged revisions 68676 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68676 | benjamin.peterson | 2009-01-17 16:27:54 -0600 (Sat, 17 Jan 2009) | 1 line
fix inspect.isclass() on instances with a custom __getattr__ #
1225107
........
Mark Dickinson [Sat, 17 Jan 2009 21:57:11 +0000 (21:57 +0000)]
Replace PyNumber_Int with PyNumber_Long.
Antoine Pitrou [Sat, 17 Jan 2009 21:06:43 +0000 (21:06 +0000)]
Issue #4838: When a module is deallocated, free the memory backing the optional module state data.
Amaury Forgeot d'Arc [Sat, 17 Jan 2009 16:42:26 +0000 (16:42 +0000)]
Merged revisions 68661 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68661 | amaury.forgeotdarc | 2009-01-17 17:40:17 +0100 (Sat, 17 Jan 2009) | 5 lines
#3997: zipfiles generated with more than 65536 files could not be opened
with other applications.
Reviewed by Martin, will backport to 2.6 and 3.0
........
Mark Dickinson [Sat, 17 Jan 2009 10:48:28 +0000 (10:48 +0000)]
Remove attempted long->int conversions in py3k version of float.as_integer_ratio.
Mark Dickinson [Sat, 17 Jan 2009 10:21:23 +0000 (10:21 +0000)]
Fix a few more references to long integers in the docs.
Mark Dickinson [Sat, 17 Jan 2009 10:04:45 +0000 (10:04 +0000)]
Issue #4910, patch 3/3: rename nb_long to nb_reserved
Mark Dickinson [Sat, 17 Jan 2009 09:45:37 +0000 (09:45 +0000)]
Remove a couple of references to long in the c-api docs
Benjamin Peterson [Sat, 17 Jan 2009 04:15:01 +0000 (04:15 +0000)]
fix inspect.formatargspec on functions with keyword-only arguments without defaults #4959
Antoine Pitrou [Sat, 17 Jan 2009 02:40:13 +0000 (02:40 +0000)]
Make test_io faster
Mark Dickinson [Fri, 16 Jan 2009 19:31:13 +0000 (19:31 +0000)]
Define PY_SSIZE_T_CLEAN at the top of the dbm module. This should fix the
segfaults on the PPC64/Debian buildbots.
Benjamin Peterson [Fri, 16 Jan 2009 03:54:08 +0000 (03:54 +0000)]
Merged revisions 68450,68480-68481,68493,68495,68501,68512,68514-68515,68534-68536,68552,68563,68570-68572,68575,68582,68596,68623-68624,68628 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68450 | jeffrey.yasskin | 2009-01-09 10:47:07 -0600 (Fri, 09 Jan 2009) | 3 lines
Fix issue 4884, preventing a crash in the socket code when python is compiled
with llvm-gcc and run with a glibc <2.10.
........
r68480 | vinay.sajip | 2009-01-10 07:38:04 -0600 (Sat, 10 Jan 2009) | 1 line
Minor documentation changes cross-referencing NullHandler to the documentation on configuring logging in a library.
........
r68481 | vinay.sajip | 2009-01-10 07:42:04 -0600 (Sat, 10 Jan 2009) | 1 line
Corrected an incorrect self-reference.
........
r68493 | benjamin.peterson | 2009-01-10 11:18:55 -0600 (Sat, 10 Jan 2009) | 1 line
rewrite verbose conditionals
........
r68495 | benjamin.peterson | 2009-01-10 11:36:44 -0600 (Sat, 10 Jan 2009) | 1 line
tp_iter only exists with Py_TPFLAGS_HAVE_ITER #4901
........
r68501 | vinay.sajip | 2009-01-10 13:22:57 -0600 (Sat, 10 Jan 2009) | 1 line
Corrected minor typo and added .currentmodule directives to fix missing cross-references.
........
r68512 | benjamin.peterson | 2009-01-10 16:42:10 -0600 (Sat, 10 Jan 2009) | 1 line
make tests fail if they can't be imported
........
r68514 | benjamin.peterson | 2009-01-10 17:41:59 -0600 (Sat, 10 Jan 2009) | 1 line
move seealso to a more appropiate place
........
r68515 | benjamin.peterson | 2009-01-10 17:49:08 -0600 (Sat, 10 Jan 2009) | 1 line
macos 9 isn't supported
........
r68534 | gregory.p.smith | 2009-01-11 11:53:33 -0600 (Sun, 11 Jan 2009) | 2 lines
correct email address
........
r68535 | gregory.p.smith | 2009-01-11 11:57:54 -0600 (Sun, 11 Jan 2009) | 9 lines
Update the documentation for binascii and zlib crc32/adler32 functions
to better describe the signed vs unsigned return value behavior on
different platforms and versions of python. Mention the workaround to
make them all return the same thing by using & 0xffffffff.
Fixes issue4903.
Also needs to be merged into release26-maint, release30-maint, & py3k.
........
r68536 | benjamin.peterson | 2009-01-11 13:48:15 -0600 (Sun, 11 Jan 2009) | 1 line
add email addresses
........
r68552 | vinay.sajip | 2009-01-12 14:36:18 -0600 (Mon, 12 Jan 2009) | 1 line
Minor changes/corrections in markup.
........
r68563 | benjamin.peterson | 2009-01-12 19:49:10 -0600 (Mon, 12 Jan 2009) | 1 line
small logic correction
........
r68570 | raymond.hettinger | 2009-01-13 03:08:32 -0600 (Tue, 13 Jan 2009) | 5 lines
Issue 4922: Incorrect comments for MutableSet.add() and MutableSet.discard().
Needs to be backported to 2.6 and forward ported to 3.0 and 3.1.
........
r68571 | armin.ronacher | 2009-01-13 05:52:23 -0600 (Tue, 13 Jan 2009) | 3 lines
ast.literal_eval can properly evaluate complex numbers now. This fixes issue4907.
........
r68572 | andrew.kuchling | 2009-01-13 07:40:54 -0600 (Tue, 13 Jan 2009) | 1 line
Note that first coord. is left alone
........
r68575 | thomas.heller | 2009-01-13 11:32:28 -0600 (Tue, 13 Jan 2009) | 1 line
Fix refcount leak in error cases. Bug found by coverity.
........
r68582 | georg.brandl | 2009-01-13 16:14:01 -0600 (Tue, 13 Jan 2009) | 2 lines
Use assertRaises.
........
r68596 | amaury.forgeotdarc | 2009-01-13 17:39:22 -0600 (Tue, 13 Jan 2009) | 3 lines
#
1162154: inspect.getmembers() now skips attributes that raise AttributeError,
e.g. a __slots__ attribute which has not been set.
........
r68623 | vinay.sajip | 2009-01-15 16:48:13 -0600 (Thu, 15 Jan 2009) | 1 line
Made minor changes/corrections in markup. Added a couple of section headings.
........
r68624 | vinay.sajip | 2009-01-15 17:04:47 -0600 (Thu, 15 Jan 2009) | 1 line
Minor changes/corrections in markup.
........
r68628 | benjamin.peterson | 2009-01-15 20:55:24 -0600 (Thu, 15 Jan 2009) | 1 line
compare with == not is #4946
........
Benjamin Peterson [Fri, 16 Jan 2009 03:06:57 +0000 (03:06 +0000)]
remove duplicate definition of PyExc_BufferError #4950
Mark Dickinson [Thu, 15 Jan 2009 19:32:23 +0000 (19:32 +0000)]
Issue 4910, patch 2 of (probably) 3: pave the way for renaming of
nb_long: remove last remaining use of nb_long
(in the struct module) from the core, set nb_long slots on all builtin
and extension types to 0, and remove uses of __long__ in test_complex
and test_binop.
Reviewed by Benjamin Peterson.
Mark Dickinson [Thu, 15 Jan 2009 15:36:10 +0000 (15:36 +0000)]
Merged revisions 68611-68613 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68611 | mark.dickinson | 2009-01-15 14:54:37 +0000 (Thu, 15 Jan 2009) | 2 lines
Issue #4397. Fix occasional test_socket failure on OS X.
........
r68612 | mark.dickinson | 2009-01-15 14:58:28 +0000 (Thu, 15 Jan 2009) | 2 lines
Comment typo
........
r68613 | mark.dickinson | 2009-01-15 15:17:43 +0000 (Thu, 15 Jan 2009) | 2 lines
Another typo fix.
........
Raymond Hettinger [Wed, 14 Jan 2009 02:20:07 +0000 (02:20 +0000)]
Issue #
1696199: Add collections.Counter().
Forward port from Py2.7.
Amaury Forgeot d'Arc [Tue, 13 Jan 2009 23:21:11 +0000 (23:21 +0000)]
Blocked revisions 68592 via svnmerge
........
r68592 | amaury.forgeotdarc | 2009-01-14 00:19:08 +0100 (mer., 14 janv. 2009) | 5 lines
#4807: Remove a wrong usage of wsprintf in the winreg module
("windows sprintf", different than swprintf)
Needed for the windows CE port.
........
Antoine Pitrou [Tue, 13 Jan 2009 23:14:47 +0000 (23:14 +0000)]
Blocked revisions 68589 via svnmerge
........
r68589 | antoine.pitrou | 2009-01-14 00:13:52 +0100 (mer., 14 janv. 2009) | 5 lines
Issue #4935: The overflow checking code in the expandtabs() method common
to str, bytes and bytearray could be optimized away by the compiler, letting
the interpreter segfault instead of raising an error.
........
Benjamin Peterson [Tue, 13 Jan 2009 23:14:04 +0000 (23:14 +0000)]
encoding returns bytes objects
Antoine Pitrou [Tue, 13 Jan 2009 22:59:11 +0000 (22:59 +0000)]
Issue #4935: The overflow checking code in the expandtabs() method common
to str, bytes and bytearray could be optimized away by the compiler (*), letting
the interpreter segfault instead of raising an error.
(*) or at least it is our interpretation
Benjamin Peterson [Tue, 13 Jan 2009 22:33:14 +0000 (22:33 +0000)]
Blocked revisions 68579-68580,68584 via svnmerge
........
r68579 | benjamin.peterson | 2009-01-13 15:42:23 -0600 (Tue, 13 Jan 2009) | 1 line
make bytearrayobject.o depend on the stringlib #4936
........
r68580 | benjamin.peterson | 2009-01-13 15:43:11 -0600 (Tue, 13 Jan 2009) | 1 line
add bytearrayobject.h to PYTHON_HEADERS
........
r68584 | benjamin.peterson | 2009-01-13 16:22:41 -0600 (Tue, 13 Jan 2009) | 1 line
de-spacify
........
Benjamin Peterson [Tue, 13 Jan 2009 22:25:18 +0000 (22:25 +0000)]
de-spacify
Benjamin Peterson [Tue, 13 Jan 2009 21:53:28 +0000 (21:53 +0000)]
make bytearrayobject.o depend on the stringlib headers #4936
Benjamin Peterson [Tue, 13 Jan 2009 02:11:23 +0000 (02:11 +0000)]
Merged revisions 68425,68461,68498 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68425 | benjamin.peterson | 2009-01-08 20:56:32 -0600 (Thu, 08 Jan 2009) | 1 line
fix markup
........
r68461 | kristjan.jonsson | 2009-01-09 15:35:16 -0600 (Fri, 09 Jan 2009) | 2 lines
Issue 4293: Make Py_AddPendingCall() thread safe
Add test cases and documentation
........
r68498 | benjamin.peterson | 2009-01-10 13:08:49 -0600 (Sat, 10 Jan 2009) | 1 line
fix encoding
........
Amaury Forgeot d'Arc [Mon, 12 Jan 2009 23:58:21 +0000 (23:58 +0000)]
Merged revisions 68560 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68560 | amaury.forgeotdarc | 2009-01-13 00:36:55 +0100 (mar., 13 janv. 2009) | 6 lines
#3720: Interpreter crashes when an evil iterator removes its own next function.
Now the slot is filled with a function that always raises.
Will not backport: extensions compiled with 2.6.x would not run on 2.6.0.
........
Mark Dickinson [Mon, 12 Jan 2009 20:49:19 +0000 (20:49 +0000)]
Issue #4910 (1st patch of a series): fix int() and the corresponding
PyNumber_Int/PyNumber_Long API function so that it no longer attempts
to call the __long__ method for conversion. Only the __int__ and __trunc__
methods are used. (This removes a major remaining use of the nb_long
slot from the Python 3.x core.)
Thanks Benjamin for review.
Martin v. Löwis [Mon, 12 Jan 2009 08:21:03 +0000 (08:21 +0000)]
Merged revisions 68455,68476,68542 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68455 | kristjan.jonsson | 2009-01-09 21:03:27 +0100 (Fr, 09 Jan 2009) | 1 line
Issue 3582. Improved thread support and TLS for Windows
........
r68476 | kristjan.jonsson | 2009-01-10 13:14:31 +0100 (Sa, 10 Jan 2009) | 1 line
Issue 4906: Preserve windows error state across PyThread_get_key_value
........
r68542 | martin.v.loewis | 2009-01-12 09:11:24 +0100 (Mo, 12 Jan 2009) | 2 lines
Issue #4893: Use NT threading on CE.
........
Martin v. Löwis [Mon, 12 Jan 2009 07:59:10 +0000 (07:59 +0000)]
Merged revisions 68540 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68540 | martin.v.loewis | 2009-01-12 08:57:11 +0100 (Mo, 12 Jan 2009) | 2 lines
Issue #4915: Port sysmodule to Windows CE.
........
Gregory P. Smith [Mon, 12 Jan 2009 04:50:11 +0000 (04:50 +0000)]
Fixes issue #3826 and #4791:
Have SocketIO objects update their reference count in the underlying
socket object on close() so that the underlying socket object is
closed immediately when the last user is done rather than at an
unknown later time when garbage collection can do it.
Benjamin Peterson [Mon, 12 Jan 2009 00:28:16 +0000 (00:28 +0000)]
remove docs for PyBytes_Format #4917
Antoine Pitrou [Sun, 11 Jan 2009 23:56:55 +0000 (23:56 +0000)]
Issue #4916: fix little-endian UTF-16 decoding bug on big-endian UCS-4 builds, introduced by r68483.
Benjamin Peterson [Sun, 11 Jan 2009 17:13:55 +0000 (17:13 +0000)]
Merged revisions 68381 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68381 | martin.v.loewis | 2009-01-07 12:40:40 -0600 (Wed, 07 Jan 2009) | 2 lines
Issue #4850: Change COUNT_ALLOCS variables to Py_ssize_t.
........
Mark Dickinson [Sun, 11 Jan 2009 11:54:02 +0000 (11:54 +0000)]
Remove __long__ methods from UserString and from Demo/ classes.
Martin v. Löwis [Sun, 11 Jan 2009 09:45:11 +0000 (09:45 +0000)]
Merged revisions 68527 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68527 | martin.v.loewis | 2009-01-11 10:43:55 +0100 (So, 11 Jan 2009) | 2 lines
Issue #4895: Use _strdup on Windows CE.
........
Martin v. Löwis [Sun, 11 Jan 2009 09:30:50 +0000 (09:30 +0000)]
Merged revisions 68523 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68523 | martin.v.loewis | 2009-01-11 10:26:54 +0100 (So, 11 Jan 2009) | 2 lines
Issue #4279: Fix build of parsermodule under Cygwin.
........
Benjamin Peterson [Sat, 10 Jan 2009 23:49:20 +0000 (23:49 +0000)]
ricos isn't supported
Benjamin Peterson [Sat, 10 Jan 2009 22:37:11 +0000 (22:37 +0000)]
fix syntax in ctypes.util
Mark Dickinson [Sat, 10 Jan 2009 22:14:33 +0000 (22:14 +0000)]
Issue #4910: replace "long" with "int" in docstring for __long__ slot and
in documentation for PyNumber_Long.
Vinay Sajip [Sat, 10 Jan 2009 19:23:34 +0000 (19:23 +0000)]
Corrected minor typo and added .currentmodule directives to fix missing cross-references.
Mark Dickinson [Sat, 10 Jan 2009 19:16:40 +0000 (19:16 +0000)]
Merged revisions 68499 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68499 | mark.dickinson | 2009-01-10 19:14:55 +0000 (Sat, 10 Jan 2009) | 2 lines
Remove an unnecessary check from test_decimal.
........
Antoine Pitrou [Sat, 10 Jan 2009 18:38:45 +0000 (18:38 +0000)]
Merged revisions 68496 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68496 | antoine.pitrou | 2009-01-10 19:33:21 +0100 (sam., 10 janv. 2009) | 3 lines
Add ACKS entries for some of the patches I've been committing.
........
Benjamin Peterson [Sat, 10 Jan 2009 17:14:04 +0000 (17:14 +0000)]
Blocked revisions 68487 via svnmerge
........
r68487 | matthias.klose | 2009-01-10 11:00:42 -0600 (Sat, 10 Jan 2009) | 3 lines
- Issue #4861: ctypes.util.find_library(): Robustify. Fix library detection on
biarch systems. Try to rely on ldconfig only, without using objdump and gcc.
........
Matthias Klose [Sat, 10 Jan 2009 17:08:25 +0000 (17:08 +0000)]
Merge r68487 from svn+ssh://pythondev@svn.python.org/python/trunk:
- Issue #4861: ctypes.util.find_library(): Robustify. Fix library detection on
biarch systems. Try to rely on ldconfig only, without using objdump and gcc.
Benjamin Peterson [Sat, 10 Jan 2009 17:05:44 +0000 (17:05 +0000)]
fix typo #4904
Antoine Pitrou [Sat, 10 Jan 2009 16:22:51 +0000 (16:22 +0000)]
Merged revisions 68484-68485 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68484 | antoine.pitrou | 2009-01-10 17:13:45 +0100 (sam., 10 janv. 2009) | 3 lines
Issue #3860: GzipFile and BZ2File now support the context manager protocol.
........
r68485 | antoine.pitrou | 2009-01-10 17:15:24 +0100 (sam., 10 janv. 2009) | 1 line
Add NEWS entry for r68484.
........
Antoine Pitrou [Sat, 10 Jan 2009 15:40:25 +0000 (15:40 +0000)]
Issue #4868: utf-8, utf-16 and latin1 decoding are now 2x to 4x faster. The
common cases are optimized thanks to a dedicated fast path and a moderate
amount of loop unrolling.
This will especially help text I/O (we already register a 30% speedup on large
reads on the io-c branch).
Vinay Sajip [Sat, 10 Jan 2009 13:42:23 +0000 (13:42 +0000)]
Corrected an incorrect self-reference.
Vinay Sajip [Sat, 10 Jan 2009 13:37:26 +0000 (13:37 +0000)]
Minor documentation changes relating to NullHandler, the module used for handlers and references to ConfigParser.
Hirokazu Yamamoto [Sat, 10 Jan 2009 12:15:23 +0000 (12:15 +0000)]
Fixed 2to3 issue on tix module.
Hirokazu Yamamoto [Sat, 10 Jan 2009 11:55:57 +0000 (11:55 +0000)]
Commit miss.
Hirokazu Yamamoto [Sat, 10 Jan 2009 11:48:27 +0000 (11:48 +0000)]
Merged revisions 68468-68470 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68468 | hirokazu.yamamoto | 2009-01-10 17:09:43 +0900 | 1 line
Bump up Tcl/Tk version on VC6. (tcl8.4.12 -> tcl8.5.2, tk8.4.12 -> tk8.5.2, tix8.4.0 -> tix8.4.3)
........
r68469 | hirokazu.yamamoto | 2009-01-10 17:12:09 +0900 | 1 line
Link to debug version of Tcl/Tk when python is built as debug version.
........
r68470 | hirokazu.yamamoto | 2009-01-10 18:18:16 +0900 | 1 line
Added helper script to build Tcl/Tk.
........
Benjamin Peterson [Sat, 10 Jan 2009 04:11:21 +0000 (04:11 +0000)]
Unblocked revisions 68425 via svnmerge
........
r68425 | benjamin.peterson | 2009-01-08 20:56:32 -0600 (Thu, 08 Jan 2009) | 1 line
fix markup
........
Antoine Pitrou [Fri, 9 Jan 2009 22:27:08 +0000 (22:27 +0000)]
Merged revisions 68462 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68462 | antoine.pitrou | 2009-01-09 22:40:55 +0100 (ven., 09 janv. 2009) | 6 lines
Issue #4074: Change the criteria for doing a full garbage collection (i.e.
collecting the oldest generation) so that allocating lots of objects without
destroying them does not show quadratic performance. Based on a proposal by
Martin von Löwis at http://mail.python.org/pipermail/python-dev/2008-June/080579.html.
........
Antoine Pitrou [Fri, 9 Jan 2009 22:12:30 +0000 (22:12 +0000)]
Fix bug introduced in r68451: stdio must always be opened in line-buffered mode
if isatty() is true.
Antoine Pitrou [Fri, 9 Jan 2009 19:54:29 +0000 (19:54 +0000)]
Issue #4604: Some objects of the I/O library could still be used after
having been closed (for instance, a read() call could return some
previously buffered data). Patch by Dmitry Vasiliev.
Antoine Pitrou [Fri, 9 Jan 2009 19:29:16 +0000 (19:29 +0000)]
Buglet: fix unittest.main()
Antoine Pitrou [Fri, 9 Jan 2009 18:53:14 +0000 (18:53 +0000)]
Issue #4705: Fix the -u ("unbuffered binary stdout and stderr") command-line
flag to work properly. Furthermore, when specifying -u, the text stdout
and stderr streams have line-by-line buffering enabled (the default being
to buffer arbitrary chunks of data). Patch by Victor Stinner, test by me.