Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 | ||||
* | | Closes #15737: Fix potential NULL dereference in zipimport.c. | Stefan Krah | 2012-08-20 | 1 | -2/+2 |
| | | |||||
* | | capitialize enum members | Benjamin Peterson | 2012-05-25 | 1 | -17/+17 |
| | | |||||
* | | use PyDict_Contains | Benjamin Peterson | 2012-05-25 | 1 | -3/+3 |
| | | |||||
* | | return NULL on error | Benjamin Peterson | 2012-05-25 | 1 | -2/+3 |
| | | |||||
* | | actually return the result | Benjamin Peterson | 2012-05-25 | 1 | -1/+1 |
| | | |||||
* | | simplify and rewrite the zipimport part of 702009f3c0b1 a bit | Benjamin Peterson | 2012-05-25 | 1 | -51/+41 |
| | | |||||
* | | plug ref leak | Benjamin Peterson | 2012-05-25 | 1 | -0/+1 |
| | | |||||
* | | issue 14660: Implement PEP 420, namespace packages. | Eric V. Smith | 2012-05-25 | 1 | -8/+140 |
| | | |||||
* | | Fix zipimport.c's read_directory() to use appropriate types for the values | Gregory P. Smith | 2012-01-30 | 1 | -4/+5 |
|\ \ | |/ | | | | | | | | | being read from the header vs the values being used by fseek and ftell (Py_ssize_t for those). Updates the Py_BuildValue format string to match (including several existing wrong 'i's that should have been 'l's). | ||||
| * | Fix zip_import.c's read_directory() to use appropriate types for the values | Gregory P. Smith | 2012-01-30 | 1 | -4/+5 |
| | | | | | | | | | | | | | | | | being read from the header vs the values being used by fseek and ftell (Py_ssize_t for those) and how they are computed. Py_ssize_t is used for actual file offsets so that files greater than 2gigs could be supported. Updates the Py_BuildValue format string to match (including several existing wrong 'i's that should have been 'l's). | ||||
* | | Issue #13645: pyc files now contain the size of the corresponding source | Antoine Pitrou | 2012-01-13 | 1 | -1/+3 |
| | | | | | | | | | | code, to avoid timestamp collisions (especially on filesystems with a low timestamp resolution) when checking for freshness of the bytecode. | ||||
* | | (Merge 3.2) Handle correctly _Py_fopen() error: don't replace the exception | Victor Stinner | 2011-12-18 | 1 | -3/+5 |
|\ \ | |/ | |||||
| * | Handle correctly _Py_fopen() error: don't replace the exception | Victor Stinner | 2011-12-18 | 1 | -3/+5 |
| | | |||||
* | | import.c now catchs _Py_stat() exceptions | Victor Stinner | 2011-12-18 | 1 | -2/+2 |
| | | | | | | | | _Py_stat() now returns -2 if an exception was raised. | ||||
* | | Drop unused variable. | Martin v. Löwis | 2011-10-31 | 1 | -1/+0 |
| | | |||||
* | | Fix typo. | Martin v. Löwis | 2011-10-31 | 1 | -3/+2 |
| | | |||||
* | | Replace Py_UCS4_ API with Unicode API. | Martin v. Löwis | 2011-10-31 | 1 | -130/+90 |
| | | |||||
* | | Rename _Py_identifier to _Py_IDENTIFIER. | Martin v. Löwis | 2011-10-14 | 1 | -1/+1 |
| | | |||||
* | | Fix a compiler warning in zipimport | Victor Stinner | 2011-10-11 | 1 | -1/+1 |
| | | |||||
* | | Use identifier API for PyObject_GetAttrString. | Martin v. Löwis | 2011-10-10 | 1 | -2/+3 |
| | | |||||
* | | Rename new macros to conform to naming rules (function macros have "Py" ↵ | Georg Brandl | 2011-09-28 | 1 | -4/+4 |
| | | | | | | | | prefix, not "PY"). | ||||
* | | Implement PEP 393. | Martin v. Löwis | 2011-09-28 | 1 | -52/+89 |
| | | |||||
* | | zipimport: initialize fullpath to NULL | Victor Stinner | 2011-05-26 | 1 | -1/+1 |
| | | | | | | | | | | In some cases, fullpath value is used whereas fullpath was not always initialized. Warning found by the Clang Static Analyzer. | ||||
* | | avoid a compiler warning. the compiler doesn't know that the static | Gregory P. Smith | 2011-05-21 | 1 | -1/+1 |
| | | | | | | | | struct guarantees the loop will always be run once to initialize code. | ||||
* | | (Merge 3.2) Issue #12124: zipimport doesn't keep a reference to | Victor Stinner | 2011-05-19 | 1 | -24/+23 |
|\ \ | |/ | | | | | zlib.decompress() anymore to be able to unload the module. | ||||
| * | (Merge 3.1) Issue #12124: zipimport doesn't keep a reference to | Victor Stinner | 2011-05-19 | 1 | -24/+23 |
| |\ | | | | | | | | | | zlib.decompress() anymore to be able to unload the module. | ||||
| | * | Issue #12124: zipimport doesn't keep a reference to zlib.decompress() anymore | Victor Stinner | 2011-05-19 | 1 | -24/+23 |
| | | | | | | | | | | | | to be able to unload the module. | ||||
* | | | Issue #3080: zipimport has a full unicode suppport | Victor Stinner | 2011-03-15 | 1 | -135/+168 |
|/ / | | | | | | | | | | | | | | | - Use Unicode for module paths and names, self->archive and self->prefix - Format module names and paths use %R instead of '%U' to escape surrogate characters (PEP 383) - Use PyImport_ExecCodeModuleObject() instead of PyImport_ExecCodeModuleEx() - Use PyImport_AddModuleObject() instead of PyImport_AddModule() | ||||
* | | #11565: Merge with 3.1. | Ezio Melotti | 2011-03-16 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | #11565: Fix several typos. Patch by Piotr Kasprzyk. | Ezio Melotti | 2011-03-16 | 1 | -1/+1 |
| | |