Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix compilation on Windows | Nick Coghlan | 2012-10-20 | 1 | -1/+1 |
| | |||||
* | Issue #6074: Forward port Windows read-only source file fix from 2.7 | Nick Coghlan | 2012-10-19 | 1 | -0/+6 |
| | |||||
* | Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵ | Antoine Pitrou | 2012-08-15 | 1 | -2/+11 |
| | | | | | | errors correctly. Patch by Serhiy Storchaka. | ||||
* | Issue #14761: Fix potential leak on an error case in the import machinery. | Antoine Pitrou | 2012-05-09 | 1 | -1/+2 |
| | |||||
* | Fixes Issue #14331: Use significantly less stack space when importing modules by | Gregory P. Smith | 2012-03-18 | 1 | -39/+127 |
| | | | | allocating path buffers on the heap instead of the stack. | ||||
* | Issue #14084: Fix a file descriptor leak when importing a module with a bad ↵ | Antoine Pitrou | 2012-02-22 | 1 | -1/+3 |
| | | | | encoding. | ||||
* | In find_module(), do not silence fileno() and dup() errors. | Antoine Pitrou | 2012-02-22 | 1 | -0/+2 |
| | |||||
* | Port import fixes from 2.7. | Antoine Pitrou | 2012-01-25 | 1 | -10/+10 |
| | |||||
* | Issue #11235: Fix OverflowError when trying to import a source file whose ↵ | Antoine Pitrou | 2012-01-24 | 1 | -7/+4 |
| | | | | modification time doesn't fit in a 32-bit timestamp. | ||||
* | Fix the builtin module initialization code to store the init function for ↵ | Antoine Pitrou | 2012-01-18 | 1 | -0/+4 |
| | | | | future reinitialization. | ||||
* | Add signatures to the docstring of functions added to imp by PEP 3147 | Éric Araujo | 2011-11-03 | 1 | -2/+4 |
| | |||||
* | Issue #10363: Deallocate global locks in Py_Finalize(). | Antoine Pitrou | 2011-10-30 | 1 | -10/+15 |
| | |||||
* | Issue #7732: Don't open a directory as a file anymore while importing a | Victor Stinner | 2011-09-23 | 1 | -1/+8 |
| | | | | | module. Ignore the direcotry if its name matchs the module name (e.g. "__init__.py") and raise a ImportError instead. | ||||
* | Fix the import machinery if there is an error on sys.path or sys.meta_path | Victor Stinner | 2011-09-15 | 1 | -4/+4 |
| | | | | | | find_module() now raises a RuntimeError, instead of ImportError, on an error on sys.path or sys.meta_path because load_package() and import_submodule() returns None and clear the exception if a ImportError occurred. | ||||
* | Remove unused variable if Python is build without threads | Victor Stinner | 2011-09-01 | 1 | -0/+2 |
| | |||||
* | Merge branches/pep-0384. | Martin v. Löwis | 2010-12-03 | 1 | -1/+1 |
| | |||||
* | import: use PyUnicode_FSConverter to support bytes path and PEP 383 | Victor Stinner | 2010-12-03 | 1 | -28/+30 |
| | | | | (instead of PyArg_Parse*() with "es" format and Py_FileSystemDefaultEncoding) | ||||
* | Issue #9573: os.fork now works when triggered as a side effect of import ↵ | Nick Coghlan | 2010-12-02 | 1 | -2/+11 |
| | | | | (the wisdom of actually relying on this remains questionable!) | ||||
* | Remove redundant includes of headers that are already included by Python.h. | Georg Brandl | 2010-11-30 | 1 | -4/+0 |
| | |||||
* | Issue #10359: Remove ";" after function definition, invalid in ISO C | Victor Stinner | 2010-11-09 | 1 | -1/+1 |
| | |||||
* | find_module(): use FS encoding to display the missing __init__ warning | Victor Stinner | 2010-10-17 | 1 | -7/+9 |
| | |||||
* | _PyImport_FixupExtension() and _PyImport_FindExtension() uses FS encoding | Victor Stinner | 2010-10-17 | 1 | -10/+34 |
| | | | | | | | * Rename _PyImport_FindExtension() to _PyImport_FindExtensionUnicode(): the filename becomes a Unicode object instead of byte string * Rename _PyImport_FixupExtension() to _PyImport_FixupExtensionUnicode(): the filename becomes a Unicode object instead of byte string | ||||
* | fix refleak | Benjamin Peterson | 2010-10-16 | 1 | -4/+6 |
| | |||||
* | Fix imp_cache_from_source(): Decode make_compiled_pathname() result from the | Victor Stinner | 2010-10-15 | 1 | -1/+1 |
| | | | | | | | filesystem encoding instead of utf-8. imp_cache_from_source() encodes the input path to filesystem encoding and this path is passed to make_compiled_pathname(). | ||||
* | imp_load_module() uses PyUnicode_FSConverter() to support surrogates in module | Victor Stinner | 2010-10-15 | 1 | -7/+7 |
| | | | | path | ||||
* | imp.cache_from_source() uses PyUnicode_FSConverter() to support surrogates in | Victor Stinner | 2010-10-15 | 1 | -5/+8 |
| | | | | module path | ||||
* | imp.load_dynamic() uses PyUnicode_FSConverter() to support surrogates | Victor Stinner | 2010-10-15 | 1 | -6/+6 |
| | | | | in the library path. | ||||
* | Create fileutils.c/.h | Victor Stinner | 2010-10-07 | 1 | -65/+0 |
| | | | | | | | * _Py_fopen() and _Py_stat() come from Python/import.c * (_Py)_wrealpath() comes from Python/sysmodule.c * _Py_char2wchar(), _Py_wchar2char() and _Py_wfopen() come from Modules/main.c * (_Py)_wstat(), (_Py)_wgetcwd(), _Py_wreadlink() come from Modules/getpath.c | ||||
* | PyUnicode_AsWideCharString() takes a PyObject*, not a PyUnicodeObject* | Victor Stinner | 2010-10-07 | 1 | -3/+3 |
| | | | | | All unicode functions uses PyObject* except PyUnicode_AsWideChar(). Fix the prototype for the new function PyUnicode_AsWideCharString(). | ||||
* | Remove an unreferenced variable. len is no longer needed. | Brian Curtin | 2010-09-29 | 1 | -1/+0 |
| | |||||
* | Issue #9979: Use PyUnicode_AsWideCharString() in import.c | Victor Stinner | 2010-09-29 | 1 | -18/+16 |
| | | | | | Don't truncate path if it is too long anymore, and allocate fewer memory (but allocate it on the heap, not on the stack). | ||||
* | PyImport_Import was using the old import hack of sticking a dummy value into | Brett Cannon | 2010-09-19 | 1 | -3/+13 |
| | | | | | | | fromlist to get __import__ to return the module desired. Now it uses the proper approach of fetching the module from sys.modules. Closes issue #9252. Thanks to Alexander Belopolsky for the bug report. | ||||
* | Fix incorrect comment regarding MAGIC and TAG in import.c | Nick Coghlan | 2010-09-11 | 1 | -2/+5 |
| | |||||
* | bump magic number for DELETE_DEREF | Benjamin Peterson | 2010-09-10 | 1 | -1/+2 |
| | |||||
* | Fix Issue #9752: MSVC compiler warning due to undefined function | Daniel Stutzbach | 2010-09-09 | 1 | -4/+7 |
| | | | | (Patch by Jon Anglin) | ||||
* | Issue #9225: Remove the ROT_FOUR and DUP_TOPX opcode, the latter replaced | Antoine Pitrou | 2010-09-04 | 1 | -1/+3 |
| | | | | | by the new (and simpler) DUP_TOP_TWO. Performance isn't changed, but our bytecode is a bit simplified. Patch by Demur Rumed. | ||||
* | Remove unused functions _PyImport_FindModule and _PyImport_IsScript | Victor Stinner | 2010-08-17 | 1 | -16/+0 |
| | |||||
* | Create _Py_fopen() for PyUnicodeObject path | Victor Stinner | 2010-08-14 | 1 | -0/+33 |
| | | | | | | Call _wfopen() on Windows, or fopen() otherwise. Return the new file object on success, or NULL if the file cannot be open or (if PyErr_Occurred()) on unicode error. | ||||
* | _Py_stat(): ensure that path ends with a nul character | Victor Stinner | 2010-08-14 | 1 | -2/+3 |
| | |||||
* | Issue #9425: Create private _Py_stat() function | Victor Stinner | 2010-08-14 | 1 | -0/+33 |
| | | | | Use stat() or _wstat() depending on the OS. | ||||
* | Issue #9425: NullImporter constructor is fully unicode compliant | Victor Stinner | 2010-08-13 | 1 | -38/+52 |
| | | | | | | * On non-Windows OSes: the constructor accepts bytes filenames and use surrogateescape for unicode filenames * On Windows: use GetFileAttributesW() instead of GetFileAttributesA() | ||||
* | Issue #9425: Create load_builtin() subfunction | Victor Stinner | 2010-08-09 | 1 | -30/+40 |
| | | | | Just move the code and some variables. | ||||
* | Merged revisions 81380 via svnmerge from | Benjamin Peterson | 2010-06-27 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81380 | brett.cannon | 2010-05-20 13:37:55 -0500 (Thu, 20 May 2010) | 8 lines Turned out that if you used explicit relative import syntax (e.g. from .os import sep) and it failed, import would still try the implicit relative import semantics of an absolute import (from os import sep). That's not right, so when level is negative, only do explicit relative import semantics. Fixes issue #7902. Thanks to Meador Inge for the patch. ........ | ||||
* | Typo repair. | Barry Warsaw | 2010-06-17 | 1 | -4/+4 |
| | |||||
* | Issue #8715: Create PyUnicode_EncodeFSDefault() function: Encode a Unicode | Victor Stinner | 2010-05-15 | 1 | -10/+2 |
| | | | | | | object to Py_FileSystemDefaultEncoding with the "surrogateescape" error handler, return a bytes object. If Py_FileSystemDefaultEncoding is not set, fall back to UTF-8. | ||||
* | Recorded merge of revisions 81029 via svnmerge from | Antoine Pitrou | 2010-05-09 | 1 | -2740/+2740 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........ | ||||
* | PEP 3147 | Barry Warsaw | 2010-04-17 | 1 | -28/+363 |
| | |||||
* | Merged revisions 79428 via svnmerge from | Benjamin Peterson | 2010-03-25 | 1 | -2/+2 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79428 | benjamin.peterson | 2010-03-25 18:27:16 -0500 (Thu, 25 Mar 2010) | 1 line make naming convention consistent ........ | ||||
* | Issue #6697: use %U format instead of _PyUnicode_AsString(), because | Victor Stinner | 2010-03-12 | 1 | -2/+2 |
| | | | | | | _PyUnicode_AsString() was not checked for error (NULL). The unicode string is no more truncated to 200 or 400 *bytes*. | ||||
* | Merged revisions 78826 via svnmerge from | Victor Stinner | 2010-03-12 | 1 | -2/+0 |
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78826 | victor.stinner | 2010-03-10 23:30:19 +0100 (mer., 10 mars 2010) | 5 lines Issue #3137: Don't ignore errors at startup, especially a keyboard interrupt (SIGINT). If an error occurs while importing the site module, the error is printed and Python exits. Initialize the GIL before importing the site module. ........ |