]> granicus.if.org Git - python/log
python
16 years agoIssue 4957
Kristján Valur Jónsson [Mon, 19 Jan 2009 13:10:27 +0000 (13:10 +0000)]
Issue 4957
Let os.ftruncate raise OSError like documented.

16 years agoAdded more cross-reference targets and tidied up list of useful handlers.
Vinay Sajip [Mon, 19 Jan 2009 06:49:19 +0000 (06:49 +0000)]
Added more cross-reference targets and tidied up list of useful handlers.

16 years agoraise an OSError for invalid fds #4991
Benjamin Peterson [Mon, 19 Jan 2009 00:08:08 +0000 (00:08 +0000)]
raise an OSError for invalid fds #4991

16 years agofix encoding cookie case
Benjamin Peterson [Sun, 18 Jan 2009 22:47:04 +0000 (22:47 +0000)]
fix encoding cookie case

16 years agofix test that wasn't working as expected #4990
Benjamin Peterson [Sun, 18 Jan 2009 21:11:38 +0000 (21:11 +0000)]
fix test that wasn't working as expected #4990

16 years agoissue 4301: patch logging to add processName, remove the old _check_logger_class...
Jesse Noller [Sun, 18 Jan 2009 21:04:36 +0000 (21:04 +0000)]
issue 4301: patch logging to add processName, remove the old _check_logger_class code

16 years ago#4986: augassigns are not expressions.
Georg Brandl [Sun, 18 Jan 2009 18:25:30 +0000 (18:25 +0000)]
#4986: augassigns are not expressions.

16 years ago#4923: clarify what was added.
Georg Brandl [Sun, 18 Jan 2009 14:41:52 +0000 (14:41 +0000)]
#4923: clarify what was added.

16 years ago#4857: fix augmented assignment target spec.
Georg Brandl [Sun, 18 Jan 2009 13:47:26 +0000 (13:47 +0000)]
#4857: fix augmented assignment target spec.

16 years ago#4979: correct result range for some random functions.
Georg Brandl [Sun, 18 Jan 2009 13:24:10 +0000 (13:24 +0000)]
#4979: correct result range for some random functions.

16 years agoissue 4293: make test_capi.py more robutst, it times out on some platforms, presumab...
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.

16 years ago#4914: trunc is in math.
Georg Brandl [Sun, 18 Jan 2009 10:48:16 +0000 (10:48 +0000)]
#4914: trunc is in math.

16 years ago#4974: fix redundant mention of lists and tuples.
Georg Brandl [Sun, 18 Jan 2009 10:45:22 +0000 (10:45 +0000)]
#4974: fix redundant mention of lists and tuples.

16 years ago#4976: union() and intersection() take multiple args, but talk about "the other".
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".

16 years agoResolve issue 4449: AssertionError in mp_benchmarks.py
Jesse Noller [Sun, 18 Jan 2009 02:45:38 +0000 (02:45 +0000)]
Resolve issue 4449: AssertionError in mp_benchmarks.py

16 years agofix grammar
Benjamin Peterson [Sun, 18 Jan 2009 01:28:46 +0000 (01:28 +0000)]
fix grammar

16 years agobytearrays are mutable sequences
Benjamin Peterson [Sun, 18 Jan 2009 01:28:09 +0000 (01:28 +0000)]
bytearrays are mutable sequences

16 years agofollow-up of #3997: since 0xFFFF numbers are not enough to indicate a zip64 format,
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".

16 years agofix inspect.isclass() on instances with a custom __getattr__ #1225107
Benjamin Peterson [Sat, 17 Jan 2009 22:27:54 +0000 (22:27 +0000)]
fix inspect.isclass() on instances with a custom __getattr__ #1225107

16 years ago#4077: No need to append \n when calling Py_FatalError
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

16 years ago#4930: Slightly cleaner (and faster) code in type creation:
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.

16 years ago#3997: zipfiles generated with more than 65536 files could not be opened
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

16 years agotrying to find some fpathconf() settings that all unixs support...
Benjamin Peterson [Sat, 17 Jan 2009 04:39:05 +0000 (04:39 +0000)]
trying to find some fpathconf() settings that all unixs support...

16 years agouse enumerate
Benjamin Peterson [Sat, 17 Jan 2009 04:28:57 +0000 (04:28 +0000)]
use enumerate

16 years agoChange an example in the docs to avoid a mistake when the code is copy
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.

16 years agocompare with == not is #4946
Benjamin Peterson [Fri, 16 Jan 2009 02:55:24 +0000 (02:55 +0000)]
compare with == not is #4946

16 years agoMinor changes/corrections in markup.
Vinay Sajip [Thu, 15 Jan 2009 23:04:47 +0000 (23:04 +0000)]
Minor changes/corrections in markup.

16 years agoMade minor changes/corrections in markup. Added a couple of section headings.
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.

16 years agoMake all the invalid fd tests for os subject to the function being available.
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.

16 years agoFix two test cases in test_os. ftruncate raises IOError unlike all the others which...
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.

16 years agoIssue 4929: Handle socket errors when receiving
Kristján Valur Jónsson [Thu, 15 Jan 2009 17:20:21 +0000 (17:20 +0000)]
Issue 4929:  Handle socket errors when receiving

16 years agoAnother typo fix.
Mark Dickinson [Thu, 15 Jan 2009 15:17:43 +0000 (15:17 +0000)]
Another typo fix.

16 years agoComment typo
Mark Dickinson [Thu, 15 Jan 2009 14:58:28 +0000 (14:58 +0000)]
Comment typo

16 years agoIssue #4397. Fix occasional test_socket failure on OS X.
Mark Dickinson [Thu, 15 Jan 2009 14:54:37 +0000 (14:54 +0000)]
Issue #4397.  Fix occasional test_socket failure on OS X.

16 years agoFix recently introduced test cases.
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.

16 years agoRe-enable all tests for windows platforms.
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.

16 years agoFix-up indentation of sample code blocks for namedtuple mthod definitions.
Raymond Hettinger [Wed, 14 Jan 2009 01:39:51 +0000 (01:39 +0000)]
Fix-up indentation of sample code blocks for namedtuple mthod definitions.

16 years agoAdd tests for __init__() and update() with no args.
Raymond Hettinger [Wed, 14 Jan 2009 01:15:06 +0000 (01:15 +0000)]
Add tests for __init__() and update() with no args.

16 years agoMinor doc tweaks.
Raymond Hettinger [Wed, 14 Jan 2009 00:15:21 +0000 (00:15 +0000)]
Minor doc tweaks.

16 years agofix test_xmlrpc failures #4939
Benjamin Peterson [Tue, 13 Jan 2009 23:43:50 +0000 (23:43 +0000)]
fix test_xmlrpc failures #4939

16 years ago#1162154: inspect.getmembers() now skips attributes that raise AttributeError,
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.

16 years ago#4807: Remove a wrong usage of wsprintf in the winreg module
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.

16 years agoIssue #4935: The overflow checking code in the expandtabs() method common
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.

16 years agode-spacify
Benjamin Peterson [Tue, 13 Jan 2009 22:22:41 +0000 (22:22 +0000)]
de-spacify

16 years agoUse assertRaises.
Georg Brandl [Tue, 13 Jan 2009 22:14:01 +0000 (22:14 +0000)]
Use assertRaises.

16 years agoadd bytearrayobject.h to PYTHON_HEADERS
Benjamin Peterson [Tue, 13 Jan 2009 21:43:11 +0000 (21:43 +0000)]
add bytearrayobject.h to PYTHON_HEADERS

16 years agomake bytearrayobject.o depend on the stringlib #4936
Benjamin Peterson [Tue, 13 Jan 2009 21:42:23 +0000 (21:42 +0000)]
make bytearrayobject.o depend on the stringlib #4936

16 years agoFix refcount leak in error cases. Bug found by coverity.
Thomas Heller [Tue, 13 Jan 2009 17:32:28 +0000 (17:32 +0000)]
Fix refcount leak in error cases.  Bug found by coverity.

16 years agoNote that first coord. is left alone
Andrew M. Kuchling [Tue, 13 Jan 2009 13:40:54 +0000 (13:40 +0000)]
Note that first coord. is left alone

16 years agoast.literal_eval can properly evaluate complex numbers now. This fixes issue4907.
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.

16 years agoIssue 4922: Incorrect comments for MutableSet.add() and MutableSet.discard().
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.

16 years agoAdd table of idioms/patterns for using Counter objects.
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.

16 years agoFix call signature and markup.
Georg Brandl [Tue, 13 Jan 2009 08:11:07 +0000 (08:11 +0000)]
Fix call signature and markup.

16 years agoSpeed-up __repr__. Eliminate duplicate tests. Use a from-irmport.
Raymond Hettinger [Tue, 13 Jan 2009 04:50:35 +0000 (04:50 +0000)]
Speed-up __repr__.  Eliminate duplicate tests.  Use a from-irmport.

16 years agoFixup and simplify docstrings and doctests.
Raymond Hettinger [Tue, 13 Jan 2009 04:13:53 +0000 (04:13 +0000)]
Fixup and simplify docstrings and doctests.

16 years agoMinor documentation tweaks and simpler update() example.
Raymond Hettinger [Tue, 13 Jan 2009 03:49:43 +0000 (03:49 +0000)]
Minor documentation tweaks and simpler update() example.

16 years agosmall logic correction
Benjamin Peterson [Tue, 13 Jan 2009 01:49:10 +0000 (01:49 +0000)]
small logic correction

16 years agoSimplify Counter() API. Replace items keyword argument
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.

16 years ago#3720: Interpreter crashes when an evil iterator removes its own next function.
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.

16 years agoIssue 1696199: Add collections.Counter().
Raymond Hettinger [Mon, 12 Jan 2009 22:58:41 +0000 (22:58 +0000)]
Issue 1696199: Add collections.Counter().

16 years agoMinor changes/corrections in markup.
Vinay Sajip [Mon, 12 Jan 2009 20:36:18 +0000 (20:36 +0000)]
Minor changes/corrections in markup.

16 years agoAdd tests for invalid format specifiers in strftime, and for handling of invalid...
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.

16 years agoOptimize heapq.nsmallest/nlargest for cases where n==1 or n>=size.
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.

16 years agoMisc/NEWS for issue 4293
Kristján Valur Jónsson [Mon, 12 Jan 2009 09:24:04 +0000 (09:24 +0000)]
Misc/NEWS for issue 4293

16 years agoUpdate Misc/NEWS for issue 3582
Kristján Valur Jónsson [Mon, 12 Jan 2009 09:20:34 +0000 (09:20 +0000)]
Update Misc/NEWS for issue 3582

16 years agoIssue #4893: Use NT threading on CE.
Martin v. Löwis [Mon, 12 Jan 2009 08:11:24 +0000 (08:11 +0000)]
Issue #4893: Use NT threading on CE.

16 years agoIssue #4915: Port sysmodule to Windows CE.
Martin v. Löwis [Mon, 12 Jan 2009 07:57:11 +0000 (07:57 +0000)]
Issue #4915: Port sysmodule to Windows CE.

16 years agoadd email addresses
Benjamin Peterson [Sun, 11 Jan 2009 19:48:15 +0000 (19:48 +0000)]
add email addresses

16 years agoUpdate the documentation for binascii and zlib crc32/adler32 functions
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.

16 years agocorrect email address
Gregory P. Smith [Sun, 11 Jan 2009 17:53:33 +0000 (17:53 +0000)]
correct email address

16 years agoIssue 4879: Allow buffering for HTTPResponse
Kristján Valur Jónsson [Sun, 11 Jan 2009 16:23:37 +0000 (16:23 +0000)]
Issue 4879: Allow buffering for HTTPResponse

16 years agoIssue #4895: Use _strdup on Windows CE.
Martin v. Löwis [Sun, 11 Jan 2009 09:43:55 +0000 (09:43 +0000)]
Issue #4895: Use _strdup on Windows CE.

16 years agoIssue #4279: Fix build of parsermodule under Cygwin.
Martin v. Löwis [Sun, 11 Jan 2009 09:26:54 +0000 (09:26 +0000)]
Issue #4279: Fix build of parsermodule under Cygwin.

16 years agoFixed version number in build_ssl.bat.
Hirokazu Yamamoto [Sun, 11 Jan 2009 03:28:13 +0000 (03:28 +0000)]
Fixed version number in build_ssl.bat.

16 years agomacos 9 isn't supported
Benjamin Peterson [Sat, 10 Jan 2009 23:49:08 +0000 (23:49 +0000)]
macos 9 isn't supported

16 years agomove seealso to a more appropiate place
Benjamin Peterson [Sat, 10 Jan 2009 23:41:59 +0000 (23:41 +0000)]
move seealso to a more appropiate place

16 years agomake tests fail if they can't be imported
Benjamin Peterson [Sat, 10 Jan 2009 22:42:10 +0000 (22:42 +0000)]
make tests fail if they can't be imported

16 years agoCorrected minor typo and added .currentmodule directives to fix missing cross-references.
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.

16 years agoRemove an unnecessary check from test_decimal.
Mark Dickinson [Sat, 10 Jan 2009 19:14:55 +0000 (19:14 +0000)]
Remove an unnecessary check from test_decimal.

16 years agofix encoding
Benjamin Peterson [Sat, 10 Jan 2009 19:08:49 +0000 (19:08 +0000)]
fix encoding

16 years agoAdd ACKS entries for some of the patches I've been committing.
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.

16 years agotp_iter only exists with Py_TPFLAGS_HAVE_ITER #4901
Benjamin Peterson [Sat, 10 Jan 2009 17:36:44 +0000 (17:36 +0000)]
tp_iter only exists with Py_TPFLAGS_HAVE_ITER #4901

16 years agorewrite verbose conditionals
Benjamin Peterson [Sat, 10 Jan 2009 17:18:55 +0000 (17:18 +0000)]
rewrite verbose conditionals

16 years ago- Issue #4861: ctypes.util.find_library(): Robustify. Fix library detection on
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.

16 years agoAdd NEWS entry for r68484.
Antoine Pitrou [Sat, 10 Jan 2009 16:15:24 +0000 (16:15 +0000)]
Add NEWS entry for r68484.

16 years agoIssue #3860: GzipFile and BZ2File now support the context manager protocol.
Antoine Pitrou [Sat, 10 Jan 2009 16:13:45 +0000 (16:13 +0000)]
Issue #3860: GzipFile and BZ2File now support the context manager protocol.

16 years agoCorrected an incorrect self-reference.
Vinay Sajip [Sat, 10 Jan 2009 13:42:04 +0000 (13:42 +0000)]
Corrected an incorrect self-reference.

16 years agoMinor documentation changes cross-referencing NullHandler to the documentation on...
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.

16 years agoIssue 4906: Preserve windows error state across PyThread_get_key_value
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

16 years agoAdded helper script to build Tcl/Tk.
Hirokazu Yamamoto [Sat, 10 Jan 2009 09:18:16 +0000 (09:18 +0000)]
Added helper script to build Tcl/Tk.

16 years agoLink to debug version of Tcl/Tk when python is built as debug version.
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.

16 years agoBump up Tcl/Tk version on VC6. (tcl8.4.12 -> tcl8.5.2, tk8.4.12 -> tk8.5.2, tix8...
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)

16 years agoIssue #4074: Change the criteria for doing a full garbage collection (i.e.
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.

16 years agoIssue 4293: Make Py_AddPendingCall() thread safe
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

16 years agoIssue 4293: Make Py_AddPendingCall() thread safe
Kristján Valur Jónsson [Fri, 9 Jan 2009 20:31:26 +0000 (20:31 +0000)]
Issue 4293:  Make Py_AddPendingCall() thread safe

16 years agoIssue 4336: Let users of HTTPConnection.endheaders() submit a message body to the...
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.

16 years agoIssue 4336: HTTPRequest._send_output() now deals with the case of the message body...
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.

16 years agoIssue 3677: Fix import from UNC paths on Windows.
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.

16 years agoIssue 3582. Improved thread support and TLS for 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

16 years agoFix issue 4884, preventing a crash in the socket code when python is compiled
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.