Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #18194: Introduce importlib.util.cache_from_source() and | Brett Cannon | 2013-06-15 | 2 | -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 APIs | Brett Cannon | 2013-06-15 | 1 | -11/+8 |
| | |||||
* | Issue #17907: touch up the code for imp.new_module(). | Brett Cannon | 2013-06-15 | 8 | -3544/+3686 |
| | |||||
* | Fix markup of the synopsis along with changing to state what is in the | Brett Cannon | 2013-06-15 | 1 | -2/+2 |
| | | | | module and not as a definition of what an enumeration is. | ||||
* | Merge heads | Victor Stinner | 2013-06-15 | 6 | -2/+1964 |
|\ | |||||
| * | Closes issue 17947. Adds PEP-0435 (Adding an Enum type to the Python ↵ | Ethan Furman | 2013-06-14 | 4 | -0/+1930 |
| | | | | | | | | | | | | | | standard library). Missing files added. News entry added. | ||||
| * | Issue #17907: Document types.ModuleType's constructor and attributes, | Brett Cannon | 2013-06-14 | 3 | -2/+34 |
| | | | | | | | | allowing for documenting imp.new_module() as deprecated. | ||||
* | | Revert changeset 6661a8154eb3: Issue #3329: Add new APIs to customize memory ↵ | Victor Stinner | 2013-06-15 | 6 | -772/+212 |
|/ | | | | | | allocators The new API require more discussion. | ||||
* | Issue #18192: Introduce importlib.util.MAGIC_NUMBER and document the | Brett Cannon | 2013-06-14 | 8 | -8/+37 |
| | | | | deprecation of imp.get_magic(). | ||||
* | Issue #3329: Add new APIs to customize memory allocators | Victor Stinner | 2013-06-14 | 6 | -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 | ||||
* | merge | Brett Cannon | 2013-06-14 | 5 | -3/+32 |
|\ | |||||
| * | Issue #18149: Add filecmp.clear_cache() to manually clear the filecmp cache. | Ned Deily | 2013-06-14 | 5 | -3/+32 |
| | | | | | | | | Patch by Mark Levitt | ||||
* | | Issue #17222: Raise FileExistsError when py_compile.compile would | Brett Cannon | 2013-06-14 | 5 | -1/+52 |
|/ | | | | overwrite a symlink or non-regular file with a regular file. | ||||
* | Issue #18193: Add importlib.reload(), documenting (but not | Brett Cannon | 2013-06-14 | 6 | -24/+122 |
| | | | | | | implementing in code) the deprecation of imp.reload(). Thanks to Berker Peksag for the patch. | ||||
* | Remove a dead import line. | Brett Cannon | 2013-06-14 | 1 | -1/+0 |
| | | | | Noticed by Serhly Storchaka. | ||||
* | Issue #15172: Document NASM 2.10+ as requirement for building OpenSSL 1.0.1 ↵ | Christian Heimes | 2013-06-14 | 2 | -2/+7 |
|\ | | | | | | | on Windows | ||||
| * | Issue #15172: Document NASM 2.10+ as requirement for building OpenSSL 1.0.1 ↵ | Christian Heimes | 2013-06-14 | 2 | -2/+10 |
| | | | | | | | | on Windows | ||||
* | | Simplify return value of ssl.get_default_verify_paths | Christian Heimes | 2013-06-14 | 1 | -11/+3 |
| | | | | | | | | prefix function with PySSL_, too. Other module level functions have a prefix, too. | ||||
* | | comparing with http://hg.python.org/cpython/ | Christian Heimes | 2013-06-14 | 2 | -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 Furman | 2013-06-14 | 1 | -0/+1 |
| | | |||||
* | | Move test_pep352 over to unittest.main() | Brett Cannon | 2013-06-14 | 1 | -3/+1 |
| | | |||||
* | | Issue #18200: Update the stdlib (except tests) to use | Brett Cannon | 2013-06-14 | 83 | -158/+144 |
| | | | | | | | | ModuleNotFoundError. | ||||
* | | Issue #18048: Merge test_pep263.py and test_coding.py into ↵ | Serhiy Storchaka | 2013-06-13 | 2 | -87/+76 |
|\ \ | | | | | | | | | | test_source_encoding.py. | ||||
| * | | Issue #18048: Rename test_pep263.py to test_source_encoding.py. | Serhiy Storchaka | 2013-06-13 | 1 | -0/+0 |
| | | | |||||
* | | | Issue #18048: Rename test_coding.py to test_source_encoding.py. | Serhiy Storchaka | 2013-06-13 | 1 | -0/+0 |
|/ / | |||||
* | | Issue #15767: Add an explicit test for raising ModuleNotFoundError | Brett Cannon | 2013-06-13 | 1 | -0/+7 |
| | | | | | | | | when None in sys.modules. | ||||
* | | Issue #15767: Touch up ModuleNotFoundError usage by import. | Brett Cannon | 2013-06-13 | 10 | -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 discovery | Brett Cannon | 2013-06-13 | 18 | -108/+24 |
| | | | | | | | | instead of manually listing tests for test.support.run_unittest(). | ||||
* | | Partially revert changeset #281857369a78 to make sure threads are | Brett Cannon | 2013-06-13 | 1 | -1/+11 |
| | | | | | | | | reaped in all situations. | ||||
* | | Move test___all__ over to unittest.main() and use ModuleNotFoundError | Brett Cannon | 2013-06-13 | 5 | -24/+21 |
| | | |||||
* | | Spruce up test_xmlrpc by using ModuleNotFoundError and moving to | Brett Cannon | 2013-06-13 | 1 | -22/+7 |
| | | | | | | | | unittest.main(). | ||||
* | | Move test_zipfile to unittest.main() | Brett Cannon | 2013-06-12 | 1 | -7/+1 |
| | | |||||
* | | Issue #15767: Introduce ModuleNotFoundError, a subclass of | Brett Cannon | 2013-06-12 | 17 | -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 Cannon | 2013-06-12 | 1 | -1/+25 |
| | | |||||
* | | Add tests for issue #18183. | Serhiy Storchaka | 2013-06-12 | 1 | -3/+14 |
|\ \ | |/ | |||||
| * | Add tests for issue #18183. | Serhiy Storchaka | 2013-06-12 | 1 | -3/+15 |
| | | |||||
* | | #18196: merge with 3.3 | Roger Serwy | 2013-06-12 | 2 | -0/+6 |
|\ \ | |/ | |||||
| * | #18196: Avoid displaying spurious SystemExit tracebacks. | Roger Serwy | 2013-06-12 | 2 | -0/+6 |
| | | |||||
* | | #5492: merge with 3.3 | Roger Serwy | 2013-06-12 | 2 | -6/+7 |
|\ \ | |/ | |||||
| * | #5492: Avoid traceback when exiting IDLE caused by a race condition. | Roger Serwy | 2013-06-12 | 2 | -6/+7 |
| | | |||||
* | | Issue #18187: merge from 3.3 | Ned Deily | 2013-06-11 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #18187: Fix broken link in venv documentation. Patch by Berker Peksag. | Ned Deily | 2013-06-11 | 1 | -1/+1 |
| | | |||||
* | | explanatory comment | Brett Cannon | 2013-06-11 | 1 | -1/+1 |
| | | |||||
* | | typo fix | Brett Cannon | 2013-06-11 | 1 | -1/+1 |
| | | |||||
* | | Issue #18158: delete test_importhooks. Redundant in the face of | Brett Cannon | 2013-06-11 | 1 | -250/+0 |
| | | | | | | | | test_importlib. | ||||
* | | Issue #18157: stop using imp.load_module() in imp. | Brett Cannon | 2013-06-11 | 2 | -12/+14 |
| | | |||||
* | | #17511: merge with 3.3. | Roger Serwy | 2013-06-11 | 3 | -3/+6 |
|\ \ | |/ | |||||
| * | #17511: Keep IDLE find dialog open after clicking "Find Next". | Roger Serwy | 2013-06-11 | 3 | -3/+6 |
| | | | | | | | | Original patch by Sarah K. | ||||
* | | merge 3.3 (#18183) | Benjamin Peterson | 2013-06-10 | 3 | -24/+25 |
|\ \ | |/ | |||||
| * | remove MAX_MAXCHAR because it's unsafe for computing maximum codepoitn value ↵ | Benjamin Peterson | 2013-06-10 | 3 | -31/+32 |
| | | | | | | | | (see #18183) |