]>
granicus.if.org Git - python/log
Christian Heimes [Wed, 19 Jun 2013 00:08:41 +0000 (02:08 +0200)]
merge heads
Christian Heimes [Wed, 19 Jun 2013 00:07:20 +0000 (02:07 +0200)]
Issue #18259: Declare sethostname in socketmodule.c for AIX
Christian Heimes [Wed, 19 Jun 2013 00:06:29 +0000 (02:06 +0200)]
Issue #18259: Declare sethostname in socketmodule.c for AIX
Antoine Pitrou [Tue, 18 Jun 2013 21:28:18 +0000 (23:28 +0200)]
Fix compilation warning with gcc 4.8 (unused typedef)
Antoine Pitrou [Tue, 18 Jun 2013 20:19:11 +0000 (22:19 +0200)]
Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
Antoine Pitrou [Tue, 18 Jun 2013 20:17:48 +0000 (22:17 +0200)]
Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
Christian Heimes [Tue, 18 Jun 2013 11:22:37 +0000 (13:22 +0200)]
Fix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's available
Christian Heimes [Tue, 18 Jun 2013 11:22:17 +0000 (13:22 +0200)]
Fix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's available
Brett Cannon [Mon, 17 Jun 2013 23:58:57 +0000 (19:58 -0400)]
Grammar tweak
Brett Cannon [Mon, 17 Jun 2013 21:48:30 +0000 (17:48 -0400)]
Issue #17222: fix a mix-up in some exception messages.
Reported by Arfrever Frehtes Taifersar Arahesis.
Victor Stinner [Mon, 17 Jun 2013 21:39:06 +0000 (23:39 +0200)]
(Merge 3.3) test_faulthandler: use _sigsegv() instead of _read_null()
faulthandler._read_null() is not reliable: it does not crash on AIX.
Victor Stinner [Mon, 17 Jun 2013 21:37:59 +0000 (23:37 +0200)]
test_faulthandler: use _sigsegv() instead of _read_null()
faulthandler._read_null() is not reliable: it does not crash on AIX.
Victor Stinner [Mon, 17 Jun 2013 20:02:14 +0000 (22:02 +0200)]
(Merge 3.3) ctypes: AIX needs an explicit #include <alloca.h> to get alloca()
Victor Stinner [Mon, 17 Jun 2013 20:01:53 +0000 (22:01 +0200)]
ctypes: AIX needs an explicit #include <alloca.h> to get alloca()
Victor Stinner [Mon, 17 Jun 2013 19:52:24 +0000 (21:52 +0200)]
(Merge 3.3) Issue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX
sigwaitinfo() can be interrupted on Linux (raises InterruptedError), but not on
AIX.
Victor Stinner [Mon, 17 Jun 2013 19:51:56 +0000 (21:51 +0200)]
Issue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX
sigwaitinfo() can be interrupted on Linux (raises InterruptedError), but not on
AIX.
Victor Stinner [Mon, 17 Jun 2013 19:28:14 +0000 (21:28 +0200)]
Issue #18228: Use locale.setlocale(name, None) instead of
locale.getlocale(name) in test.regrtest.saved_test_environment
locale.getlocale() parses the locale, which is useless for
saved_test_environment.
Victor Stinner [Mon, 17 Jun 2013 18:40:05 +0000 (20:40 +0200)]
Issue #18228: Fix locale test of test.regrtest.saved_test_environment
Skip LC_ALL becore getlocale(locale.LC_ALL) always fail, and catch also
ValueError.
Victor Stinner [Mon, 17 Jun 2013 18:35:42 +0000 (20:35 +0200)]
(Merge 3.3) regrtest.py: Fix another typo in the usage of the faulthandler module
Victor Stinner [Mon, 17 Jun 2013 18:35:08 +0000 (20:35 +0200)]
regrtest.py: Fix another typo in the usage of the faulthandler module
Victor Stinner [Mon, 17 Jun 2013 18:28:02 +0000 (20:28 +0200)]
(Merge 3.3) regrtest.py: Fix typo in the usage of the faulthandler module
Victor Stinner [Mon, 17 Jun 2013 18:27:10 +0000 (20:27 +0200)]
regrtest.py: Fix typo in the usage of the faulthandler module
Christian Heimes [Mon, 17 Jun 2013 13:45:11 +0000 (15:45 +0200)]
merge heads
Christian Heimes [Mon, 17 Jun 2013 13:44:12 +0000 (15:44 +0200)]
Issue #18147: Add diagnostic functions to ssl.SSLContext().
get_ca_list() lists all loaded CA certificates and cert_store_stats() returns
amount of loaded X.509 certs, X.509 CA certs and CRLs.
Serhiy Storchaka [Mon, 17 Jun 2013 13:38:00 +0000 (16:38 +0300)]
Merge heads
Serhiy Storchaka [Mon, 17 Jun 2013 13:36:20 +0000 (16:36 +0300)]
Issue #18167: cgi.FieldStorage no more fails to handle multipart/form-data
when \r\n appears at end of 65535 bytes without other newlines.
Serhiy Storchaka [Mon, 17 Jun 2013 13:34:41 +0000 (16:34 +0300)]
Issue #18167: cgi.FieldStorage no more fails to handle multipart/form-data
when \r\n appears at end of 65535 bytes without other newlines.
Christian Heimes [Mon, 17 Jun 2013 13:32:57 +0000 (15:32 +0200)]
Issue #18207: Fix test_ssl for some versions of OpenSSL that ignore seconds
in ASN1_TIME fields.
Serhiy Storchaka [Mon, 17 Jun 2013 13:11:06 +0000 (16:11 +0300)]
Issue #18223: Refactor test_tarfile.
* Use mixins for generating tests for different compression types.
* Make test_tarfile discoverable.
* Use more special tests (i.e. assertEqual, assertIs) instead of assertTrue.
* Add explicit test skips instead of reporting skipped tests as passed.
* Wrap long lines.
* Correct a comment for test_hardlink_extraction1.
* Add support.requires_gzip.
* Replace ImportError by ModuleNotFoundError.
and some other minor enhancements.
Serhiy Storchaka [Mon, 17 Jun 2013 12:38:50 +0000 (15:38 +0300)]
Issue #18223: Refactor test_tarfile.
* Use mixins for generating tests for different compression types.
* Make test_tarfile discoverable.
* Use more special tests (i.e. assertEqual, assertIs) instead of assertTrue.
* Add explicit test skips instead of reporting skipped tests as passed.
* Wrap long lines.
* Correct a comment for test_hardlink_extraction1.
* Add support.requires_gzip.
and some other minor enhancements.
Brett Cannon [Sun, 16 Jun 2013 23:17:12 +0000 (19:17 -0400)]
documentation suggesting something which doesn't exist
Brett Cannon [Sun, 16 Jun 2013 23:09:46 +0000 (19:09 -0400)]
Merge doc/argument name fix
Brett Cannon [Sun, 16 Jun 2013 23:07:16 +0000 (19:07 -0400)]
merge
Brett Cannon [Sun, 16 Jun 2013 23:06:55 +0000 (19:06 -0400)]
Fix a misnaming of a method and an argument
Brett Cannon [Sun, 16 Jun 2013 22:37:53 +0000 (18:37 -0400)]
Issue #18076: Introduce imoportlib.util.decode_source().
The helper function makes it easier to implement
imoprtlib.abc.InspectLoader.get_source() by making that function
require just the raw bytes for source code and handling all other
details.
Brett Cannon [Sun, 16 Jun 2013 22:05:54 +0000 (18:05 -0400)]
importlib.abc.SourceLoader.get_source() was re-raising SyntaxError and
UnicodeDecodeError as ImportError. That was over-reaching the point of
raising ImportError in get_source() (which is to signal the source
code was not found when it should have). Conflating the two exceptions
with ImportError could lead to masking errors with the source which
should be known outside of whether there was an error simply getting
the source to begin with.
Brett Cannon [Sun, 16 Jun 2013 21:23:06 +0000 (17:23 -0400)]
Issue #18115: Abstract out managing the cleanup of modules to use in
loaders where C code provides the loaded module.
Brett Cannon [Sun, 16 Jun 2013 19:20:48 +0000 (15:20 -0400)]
Check that warnings.showwarning() is not changed.
Brett Cannon [Sun, 16 Jun 2013 18:56:58 +0000 (14:56 -0400)]
Issues #18058, 18057: Make importlib._bootstrap.NamespaceLoader
conform the the InspectLoader ABC. Perk of this is that runpy/-m can
now work with namespace packages.
Brett Cannon [Sun, 16 Jun 2013 17:14:06 +0000 (13:14 -0400)]
merge
Brett Cannon [Sun, 16 Jun 2013 17:13:40 +0000 (13:13 -0400)]
Issue #17177: The imp module is pending deprecation.
To make sure there is no issue with code that is both Python 2 and 3
compatible, there are no plans to remove the module any sooner than
Python 4 (unless the community moves to Python 3 solidly before then).
Andrew Kuchling [Sun, 16 Jun 2013 17:02:55 +0000 (13:02 -0400)]
Merge with 3.3
Andrew Kuchling [Sun, 16 Jun 2013 16:58:48 +0000 (12:58 -0400)]
Describe 'surrogateescape' in the documentation.
Also, improve some docstring descriptions of the 'errors' parameter.
Closes #14015.
Brett Cannon [Sun, 16 Jun 2013 15:37:57 +0000 (11:37 -0400)]
Stop using the deprecated unittest.TestCase.assertRaisesRegexp()
Brett Cannon [Sun, 16 Jun 2013 03:24:11 +0000 (23:24 -0400)]
Make test_builtin work when executed directly
Gregory P. Smith [Sun, 16 Jun 2013 01:14:56 +0000 (18:14 -0700)]
Prevent a possible double close of parent pipe fds when the subprocess
exec runs into an error. Prevent a regular multi-close of the /dev/null
fd when any of stdin, stdout and stderr was set to DEVNULL.
Gregory P. Smith [Sun, 16 Jun 2013 01:05:17 +0000 (18:05 -0700)]
news entry for subprocess double close fix.
Gregory P. Smith [Sun, 16 Jun 2013 01:04:26 +0000 (18:04 -0700)]
Prevent a possible double close of parent pipe fds when the subprocess
exec runs into an error. Prevent a regular multi-close of the /dev/null
fd when any of stdin, stdout and stderr was set to DEVNULL.
Brett Cannon [Sat, 15 Jun 2013 22:39:21 +0000 (18:39 -0400)]
Issue #17177: stop using imp in test_importlib
Brett Cannon [Sat, 15 Jun 2013 22:10:18 +0000 (18:10 -0400)]
Issue #17177: update checkpyc to stop using imp
Brett Cannon [Sat, 15 Jun 2013 21:52:59 +0000 (17:52 -0400)]
Issue # 17177: Stop using imp in setup.py
Brett Cannon [Sat, 15 Jun 2013 21:33:27 +0000 (17:33 -0400)]
Issue # 17177: Stop using imp in turtledemo
Brett Cannon [Sat, 15 Jun 2013 21:32:30 +0000 (17:32 -0400)]
Issue #17177: Stop using imp in zipfile
Brett Cannon [Sat, 15 Jun 2013 21:11:25 +0000 (17:11 -0400)]
Issue #17177: Stop using imp in a bunch of tests
Andrew Kuchling [Sat, 15 Jun 2013 19:10:08 +0000 (15:10 -0400)]
Merge with 3.3
Brett Cannon [Sat, 15 Jun 2013 18:32:11 +0000 (14:32 -0400)]
Issue #17177: Stop using imp in sysconfig
Brett Cannon [Sat, 15 Jun 2013 18:27:21 +0000 (14:27 -0400)]
Issue #17177: switch from imp.new_module to types.ModuleType for runpy
Brett Cannon [Sat, 15 Jun 2013 18:25:04 +0000 (14:25 -0400)]
Issue #17177: Stop using imp in pydoc
Brett Cannon [Sat, 15 Jun 2013 18:07:21 +0000 (14:07 -0400)]
Issue #17177: Stop using imp with py_compile
Andrew Kuchling [Sat, 15 Jun 2013 18:04:04 +0000 (14:04 -0400)]
#18113: Objects associated to a curses.panel object with set_userptr() were leaked.
Reported by Atsuo Ishimoto.
Brett Cannon [Sat, 15 Jun 2013 17:38:07 +0000 (13:38 -0400)]
merge
Brett Cannon [Sat, 15 Jun 2013 17:37:38 +0000 (13:37 -0400)]
merge w/ 3.3
Brett Cannon [Sat, 15 Jun 2013 17:37:12 +0000 (13:37 -0400)]
Drop some dead imports of imp
Andrew Kuchling [Sat, 15 Jun 2013 17:29:09 +0000 (13:29 -0400)]
Fix typo; clarify that the methods were removed entirely
Brett Cannon [Sat, 15 Jun 2013 17:23:01 +0000 (13:23 -0400)]
Issue #17177: Stop using imp in multiprocessing
Brett Cannon [Sat, 15 Jun 2013 16:59:53 +0000 (12:59 -0400)]
Issue #17177: Stop using imp in distutils
Brett Cannon [Sat, 15 Jun 2013 03:04:02 +0000 (23:04 -0400)]
Issue #17177: stop using imp for compileall.
Brett Cannon [Sat, 15 Jun 2013 02:50:57 +0000 (22:50 -0400)]
make test more robust under Windows
Brett Cannon [Sat, 15 Jun 2013 02:49:00 +0000 (22:49 -0400)]
Issue #17177: Update the programming FAQ to use importlib
Brett Cannon [Sat, 15 Jun 2013 02:37:11 +0000 (22:37 -0400)]
Move something to the right section of What's New
Brett Cannon [Sat, 15 Jun 2013 02:35:40 +0000 (22:35 -0400)]
Issue #18194: Introduce importlib.util.cache_from_source() and
source_from_cache(), finishing the work introduced in changset
4134:
9cacdb9d0c59 .
Brett Cannon [Sat, 15 Jun 2013 02:29:58 +0000 (22:29 -0400)]
Make it more obvious what things used in imp are snuck in through private APIs
Brett Cannon [Sat, 15 Jun 2013 02:26:30 +0000 (22:26 -0400)]
Issue #17907: touch up the code for imp.new_module().
Brett Cannon [Sat, 15 Jun 2013 01:59:16 +0000 (21:59 -0400)]
Fix markup of the synopsis along with changing to state what is in the
module and not as a definition of what an enumeration is.
Victor Stinner [Sat, 15 Jun 2013 01:37:45 +0000 (03:37 +0200)]
Merge heads
Victor Stinner [Sat, 15 Jun 2013 01:37:01 +0000 (03:37 +0200)]
Revert changeset
6661a8154eb3 : Issue #3329: Add new APIs to customize memory allocators
The new API require more discussion.
Ethan Furman [Fri, 14 Jun 2013 23:55:46 +0000 (16:55 -0700)]
Closes issue 17947. Adds PEP-0435 (Adding an Enum type to the Python standard library).
Missing files added.
News entry added.
Brett Cannon [Fri, 14 Jun 2013 23:19:57 +0000 (19:19 -0400)]
Issue #17907: Document types.ModuleType's constructor and attributes,
allowing for documenting imp.new_module() as deprecated.
Brett Cannon [Fri, 14 Jun 2013 23:02:34 +0000 (19:02 -0400)]
Issue #18192: Introduce importlib.util.MAGIC_NUMBER and document the
deprecation of imp.get_magic().
Victor Stinner [Fri, 14 Jun 2013 22:37:46 +0000 (00:37 +0200)]
Issue #3329: Add new APIs to customize memory allocators
* Add a new PyMemAllocators structure
* New functions:
- PyMem_RawMalloc(), PyMem_RawRealloc(), PyMem_RawFree(): GIL-free memory
allocator functions
- PyMem_GetRawAllocators(), PyMem_SetRawAllocators()
- PyMem_GetAllocators(), PyMem_SetAllocators()
- PyMem_SetupDebugHooks()
- _PyObject_GetArenaAllocators(), _PyObject_SetArenaAllocators()
* Add unit test for PyMem_Malloc(0) and PyObject_Malloc(0)
* Add unit test for new get/set allocators functions
* PyObject_Malloc() now falls back on PyMem_Malloc() instead of malloc() if
size is bigger than SMALL_REQUEST_THRESHOLD, and PyObject_Realloc() falls
back on PyMem_Realloc() instead of realloc()
* PyMem_Malloc() and PyMem_Realloc() now always call malloc() and realloc(),
instead of calling PyObject_Malloc() and PyObject_Realloc() in debug mode
Brett Cannon [Fri, 14 Jun 2013 22:33:21 +0000 (18:33 -0400)]
merge
Brett Cannon [Fri, 14 Jun 2013 22:33:00 +0000 (18:33 -0400)]
Issue #17222: Raise FileExistsError when py_compile.compile would
overwrite a symlink or non-regular file with a regular file.
Ned Deily [Fri, 14 Jun 2013 22:19:11 +0000 (15:19 -0700)]
Issue #18149: Add filecmp.clear_cache() to manually clear the filecmp cache.
Patch by Mark Levitt
Brett Cannon [Fri, 14 Jun 2013 19:04:26 +0000 (15:04 -0400)]
Issue #18193: Add importlib.reload(), documenting (but not
implementing in code) the deprecation of imp.reload().
Thanks to Berker Peksag for the patch.
Brett Cannon [Fri, 14 Jun 2013 14:42:48 +0000 (10:42 -0400)]
Remove a dead import line.
Noticed by Serhly Storchaka.
Christian Heimes [Fri, 14 Jun 2013 13:48:16 +0000 (15:48 +0200)]
Issue #15172: Document NASM 2.10+ as requirement for building OpenSSL 1.0.1 on Windows
Christian Heimes [Fri, 14 Jun 2013 13:40:28 +0000 (15:40 +0200)]
Issue #15172: Document NASM 2.10+ as requirement for building OpenSSL 1.0.1 on Windows
Christian Heimes [Fri, 14 Jun 2013 13:14:29 +0000 (15:14 +0200)]
Simplify return value of ssl.get_default_verify_paths
prefix function with PySSL_, too. Other module level functions have a prefix, too.
Christian Heimes [Fri, 14 Jun 2013 13:01:03 +0000 (15:01 +0200)]
comparing with http://hg.python.org/cpython/
searching for changes
changeset: 84118:
98343392fd81
tag: tip
user: Christian Heimes <christian@cheimes.de>
date: Fri Jun 14 14:54:48 2013 +0200
files: PC/VS9.0/_socket.vcproj PC/VS9.0/_ssl.vcproj
description:
Fix compilation of Python with VS 2008
Contrary to VS 2010 the compiler doesn't like semicolon seperated
dependency names
Ethan Furman [Fri, 14 Jun 2013 07:30:27 +0000 (00:30 -0700)]
Closes issue 17947. Adds PEP-0435 (Enum, IntEnum) to the stdlib.
Brett Cannon [Fri, 14 Jun 2013 01:18:43 +0000 (21:18 -0400)]
Move test_pep352 over to unittest.main()
Brett Cannon [Fri, 14 Jun 2013 00:57:26 +0000 (20:57 -0400)]
Issue #18200: Update the stdlib (except tests) to use
ModuleNotFoundError.
Serhiy Storchaka [Thu, 13 Jun 2013 07:08:00 +0000 (10:08 +0300)]
Issue #18048: Merge test_pep263.py and test_coding.py into test_source_encoding.py.
Serhiy Storchaka [Thu, 13 Jun 2013 06:50:42 +0000 (09:50 +0300)]
Issue #18048: Rename test_coding.py to test_source_encoding.py.
Serhiy Storchaka [Thu, 13 Jun 2013 06:48:15 +0000 (09:48 +0300)]
Issue #18048: Rename test_pep263.py to test_source_encoding.py.
Brett Cannon [Thu, 13 Jun 2013 03:38:50 +0000 (23:38 -0400)]
Issue #15767: Add an explicit test for raising ModuleNotFoundError
when None in sys.modules.
Brett Cannon [Thu, 13 Jun 2013 03:29:18 +0000 (23:29 -0400)]
Issue #15767: Touch up ModuleNotFoundError usage by import.
Forgot to raise ModuleNotFoundError when None is found in sys.modules.
This led to introducing the C function PyErr_SetImportErrorSubclass()
to make setting ModuleNotFoundError easier.
Also updated the reference docs to mention ModuleNotFoundError
appropriately. Updated the docs for ModuleNotFoundError to mention the
None in sys.modules case.
Lastly, it was noticed that PyErr_SetImportError() was not setting an
exception when returning None in one case. That issue is now fixed.
Brett Cannon [Thu, 13 Jun 2013 01:25:59 +0000 (21:25 -0400)]
Update various test modules to use unittest.main() for test discovery
instead of manually listing tests for test.support.run_unittest().
Brett Cannon [Thu, 13 Jun 2013 01:25:23 +0000 (21:25 -0400)]
Partially revert changeset #
281857369a78 to make sure threads are
reaped in all situations.
Brett Cannon [Thu, 13 Jun 2013 00:12:30 +0000 (20:12 -0400)]
Move test___all__ over to unittest.main() and use ModuleNotFoundError