]> granicus.if.org Git - python/log
python
13 years agoUpstream merge.
Barry Warsaw [Tue, 19 Jul 2011 23:25:25 +0000 (19:25 -0400)]
Upstream merge.

13 years ago- Issue #10309: Define _GNU_SOURCE so that mremap() gets the proper
Barry Warsaw [Tue, 19 Jul 2011 23:23:56 +0000 (19:23 -0400)]
- Issue #10309: Define _GNU_SOURCE so that mremap() gets the proper
  signature.  Without this, architectures where sizeof void* != sizeof int are
  broken.  Patch given by Hallvard B Furuseth.

13 years agoIssue #12587: Correct faulty test file and reference in test_tokenize.
Ned Deily [Tue, 19 Jul 2011 23:18:11 +0000 (16:18 -0700)]
Issue #12587: Correct faulty test file and reference in test_tokenize.
(Patch by Robert Xiao)

13 years agoIssue #12587: Correct faulty test file and reference in test_tokenize.
Ned Deily [Tue, 19 Jul 2011 23:15:27 +0000 (16:15 -0700)]
Issue #12587: Correct faulty test file and reference in test_tokenize.
(Patch by Robert Xiao)

13 years ago- Issue #10309: Define _GNU_SOURCE so that mremap() gets the proper
Barry Warsaw [Tue, 19 Jul 2011 22:28:30 +0000 (18:28 -0400)]
- Issue #10309: Define _GNU_SOURCE so that mremap() gets the proper
  signature.  Without this, architectures where sizeof void* != sizeof int are
  broken.  Patch given by Hallvard B Furuseth.

13 years agoIssue #12571: Add a plat-linux3 directory mirroring the plat-linux2 directory,
Antoine Pitrou [Tue, 19 Jul 2011 22:28:21 +0000 (00:28 +0200)]
Issue #12571: Add a plat-linux3 directory mirroring the plat-linux2 directory,
so that "import DLFCN" and other similar imports work on Linux 3.0.

13 years agoIssue #12571: Add a plat-linux3 directory mirroring the plat-linux2 directory,
Antoine Pitrou [Tue, 19 Jul 2011 22:26:23 +0000 (00:26 +0200)]
Issue #12571: Add a plat-linux3 directory mirroring the plat-linux2 directory,
so that "import DLFCN" and other similar imports work on Linux 3.0.

13 years ago#7484: simplify quoteaddr: if parseaddr throws an error it is a bug.
R David Murray [Tue, 19 Jul 2011 01:59:53 +0000 (21:59 -0400)]
#7484: simplify quoteaddr: if parseaddr throws an error it is a bug.

As far as I can tell, the try/except was ancient code, from before the email
package rewrite where the philosophy of never throwing parsing errors was
adopted.

13 years agoMerge #7484: no more <> around addresses in VRFY or EXPN
R David Murray [Tue, 19 Jul 2011 01:42:28 +0000 (21:42 -0400)]
Merge #7484: no more <> around addresses in VRFY or EXPN

13 years ago#7484: no more <> around addresses in VRFY or EXPN
R David Murray [Tue, 19 Jul 2011 01:38:54 +0000 (21:38 -0400)]
#7484: no more <> around addresses in VRFY or EXPN

The RFC doesn't say that they are allowed; apparently many mailers accept
them, but not postfix.  Contributions to this patch were made by Felipe Cruz
and Catalin Iacob.

The changeset also adds additional indirect tests for quoteaddr (null address
and IDNA-encoded address).

13 years agomerge from 3.2 - Fix closes issue12577 - clarify shutil.move documentation. Patch...
Senthil Kumaran [Tue, 19 Jul 2011 00:03:55 +0000 (08:03 +0800)]
merge from 3.2 - Fix closes issue12577 - clarify shutil.move documentation. Patch suggestion by Catalin Iacob

13 years agoFix closes issue12577 - clarify shutil.move documentation. Patch suggestion by Catali...
Senthil Kumaran [Tue, 19 Jul 2011 00:03:02 +0000 (08:03 +0800)]
Fix closes issue12577 - clarify shutil.move documentation. Patch suggestion by Catalin Iacob

13 years agoIssue #6476: Document that os.spawnle and os.spawnve are not thread-safe under Windows.
Antoine Pitrou [Mon, 18 Jul 2011 23:29:18 +0000 (01:29 +0200)]
Issue #6476: Document that os.spawnle and os.spawnve are not thread-safe under Windows.

13 years agoIssue #6476: Document that os.spawnle and os.spawnve are not thread-safe under Windows.
Antoine Pitrou [Mon, 18 Jul 2011 23:26:58 +0000 (01:26 +0200)]
Issue #6476: Document that os.spawnle and os.spawnve are not thread-safe under Windows.

13 years agoMerge from 3.2.
Eric V. Smith [Mon, 18 Jul 2011 18:08:55 +0000 (14:08 -0400)]
Merge from 3.2.

13 years agoCloses #12579. Positional fields with str.format_map() now raise a ValueError instead...
Eric V. Smith [Mon, 18 Jul 2011 18:03:41 +0000 (14:03 -0400)]
Closes #12579. Positional fields with str.format_map() now raise a ValueError instead of SystemError.

13 years agoFix English in packaging, too.
R David Murray [Mon, 18 Jul 2011 16:39:18 +0000 (12:39 -0400)]
Fix English in packaging, too.

13 years agoMerge English fix.
R David Murray [Mon, 18 Jul 2011 16:38:48 +0000 (12:38 -0400)]
Merge English fix.

13 years agoBetter English.
R David Murray [Mon, 18 Jul 2011 16:38:03 +0000 (12:38 -0400)]
Better English.

13 years agomerge heads
Benjamin Peterson [Mon, 18 Jul 2011 03:50:12 +0000 (22:50 -0500)]
merge heads

13 years agoexcise the remains of STOP_CODE, which hasn't done anything useful for years
Benjamin Peterson [Mon, 18 Jul 2011 03:49:50 +0000 (22:49 -0500)]
excise the remains of STOP_CODE, which hasn't done anything useful for years

13 years agoAdd Misc/NEWS entry and relevant doc change for issue 10271.
Brett Cannon [Mon, 18 Jul 2011 02:25:50 +0000 (19:25 -0700)]
Add Misc/NEWS entry and relevant doc change for issue 10271.

13 years agoMake warnings accept a callable for showwarnings instead of
Brett Cannon [Mon, 18 Jul 2011 02:17:55 +0000 (19:17 -0700)]
Make warnings accept a callable for showwarnings instead of
restricting itself to just functions and methods (which allows
built-in functions to be used, etc.).

Closes issue #10271. Thanks to lekma for the bug report.

13 years agoMerged upstream.
Alex Gaynor [Sun, 17 Jul 2011 23:22:05 +0000 (16:22 -0700)]
Merged upstream.

13 years agoMark itertools tests of tuple reuse as being specific to CPython.
Alex Gaynor [Sun, 17 Jul 2011 23:21:30 +0000 (16:21 -0700)]
Mark itertools tests of tuple reuse as being specific to CPython.

13 years agofix whitespace in rst.
Senthil Kumaran [Sun, 17 Jul 2011 23:18:11 +0000 (07:18 +0800)]
fix whitespace in rst.

13 years agofix whitespace nit.
Senthil Kumaran [Sun, 17 Jul 2011 23:17:20 +0000 (07:17 +0800)]
fix whitespace nit.

13 years agomerge from 3.2 - Fix closes Issue12478 - HTTPErrorProcess 's methods are http_respons...
Senthil Kumaran [Sun, 17 Jul 2011 23:13:21 +0000 (07:13 +0800)]
merge from 3.2 - Fix closes Issue12478 - HTTPErrorProcess 's methods are http_response and https_response.

13 years agoFix closes Issue12478 - HTTPErrorProcess 's methods are http_response and https_response.
Senthil Kumaran [Sun, 17 Jul 2011 23:12:40 +0000 (07:12 +0800)]
Fix closes Issue12478 - HTTPErrorProcess 's methods are http_response and https_response.

13 years agomerge from 3.2 - Fix closes Issue12479 - Add HTTPErrorProcessor class definition...
Senthil Kumaran [Sun, 17 Jul 2011 22:43:25 +0000 (06:43 +0800)]
merge from 3.2 - Fix closes Issue12479 - Add HTTPErrorProcessor class definition - Patch by Sandro Tosi

13 years agoFix closes Issue12479 - Add HTTPErrorProcessor class definition - Patch by Sandro...
Senthil Kumaran [Sun, 17 Jul 2011 22:42:46 +0000 (06:42 +0800)]
Fix closes Issue12479 - Add HTTPErrorProcessor class definition - Patch by Sandro Tosi

13 years agomerge from 3.2
Senthil Kumaran [Sun, 17 Jul 2011 11:06:03 +0000 (19:06 +0800)]
merge from 3.2

13 years agoFix Issue10403 - datetime documentation clarification based on review in the reitveld...
Senthil Kumaran [Sun, 17 Jul 2011 11:01:14 +0000 (19:01 +0800)]
Fix Issue10403 - datetime documentation clarification based on review in the reitveld by Alexendar belopolsky.

13 years agomerge from 3.2
Senthil Kumaran [Sun, 17 Jul 2011 09:32:06 +0000 (17:32 +0800)]
merge from 3.2

13 years agoFix closes Issue11436 - Minor clarification to struct documentation for 's' format...
Senthil Kumaran [Sun, 17 Jul 2011 09:29:17 +0000 (17:29 +0800)]
Fix closes Issue11436 - Minor clarification to struct documentation for 's' format character.

13 years agoMerge
Antoine Pitrou [Sat, 16 Jul 2011 21:56:45 +0000 (23:56 +0200)]
Merge

13 years agoDummy merge
Antoine Pitrou [Sat, 16 Jul 2011 21:52:42 +0000 (23:52 +0200)]
Dummy merge

13 years agoClose the call queue in concurrent.futures.ProcessPoolExecutor when
Antoine Pitrou [Sat, 16 Jul 2011 21:52:02 +0000 (23:52 +0200)]
Close the call queue in concurrent.futures.ProcessPoolExecutor when
shutdown() is called, without waiting for the garbage collector to kick in.

13 years agoput in correct section
Benjamin Peterson [Sat, 16 Jul 2011 02:11:35 +0000 (21:11 -0500)]
put in correct section

13 years agomerge heads
Benjamin Peterson [Sat, 16 Jul 2011 02:10:44 +0000 (21:10 -0500)]
merge heads

13 years agoremove ast.__version__ (closes #12273)
Benjamin Peterson [Sat, 16 Jul 2011 02:10:13 +0000 (21:10 -0500)]
remove ast.__version__ (closes #12273)

13 years agoSilence spurious "broken pipe" tracebacks when shutting down a ProcessPoolExecutor.
Antoine Pitrou [Fri, 15 Jul 2011 23:51:58 +0000 (01:51 +0200)]
Silence spurious "broken pipe" tracebacks when shutting down a ProcessPoolExecutor.

13 years agoFix potential resource leaks in concurrent.futures.ProcessPoolExecutor
Antoine Pitrou [Fri, 15 Jul 2011 23:13:34 +0000 (01:13 +0200)]
Fix potential resource leaks in concurrent.futures.ProcessPoolExecutor
by joining all queues and processes when shutdown() is called.

13 years agotest_packaging should clean up after itself (but it doesn't really)
Antoine Pitrou [Fri, 15 Jul 2011 21:26:19 +0000 (23:26 +0200)]
test_packaging should clean up after itself (but it doesn't really)

13 years agoFix whitespace
Antoine Pitrou [Fri, 15 Jul 2011 21:09:58 +0000 (23:09 +0200)]
Fix whitespace

13 years agotest_threaded_import must clean up after itself
Antoine Pitrou [Fri, 15 Jul 2011 21:09:13 +0000 (23:09 +0200)]
test_threaded_import must clean up after itself

13 years agotest_os needs to reap threads
Antoine Pitrou [Fri, 15 Jul 2011 21:00:56 +0000 (23:00 +0200)]
test_os needs to reap threads

13 years agoMerge from 3.2
Antoine Pitrou [Fri, 15 Jul 2011 20:43:33 +0000 (22:43 +0200)]
Merge from 3.2

13 years agoUse test.script_helper in test_pydoc
Antoine Pitrou [Fri, 15 Jul 2011 20:42:12 +0000 (22:42 +0200)]
Use test.script_helper in test_pydoc

13 years agotest_pydoc needs to cleanup after itself
Antoine Pitrou [Fri, 15 Jul 2011 20:32:25 +0000 (22:32 +0200)]
test_pydoc needs to cleanup after itself

13 years agoTry harder to reap dangling threads in test.support.reap_threads().
Antoine Pitrou [Fri, 15 Jul 2011 20:29:44 +0000 (22:29 +0200)]
Try harder to reap dangling threads in test.support.reap_threads().

13 years agomerge heads
Benjamin Peterson [Fri, 15 Jul 2011 20:27:58 +0000 (15:27 -0500)]
merge heads

13 years agocomment which is not applicable anymore
Benjamin Peterson [Fri, 15 Jul 2011 20:27:34 +0000 (15:27 -0500)]
comment which is not applicable anymore

13 years agoIssue #12573: Add resource checks for dangling Thread and Process objects.
Antoine Pitrou [Fri, 15 Jul 2011 20:15:38 +0000 (22:15 +0200)]
Issue #12573: Add resource checks for dangling Thread and Process objects.

13 years agoIssue #12573: Add resource checks for dangling Thread and Process objects.
Antoine Pitrou [Fri, 15 Jul 2011 20:12:24 +0000 (22:12 +0200)]
Issue #12573: Add resource checks for dangling Thread and Process objects.

13 years agoMerge
Antoine Pitrou [Fri, 15 Jul 2011 19:19:27 +0000 (21:19 +0200)]
Merge

13 years agoMerge
Antoine Pitrou [Fri, 15 Jul 2011 19:19:02 +0000 (21:19 +0200)]
Merge

13 years agoIssue #11603: Fix a crash when __str__ is rebound as __repr__.
Antoine Pitrou [Fri, 15 Jul 2011 19:18:18 +0000 (21:18 +0200)]
Issue #11603: Fix a crash when __str__ is rebound as __repr__.
Patch by Andreas Stührk.

13 years agoIssue #11603: Fix a crash when __str__ is rebound as __repr__.
Antoine Pitrou [Fri, 15 Jul 2011 19:17:14 +0000 (21:17 +0200)]
Issue #11603: Fix a crash when __str__ is rebound as __repr__.
Patch by Andreas Stührk.

13 years agoIssue #11603: Fix a crash when __str__ is rebound as __repr__.
Antoine Pitrou [Fri, 15 Jul 2011 19:15:07 +0000 (21:15 +0200)]
Issue #11603: Fix a crash when __str__ is rebound as __repr__.
Patch by Andreas Stührk.

13 years agomerge 3.2
Benjamin Peterson [Fri, 15 Jul 2011 19:11:45 +0000 (14:11 -0500)]
merge 3.2

13 years agomerge heads
Benjamin Peterson [Fri, 15 Jul 2011 19:11:23 +0000 (14:11 -0500)]
merge heads

13 years agomerge heads
Benjamin Peterson [Fri, 15 Jul 2011 19:10:59 +0000 (14:10 -0500)]
merge heads

13 years agomerge 3.2 (#11627)
Benjamin Peterson [Fri, 15 Jul 2011 19:10:35 +0000 (14:10 -0500)]
merge 3.2 (#11627)

13 years agocatch nasty exception classes with __new__ that doesn't return a exception (closes...
Benjamin Peterson [Fri, 15 Jul 2011 19:09:26 +0000 (14:09 -0500)]
catch nasty exception classes with __new__ that doesn't return a exception (closes #11627)

Patch from Andreas Stührk.

13 years agoIssue #11321: Fix a crash with multiple imports of the _pickle module when
Antoine Pitrou [Fri, 15 Jul 2011 19:02:09 +0000 (21:02 +0200)]
Issue #11321: Fix a crash with multiple imports of the _pickle module when
embedding Python.  Patch by Andreas Stührk.

13 years agoIssue #11321: Fix a crash with multiple imports of the _pickle module when
Antoine Pitrou [Fri, 15 Jul 2011 19:01:21 +0000 (21:01 +0200)]
Issue #11321: Fix a crash with multiple imports of the _pickle module when
embedding Python.  Patch by Andreas Stührk.

13 years agoMake sure to reap worker threads and processes at the end of test_concurrent_futures
Antoine Pitrou [Fri, 15 Jul 2011 18:26:35 +0000 (20:26 +0200)]
Make sure to reap worker threads and processes at the end of test_concurrent_futures

13 years agoMake sure to reap worker threads and processes at the end of test_concurrent_futures
Antoine Pitrou [Fri, 15 Jul 2011 18:25:20 +0000 (20:25 +0200)]
Make sure to reap worker threads and processes at the end of test_concurrent_futures

13 years agoRemove duplicate "numbered" options for toctrees.
Georg Brandl [Fri, 15 Jul 2011 17:09:49 +0000 (19:09 +0200)]
Remove duplicate "numbered" options for toctrees.

13 years agoAlways use repr for regrtest resources names
Éric Araujo [Fri, 15 Jul 2011 15:50:15 +0000 (17:50 +0200)]
Always use repr for regrtest resources names

13 years agoSilence 2to3 warnings in packaging tests
Éric Araujo [Fri, 15 Jul 2011 15:49:20 +0000 (17:49 +0200)]
Silence 2to3 warnings in packaging tests

13 years agoFix :file: constructs in packaging.database docs
Éric Araujo [Fri, 15 Jul 2011 15:48:20 +0000 (17:48 +0200)]
Fix :file: constructs in packaging.database docs

13 years agoClear packaging.database caches in place
Éric Araujo [Fri, 15 Jul 2011 15:47:46 +0000 (17:47 +0200)]
Clear packaging.database caches in place

13 years agoPy_BuildValue("C") supports non-BMP characters on narrow build
Victor Stinner [Thu, 14 Jul 2011 23:13:24 +0000 (01:13 +0200)]
Py_BuildValue("C") supports non-BMP characters on narrow build

Py_BuildValue("C") doesn't have to check the code point,
PyUnicode_FromOrdinal() checks its input and now supports non-BMP characters
(range U+10000-U+10FFFF).

13 years agoClose #6755: Add get_wch() method to curses.window class
Victor Stinner [Thu, 14 Jul 2011 21:07:44 +0000 (23:07 +0200)]
Close #6755: Add get_wch() method to curses.window class

Patch by Iñigo Serna.

13 years agoAdd cgi.closelog() function to close the log file
Victor Stinner [Thu, 14 Jul 2011 20:28:36 +0000 (22:28 +0200)]
Add cgi.closelog() function to close the log file

13 years agoMerge - Issue #12502: asyncore: fix polling loop with AF_UNIX sockets.
Charles-François Natali [Thu, 14 Jul 2011 18:00:49 +0000 (20:00 +0200)]
Merge - Issue #12502: asyncore: fix polling loop with AF_UNIX sockets.

13 years agoMerge - Issue #12502: asyncore: fix polling loop with AF_UNIX sockets.
Charles-François Natali [Thu, 14 Jul 2011 17:57:35 +0000 (19:57 +0200)]
Merge - Issue #12502: asyncore: fix polling loop with AF_UNIX sockets.

13 years agoIssue #12502: asyncore: fix polling loop with AF_UNIX sockets.
Charles-François Natali [Thu, 14 Jul 2011 17:53:38 +0000 (19:53 +0200)]
Issue #12502: asyncore: fix polling loop with AF_UNIX sockets.

13 years agotest that TestCase doesn't get cycles
Benjamin Peterson [Thu, 14 Jul 2011 17:48:25 +0000 (12:48 -0500)]
test that TestCase doesn't get cycles

13 years agoadd a contextmanager to disable the gc
Benjamin Peterson [Thu, 14 Jul 2011 17:48:01 +0000 (12:48 -0500)]
add a contextmanager to disable the gc

13 years agomerge 3.2
Benjamin Peterson [Thu, 14 Jul 2011 15:03:53 +0000 (10:03 -0500)]
merge 3.2

13 years agothis should be an identity test
Benjamin Peterson [Thu, 14 Jul 2011 15:03:35 +0000 (10:03 -0500)]
this should be an identity test

13 years ago(merge 3.2) Issue #12250: test_socketserver uses a timeout of 60 seconds
Victor Stinner [Thu, 14 Jul 2011 13:36:16 +0000 (15:36 +0200)]
(merge 3.2) Issue #12250: test_socketserver uses a timeout of 60 seconds
instead of 20

test_shutdown() may fail on very slow buildbots like FreeBSD 6.4 just because
of the arbitrary timeout.

13 years agoMerge with 3.2.
Ezio Melotti [Thu, 14 Jul 2011 12:57:12 +0000 (15:57 +0300)]
Merge with 3.2.

13 years agoIssue #12250: test_socketserver uses a timeout of 60 seconds instead of 20
Victor Stinner [Thu, 14 Jul 2011 12:53:24 +0000 (14:53 +0200)]
Issue #12250: test_socketserver uses a timeout of 60 seconds instead of 20

test_shutdown() may fail on very slow buildbots like FreeBSD 6.4 just because
of the arbitrary timeout.

13 years agoRestore the global state of the log vars, so that test_cgi can be run twice without...
Ezio Melotti [Thu, 14 Jul 2011 12:18:57 +0000 (15:18 +0300)]
Restore the global state of the log vars, so that test_cgi can be run twice without failures.

13 years agomerge 3.2
Benjamin Peterson [Thu, 14 Jul 2011 04:11:14 +0000 (23:11 -0500)]
merge 3.2

13 years agocarefully cleanup pointer cache after creating struct pointers
Benjamin Peterson [Thu, 14 Jul 2011 04:09:30 +0000 (23:09 -0500)]
carefully cleanup pointer cache after creating struct pointers

13 years agoCloses #12536: Unused logger removed from lib2to3.
Vinay Sajip [Wed, 13 Jul 2011 22:15:07 +0000 (23:15 +0100)]
Closes #12536: Unused logger removed from lib2to3.

13 years agoIssue #12549: Correct test_platform to not fail when OS X returns 'x86_64'
Ned Deily [Wed, 13 Jul 2011 22:09:49 +0000 (15:09 -0700)]
Issue #12549: Correct test_platform to not fail when OS X returns 'x86_64'
as the processor type on some Mac systems.

13 years agoIssue #12549: Correct test_platform to not fail when OS X returns 'x86_64'
Ned Deily [Wed, 13 Jul 2011 22:07:04 +0000 (15:07 -0700)]
Issue #12549: Correct test_platform to not fail when OS X returns 'x86_64'
as the processor type on some Mac systems.  Also fix NameError in fallback
_mac_ver_gestalt function.  And remove out-of-date URL in docs.

13 years agoIssue #12550: regrtest displays the Python traceback on SIGALRM or SIGUSR1
Victor Stinner [Wed, 13 Jul 2011 21:47:21 +0000 (23:47 +0200)]
Issue #12550: regrtest displays the Python traceback on SIGALRM or SIGUSR1

13 years agoIssue #12550: Add chain optional argument to faulthandler.register()
Victor Stinner [Wed, 13 Jul 2011 21:39:53 +0000 (23:39 +0200)]
Issue #12550: Add chain optional argument to faulthandler.register()

Call the previous signal handler if chain is True.

13 years ago(merge 3.2) Close #4376: ctypes now supports nested structures in a endian
Victor Stinner [Wed, 13 Jul 2011 19:45:16 +0000 (21:45 +0200)]
(merge 3.2) Close #4376: ctypes now supports nested structures in a endian
different than the parent structure. Patch by Vlad Riscutia.

13 years agoClose #4376: ctypes now supports nested structures in a endian different than
Victor Stinner [Wed, 13 Jul 2011 19:43:18 +0000 (21:43 +0200)]
Close #4376: ctypes now supports nested structures in a endian different than
the parent structure. Patch by Vlad Riscutia.

13 years agoRaise ValueError when attempting to set the _CHUNK_SIZE attribute of a TextIOWrapper...
Antoine Pitrou [Wed, 13 Jul 2011 19:08:56 +0000 (21:08 +0200)]
Raise ValueError when attempting to set the _CHUNK_SIZE attribute of a TextIOWrapper to a huge value, not TypeError.

13 years agoRaise ValueError when attempting to set the _CHUNK_SIZE attribute of a TextIOWrapper...
Antoine Pitrou [Wed, 13 Jul 2011 19:07:49 +0000 (21:07 +0200)]
Raise ValueError when attempting to set the _CHUNK_SIZE attribute of a TextIOWrapper to a huge value, not TypeError.

13 years agoMake it clear that PyNumber_AsSsize_t() returns -1 on error.
Antoine Pitrou [Wed, 13 Jul 2011 19:02:58 +0000 (21:02 +0200)]
Make it clear that PyNumber_AsSsize_t() returns -1 on error.