Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-25711: Rewrite zipimport in pure Python. (GH-6809) | Serhiy Storchaka | 2018-09-18 | 1 | -1664/+0 |
| | |||||
* | bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592) | Victor Stinner | 2018-08-03 | 1 | -2/+2 |
| | | | | sys_setcheckinterval() now uses a local variable to parse arguments, before writing into interp->check_interval. | ||||
* | bpo-31650: Remove _Py_CheckHashBasedPycsMode global config var (GH-8608) | Victor Stinner | 2018-08-01 | 1 | -3/+3 |
| | | | | | | | | bpo-31650, bpo-34170: Replace _Py_CheckHashBasedPycsMode with _PyCoreConfig._check_hash_pycs_mode. Modify PyInit__imp() and zipimport to get the parameter from the current interpreter core configuration. Remove Include/internal/import.h file. | ||||
* | bpo-32248 - Implement `ResourceReader` and `get_resource_reader()` for ↵ | Barry Warsaw | 2018-01-24 | 1 | -0/+30 |
| | | | | zipimport (#5248) | ||||
* | closes bpo-31650: PEP 552 (Deterministic pycs) implementation (#4575) | Benjamin Peterson | 2017-12-09 | 1 | -3/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | bpo-31781: Prevent crashes when calling methods of an uninitialized ↵ | Oren Milman | 2017-10-20 | 1 | -0/+18 |
| | | | | zipimport.zipimporter object (GH-3986) | ||||
* | bpo-31723: Fix refleaks when zipimporter.__init__() is called more than once ↵ | Oren Milman | 2017-10-09 | 1 | -5/+6 |
| | | | | (GH-3919) | ||||
* | bpo-31602: Fix an assertion failure in zipimporter.get_source() in case of a ↵ | Oren Milman | 2017-09-29 | 1 | -0/+8 |
| | | | | | | | bad zlib.decompress() (GH-3784) While a rare potential failure (it requires swapping out zlib.decompress() itself and forcing it to return a non-bytes object), this change prevents a potential C-level assertion failure and instead substitutes it with an exception. Thanks to Oren Milman for the patch. | ||||
* | bpo-30860: Consolidate stateful runtime globals. (#3397) | Eric Snow | 2017-09-08 | 1 | -0/+1 |
| | | | | | | | * group the (stateful) runtime globals into various topical structs * consolidate the topical structs under a single top-level _PyRuntimeState struct * add a check-c-globals.py script that helps identify runtime globals Other globals are excluded (see globals.txt and check-c-globals.py). | ||||
* | bpo-31291: Fixed an assertion failure in zipimport.zipimporter.get_data() ↵ | Oren Milman | 2017-08-29 | 1 | -1/+2 |
| | | | | | (#3226) if pathname.replace('/', '\\') returns non-string. | ||||
* | bpo-31109: Convert zipimport to use Argument Clinic (GH-2990) | Yaron de Leeuw | 2017-08-18 | 1 | -160/+170 |
| | |||||
* | bpo-30592: Fixed error messages for some builtins. (#1996) | Serhiy Storchaka | 2017-06-08 | 1 | -1/+1 |
| | | | | | Error messages when pass keyword arguments to some builtins that don't support keyword arguments contained double parenthesis: "()()". The regression was introduced by bpo-30534. | ||||
* | bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051) | Serhiy Storchaka | 2017-04-16 | 1 | -3/+3 |
| | |||||
* | bpo-29770: remove outdated PYO related info (GH-590) | Xiang Zhang | 2017-03-11 | 1 | -3/+3 |
| | |||||
* | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever | Serhiy Storchaka | 2017-01-23 | 1 | -6/+3 |
| | | | | possible. Patch is writen with Coccinelle. | ||||
* | Issue #28152: Fix -Wunreachable-code warning on clang | Victor Stinner | 2016-12-05 | 1 | -5/+5 |
| | | | | | Replace C if() with precompiler #if to fix a warning on dead code when using clang. | ||||
* | Issue #28410: Added _PyErr_FormatFromCause() -- the helper for raising | Serhiy Storchaka | 2016-10-21 | 1 | -4/+2 |
| | | | | | | | | new exception with setting current exception as __cause__. _PyErr_FormatFromCause(exception, format, args...) is equivalent to Python raise exception(format % args) from sys.exc_info()[1] | ||||
* | Issue #28131: Fix a regression in zipimport's compile_source() | Berker Peksag | 2016-09-14 | 1 | -1/+1 |
| | | | | zipimport should use the same optimization level as the interpreter. | ||||
* | Issue #25758: Prevents zipimport from unnecessarily encoding a filename ↵ | Steve Dower | 2016-09-10 | 1 | -10/+4 |
| | | | | (patch by Eryk Sun) | ||||
* | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Martin Panter | 2016-09-07 | 1 | -1/+1 |
| | |||||
* | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF | Serhiy Storchaka | 2016-04-10 | 1 | -1/+1 |
| | | | | in places where Py_DECREF was used. | ||||
* | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -1/+1 |
| | |||||
* | Issue #19883: Fixed possible integer overflows in zipimport. | Serhiy Storchaka | 2016-01-28 | 1 | -153/+214 |
| | |||||
* | merge 3.4 | Benjamin Peterson | 2016-01-22 | 1 | -0/+4 |
|\ | |||||
| * | reject negative data_size | Benjamin Peterson | 2016-01-22 | 1 | -0/+4 |
| | | |||||
* | | merge 3.4 (#26171) | Benjamin Peterson | 2016-01-21 | 1 | -0/+5 |
|\ \ | |/ | |||||
| * | prevent buffer overflow in get_data (closes #26171) | Benjamin Peterson | 2016-01-21 | 1 | -0/+5 |
| | | |||||
* | | merge 3.4 | Benjamin Peterson | 2016-01-21 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | fix refleak in error condition | Benjamin Peterson | 2016-01-21 | 1 | -0/+1 |
| | | |||||
* | | Issue #17633: Improve support for namespace packages with zipimport. | Brett Cannon | 2016-01-15 | 1 | -16/+32 |
| | | | | | | | | | | | | | | | | | | Previously zipimport mistakenly limited namespace support to only the top-level of the zipfile when it should have supported an arbitrary depth. Thanks to Phil Connel for the bug report and initial patch and Mike Romberg for the final patch. | ||||
* | | Issue #20440: Massive replacing unsafe attribute setting code with special | Serhiy Storchaka | 2015-12-24 | 1 | -2/+1 |
| | | | | | | | | macro Py_SETREF. | ||||
* | | Issue #23731: Implement PEP 488. | Brett Cannon | 2015-04-13 | 1 | -15/+2 |
| | | | | | | | | | | | | 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 #23696: Chain ZipImportError to the OSError | Victor Stinner | 2015-03-20 | 1 | -1/+5 |
| | | |||||
* | | Issue #19428: Handle PyMarshal_Read*() errors in run_pyc_file() | Victor Stinner | 2015-03-18 | 1 | -0/+3 |
| | | | | | | | | Detect also earlier PyMarshal_Read*() errors in zipimport. | ||||
* | | Issue #23694: Enhance _Py_fopen(), it now raises an exception on error | Victor Stinner | 2015-03-18 | 1 | -6/+2 |
|/ | | | | | * If fopen() fails, OSError is raised with the original filename object. * The GIL is now released while calling fopen() | ||||
* | Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer | Serhiy Storchaka | 2015-02-16 | 1 | -1/+1 |
| | | | | overflows. Added few missed PyErr_NoMemory(). | ||||
* | merge backout for #20621 | Benjamin Peterson | 2014-02-16 | 1 | -236/+48 |
| | |||||
* | merge 3.3 | Benjamin Peterson | 2014-01-09 | 1 | -3/+1 |
|\ | |||||
| * | fix zipimport ref leak | Benjamin Peterson | 2014-01-09 | 1 | -3/+1 |
| | | |||||
* | | Fixes issue #19081: When a zipimport .zip file in sys.path being imported from | Gregory P. Smith | 2014-01-08 | 1 | -48/+238 |
|\ \ | |/ | | | | | | | | | is modified during the lifetime of the Python process after zipimport has already cached the zip's table of contents we detect this and recover rather than read bad data from the .zip (causing odd import errors). | ||||
| * | Fixes Issue #19081: When a zipimport .zip file in sys.path being imported from | Gregory P. Smith | 2014-01-08 | 1 | -47/+238 |
| | | | | | | | | | | | | is modified during the lifetime of the Python process after zipimport has already cached the zip's table of contents we detect this and recover rather than read bad data from the .zip (causing odd import errors). | ||||
* | | Issue #19515: Remove duplicated identifiers in zipimport.c | Victor Stinner | 2013-11-12 | 1 | -6/+4 |
| | | |||||
* | | Issue #18408: Fix zipimport, handle PyUnicode_Substring() and get_subname() ↵ | Victor Stinner | 2013-10-29 | 1 | -2/+7 |
| | | | | | | | | failures | ||||
* | | Issue #19428: zipimport now handles errors when reading truncated or invalid | Victor Stinner | 2013-10-29 | 1 | -3/+13 |
| | | | | | | | | ZIP archive. | ||||
* | | Issue #18571: Implementation of the PEP 446: file descriptors and file handles | Victor Stinner | 2013-08-27 | 1 | -2/+2 |
| | | | | | | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable(). | ||||
* | | Grammatical mistake in a comment | Brett Cannon | 2013-06-21 | 1 | -1/+1 |
| | | |||||
* | | Issue #8745: Small speed up zipimport on Windows. Patch by Catalin Iacob. | Serhiy Storchaka | 2013-02-16 | 1 | -9/+18 |
|/ | |||||
* | MERGE: Closes #15897: zipimport.c doesn't check return value of fseek() | Jesus Cea | 2012-10-03 | 1 | -7/+36 |
|\ | |||||
| * | Closes #15897: zipimport.c doesn't check return value of fseek() | Jesus Cea | 2012-10-03 | 1 | -7/+36 |
| | | |||||
* | | Fixed two memory leaks in make_filename() in zipimport.c. The allocated ↵ | Christian Heimes | 2012-09-10 | 1 | -2/+6 |
| | | | | | | | | buffer wasn't cleaned up in two error cases. CID 486832 |