summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Issue #18194: Introduce importlib.util.cache_from_source() andBrett Cannon2013-06-152-2/+37
| | | | | source_from_cache(), finishing the work introduced in changset 4134:9cacdb9d0c59.
* Make it more obvious what things used in imp are snuck in through private APIsBrett Cannon2013-06-151-11/+8
|
* Issue #17907: touch up the code for imp.new_module().Brett Cannon2013-06-158-3544/+3686
|
* Fix markup of the synopsis along with changing to state what is in theBrett Cannon2013-06-151-2/+2
| | | | module and not as a definition of what an enumeration is.
* Merge headsVictor Stinner2013-06-156-2/+1964
|\
| * Closes issue 17947. Adds PEP-0435 (Adding an Enum type to the Python ↵Ethan Furman2013-06-144-0/+1930
| | | | | | | | | | | | | | standard library). Missing files added. News entry added.
| * Issue #17907: Document types.ModuleType's constructor and attributes,Brett Cannon2013-06-143-2/+34
| | | | | | | | allowing for documenting imp.new_module() as deprecated.
* | Revert changeset 6661a8154eb3: Issue #3329: Add new APIs to customize memory ↵Victor Stinner2013-06-156-772/+212
|/ | | | | | allocators The new API require more discussion.
* Issue #18192: Introduce importlib.util.MAGIC_NUMBER and document theBrett Cannon2013-06-148-8/+37
| | | | deprecation of imp.get_magic().
* Issue #3329: Add new APIs to customize memory allocatorsVictor Stinner2013-06-146-212/+772
| | | | | | | | | | | | | | | | | | | | * 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
* mergeBrett Cannon2013-06-145-3/+32
|\
| * Issue #18149: Add filecmp.clear_cache() to manually clear the filecmp cache.Ned Deily2013-06-145-3/+32
| | | | | | | | Patch by Mark Levitt
* | Issue #17222: Raise FileExistsError when py_compile.compile wouldBrett Cannon2013-06-145-1/+52
|/ | | | overwrite a symlink or non-regular file with a regular file.
* Issue #18193: Add importlib.reload(), documenting (but notBrett Cannon2013-06-146-24/+122
| | | | | | implementing in code) the deprecation of imp.reload(). Thanks to Berker Peksag for the patch.
* Remove a dead import line.Brett Cannon2013-06-141-1/+0
| | | | Noticed by Serhly Storchaka.
* Issue #15172: Document NASM 2.10+ as requirement for building OpenSSL 1.0.1 ↵Christian Heimes2013-06-142-2/+7
|\ | | | | | | on Windows
| * Issue #15172: Document NASM 2.10+ as requirement for building OpenSSL 1.0.1 ↵Christian Heimes2013-06-142-2/+10
| | | | | | | | on Windows
* | Simplify return value of ssl.get_default_verify_pathsChristian Heimes2013-06-141-11/+3
| | | | | | | | prefix function with PySSL_, too. Other module level functions have a prefix, too.
* | comparing with http://hg.python.org/cpython/Christian Heimes2013-06-142-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Closes issue 17947. Adds PEP-0435 (Enum, IntEnum) to the stdlib.Ethan Furman2013-06-141-0/+1
| |
* | Move test_pep352 over to unittest.main()Brett Cannon2013-06-141-3/+1
| |
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-1483-158/+144
| | | | | | | | ModuleNotFoundError.
* | Issue #18048: Merge test_pep263.py and test_coding.py into ↵Serhiy Storchaka2013-06-132-87/+76
|\ \ | | | | | | | | | test_source_encoding.py.
| * | Issue #18048: Rename test_pep263.py to test_source_encoding.py.Serhiy Storchaka2013-06-131-0/+0
| | |
* | | Issue #18048: Rename test_coding.py to test_source_encoding.py.Serhiy Storchaka2013-06-131-0/+0
|/ /
* | Issue #15767: Add an explicit test for raising ModuleNotFoundErrorBrett Cannon2013-06-131-0/+7
| | | | | | | | when None in sys.modules.
* | Issue #15767: Touch up ModuleNotFoundError usage by import.Brett Cannon2013-06-1310-14/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Update various test modules to use unittest.main() for test discoveryBrett Cannon2013-06-1318-108/+24
| | | | | | | | instead of manually listing tests for test.support.run_unittest().
* | Partially revert changeset #281857369a78 to make sure threads areBrett Cannon2013-06-131-1/+11
| | | | | | | | reaped in all situations.
* | Move test___all__ over to unittest.main() and use ModuleNotFoundErrorBrett Cannon2013-06-135-24/+21
| |
* | Spruce up test_xmlrpc by using ModuleNotFoundError and moving toBrett Cannon2013-06-131-22/+7
| | | | | | | | unittest.main().
* | Move test_zipfile to unittest.main()Brett Cannon2013-06-121-7/+1
| |
* | Issue #15767: Introduce ModuleNotFoundError, a subclass ofBrett Cannon2013-06-1217-408/+424
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Move code from test_importhooks into test_zipimport.Brett Cannon2013-06-121-1/+25
| |
* | Add tests for issue #18183.Serhiy Storchaka2013-06-121-3/+14
|\ \ | |/
| * Add tests for issue #18183.Serhiy Storchaka2013-06-121-3/+15
| |
* | #18196: merge with 3.3Roger Serwy2013-06-122-0/+6
|\ \ | |/
| * #18196: Avoid displaying spurious SystemExit tracebacks.Roger Serwy2013-06-122-0/+6
| |
* | #5492: merge with 3.3Roger Serwy2013-06-122-6/+7
|\ \ | |/
| * #5492: Avoid traceback when exiting IDLE caused by a race condition.Roger Serwy2013-06-122-6/+7
| |
* | Issue #18187: merge from 3.3Ned Deily2013-06-111-1/+1
|\ \ | |/
| * Issue #18187: Fix broken link in venv documentation. Patch by Berker Peksag.Ned Deily2013-06-111-1/+1
| |
* | explanatory commentBrett Cannon2013-06-111-1/+1
| |
* | typo fixBrett Cannon2013-06-111-1/+1
| |
* | Issue #18158: delete test_importhooks. Redundant in the face ofBrett Cannon2013-06-111-250/+0
| | | | | | | | test_importlib.
* | Issue #18157: stop using imp.load_module() in imp.Brett Cannon2013-06-112-12/+14
| |
* | #17511: merge with 3.3.Roger Serwy2013-06-113-3/+6
|\ \ | |/
| * #17511: Keep IDLE find dialog open after clicking "Find Next".Roger Serwy2013-06-113-3/+6
| | | | | | | | Original patch by Sarah K.
* | merge 3.3 (#18183)Benjamin Peterson2013-06-103-24/+25
|\ \ | |/
| * remove MAX_MAXCHAR because it's unsafe for computing maximum codepoitn value ↵Benjamin Peterson2013-06-103-31/+32
| | | | | | | | (see #18183)