]>
granicus.if.org Git - python/log
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
Brett Cannon [Thu, 13 Jun 2013 00:04:19 +0000 (20:04 -0400)]
Spruce up test_xmlrpc by using ModuleNotFoundError and moving to
unittest.main().
Brett Cannon [Wed, 12 Jun 2013 23:57:19 +0000 (19:57 -0400)]
Move test_zipfile to unittest.main()
Brett Cannon [Wed, 12 Jun 2013 20:59:46 +0000 (16:59 -0400)]
Issue #15767: Introduce ModuleNotFoundError, a subclass of
ImportError.
The exception is raised by import when a module could not be found.
Technically this is defined as no viable loader could be found for the
specified module. This includes ``from ... import`` statements so that
the module usage is consistent for all situations where import
couldn't find what was requested.
This should allow for the common idiom of::
try:
import something
except ImportError:
pass
to be updated to using ModuleNotFoundError and not accidentally mask
ImportError messages that should propagate (e.g. issues with a
loader).
This work was driven by the fact that the ``from ... import``
statement needed to be able to tell the difference between an
ImportError that simply couldn't find a module (and thus silence the
exception so that ceval can raise it) and an ImportError that
represented an actual problem.
Brett Cannon [Wed, 12 Jun 2013 19:57:01 +0000 (15:57 -0400)]
Move code from test_importhooks into test_zipimport.
Serhiy Storchaka [Wed, 12 Jun 2013 06:28:20 +0000 (09:28 +0300)]
Add tests for issue #18183.
Serhiy Storchaka [Wed, 12 Jun 2013 06:20:44 +0000 (09:20 +0300)]
Add tests for issue #18183.
Roger Serwy [Wed, 12 Jun 2013 03:25:34 +0000 (22:25 -0500)]
#18196: merge with 3.3
Roger Serwy [Wed, 12 Jun 2013 03:25:14 +0000 (22:25 -0500)]
#18196: Avoid displaying spurious SystemExit tracebacks.
Roger Serwy [Wed, 12 Jun 2013 03:13:51 +0000 (22:13 -0500)]
#5492: merge with 3.3
Roger Serwy [Wed, 12 Jun 2013 03:13:17 +0000 (22:13 -0500)]
#5492: Avoid traceback when exiting IDLE caused by a race condition.
Ned Deily [Tue, 11 Jun 2013 21:40:23 +0000 (14:40 -0700)]
Issue #18187: merge from 3.3
Ned Deily [Tue, 11 Jun 2013 21:38:39 +0000 (14:38 -0700)]
Issue #18187: Fix broken link in venv documentation. Patch by Berker Peksag.
Brett Cannon [Tue, 11 Jun 2013 21:34:04 +0000 (17:34 -0400)]
explanatory comment
Brett Cannon [Tue, 11 Jun 2013 21:22:39 +0000 (17:22 -0400)]
typo fix
Brett Cannon [Tue, 11 Jun 2013 21:12:30 +0000 (17:12 -0400)]
Issue #18158: delete test_importhooks. Redundant in the face of
test_importlib.
Brett Cannon [Tue, 11 Jun 2013 21:09:36 +0000 (17:09 -0400)]
Issue #18157: stop using imp.load_module() in imp.
Roger Serwy [Tue, 11 Jun 2013 04:02:56 +0000 (23:02 -0500)]
#17511: merge with 3.3.
Roger Serwy [Tue, 11 Jun 2013 04:01:20 +0000 (23:01 -0500)]
#17511: Keep IDLE find dialog open after clicking "Find Next".
Original patch by Sarah K.
Benjamin Peterson [Mon, 10 Jun 2013 16:24:01 +0000 (09:24 -0700)]
merge 3.3 (#18183)
Benjamin Peterson [Mon, 10 Jun 2013 16:19:46 +0000 (09:19 -0700)]
remove MAX_MAXCHAR because it's unsafe for computing maximum codepoitn value (see #18183)
Richard Oudkerk [Mon, 10 Jun 2013 15:31:39 +0000 (16:31 +0100)]
Merge.
Richard Oudkerk [Mon, 10 Jun 2013 15:29:19 +0000 (16:29 +0100)]
Issue #18174: Fix fd leaks in tests.
Richard Oudkerk [Mon, 10 Jun 2013 14:45:30 +0000 (15:45 +0100)]
Merge.
Richard Oudkerk [Mon, 10 Jun 2013 14:38:54 +0000 (15:38 +0100)]
Issue #18180: Fix ref leak in _PyImport_GetDynLoadWindows().
Christian Heimes [Mon, 10 Jun 2013 08:47:22 +0000 (10:47 +0200)]
fixd refleak
Ronald Oussoren [Mon, 10 Jun 2013 08:37:12 +0000 (10:37 +0200)]
(3.3->default) Ensure that the fix for #17269 also works on OSX 10.4
AI_NUMERICSERV isn't defined on OSX 10.4.
Ronald Oussoren [Mon, 10 Jun 2013 08:36:28 +0000 (10:36 +0200)]
Ensure that the fix for #17269 also works on OSX 10.4
AI_NUMERICSERV isn't defined on OSX 10.4.
Serhiy Storchaka [Sun, 9 Jun 2013 18:10:13 +0000 (21:10 +0300)]
Issue #16102: Make uuid._netbios_getnode() work again on Python 3.
Serhiy Storchaka [Sun, 9 Jun 2013 18:08:05 +0000 (21:08 +0300)]
Issue #16102: Make uuid._netbios_getnode() work again on Python 3.
Christian Heimes [Sun, 9 Jun 2013 17:03:31 +0000 (19:03 +0200)]
Issue #17134: Add ssl.enum_cert_store() as interface to Windows' cert store.
Christian Heimes [Sun, 9 Jun 2013 16:29:54 +0000 (18:29 +0200)]
get_default_verify_paths doesn't belong inside the ifdef block
Christian Heimes [Sun, 9 Jun 2013 16:07:16 +0000 (18:07 +0200)]
removed accidental new line
Christian Heimes [Sun, 9 Jun 2013 16:02:55 +0000 (18:02 +0200)]
Issue #18143: Implement ssl.get_default_verify_paths() in order to debug
the default locations for cafile and capath.
Serhiy Storchaka [Sun, 9 Jun 2013 14:11:48 +0000 (17:11 +0300)]
Issue #15239: Make mkstringprep.py work again on Python 3.
Serhiy Storchaka [Sun, 9 Jun 2013 14:08:00 +0000 (17:08 +0300)]
Issue #15239: Make mkstringprep.py work again on Python 3.
Serhiy Storchaka [Sun, 9 Jun 2013 13:53:55 +0000 (16:53 +0300)]
Issue #18038: SyntaxError raised during compilation sources with illegal
encoding now always contains an encoding name.
Serhiy Storchaka [Sun, 9 Jun 2013 13:51:52 +0000 (16:51 +0300)]
Issue #18038: SyntaxError raised during compilation sources with illegal
encoding now always contains an encoding name.
Ezio Melotti [Sat, 8 Jun 2013 22:05:16 +0000 (01:05 +0300)]
#18126: merge with 3.3.
Ezio Melotti [Sat, 8 Jun 2013 22:04:21 +0000 (01:04 +0300)]
#18126: update NumPy links in the documentation. Patch by Yury V. Zaytsev.
Ezio Melotti [Sat, 8 Jun 2013 21:10:04 +0000 (00:10 +0300)]
#17691: merge with 3.3.
Ezio Melotti [Sat, 8 Jun 2013 21:07:06 +0000 (00:07 +0300)]
#17691: test_univnewlines now works with unittest test discovery. Patch by Zachary Ware.
Richard Oudkerk [Sat, 8 Jun 2013 15:52:29 +0000 (16:52 +0100)]
Issue #15528: Delay importing atexit until weakref.finalize() used.
Terry Jan Reedy [Sat, 8 Jun 2013 04:35:51 +0000 (00:35 -0400)]
#18151 null merge with 3.3.
Terry Jan Reedy [Sat, 8 Jun 2013 04:22:45 +0000 (00:22 -0400)]
#18151, part 1: Backport idlelilb portion of Andrew Svetlov's 3.4 patch
changing IOError to OSError (#16715).
Łukasz Langa [Fri, 7 Jun 2013 20:54:03 +0000 (22:54 +0200)]
moved the single-dispatch generic function definitions to the glossary
Łukasz Langa [Fri, 7 Jun 2013 20:25:27 +0000 (22:25 +0200)]
Fixed #18150: duplicate test inside TestSingleDispatch
Thanks to Vajrasky Kok for the patch
Brett Cannon [Fri, 7 Jun 2013 17:26:53 +0000 (13:26 -0400)]
Issue #7732: Move an imp.find_module test from test_import to
test_imp.
Brett Cannon [Fri, 7 Jun 2013 17:18:36 +0000 (13:18 -0400)]
merge w/ 3.3 for issue #18055
Brett Cannon [Fri, 7 Jun 2013 17:17:48 +0000 (13:17 -0400)]
Issue #18055: Move to importlib from imp for IDLE.
Brett Cannon [Fri, 7 Jun 2013 15:45:41 +0000 (11:45 -0400)]
Issue #17314: Stop using imp in multiprocessing.forking and move over
to importlib.
Vinay Sajip [Fri, 7 Jun 2013 14:37:28 +0000 (15:37 +0100)]
Issue #17903: Added path search changes to launcher.
Vinay Sajip [Fri, 7 Jun 2013 14:21:41 +0000 (15:21 +0100)]
Closes #11959: SMTPServer and SMTPChannel now take an optional map, use of which avoids affecting global state.
Brett Cannon [Wed, 5 Jun 2013 22:37:50 +0000 (18:37 -0400)]
tweak exception message (again)
Richard Oudkerk [Wed, 5 Jun 2013 22:29:30 +0000 (23:29 +0100)]
Issue #17931: Resolve confusion on Windows between pids and process handles.
Terry Jan Reedy [Wed, 5 Jun 2013 18:36:50 +0000 (14:36 -0400)]
Merge with 3.3
Terry Jan Reedy [Wed, 5 Jun 2013 18:36:33 +0000 (14:36 -0400)]
Issue 18130: delete extra spaces
Terry Jan Reedy [Wed, 5 Jun 2013 18:23:53 +0000 (14:23 -0400)]
Merge with 3.3
Terry Jan Reedy [Wed, 5 Jun 2013 18:22:26 +0000 (14:22 -0400)]
Issue18130: Test class idlelib.configSectionNameDialog.GetCfgSectionNameDialog.
Fix bug in existing human test and add instructions; fix two bugs in tested
code; remove redundancies, add spaces, and change two internal method names.
Add mock_tk with mocks for tkinter.Variable subclasses and tkinter.messagebox.
Use mocks in test_config_name to unittest methods that are otherwise gui-free.
Łukasz Langa [Wed, 5 Jun 2013 10:20:24 +0000 (12:20 +0200)]
Add reference implementation for PEP 443
PEP accepted: http://mail.python.org/pipermail/python-dev/2013-June/126734.html
Victor Stinner [Wed, 5 Jun 2013 00:07:46 +0000 (02:07 +0200)]
Issue #13772: Use syntax for literal wchar_t character
Victor Stinner [Tue, 4 Jun 2013 23:49:17 +0000 (01:49 +0200)]
Issue #13772: Mark helper functions as private (static)
Cleanup also the code to follow the Python coding style (PEP 7).
Victor Stinner [Tue, 4 Jun 2013 23:30:25 +0000 (01:30 +0200)]
Issue #13772: Fix a compiler warning on Windows
Victor Stinner [Tue, 4 Jun 2013 23:18:13 +0000 (01:18 +0200)]
Issue #9566: Fix compilater warnings on Windows 64-bit
Victor Stinner [Tue, 4 Jun 2013 22:46:29 +0000 (00:46 +0200)]
Issue #9566: Fix compiler warning on Windows 64-bit