Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-92169: Use warnings_helper.import_deprecated() to import deprecated ↵ | Hugo van Kemenade | 2022-05-03 | 1 | -3/+2 |
| | | | | modules uniformly in tests (GH-92170) | ||||
* | bpo-40280: Misc fixes for wasm32-emscripten (GH-30722) | Christian Heimes | 2022-01-20 | 1 | -1/+1 |
| | |||||
* | bpo-29410: Change the default hash algorithm to SipHash13. (GH-28752) | Inada Naoki | 2021-10-10 | 1 | -2/+2 |
| | | | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Co-authored-by: Christian Heimes <christian@python.org> | ||||
* | bpo-45020: Freeze some of the modules imported during startup. (gh-28335) | Eric Snow | 2021-09-15 | 1 | -9/+14 |
| | | | | | | | Doing this provides significant performance gains for runtime startup (~15% with all the imported modules frozen). We don't yet freeze all the imported modules because there are a few hiccups in the build systems we need to sort out first. (See bpo-45186 and bpo-45188.) Note that in PR GH-28320 we added a command-line flag (-X frozen_modules=[on|off]) that allows users to opt out of (or into) using frozen modules. The default is still "off" but we will change it to "on" as soon as we can do it in a way that does not cause contributors pain. https://bugs.python.org/issue45020 | ||||
* | bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25181) | Inada Naoki | 2021-04-05 | 1 | -4/+4 |
| | | | | | | * Fix test_shutil * Fix test_imp * Fix test_import * Fix test_importlib | ||||
* | bpo-40275: Use new test.support helper submodules in tests (GH-20849) | Hai Shi | 2020-06-25 | 1 | -18/+20 |
| | |||||
* | bpo-35321: Set the spec origin to frozen in frozen modules (#11732) | Nina Zakharenko | 2019-02-05 | 1 | -0/+11 |
| | | | | | | | | | | * bpo-35321: Set the spec origin to frozen in frozen modules This fix correctly sets the spec origin to "frozen" for the _frozen_importlib module. Note that the origin was already correctly set in _frozen_importlib_external. * 📜🤖 Added by blurb_it. | ||||
* | closes bpo-34056: Always return bytes from _HackedGetData.get_data(). (GH-8130) | Benjamin Peterson | 2018-07-07 | 1 | -0/+15 |
| | | | | | | | | | | * Always return bytes from _HackedGetData.get_data(). Ensure the imp.load_source shim always returns bytes by reopening the file in binary mode if needed. Hash-based pycs have to receive the source code in bytes. It's tempting to change imp.get_suffixes() to always return 'rb' as a mode, but that breaks some stdlib tests and likely 3rdparty code, too. | ||||
* | closes bpo-31650: PEP 552 (Deterministic pycs) implementation (#4575) | Benjamin Peterson | 2017-12-09 | 1 | -0/+21 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Python now supports checking bytecode cache up-to-dateness with a hash of the source contents rather than volatile source metadata. See the PEP for details. While a fairly straightforward idea, quite a lot of code had to be modified due to the pervasiveness of pyc implementation details in the codebase. Changes in this commit include: - The core changes to importlib to understand how to read, validate, and regenerate hash-based pycs. - Support for generating hash-based pycs in py_compile and compileall. - Modifications to our siphash implementation to support passing a custom key. We then expose it to importlib through _imp. - Updates to all places in the interpreter, standard library, and tests that manually generate or parse pyc files to grok the new format. - Support in the interpreter command line code for long options like --check-hash-based-pycs. - Tests and documentation for all of the above. | ||||
* | Fix miscellaneous typos (#4275) | luzpaz | 2017-11-05 | 1 | -1/+1 |
| | |||||
* | bpo-31676: Fix test_imp.test_load_source() side effect (#3871) | Victor Stinner | 2017-10-13 | 1 | -2/+7 |
| | | | | test_load_source() now replaces the current __name__ module with a temporary module to prevent side effects. | ||||
* | bpo-31315: Fix an assertion failure in imp.create_dynamic(), when spec.name ↵ | Oren Milman | 2017-09-19 | 1 | -0/+11 |
| | | | | is not a string. (#3257) | ||||
* | bpo-31370: Remove support for threads-less builds (#3385) | Antoine Pitrou | 2017-09-07 | 1 | -5/+0 |
| | | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility. | ||||
* | [security] bpo-13617: Reject embedded null characters in wchar* strings. (#2302) | Serhiy Storchaka | 2017-06-28 | 1 | -0/+4 |
| | | | | | | | Based on patch by Victor Stinner. Add private C API function _PyUnicode_AsUnicode() which is similar to PyUnicode_AsUnicode(), but checks for null characters. | ||||
* | Remove more unused imports in tests. | Serhiy Storchaka | 2016-04-24 | 1 | -1/+0 |
| | |||||
* | Issue #25487: Fix tests not updated when the imp module moved to a | Brett Cannon | 2015-10-30 | 1 | -1/+1 |
| | | | | | | DeprecationWarning. Thanks to Martin Panter for finding the tests. | ||||
* | Close #24748: Restore imp.load_dynamic compatibility | Nick Coghlan | 2015-09-05 | 1 | -0/+24 |
| | | | | | | | | To resolve a compatibility problem found with py2exe and pywin32, imp.load_dynamic() once again ignores previously loaded modules to support Python modules replacing themselves with extension modules. Patch by Petr Viktorin. | ||||
* | Issue #23731: Implement PEP 488. | Brett Cannon | 2015-04-13 | 1 | -114/+1 |
| | | | | | | The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied. | ||||
* | Issue #22390: Remove files created by tests | Victor Stinner | 2014-10-05 | 1 | -0/+1 |
| | |||||
* | Issue 19572: More silently skipped tests explicitly skipped. | Zachary Ware | 2013-12-08 | 1 | -1/+1 |
|\ | |||||
| * | Issue 19572: More silently skipped tests explicitly skipped. | Zachary Ware | 2013-12-08 | 1 | -1/+1 |
| | | |||||
* | | Issue #15204: Deprecated the 'U' mode in file-like objects. | Serhiy Storchaka | 2013-11-23 | 1 | -1/+1 |
| | | |||||
* | | Delete merge markers | Brett Cannon | 2013-08-23 | 1 | -3/+1 |
| | | |||||
* | | merge for issue #18755 | Brett Cannon | 2013-08-23 | 1 | -0/+9 |
|\ \ | |/ | |||||
| * | Issue #18755: Allow imp.load_*() loaders to have get_data() called | Brett Cannon | 2013-08-23 | 1 | -0/+7 |
| | | | | | | | | multiple times. | ||||
| * | issue #18698: ensure importlib.reload() returns the module out of sys.modules. | Eric Snow | 2013-08-15 | 1 | -0/+17 |
| | | |||||
* | | Issue #7732: try to fix test_bug7732's flakiness on Windows by executing it ↵ | Antoine Pitrou | 2013-08-19 | 1 | -5/+3 |
| | | | | | | | | in a fresh temporary directory. | ||||
* | | Issue #18706: Fix a test for issue #18681 so it no longer breaks ↵ | Serhiy Storchaka | 2013-08-11 | 1 | -2/+3 |
|\ \ | |/ | | | | | test_codeccallbacks*. | ||||
| * | Issue #18706: Fix a test for issue #18681 so it no longer breaks ↵ | Serhiy Storchaka | 2013-08-11 | 1 | -2/+3 |
| | | | | | | | | test_codeccallbacks*. | ||||
* | | #18681: merge with 3.3. | Ezio Melotti | 2013-08-10 | 1 | -0/+9 |
|\ \ | |/ | |||||
| * | #18681: Fix a NameError in imp.reload() (noticed by Weizhao Li). | Ezio Melotti | 2013-08-10 | 1 | -0/+9 |
| | | |||||
* | | Issue #17177: The imp module is pending deprecation. | Brett Cannon | 2013-06-16 | 1 | -1/+3 |
| | | | | | | | | | | | | 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). | ||||
* | | Issue #7732: Move an imp.find_module test from test_import to | Brett Cannon | 2013-06-07 | 1 | -0/+11 |
| | | | | | | | | test_imp. | ||||
* | | merge 3.3 | Benjamin Peterson | 2013-05-11 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | only close non-None files | Benjamin Peterson | 2013-05-11 | 1 | -1/+2 |
| | | |||||
| * | Fix a test to not use an assertion for something that could be | Brett Cannon | 2013-05-04 | 1 | -1/+2 |
| | | | | | | | | legitimately false. | ||||
* | | Change a test assertion to a conditional so the test will pass on | Brett Cannon | 2013-05-04 | 1 | -2/+3 |
| | | | | | | | | Windows. | ||||
* | | add trailing newline to file | Brett Cannon | 2013-05-03 | 1 | -1/+1 |
| | | |||||
* | | Move test_imp over to unittest.main() | Brett Cannon | 2013-05-03 | 1 | -16/+6 |
| | | |||||
* | | Guard more tests in test_imp requiring imp.load_dynamic() to exist. | Brett Cannon | 2013-05-03 | 1 | -6/+13 |
| | | |||||
* | | #15902: merge w/ 3.3 | Brett Cannon | 2013-05-03 | 1 | -0/+15 |
|\ \ | |/ | |||||
| * | Issue #15902: Fix imp.load_module() to accept None as a file when | Brett Cannon | 2013-05-03 | 1 | -0/+15 |
| | | | | | | | | | | | | | | trying to load an extension module. While at it, also add a proper unittest.skipIf() guard to another test involving imp.load_dynamic(). | ||||
* | | #11420: merge with 3.3. | Ezio Melotti | 2013-03-16 | 1 | -2/+4 |
|\ \ | |/ | |||||
| * | #11420: merge with 3.2. | Ezio Melotti | 2013-03-16 | 1 | -2/+4 |
| |\ | |||||
| | * | #11420: make test suite pass with -B/DONTWRITEBYTECODE set. Initial patch ↵ | Ezio Melotti | 2013-03-16 | 1 | -3/+5 |
| | | | | | | | | | | | | by Thomas Wouters. | ||||
* | | | Rename test module names for #16421 to don't clash with other tests. | Andrew Svetlov | 2012-12-15 | 1 | -4/+4 |
| | | | |||||
* | | | Issue #16421: allow to load multiple modules from the same shared object. | Andrew Svetlov | 2012-12-14 | 1 | -0/+14 |
|/ / | | | | | | | Patch by Václav Šmilauer. | ||||
* | | Issue #15828: Don't try to close a file if imp.find_module() doesn't | Brett Cannon | 2012-08-31 | 1 | -1/+3 |
| | | | | | | | | return one. | ||||
* | | Issue #15828: Restore support for C extension modules in imp.load_module() | Nick Coghlan | 2012-08-31 | 1 | -0/+29 |
| | | |||||
* | | Issue #15056: imp.cache_from_source() and source_from_cache() raise | Brett Cannon | 2012-07-09 | 1 | -0/+18 |
| | | | | | | | | | | | | NotimplementedError when sys.implementation.cache_tag is None. Thanks to Pranav Ravichandran for taking an initial stab at the patch. |