]>
granicus.if.org Git - python/log
Georg Brandl [Sun, 18 Jan 2009 13:47:26 +0000 (13:47 +0000)]
#4857: fix augmented assignment target spec.
Georg Brandl [Sun, 18 Jan 2009 13:24:10 +0000 (13:24 +0000)]
#4979: correct result range for some random functions.
Kristján Valur Jónsson [Sun, 18 Jan 2009 10:58:44 +0000 (10:58 +0000)]
issue 4293: make test_capi.py more robutst, it times out on some platforms, presumably waiting for threads. Lower the thread count to 16.
Georg Brandl [Sun, 18 Jan 2009 10:48:16 +0000 (10:48 +0000)]
#4914: trunc is in math.
Georg Brandl [Sun, 18 Jan 2009 10:45:22 +0000 (10:45 +0000)]
#4974: fix redundant mention of lists and tuples.
Georg Brandl [Sun, 18 Jan 2009 10:42:35 +0000 (10:42 +0000)]
#4976: union() and intersection() take multiple args, but talk about "the other".
Jesse Noller [Sun, 18 Jan 2009 02:45:38 +0000 (02:45 +0000)]
Resolve issue 4449: AssertionError in mp_benchmarks.py
Benjamin Peterson [Sun, 18 Jan 2009 01:28:46 +0000 (01:28 +0000)]
fix grammar
Benjamin Peterson [Sun, 18 Jan 2009 01:28:09 +0000 (01:28 +0000)]
bytearrays are mutable sequences
Amaury Forgeot d'Arc [Sat, 17 Jan 2009 22:43:50 +0000 (22:43 +0000)]
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".
Benjamin Peterson [Sat, 17 Jan 2009 22:27:54 +0000 (22:27 +0000)]
fix inspect.isclass() on instances with a custom __getattr__ #
1225107
Amaury Forgeot d'Arc [Sat, 17 Jan 2009 20:18:59 +0000 (20:18 +0000)]
#4077: No need to append \n when calling Py_FatalError
+ fix a declaration to make it match the one in pythonrun.h
Amaury Forgeot d'Arc [Sat, 17 Jan 2009 17:11:50 +0000 (17:11 +0000)]
#4930: Slightly cleaner (and faster) code in type creation:
compare slots by address, not by name.
Amaury Forgeot d'Arc [Sat, 17 Jan 2009 16:40:17 +0000 (16:40 +0000)]
#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
Benjamin Peterson [Sat, 17 Jan 2009 04:39:05 +0000 (04:39 +0000)]
trying to find some fpathconf() settings that all unixs support...
Benjamin Peterson [Sat, 17 Jan 2009 04:28:57 +0000 (04:28 +0000)]
use enumerate
Thomas Heller [Fri, 16 Jan 2009 18:53:44 +0000 (18:53 +0000)]
Change an example in the docs to avoid a mistake when the code is copy
pasted and changed afterwards.
Benjamin Peterson [Fri, 16 Jan 2009 02:55:24 +0000 (02:55 +0000)]
compare with == not is #4946
Vinay Sajip [Thu, 15 Jan 2009 23:04:47 +0000 (23:04 +0000)]
Minor changes/corrections in markup.
Vinay Sajip [Thu, 15 Jan 2009 22:48:13 +0000 (22:48 +0000)]
Made minor changes/corrections in markup. Added a couple of section headings.
Kristján Valur Jónsson [Thu, 15 Jan 2009 22:46:26 +0000 (22:46 +0000)]
Make all the invalid fd tests for os subject to the function being available.
Kristján Valur Jónsson [Thu, 15 Jan 2009 22:40:03 +0000 (22:40 +0000)]
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.
Kristján Valur Jónsson [Thu, 15 Jan 2009 17:20:21 +0000 (17:20 +0000)]
Issue 4929: Handle socket errors when receiving
Mark Dickinson [Thu, 15 Jan 2009 15:17:43 +0000 (15:17 +0000)]
Another typo fix.
Mark Dickinson [Thu, 15 Jan 2009 14:58:28 +0000 (14:58 +0000)]
Comment typo
Mark Dickinson [Thu, 15 Jan 2009 14:54:37 +0000 (14:54 +0000)]
Issue #4397. Fix occasional test_socket failure on OS X.
Kristján Valur Jónsson [Thu, 15 Jan 2009 09:09:13 +0000 (09:09 +0000)]
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.
Kristján Valur Jónsson [Wed, 14 Jan 2009 10:50:57 +0000 (10:50 +0000)]
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.
Raymond Hettinger [Wed, 14 Jan 2009 01:39:51 +0000 (01:39 +0000)]
Fix-up indentation of sample code blocks for namedtuple mthod definitions.
Raymond Hettinger [Wed, 14 Jan 2009 01:15:06 +0000 (01:15 +0000)]
Add tests for __init__() and update() with no args.
Raymond Hettinger [Wed, 14 Jan 2009 00:15:21 +0000 (00:15 +0000)]
Minor doc tweaks.
Benjamin Peterson [Tue, 13 Jan 2009 23:43:50 +0000 (23:43 +0000)]
fix test_xmlrpc failures #4939
Amaury Forgeot d'Arc [Tue, 13 Jan 2009 23:39:22 +0000 (23:39 +0000)]
#
1162154 : inspect.getmembers() now skips attributes that raise AttributeError,
e.g. a __slots__ attribute which has not been set.
Amaury Forgeot d'Arc [Tue, 13 Jan 2009 23:19:08 +0000 (23:19 +0000)]
#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:13:52 +0000 (23:13 +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.
Benjamin Peterson [Tue, 13 Jan 2009 22:22:41 +0000 (22:22 +0000)]
de-spacify
Georg Brandl [Tue, 13 Jan 2009 22:14:01 +0000 (22:14 +0000)]
Use assertRaises.
Benjamin Peterson [Tue, 13 Jan 2009 21:43:11 +0000 (21:43 +0000)]
add bytearrayobject.h to PYTHON_HEADERS
Benjamin Peterson [Tue, 13 Jan 2009 21:42:23 +0000 (21:42 +0000)]
make bytearrayobject.o depend on the stringlib #4936
Thomas Heller [Tue, 13 Jan 2009 17:32:28 +0000 (17:32 +0000)]
Fix refcount leak in error cases. Bug found by coverity.
Andrew M. Kuchling [Tue, 13 Jan 2009 13:40:54 +0000 (13:40 +0000)]
Note that first coord. is left alone
Armin Ronacher [Tue, 13 Jan 2009 11:52:23 +0000 (11:52 +0000)]
ast.literal_eval can properly evaluate complex numbers now. This fixes issue4907.
Raymond Hettinger [Tue, 13 Jan 2009 09:08:32 +0000 (09:08 +0000)]
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.
Raymond Hettinger [Tue, 13 Jan 2009 08:38:14 +0000 (08:38 +0000)]
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.
Georg Brandl [Tue, 13 Jan 2009 08:11:07 +0000 (08:11 +0000)]
Fix call signature and markup.
Raymond Hettinger [Tue, 13 Jan 2009 04:50:35 +0000 (04:50 +0000)]
Speed-up __repr__. Eliminate duplicate tests. Use a from-irmport.
Raymond Hettinger [Tue, 13 Jan 2009 04:13:53 +0000 (04:13 +0000)]
Fixup and simplify docstrings and doctests.
Raymond Hettinger [Tue, 13 Jan 2009 03:49:43 +0000 (03:49 +0000)]
Minor documentation tweaks and simpler update() example.
Benjamin Peterson [Tue, 13 Jan 2009 01:49:10 +0000 (01:49 +0000)]
small logic correction
Raymond Hettinger [Tue, 13 Jan 2009 01:05:03 +0000 (01:05 +0000)]
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.
Amaury Forgeot d'Arc [Mon, 12 Jan 2009 23:36:55 +0000 (23:36 +0000)]
#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.
Raymond Hettinger [Mon, 12 Jan 2009 22:58:41 +0000 (22:58 +0000)]
Issue
1696199 : Add collections.Counter().
Vinay Sajip [Mon, 12 Jan 2009 20:36:18 +0000 (20:36 +0000)]
Minor changes/corrections in markup.
Kristján Valur Jónsson [Mon, 12 Jan 2009 18:09:27 +0000 (18:09 +0000)]
Add tests for invalid format specifiers in strftime, and for handling of invalid file descriptors in the os module.
Raymond Hettinger [Mon, 12 Jan 2009 10:37:32 +0000 (10:37 +0000)]
Optimize heapq.nsmallest/nlargest for cases where n==1 or n>=size.
Kristján Valur Jónsson [Mon, 12 Jan 2009 09:24:04 +0000 (09:24 +0000)]
Misc/NEWS for issue 4293
Kristján Valur Jónsson [Mon, 12 Jan 2009 09:20:34 +0000 (09:20 +0000)]
Update Misc/NEWS for issue 3582
Martin v. Löwis [Mon, 12 Jan 2009 08:11:24 +0000 (08:11 +0000)]
Issue #4893: Use NT threading on CE.
Martin v. Löwis [Mon, 12 Jan 2009 07:57:11 +0000 (07:57 +0000)]
Issue #4915: Port sysmodule to Windows CE.
Benjamin Peterson [Sun, 11 Jan 2009 19:48:15 +0000 (19:48 +0000)]
add email addresses
Gregory P. Smith [Sun, 11 Jan 2009 17:57:54 +0000 (17:57 +0000)]
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.
Gregory P. Smith [Sun, 11 Jan 2009 17:53:33 +0000 (17:53 +0000)]
correct email address
Kristján Valur Jónsson [Sun, 11 Jan 2009 16:23:37 +0000 (16:23 +0000)]
Issue 4879: Allow buffering for HTTPResponse
Martin v. Löwis [Sun, 11 Jan 2009 09:43:55 +0000 (09:43 +0000)]
Issue #4895: Use _strdup on Windows CE.
Martin v. Löwis [Sun, 11 Jan 2009 09:26:54 +0000 (09:26 +0000)]
Issue #4279: Fix build of parsermodule under Cygwin.
Hirokazu Yamamoto [Sun, 11 Jan 2009 03:28:13 +0000 (03:28 +0000)]
Fixed version number in build_ssl.bat.
Benjamin Peterson [Sat, 10 Jan 2009 23:49:08 +0000 (23:49 +0000)]
macos 9 isn't supported
Benjamin Peterson [Sat, 10 Jan 2009 23:41:59 +0000 (23:41 +0000)]
move seealso to a more appropiate place
Benjamin Peterson [Sat, 10 Jan 2009 22:42:10 +0000 (22:42 +0000)]
make tests fail if they can't be imported
Vinay Sajip [Sat, 10 Jan 2009 19:22:57 +0000 (19:22 +0000)]
Corrected minor typo and added .currentmodule directives to fix missing cross-references.
Mark Dickinson [Sat, 10 Jan 2009 19:14:55 +0000 (19:14 +0000)]
Remove an unnecessary check from test_decimal.
Benjamin Peterson [Sat, 10 Jan 2009 19:08:49 +0000 (19:08 +0000)]
fix encoding
Antoine Pitrou [Sat, 10 Jan 2009 18:33:21 +0000 (18:33 +0000)]
Add ACKS entries for some of the patches I've been committing.
Benjamin Peterson [Sat, 10 Jan 2009 17:36:44 +0000 (17:36 +0000)]
tp_iter only exists with Py_TPFLAGS_HAVE_ITER #4901
Benjamin Peterson [Sat, 10 Jan 2009 17:18:55 +0000 (17:18 +0000)]
rewrite verbose conditionals
Matthias Klose [Sat, 10 Jan 2009 17:00:42 +0000 (17:00 +0000)]
- Issue #4861: ctypes.util.find_library(): Robustify. Fix library detection on
biarch systems. Try to rely on ldconfig only, without using objdump and gcc.
Antoine Pitrou [Sat, 10 Jan 2009 16:15:24 +0000 (16:15 +0000)]
Add NEWS entry for r68484.
Antoine Pitrou [Sat, 10 Jan 2009 16:13:45 +0000 (16:13 +0000)]
Issue #3860: GzipFile and BZ2File now support the context manager protocol.
Vinay Sajip [Sat, 10 Jan 2009 13:42:04 +0000 (13:42 +0000)]
Corrected an incorrect self-reference.
Vinay Sajip [Sat, 10 Jan 2009 13:38:04 +0000 (13:38 +0000)]
Minor documentation changes cross-referencing NullHandler to the documentation on configuring logging in a library.
Kristján Valur Jónsson [Sat, 10 Jan 2009 12:14:31 +0000 (12:14 +0000)]
Issue 4906: Preserve windows error state across PyThread_get_key_value
Hirokazu Yamamoto [Sat, 10 Jan 2009 09:18:16 +0000 (09:18 +0000)]
Added helper script to build Tcl/Tk.
Hirokazu Yamamoto [Sat, 10 Jan 2009 08:12:09 +0000 (08:12 +0000)]
Link to debug version of Tcl/Tk when python is built as debug version.
Hirokazu Yamamoto [Sat, 10 Jan 2009 08:09:43 +0000 (08:09 +0000)]
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)
Antoine Pitrou [Fri, 9 Jan 2009 21:40:55 +0000 (21:40 +0000)]
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.
Kristján Valur Jónsson [Fri, 9 Jan 2009 21:35:16 +0000 (21:35 +0000)]
Issue 4293: Make Py_AddPendingCall() thread safe
Add test cases and documentation
Kristján Valur Jónsson [Fri, 9 Jan 2009 20:31:26 +0000 (20:31 +0000)]
Issue 4293: Make Py_AddPendingCall() thread safe
Kristján Valur Jónsson [Fri, 9 Jan 2009 20:27:16 +0000 (20:27 +0000)]
Issue 4336: Let users of HTTPConnection.endheaders() submit a message body to the function if required.
Kristján Valur Jónsson [Fri, 9 Jan 2009 20:23:16 +0000 (20:23 +0000)]
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.
Kristján Valur Jónsson [Fri, 9 Jan 2009 20:10:59 +0000 (20:10 +0000)]
Issue 3677: Fix import from UNC paths on Windows.
Kristján Valur Jónsson [Fri, 9 Jan 2009 20:03:27 +0000 (20:03 +0000)]
Issue 3582. Improved thread support and TLS for Windows
Jeffrey Yasskin [Fri, 9 Jan 2009 16:47:07 +0000 (16:47 +0000)]
Fix issue 4884, preventing a crash in the socket code when python is compiled
with llvm-gcc and run with a glibc <2.10.
Hirokazu Yamamoto [Fri, 9 Jan 2009 04:10:40 +0000 (04:10 +0000)]
Bump up bsddb version on VC6. (db-4.4.20 -> db-4.7.25)
Hirokazu Yamamoto [Fri, 9 Jan 2009 03:32:46 +0000 (03:32 +0000)]
Bump up bzip2 version on VC6. (bzip2-1.0.3 -> bzip2-1.0.5)
Benjamin Peterson [Fri, 9 Jan 2009 03:15:00 +0000 (03:15 +0000)]
remove temporary code now
Benjamin Peterson [Fri, 9 Jan 2009 03:07:27 +0000 (03:07 +0000)]
be more specific in -3 option help
Benjamin Peterson [Fri, 9 Jan 2009 03:05:14 +0000 (03:05 +0000)]
add -3 to manpage
Benjamin Peterson [Fri, 9 Jan 2009 03:03:05 +0000 (03:03 +0000)]
fix spelling
Benjamin Peterson [Fri, 9 Jan 2009 02:56:32 +0000 (02:56 +0000)]
fix markup
Benjamin Peterson [Fri, 9 Jan 2009 02:53:35 +0000 (02:53 +0000)]
specify what -3 warnings are about