]> granicus.if.org Git - python/log
python
11 years agoClose #19030: inspect.getmembers and inspect.classify_class_attrs
Ethan Furman [Fri, 18 Oct 2013 07:27:39 +0000 (00:27 -0700)]
Close #19030: inspect.getmembers and inspect.classify_class_attrs

Order of search is now:
  1. Try getattr
  2. If that throws an exception, check __dict__ directly
  3. If still not found, walk the mro looking for the eldest class that has
     the attribute (e.g. things returned by __getattr__)
  4. If none of that works (e.g. due to a buggy __dir__, __getattr__, etc.
     method or missing __slot__ attribute), ignore the attribute entirely.

11 years agoCatching up on NEWS entries.
Ethan Furman [Fri, 18 Oct 2013 02:34:12 +0000 (19:34 -0700)]
Catching up on NEWS entries.

I'll make sure and include them in future patches.

11 years agoIssue #19262: Install asyncio and test_asyncio directories.
Ned Deily [Fri, 18 Oct 2013 01:08:00 +0000 (18:08 -0700)]
Issue #19262: Install asyncio and test_asyncio directories.

11 years agoRename the logger to plain "logger".
Guido van Rossum [Thu, 17 Oct 2013 22:39:45 +0000 (15:39 -0700)]
Rename the logger to plain "logger".

11 years agoIssue #19275: Fix test_site failure on OS X due to typo.
Ned Deily [Thu, 17 Oct 2013 22:21:40 +0000 (15:21 -0700)]
Issue #19275: Fix test_site failure on OS X due to typo.

11 years agoMake asyncio tests run on Windows.
Guido van Rossum [Thu, 17 Oct 2013 21:23:17 +0000 (14:23 -0700)]
Make asyncio tests run on Windows.

11 years agoInitial checkin of asyncio package (== Tulip, == PEP 3156).
Guido van Rossum [Thu, 17 Oct 2013 20:40:50 +0000 (13:40 -0700)]
Initial checkin of asyncio package (== Tulip, == PEP 3156).

11 years agoIssue #19276: Fixed the wave module on 64-bit big-endian platforms.
Serhiy Storchaka [Thu, 17 Oct 2013 20:05:19 +0000 (23:05 +0300)]
Issue #19276: Fixed the wave module on 64-bit big-endian platforms.

11 years agoIssue #19276: Fixed the wave module on 64-bit big-endian platforms.
Serhiy Storchaka [Thu, 17 Oct 2013 20:04:04 +0000 (23:04 +0300)]
Issue #19276: Fixed the wave module on 64-bit big-endian platforms.

11 years agomerge with 3.3
Georg Brandl [Thu, 17 Oct 2013 17:52:33 +0000 (19:52 +0200)]
merge with 3.3

11 years agoFix inaccurate versionchanged tag for compressobj(): most parameter were there, just...
Georg Brandl [Thu, 17 Oct 2013 17:51:34 +0000 (19:51 +0200)]
Fix inaccurate versionchanged tag for compressobj(): most parameter were there, just got kwarg support.

11 years agoSkip #16129 test until I debug cross-platform issues
Nick Coghlan [Thu, 17 Oct 2013 15:46:19 +0000 (01:46 +1000)]
Skip #16129 test until I debug cross-platform issues

11 years agoTry to debug overspecified test :(
Nick Coghlan [Thu, 17 Oct 2013 15:44:22 +0000 (01:44 +1000)]
Try to debug overspecified test :(

11 years agoFix signal handler in test.
Richard Oudkerk [Thu, 17 Oct 2013 14:22:10 +0000 (15:22 +0100)]
Fix signal handler in test.

11 years agoClose #19266: contextlib.ignore -> contextlib.suppress
Nick Coghlan [Thu, 17 Oct 2013 13:40:57 +0000 (23:40 +1000)]
Close #19266: contextlib.ignore -> contextlib.suppress

Patch by Zero Piraeus.

11 years agoMerge.
Richard Oudkerk [Thu, 17 Oct 2013 13:31:51 +0000 (14:31 +0100)]
Merge.

11 years agoIssue #16129: Move Py_SetStandardStreamEncoding declaration
Nick Coghlan [Thu, 17 Oct 2013 13:27:17 +0000 (23:27 +1000)]
Issue #16129: Move Py_SetStandardStreamEncoding declaration

11 years agoTry doing a raw test of os.fork()/os.kill().
Richard Oudkerk [Thu, 17 Oct 2013 13:24:06 +0000 (14:24 +0100)]
Try doing a raw test of os.fork()/os.kill().

11 years agoIssue #16129: Add `Py_SetStandardStreamEncoding`
Nick Coghlan [Thu, 17 Oct 2013 12:35:35 +0000 (22:35 +1000)]
Issue #16129: Add `Py_SetStandardStreamEncoding`

This new pre-initialization API allows embedding
applications like Blender to force a particular
encoding and error handler for the standard IO streams.

Also refactors Modules/_testembed.c to let us start
testing multiple embedding scenarios.

(Initial patch by Bastien Montagne)

11 years agoStop trying to use strace, but add a sleep before terminate().
Richard Oudkerk [Thu, 17 Oct 2013 12:56:18 +0000 (13:56 +0100)]
Stop trying to use strace, but add a sleep before terminate().

11 years agoIssue #19275: Fix test_site on AMD64 Snow Leopard
Christian Heimes [Thu, 17 Oct 2013 11:40:00 +0000 (13:40 +0200)]
Issue #19275: Fix test_site on AMD64 Snow Leopard

11 years agoTry strace instead of gdb to see what wedged child is doing.
Richard Oudkerk [Thu, 17 Oct 2013 11:10:45 +0000 (12:10 +0100)]
Try strace instead of gdb to see what wedged child is doing.

11 years agoMerge heads
Serhiy Storchaka [Thu, 17 Oct 2013 09:48:32 +0000 (12:48 +0300)]
Merge heads

11 years agoIssue 19276: Fix tests for wave files on big-endian platforms.
Serhiy Storchaka [Thu, 17 Oct 2013 09:46:53 +0000 (12:46 +0300)]
Issue 19276: Fix tests for wave files on big-endian platforms.
Skip tests for 24-bit wave file on big-endian platforms.

11 years agoIssue 19276: Fix tests for wave files on big-endian platforms.
Serhiy Storchaka [Thu, 17 Oct 2013 09:46:00 +0000 (12:46 +0300)]
Issue 19276: Fix tests for wave files on big-endian platforms.
Skip tests for 24-bit wave file on big-endian platforms.

11 years agoTry to print a backtrace of wedged child process in test.
Richard Oudkerk [Thu, 17 Oct 2013 09:38:37 +0000 (10:38 +0100)]
Try to print a backtrace of wedged child process in test.

11 years ago#18891: Complete new provisional email API.
R David Murray [Thu, 17 Oct 2013 02:48:40 +0000 (22:48 -0400)]
#18891: Complete new provisional email API.

This adds EmailMessage and, MIMEPart subclasses of Message
with new API methods, and a ContentManager class used by
the new methods.  Also a new policy setting, content_manager.

Patch was reviewed by Stephen J. Turnbull and Serhiy Storchaka,
and reflects their feedback.

I will ideally add some examples of using the new API to the
documentation before the final release.

11 years agoClose #19252: better test coverage for Enum. Thanks, CliffM
Ethan Furman [Thu, 17 Oct 2013 02:09:31 +0000 (19:09 -0700)]
Close #19252: better test coverage for Enum.  Thanks, CliffM

11 years agoFix import of SimpleQueue.
Richard Oudkerk [Wed, 16 Oct 2013 16:06:22 +0000 (17:06 +0100)]
Fix import of SimpleQueue.

11 years agoIssue #18999: Make multiprocessing use context objects.
Richard Oudkerk [Wed, 16 Oct 2013 15:41:56 +0000 (16:41 +0100)]
Issue #18999: Make multiprocessing use context objects.

This allows different parts of a program to use different methods for
starting processes without interfering with each other.

11 years agoAdd shorten to __all_ (issues #18585 and #18725).
Serhiy Storchaka [Wed, 16 Oct 2013 10:07:53 +0000 (13:07 +0300)]
Add shorten to __all_ (issues #18585 and #18725).

11 years agoIssue #18468: The re.split, re.findall, and re.sub functions and the group()
Serhiy Storchaka [Wed, 16 Oct 2013 09:46:28 +0000 (12:46 +0300)]
Issue #18468: The re.split, re.findall, and re.sub functions and the group()
and groups() methods of match object now always return a string or a bytes
object.

11 years agoIssue #14407: Fix unittest test discovery in test_concurrent_futures.
Antoine Pitrou [Tue, 15 Oct 2013 21:24:44 +0000 (23:24 +0200)]
Issue #14407: Fix unittest test discovery in test_concurrent_futures.

11 years agoIssue #14407: Fix unittest test discovery in test_concurrent_futures.
Antoine Pitrou [Tue, 15 Oct 2013 21:23:32 +0000 (23:23 +0200)]
Issue #14407: Fix unittest test discovery in test_concurrent_futures.

11 years agoIssue #18725: The textwrap module now supports truncating multiline text.
Serhiy Storchaka [Tue, 15 Oct 2013 18:22:54 +0000 (21:22 +0300)]
Issue #18725: The textwrap module now supports truncating multiline text.

11 years agoMerge
Richard Oudkerk [Tue, 15 Oct 2013 15:49:59 +0000 (16:49 +0100)]
Merge

11 years agoPrint process instead of pid.
Richard Oudkerk [Tue, 15 Oct 2013 15:48:51 +0000 (16:48 +0100)]
Print process instead of pid.

11 years agoIssue #17221: Merge 3.4.0 Alpha 1 entries before and after 3.3.1 release candidate 1.
Serhiy Storchaka [Tue, 15 Oct 2013 09:05:57 +0000 (12:05 +0300)]
Issue #17221: Merge 3.4.0 Alpha 1 entries before and after 3.3.1 release candidate 1.

11 years agoClose #19260: remove outdated comment in marshal.c
Antoine Pitrou [Mon, 14 Oct 2013 18:50:32 +0000 (20:50 +0200)]
Close #19260: remove outdated comment in marshal.c

11 years agoIssue #18919: Add test/audiodata to LIBSUBDIRS.
Serhiy Storchaka [Mon, 14 Oct 2013 18:19:24 +0000 (21:19 +0300)]
Issue #18919: Add test/audiodata to LIBSUBDIRS.

11 years agoIssue #18919: Add test/audiodata to LIBSUBDIRS.
Serhiy Storchaka [Mon, 14 Oct 2013 18:18:50 +0000 (21:18 +0300)]
Issue #18919: Add test/audiodata to LIBSUBDIRS.

11 years agoIssue #18919: Fixed resource leaks in audio tests.
Serhiy Storchaka [Mon, 14 Oct 2013 17:10:18 +0000 (20:10 +0300)]
Issue #18919: Fixed resource leaks in audio tests.

11 years agoIssue #18919: Fixed resource leaks in audio tests.
Serhiy Storchaka [Mon, 14 Oct 2013 17:09:47 +0000 (20:09 +0300)]
Issue #18919: Fixed resource leaks in audio tests.

11 years agoIssue #18919: Check warnings messages in the aifc module tests.
Serhiy Storchaka [Mon, 14 Oct 2013 17:06:04 +0000 (20:06 +0300)]
Issue #18919: Check warnings messages in the aifc module tests.

11 years agoIssue #18919: Check warnings messages in the aifc module tests.
Serhiy Storchaka [Mon, 14 Oct 2013 17:05:33 +0000 (20:05 +0300)]
Issue #18919: Check warnings messages in the aifc module tests.

11 years agomerge with 3.3
Georg Brandl [Mon, 14 Oct 2013 14:53:07 +0000 (16:53 +0200)]
merge with 3.3

11 years agoCloses #19258: close WSGI server after handling request in demo code.
Georg Brandl [Mon, 14 Oct 2013 14:52:13 +0000 (16:52 +0200)]
Closes #19258: close WSGI server after handling request in demo code.

11 years agomerge with 3.3
Georg Brandl [Mon, 14 Oct 2013 14:08:25 +0000 (16:08 +0200)]
merge with 3.3

11 years agoCloses #17154: error out gracefully on "ignore" or "condition" without argument.
Georg Brandl [Mon, 14 Oct 2013 14:08:15 +0000 (16:08 +0200)]
Closes #17154: error out gracefully on "ignore" or "condition" without argument.

11 years agoIssue #19189: Improved cross-references in the pickle module documentation.
Serhiy Storchaka [Mon, 14 Oct 2013 07:44:25 +0000 (10:44 +0300)]
Issue #19189: Improved cross-references in the pickle module documentation.

11 years agoIssue #19189: Improved cross-references in the pickle module documentation.
Serhiy Storchaka [Mon, 14 Oct 2013 07:43:46 +0000 (10:43 +0300)]
Issue #19189: Improved cross-references in the pickle module documentation.

11 years agoRe #18521: move array bounds check before array access.
Georg Brandl [Mon, 14 Oct 2013 05:01:11 +0000 (07:01 +0200)]
Re #18521: move array bounds check before array access.

11 years agoRe #18521: remove assignments of variables that are immediately reassigned.
Georg Brandl [Mon, 14 Oct 2013 04:51:46 +0000 (06:51 +0200)]
Re #18521: remove assignments of variables that are immediately reassigned.

11 years agoRe #18521: fix not-quite-C syntax that works only because the PyXXX_Check are macros...
Georg Brandl [Mon, 14 Oct 2013 04:46:12 +0000 (06:46 +0200)]
Re #18521: fix not-quite-C syntax that works only because the PyXXX_Check are macros defined with () around them.

11 years ago#4965: merge with 3.3.
Ezio Melotti [Sun, 13 Oct 2013 23:59:54 +0000 (02:59 +0300)]
#4965: merge with 3.3.

11 years ago#4965: Implement intelligent scrolling of the sidebar in the docs.
Ezio Melotti [Sun, 13 Oct 2013 23:58:59 +0000 (02:58 +0300)]
#4965: Implement intelligent scrolling of the sidebar in the docs.

11 years agomerge with 3.3
Georg Brandl [Sun, 13 Oct 2013 21:34:06 +0000 (23:34 +0200)]
merge with 3.3

11 years agoCloses #16657: fix docstring of traceback.format_tb().
Georg Brandl [Sun, 13 Oct 2013 21:32:14 +0000 (23:32 +0200)]
Closes #16657: fix docstring of traceback.format_tb().

11 years agoNull merge
Serhiy Storchaka [Sun, 13 Oct 2013 20:30:53 +0000 (23:30 +0300)]
Null merge

11 years agoMerge heads
Serhiy Storchaka [Sun, 13 Oct 2013 20:27:44 +0000 (23:27 +0300)]
Merge heads

11 years agoMerge heads
Serhiy Storchaka [Sun, 13 Oct 2013 20:27:23 +0000 (23:27 +0300)]
Merge heads

11 years agoFix spacing of toplevel items.
Georg Brandl [Sun, 13 Oct 2013 20:25:10 +0000 (22:25 +0200)]
Fix spacing of toplevel items.

11 years agomerge with 3.3
Georg Brandl [Sun, 13 Oct 2013 20:23:34 +0000 (22:23 +0200)]
merge with 3.3

11 years agoWing IDE is switching to PyQt...
Georg Brandl [Sun, 13 Oct 2013 20:23:27 +0000 (22:23 +0200)]
Wing IDE is switching to PyQt...

11 years agoMerge heads
Serhiy Storchaka [Sun, 13 Oct 2013 20:22:09 +0000 (23:22 +0300)]
Merge heads

11 years agomerge with 3.3
Georg Brandl [Sun, 13 Oct 2013 20:20:08 +0000 (22:20 +0200)]
merge with 3.3

11 years agoCloses #19248: actually check for Python 3.x in tools/sphinx-build.py.
Georg Brandl [Sun, 13 Oct 2013 20:19:49 +0000 (22:19 +0200)]
Closes #19248: actually check for Python 3.x in tools/sphinx-build.py.

11 years agoCloses #17335: remove no-op assignment.
Georg Brandl [Sun, 13 Oct 2013 20:16:48 +0000 (22:16 +0200)]
Closes #17335: remove no-op assignment.

11 years agoRemove unexpected headings from Misc/NEWS
Antoine Pitrou [Sun, 13 Oct 2013 20:13:56 +0000 (22:13 +0200)]
Remove unexpected headings from Misc/NEWS

11 years agoIssue #18758: Fixed and improved cross-references.
Serhiy Storchaka [Sun, 13 Oct 2013 20:12:09 +0000 (23:12 +0300)]
Issue #18758: Fixed and improved cross-references.

11 years agoIssue #18758: Fixed and improved cross-references.
Serhiy Storchaka [Sun, 13 Oct 2013 20:09:14 +0000 (23:09 +0300)]
Issue #18758: Fixed and improved cross-references.

11 years agoIssue #18776: atexit callbacks now display their full traceback when they raise an...
Antoine Pitrou [Sun, 13 Oct 2013 19:54:15 +0000 (21:54 +0200)]
Issue #18776: atexit callbacks now display their full traceback when they raise an exception.

11 years agoIssue #18776: atexit callbacks now display their full traceback when they raise an...
Antoine Pitrou [Sun, 13 Oct 2013 19:53:13 +0000 (21:53 +0200)]
Issue #18776: atexit callbacks now display their full traceback when they raise an exception.

11 years agoCloses #17730: in code.interact(), when banner="", do not print anything.
Georg Brandl [Sun, 13 Oct 2013 19:49:06 +0000 (21:49 +0200)]
Closes #17730: in code.interact(), when banner="", do not print anything.

Also adds tests for banner printing.

11 years ago#18714: add attribution.
Georg Brandl [Sun, 13 Oct 2013 18:56:25 +0000 (20:56 +0200)]
#18714: add attribution.

11 years agopdb: modernize find_function() and add tests for it.
Georg Brandl [Sun, 13 Oct 2013 18:51:47 +0000 (20:51 +0200)]
pdb: modernize find_function() and add tests for it.

Closes #18714.

11 years agoIssue #19197: Improved cross-references in the shlex module documentation.
Serhiy Storchaka [Sun, 13 Oct 2013 18:20:30 +0000 (21:20 +0300)]
Issue #19197: Improved cross-references in the shlex module documentation.

11 years agoIssue #19197: Improved cross-references in the shlex module documentation.
Serhiy Storchaka [Sun, 13 Oct 2013 18:19:00 +0000 (21:19 +0300)]
Issue #19197: Improved cross-references in the shlex module documentation.

11 years agoIssue19030: commit tests for DynamicClassAttribute
Ethan Furman [Sun, 13 Oct 2013 17:52:10 +0000 (10:52 -0700)]
Issue19030: commit tests for DynamicClassAttribute

11 years agoIssue #19207: Improved cross-references in the os, os.path, and posix modules
Serhiy Storchaka [Sun, 13 Oct 2013 17:13:37 +0000 (20:13 +0300)]
Issue #19207: Improved cross-references in the os, os.path, and posix modules
documentation.

11 years agoIssue #19207: Improved cross-references in the os, os.path, and posix modules
Serhiy Storchaka [Sun, 13 Oct 2013 17:12:43 +0000 (20:12 +0300)]
Issue #19207: Improved cross-references in the os, os.path, and posix modules
documentation.

11 years agoImprove #19204: Improved cross-references in the urllib package documentation.
Serhiy Storchaka [Sun, 13 Oct 2013 17:07:51 +0000 (20:07 +0300)]
Improve #19204: Improved cross-references in the urllib package documentation.

11 years agoImprove #19204: Improved cross-references in the urllib package documentation.
Serhiy Storchaka [Sun, 13 Oct 2013 17:06:50 +0000 (20:06 +0300)]
Improve #19204: Improved cross-references in the urllib package documentation.

11 years agomerge with 3.3
Georg Brandl [Sun, 13 Oct 2013 16:38:53 +0000 (18:38 +0200)]
merge with 3.3

11 years agoRefer to strftime(3) manpage for platform specific format codes.
Georg Brandl [Sun, 13 Oct 2013 16:28:25 +0000 (18:28 +0200)]
Refer to strftime(3) manpage for platform specific format codes.

Suggested by Skip Montanaro on docs@.

11 years agoIssue #19203: Improved cross-references in the curses howto.
Serhiy Storchaka [Sun, 13 Oct 2013 16:24:30 +0000 (19:24 +0300)]
Issue #19203: Improved cross-references in the curses howto.

11 years agoMerge heads
Serhiy Storchaka [Sun, 13 Oct 2013 16:17:46 +0000 (19:17 +0300)]
Merge heads

11 years agoIssue #19203: Improved cross-references in the curses howto.
Serhiy Storchaka [Sun, 13 Oct 2013 15:51:59 +0000 (18:51 +0300)]
Issue #19203: Improved cross-references in the curses howto.

11 years agoIssue #19198: Improved cross-references in the cgi module documentation.
Serhiy Storchaka [Sun, 13 Oct 2013 15:29:08 +0000 (18:29 +0300)]
Issue #19198: Improved cross-references in the cgi module documentation.

11 years agoIssue #19198: Improved cross-references in the cgi module documentation.
Serhiy Storchaka [Sun, 13 Oct 2013 15:28:26 +0000 (18:28 +0300)]
Issue #19198: Improved cross-references in the cgi module documentation.

11 years agoCatch a few extra error cases in marshal.c
Kristján Valur Jónsson [Sun, 13 Oct 2013 15:19:56 +0000 (15:19 +0000)]
Catch a few extra error cases in marshal.c

11 years agoNull merge
Serhiy Storchaka [Sun, 13 Oct 2013 15:12:22 +0000 (18:12 +0300)]
Null merge

11 years agoMerge heads
Serhiy Storchaka [Sun, 13 Oct 2013 15:11:11 +0000 (18:11 +0300)]
Merge heads

11 years agoMerge heads
Serhiy Storchaka [Sun, 13 Oct 2013 15:11:05 +0000 (18:11 +0300)]
Merge heads

11 years agoIssue #18919: Unified and extended tests for audio modules: aifc, sunau and
Serhiy Storchaka [Sun, 13 Oct 2013 15:06:45 +0000 (18:06 +0300)]
Issue #18919: Unified and extended tests for audio modules: aifc, sunau and
wave.

11 years agoIssue #17827: document codecs.encode and codecs.decode
Nick Coghlan [Sun, 13 Oct 2013 14:55:46 +0000 (00:55 +1000)]
Issue #17827: document codecs.encode and codecs.decode

- Merge from 3.3
- Added to What's New since these are more important in 3.x,
  as the bytes<->bytes and str<->str codecs don't fit the
  text model convenience methods in 3.x the way they did the
  basestring<->basestring methods in the 2.x text model
- Included under Library in Misc/NEWS for the same reason

11 years agoIssue #18919: Unified and extended tests for audio modules: aifc, sunau and
Serhiy Storchaka [Sun, 13 Oct 2013 14:55:07 +0000 (17:55 +0300)]
Issue #18919: Unified and extended tests for audio modules: aifc, sunau and
wave.

11 years agoIssue #17827: Document codecs.encode and codecs.decode
Nick Coghlan [Sun, 13 Oct 2013 14:22:13 +0000 (00:22 +1000)]
Issue #17827: Document codecs.encode and codecs.decode

11 years agoIssue #19219 Remove a lot of "retval = NULL" statements, now that retval
Kristján Valur Jónsson [Sun, 13 Oct 2013 13:41:59 +0000 (13:41 +0000)]
Issue #19219 Remove a lot of "retval = NULL" statements, now that retval
is pre-initialized to that value.  Test show a 5% speedup as a bonus.

11 years agoDocs tweaks for contextlib additions
Nick Coghlan [Sun, 13 Oct 2013 13:23:08 +0000 (23:23 +1000)]
Docs tweaks for contextlib additions