]> granicus.if.org Git - python/log
python
11 years ago#18958: Improve error message for json.load(s) while passing a string that starts...
Ezio Melotti [Sun, 20 Oct 2013 23:10:55 +0000 (02:10 +0300)]
#18958: Improve error message for json.load(s) while passing a string that starts with a UTF-8 BOM.

11 years ago#19307: Improve error message for json.load(s) while passing objects of the wrong...
Ezio Melotti [Sun, 20 Oct 2013 22:52:33 +0000 (01:52 +0300)]
#19307: Improve error message for json.load(s) while passing objects of the wrong type.

11 years agoremove backticks
Benjamin Peterson [Sun, 20 Oct 2013 21:52:54 +0000 (17:52 -0400)]
remove backticks

11 years agofix declaration of StatisticsError
Benjamin Peterson [Sun, 20 Oct 2013 21:52:09 +0000 (17:52 -0400)]
fix declaration of StatisticsError

11 years agocleanup the construction of __qualname__ (closes #19301 again)
Benjamin Peterson [Sun, 20 Oct 2013 21:50:28 +0000 (17:50 -0400)]
cleanup the construction of __qualname__ (closes #19301 again)

11 years agoClose #19297: fix resource warnings in test_asyncio. Patch by Vajrasky Kok.
Antoine Pitrou [Sun, 20 Oct 2013 21:26:23 +0000 (23:26 +0200)]
Close #19297: fix resource warnings in test_asyncio.  Patch by Vajrasky Kok.

11 years agoIssue #19310: asyncio: fix child processes reaping logic.
Charles-François Natali [Sun, 20 Oct 2013 21:23:44 +0000 (23:23 +0200)]
Issue #19310: asyncio: fix child processes reaping logic.

11 years agoGrammar fix
Andrew Kuchling [Sun, 20 Oct 2013 19:53:08 +0000 (15:53 -0400)]
Grammar fix

11 years agoSkip one asyncio test when IPv6 isn't supported (Windows buildbots)
Antoine Pitrou [Sun, 20 Oct 2013 19:45:29 +0000 (21:45 +0200)]
Skip one asyncio test when IPv6 isn't supported (Windows buildbots)

11 years agoMake various asyncio test files individually runnable
Antoine Pitrou [Sun, 20 Oct 2013 19:02:53 +0000 (21:02 +0200)]
Make various asyncio test files individually runnable

11 years agoIssue #19309: asyncio: make waitpid() wait for all child processes, not only
Charles-François Natali [Sun, 20 Oct 2013 18:31:43 +0000 (20:31 +0200)]
Issue #19309: asyncio: make waitpid() wait for all child processes, not only
those in the same process group.

11 years agoMake test_audioop discoverable by unittest.
Serhiy Storchaka [Sun, 20 Oct 2013 14:25:34 +0000 (17:25 +0300)]
Make test_audioop discoverable by unittest.

11 years agoMake test_audioop discoverable by unittest.
Serhiy Storchaka [Sun, 20 Oct 2013 14:24:42 +0000 (17:24 +0300)]
Make test_audioop discoverable by unittest.

11 years agoIssue #16038: CVE-2013-1752: ftplib: Limit amount of data read by
Serhiy Storchaka [Sun, 20 Oct 2013 14:02:10 +0000 (17:02 +0300)]
Issue #16038: CVE-2013-1752: ftplib: Limit amount of data read by
limiting the call to readline().  Original patch by Michał
Jastrzębski and Giampaolo Rodola.

11 years agoIssue #16038: CVE-2013-1752: ftplib: Limit amount of data read by
Serhiy Storchaka [Sun, 20 Oct 2013 13:58:27 +0000 (16:58 +0300)]
Issue #16038: CVE-2013-1752: ftplib: Limit amount of data read by
limiting the call to readline().  Original patch by Michał
Jastrzębski and Giampaolo Rodola.

11 years agoClose #19313: remove no longer needed Py_XINCREF
Nick Coghlan [Sun, 20 Oct 2013 12:43:53 +0000 (22:43 +1000)]
Close #19313: remove no longer needed Py_XINCREF

Eliminates a refleak introduced in commit b4a325275fb0

11 years agoIssue #17087: Improved the repr for regular expression match objects.
Serhiy Storchaka [Sun, 20 Oct 2013 10:13:31 +0000 (13:13 +0300)]
Issue #17087: Improved the repr for regular expression match objects.

11 years agoAdd yet some 24-bit tests.
Serhiy Storchaka [Sun, 20 Oct 2013 09:49:04 +0000 (12:49 +0300)]
Add yet some 24-bit tests.

11 years agoIssue #12866: Fix bias() for 24-bit. Add more tests.
Serhiy Storchaka [Sun, 20 Oct 2013 06:42:26 +0000 (09:42 +0300)]
Issue #12866: Fix bias() for 24-bit. Add more tests.

11 years agoBreak out of loop on EOF in asyncio echo test programs.
Guido van Rossum [Sun, 20 Oct 2013 04:26:34 +0000 (21:26 -0700)]
Break out of loop on EOF in asyncio echo test programs.

11 years agoWhat's New updates prior to alpha
Nick Coghlan [Sun, 20 Oct 2013 03:22:21 +0000 (13:22 +1000)]
What's New updates prior to alpha

11 years agoTweak 'provisional' in glossary
Nick Coghlan [Sun, 20 Oct 2013 03:22:04 +0000 (13:22 +1000)]
Tweak 'provisional' in glossary

11 years agoUn-backout e3ec6b17260c - the test fix was actually also necessary
Antoine Pitrou [Sun, 20 Oct 2013 00:16:40 +0000 (02:16 +0200)]
Un-backout e3ec6b17260c - the test fix was actually also necessary

11 years agoBackout e3ec6b17260c after Guido's fix
Antoine Pitrou [Sun, 20 Oct 2013 00:09:08 +0000 (02:09 +0200)]
Backout e3ec6b17260c after Guido's fix

11 years ago(Hopefully) proper fix for gentoo buildbot failure due to lacking AF_INET6 support.
Guido van Rossum [Sun, 20 Oct 2013 00:04:25 +0000 (17:04 -0700)]
(Hopefully) proper fix for gentoo buildbot failure due to lacking AF_INET6 support.

This should supersede revision e3ec6b17260c (but please test before removing that).

11 years agoIssue #19305: try to fix sporadic test_asyncio failure on FreeBSD 10.0
Antoine Pitrou [Sat, 19 Oct 2013 23:51:25 +0000 (01:51 +0200)]
Issue #19305: try to fix sporadic test_asyncio failure on FreeBSD 10.0

11 years agoTry to fix test_asyncio dual stack test when creating an IPv6 socket fails
Antoine Pitrou [Sat, 19 Oct 2013 23:10:52 +0000 (01:10 +0200)]
Try to fix test_asyncio dual stack test when creating an IPv6 socket fails

11 years agoIssue #19299: fix refleak test failures in test_asyncio
Antoine Pitrou [Sat, 19 Oct 2013 22:54:10 +0000 (00:54 +0200)]
Issue #19299: fix refleak test failures in test_asyncio

11 years agoremoval u_qualname, since compiler_scope_qualname is only ever called once
Benjamin Peterson [Sat, 19 Oct 2013 20:15:58 +0000 (16:15 -0400)]
removal u_qualname, since compiler_scope_qualname is only ever called once

11 years agostrengthen condition and add assertion
Benjamin Peterson [Sat, 19 Oct 2013 20:14:39 +0000 (16:14 -0400)]
strengthen condition and add assertion

11 years agofix compile issue on windows. path is now a struct ptr
Christian Heimes [Sat, 19 Oct 2013 20:36:17 +0000 (22:36 +0200)]
fix compile issue on windows. path is now a struct ptr

11 years agoIssue #18235: Fix the sysconfig variables LDSHARED and BLDSHARED under AIX.
Antoine Pitrou [Sat, 19 Oct 2013 20:06:26 +0000 (22:06 +0200)]
Issue #18235: Fix the sysconfig variables LDSHARED and BLDSHARED under AIX.
Patch by David Edelsohn.

11 years agoIssue #18235: Fix the sysconfig variables LDSHARED and BLDSHARED under AIX.
Antoine Pitrou [Sat, 19 Oct 2013 20:05:05 +0000 (22:05 +0200)]
Issue #18235: Fix the sysconfig variables LDSHARED and BLDSHARED under AIX.
Patch by David Edelsohn.

11 years agogive explicitly global functions and classes a global __qualname__ (closes #19301)
Benjamin Peterson [Sat, 19 Oct 2013 20:01:13 +0000 (16:01 -0400)]
give explicitly global functions and classes a global __qualname__ (closes #19301)

11 years agoIssue #19304: Fix typos noted by Claudiu Popa.
Ned Deily [Sat, 19 Oct 2013 19:10:01 +0000 (12:10 -0700)]
Issue #19304: Fix typos noted by Claudiu Popa.

11 years agoIssue #18606: Add the new "statistics" module (PEP 450). Contributed
Larry Hastings [Sat, 19 Oct 2013 18:50:09 +0000 (11:50 -0700)]
Issue #18606: Add the new "statistics" module (PEP 450).  Contributed
by Steven D'Aprano.

11 years agoRestore prototypes for the 'openpty' and 'forkpty' on BSDI (broken in issue #1772673).
Serhiy Storchaka [Sat, 19 Oct 2013 18:39:31 +0000 (21:39 +0300)]
Restore prototypes for the 'openpty' and 'forkpty' on BSDI (broken in issue #1772673).

11 years agoNull merge
Serhiy Storchaka [Sat, 19 Oct 2013 18:15:55 +0000 (21:15 +0300)]
Null merge

11 years agoFixed tests for issue #19279.
Serhiy Storchaka [Sat, 19 Oct 2013 18:14:57 +0000 (21:14 +0300)]
Fixed tests for issue #19279.

11 years agoIssue #12866: The audioop module now supports 24-bit samples.
Serhiy Storchaka [Sat, 19 Oct 2013 18:10:46 +0000 (21:10 +0300)]
Issue #12866: The audioop module now supports 24-bit samples.

11 years agoIssue #1772673: The type of `char*` arguments now changed to `const char*`.
Serhiy Storchaka [Sat, 19 Oct 2013 18:03:34 +0000 (21:03 +0300)]
Issue #1772673: The type of `char*` arguments now changed to `const char*`.

11 years agoIgnore PyCharm project directory
Christian Heimes [Sat, 19 Oct 2013 17:55:38 +0000 (19:55 +0200)]
Ignore PyCharm project directory

11 years agoIgnore PyCharm project directory
Christian Heimes [Sat, 19 Oct 2013 17:55:27 +0000 (19:55 +0200)]
Ignore PyCharm project directory

11 years agoIssue #18582: skip test of _hashlib.pbkdf2_hmac if OpenSSL is not available or too old
Christian Heimes [Sat, 19 Oct 2013 17:40:49 +0000 (19:40 +0200)]
Issue #18582: skip test of _hashlib.pbkdf2_hmac if OpenSSL is not available or too old

11 years agoIssue #19279: UTF-7 decoder no more produces illegal strings.
Serhiy Storchaka [Sat, 19 Oct 2013 17:39:28 +0000 (20:39 +0300)]
Issue #19279: UTF-7 decoder no more produces illegal strings.

11 years agoIssue #19279: UTF-7 decoder no more produces illegal strings.
Serhiy Storchaka [Sat, 19 Oct 2013 17:38:19 +0000 (20:38 +0300)]
Issue #19279: UTF-7 decoder no more produces illegal strings.

11 years agoVerify hostname if verify_mode is CERT_OPTIONAL too.
Guido van Rossum [Sat, 19 Oct 2013 16:52:09 +0000 (09:52 -0700)]
Verify hostname if verify_mode is CERT_OPTIONAL too.

11 years agoDisable some subprocess tests that hang on AIX.
Guido van Rossum [Sat, 19 Oct 2013 16:10:13 +0000 (09:10 -0700)]
Disable some subprocess tests that hang on AIX.

See http://bugs.python.org/issue19293

11 years agoIssue #18582: HMAC_CTX_copy() is not available on OpenSSL < 1.0
Christian Heimes [Sat, 19 Oct 2013 15:59:48 +0000 (17:59 +0200)]
Issue #18582: HMAC_CTX_copy() is not available on OpenSSL < 1.0

11 years agoSkip the asyncio tests when threads are not available.
Guido van Rossum [Sat, 19 Oct 2013 15:47:26 +0000 (08:47 -0700)]
Skip the asyncio tests when threads are not available.

See http://bugs.python.org/issue19295

11 years agoDoc markup fixes.
Georg Brandl [Sat, 19 Oct 2013 15:46:38 +0000 (17:46 +0200)]
Doc markup fixes.

11 years agocontextlib doc updates and refactoring
Nick Coghlan [Sat, 19 Oct 2013 14:30:51 +0000 (00:30 +1000)]
contextlib doc updates and refactoring

- explain single use, reusable and reentrant in docs
- converted suppress to a reentrant class based impl
- converted redirect_stdout to a reusable impl
- moved both suppress and redirect_stdout behind a functional
  facade
- added reentrancy tests for the updated suppress
- added reusability tests for the updated redirect_stdio
- slightly cleaned up an exception from contextmanager

11 years agoIssue #18582: provide a faster C implementation of pbkdf2_hmac that works with OpenSS...
Christian Heimes [Sat, 19 Oct 2013 12:24:44 +0000 (14:24 +0200)]
Issue #18582: provide a faster C implementation of pbkdf2_hmac that works with OpenSSL < 1.0

11 years agolower case pbkdf2_hmac
Christian Heimes [Sat, 19 Oct 2013 12:24:03 +0000 (14:24 +0200)]
lower case pbkdf2_hmac

11 years agoIssue #19254: Provide an optimized Python implementation of PBKDF2_HMAC
Christian Heimes [Sat, 19 Oct 2013 12:12:02 +0000 (14:12 +0200)]
Issue #19254: Provide an optimized Python implementation of PBKDF2_HMAC

11 years agoFix compilation of the curses module (broken by issue #16612).
Serhiy Storchaka [Sat, 19 Oct 2013 07:45:48 +0000 (10:45 +0300)]
Fix compilation of the curses module (broken by issue #16612).

11 years agoIssue #16612: Add "Argument Clinic", a compile-time preprocessor
Larry Hastings [Sat, 19 Oct 2013 07:09:25 +0000 (00:09 -0700)]
Issue #16612: Add "Argument Clinic", a compile-time preprocessor
for C files to generate argument parsing code.  (See PEP 436.)

11 years agoEnsure setup.py looks for zlib.h in an OS X SDK.
Ned Deily [Sat, 19 Oct 2013 04:34:58 +0000 (21:34 -0700)]
Ensure setup.py looks for zlib.h in an OS X SDK.

11 years agoEnsure setup.py looks for zlib.h in an OS X SDK.
Ned Deily [Sat, 19 Oct 2013 04:32:00 +0000 (21:32 -0700)]
Ensure setup.py looks for zlib.h in an OS X SDK.

11 years agoIssue #19019: Change the OS X installer build script to use CFLAGS instead
Ned Deily [Sat, 19 Oct 2013 04:16:05 +0000 (21:16 -0700)]
Issue #19019: Change the OS X installer build script to use CFLAGS instead
of OPT for special build options.  By setting OPT, some compiler-specific
options like -fwrapv were overridden and thus not used, which could result
in broken interpreters when building with clang.

11 years agoIssue #14499: Fix several problems with OS X universal build support:
Ned Deily [Sat, 19 Oct 2013 04:09:56 +0000 (21:09 -0700)]
Issue #14499: Fix several problems with OS X universal build support:
    1. ppc arch detection for extension module builds broke with Xcode 5
    2. ppc arch detection in configure did not work on OS X 10.4
    3. -sysroot and -arch flags were unnecessarily duplicated
    4. there was no obvious way to configure an intel-32 only build.

11 years agoIssue #15663: Update OS X installer to use Tcl/Tk 8.5.15.
Ned Deily [Sat, 19 Oct 2013 03:49:27 +0000 (20:49 -0700)]
Issue #15663: Update OS X installer to use Tcl/Tk 8.5.15.

11 years agoUpdate OS X installer for building on 10.9.
Ned Deily [Sat, 19 Oct 2013 03:42:32 +0000 (20:42 -0700)]
Update OS X installer for building on 10.9.

11 years agoUpdate OS X installer for building on 10.9.
Ned Deily [Sat, 19 Oct 2013 03:41:16 +0000 (20:41 -0700)]
Update OS X installer for building on 10.9.

11 years agoIssue #16742: My fix on PyOS_StdioReadline() was incomplete, PyMem_FREE() was
Victor Stinner [Sat, 19 Oct 2013 00:40:16 +0000 (02:40 +0200)]
Issue #16742: My fix on PyOS_StdioReadline() was incomplete, PyMem_FREE() was
not patched

11 years agoWrite flow control for asyncio (includes asyncio.streams overhaul).
Guido van Rossum [Fri, 18 Oct 2013 22:17:11 +0000 (15:17 -0700)]
Write flow control for asyncio (includes asyncio.streams overhaul).

11 years agoRelax some asyncio test timeouts (http://bugs.python.org/issue19285).
Guido van Rossum [Fri, 18 Oct 2013 22:15:56 +0000 (15:15 -0700)]
Relax some asyncio test timeouts (http://bugs.python.org/issue19285).

11 years agoIssue #19222: Add support for the 'x' mode to the gzip module.
Nadeem Vawda [Fri, 18 Oct 2013 22:11:13 +0000 (00:11 +0200)]
Issue #19222: Add support for the 'x' mode to the gzip module.

Original patch by Tim Heaney.

11 years agoIssue #19223: Add support for the 'x' mode to the bz2 module.
Nadeem Vawda [Fri, 18 Oct 2013 22:11:06 +0000 (00:11 +0200)]
Issue #19223: Add support for the 'x' mode to the bz2 module.

Patch by Tim Heaney and Vajrasky Kok.

11 years agoIssue #19201: Add support for the 'x' mode to the lzma module.
Nadeem Vawda [Fri, 18 Oct 2013 22:06:19 +0000 (00:06 +0200)]
Issue #19201: Add support for the 'x' mode to the lzma module.

Patch by Tim Heaney and Vajrasky Kok.

11 years agoFix test to not consider mixin a standalone test
Brett Cannon [Fri, 18 Oct 2013 20:55:15 +0000 (16:55 -0400)]
Fix test to not consider mixin a standalone test

11 years agoIssue #16803: Move test_importlib.test_util to use both frozen and
Brett Cannon [Fri, 18 Oct 2013 19:40:11 +0000 (15:40 -0400)]
Issue #16803: Move test_importlib.test_util to use both frozen and
source code.

11 years agoIssue #16803: Have test_importlib.test_locks use frozen and source
Brett Cannon [Fri, 18 Oct 2013 19:12:21 +0000 (15:12 -0400)]
Issue #16803: Have test_importlib.test_locks use frozen and source
code.

11 years agoFix a refleak in _sre
Brett Cannon [Fri, 18 Oct 2013 18:03:16 +0000 (14:03 -0400)]
Fix a refleak in _sre

11 years agoAdd NEWS entry for issue #18810
Brett Cannon [Fri, 18 Oct 2013 17:29:04 +0000 (13:29 -0400)]
Add NEWS entry for issue #18810

11 years agoIssue #18810: Be optimistic with stat calls when seeing if a directory
Brett Cannon [Fri, 18 Oct 2013 17:24:13 +0000 (13:24 -0400)]
Issue #18810: Be optimistic with stat calls when seeing if a directory
exists when checking for a package.

Before there was an isdir check and then various isfile checks for
possible __init__ files when looking for a package.
This change drops the isdir check by leaning
on the assumption that a directory will not contain something named
after the module being imported which is not a directory. If the module
is a package then it saves a stat call. If there is nothing in the
directory with the potential package name it also saves a stat call.
Only if there is something in the directory named the same thing as
the potential package will the number of stat calls increase
(due to more wasteful __init__ checks).

Semantically there is no change as the isdir check moved
down so that namespace packages continue to have no chance of
accidentally collecting non-existent directories.

11 years agoImportant race condition fix for Tulip.
Guido van Rossum [Fri, 18 Oct 2013 17:10:36 +0000 (10:10 -0700)]
Important race condition fix for Tulip.

11 years agomerge 3.3
Benjamin Peterson [Fri, 18 Oct 2013 16:58:17 +0000 (12:58 -0400)]
merge 3.3

11 years agofix description of super() behavior on descriptors
Benjamin Peterson [Fri, 18 Oct 2013 16:57:55 +0000 (12:57 -0400)]
fix description of super() behavior on descriptors

11 years agoUpdate more configurations in pcbuild.sln.
Richard Oudkerk [Fri, 18 Oct 2013 16:04:31 +0000 (17:04 +0100)]
Update more configurations in pcbuild.sln.

11 years agoIssue #18416: Fix various os calls in importlib.machinery.FileFinder
Brett Cannon [Fri, 18 Oct 2013 16:01:06 +0000 (12:01 -0400)]
Issue #18416: Fix various os calls in importlib.machinery.FileFinder
now that self.path is no longer forced to '.'.

11 years agomerge
Brett Cannon [Fri, 18 Oct 2013 15:39:32 +0000 (11:39 -0400)]
merge

11 years agoIssue #18416: Have importlib.machinery.PathFinder treat '' as the cwd
Brett Cannon [Fri, 18 Oct 2013 15:39:04 +0000 (11:39 -0400)]
Issue #18416: Have importlib.machinery.PathFinder treat '' as the cwd
and stop importlib.machinery.FileFinder treating '' as '.'.

Previous PathFinder transformed '' into '.' which led to __file__ for
modules imported from the cwd to always be relative paths. This meant
the values of the attribute were wrong as soon as the cwd changed.
This change now means that as long as the site module is run (which
makes all entries in sys.path absolute) then all values for __file__
will also be absolute unless it's for __main__ when specified by file
path in a relative way (modules imported by runpy will have an
absolute path).

Now that PathFinder is no longer treating '' as '.' it only makes
sense for FileFinder to stop doing so as well. Now no transformation
is performed for the directory given to the __init__ method.

Thanks to Madison May for the initial patch.

11 years agoUpdate pcbuild.sln to build _overlapped.
Richard Oudkerk [Fri, 18 Oct 2013 15:23:01 +0000 (16:23 +0100)]
Update pcbuild.sln to build _overlapped.

11 years agoRename Transport.pause/resume to pause_reading/pause_writing. Also relax timeout...
Guido van Rossum [Fri, 18 Oct 2013 14:58:20 +0000 (07:58 -0700)]
Rename Transport.pause/resume to pause_reading/pause_writing. Also relax timeout in test_call_later().

11 years agoIssue #16803: test.test_importlib.test_api now runs under frozen and
Brett Cannon [Fri, 18 Oct 2013 14:45:59 +0000 (10:45 -0400)]
Issue #16803: test.test_importlib.test_api now runs under frozen and
source.

11 years agoRemove redundant empty lines.
Serhiy Storchaka [Fri, 18 Oct 2013 14:17:31 +0000 (17:17 +0300)]
Remove redundant empty lines.

11 years agoRemove redundant empty lines.
Serhiy Storchaka [Fri, 18 Oct 2013 14:16:40 +0000 (17:16 +0300)]
Remove redundant empty lines.

11 years agoRemove a duplicate.
Serhiy Storchaka [Fri, 18 Oct 2013 14:05:41 +0000 (17:05 +0300)]
Remove a duplicate.

11 years agoIssue #16129: this should appease the buildbots
Nick Coghlan [Fri, 18 Oct 2013 13:59:58 +0000 (23:59 +1000)]
Issue #16129: this should appease the buildbots

11 years agoRemove test_sigterm().
Richard Oudkerk [Fri, 18 Oct 2013 13:42:56 +0000 (14:42 +0100)]
Remove test_sigterm().

11 years agoIssue #16129: Py_SetStandardStreamEncoding cleanups
Nick Coghlan [Fri, 18 Oct 2013 13:11:47 +0000 (23:11 +1000)]
Issue #16129: Py_SetStandardStreamEncoding cleanups

- don't call PyErr_NoMemory with interpreter is not initialised
- note that it's OK to call _PyMem_RawStrDup here
- don't include this in the limited API
- capitalise "IO"
- be explicit that a non-zero return indicates an error
- include versionadded marker in docs

11 years agoClose #19284: Handle -R properly in flag helper
Nick Coghlan [Fri, 18 Oct 2013 12:39:50 +0000 (22:39 +1000)]
Close #19284: Handle -R properly in flag helper

Previously, the -R option would be specified multiple times
if PYTHONHASHSEED was set.

11 years agoFix markup.
Serhiy Storchaka [Fri, 18 Oct 2013 08:55:30 +0000 (11:55 +0300)]
Fix markup.

11 years agoFix markup.
Serhiy Storchaka [Fri, 18 Oct 2013 08:55:02 +0000 (11:55 +0300)]
Fix markup.

11 years agoIssue #19030: special-cased __dict__ as the actual dict is not returned, a proxy is.
Ethan Furman [Fri, 18 Oct 2013 08:22:08 +0000 (01:22 -0700)]
Issue #19030:  special-cased __dict__ as the actual dict is not returned, a proxy is.

11 years agoIssue #19272: slight clarification of pickle docs with regard to lambda.
Ethan Furman [Fri, 18 Oct 2013 07:45:40 +0000 (00:45 -0700)]
Issue #19272: slight clarification of pickle docs with regard to lambda.

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.