Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| | * | mangle keyword-only argname when loading defaults (closes #14607) | Benjamin Peterson | 2012-04-17 | 1 | -1/+5 | |
| | | | ||||||
* | | | Issue #12599: Be more strict in accepting None vs. a false-like object | Brett Cannon | 2012-04-18 | 1 | -1201/+1202 | |
|/ / | | | | | | | | | | | | | in importlib. Thanks to PJE for pointing out the issue and Nick Coghlan for filing the bug. | |||||
* | | Issue #13959: Re-implement imp.load_compiled() in imp.py. | Brett Cannon | 2012-04-17 | 1 | -76/+0 | |
| | | ||||||
* | | Issue #14592: A relative import will raise a KeyError if __package__ | Brett Cannon | 2012-04-17 | 1 | -1/+2 | |
| | | | | | | | | | | | | or __name__ are not set in globals. Thanks to Stefan Behnel for the bug report. | |||||
* | | Fix #14600. Correct reference handling and naming of ImportError convenience ↵ | Brian Curtin | 2012-04-17 | 3 | -31/+25 | |
| | | | | | | | | function | |||||
* | | Issue #13959: Re-implement imp.load_source() in imp.py. | Brett Cannon | 2012-04-17 | 1 | -390/+0 | |
| | | ||||||
* | | Fix another refleak | Antoine Pitrou | 2012-04-16 | 1 | -3/+7 | |
| | | ||||||
* | | Fix a refleak | Antoine Pitrou | 2012-04-16 | 1 | -2/+3 | |
| | | ||||||
* | | Fix reference loss on Py_None when None is encountered in sys.modules. | Antoine Pitrou | 2012-04-16 | 1 | -0/+1 | |
| | | ||||||
* | | Avoid compiler warning due to stray \x00 | Antoine Pitrou | 2012-04-16 | 2 | -3/+3 | |
| | | ||||||
* | | Fix #10854. Make use of the new path and name attributes on ImportError | Brian Curtin | 2012-04-16 | 1 | -2/+3 | |
| | | | | | | | | for extension modules on Windows. | |||||
* | | Issue #13959: Re-implement imp.load_package() in imp.py. | Brett Cannon | 2012-04-16 | 1 | -171/+0 | |
| | | | | | | | | | | Thanks to Eric Snow for helping with imp.load_module() (previous commit) which led to the removal of a bunch of C code. | |||||
* | | Issue #13959: Re-implement imp.load_module() in imp.py. | Brett Cannon | 2012-04-16 | 1 | -53/+0 | |
| | | ||||||
* | | Try to get hg to treat importlib.h as binary. | Brett Cannon | 2012-04-15 | 2 | -0/+2 | |
| | | ||||||
* | | Issue #13959: Simplify imp.reload() by relying on a module's | Brett Cannon | 2012-04-15 | 1 | -34/+10 | |
| | | | | | | | | | | | | | | | | | | | | __loader__. Since import now sets __loader__ on all modules it creates and imp.reload() already relied on the attribute for modules that import didn't create, the only potential compatibility issue is if people were deleting the attribute on modules and expecting imp.reload() to continue to work. | |||||
* | | Update importlib.h | Brett Cannon | 2012-04-15 | 1 | -2616/+2616 | |
| | | ||||||
* | | Issue #13959: Rename imp to _imp and add Lib/imp.py and begin | Brett Cannon | 2012-04-15 | 3 | -2774/+2775 | |
| | | | | | | | | | | | | | | rewriting functionality in pure Python. To start, imp.new_module() has been rewritten in pure Python, put into importlib (privately) and then publicly exposed in imp. | |||||
* | | Issue #14582: Import returns the module returned by a loader instead | Brett Cannon | 2012-04-15 | 2 | -466/+477 | |
| | | | | | | | | | | | | | | | | | | | | | | | | of sys.modules when possible. This is being done for two reasons. One is to gain a little bit of performance by skipping an unnecessary dict lookup in sys.modules. But the other (and main) reason is to be a little bit more clear in how things should work from the perspective of import's interactions with loaders. Otherwise loaders can easily forget to return the module even though PEP 302 explicitly states they are expected to return the module they loaded. | |||||
* | | Set ImportError.name when raising the exception in the case of None | Brett Cannon | 2012-04-15 | 1 | -2/+5 | |
| | | | | | | | | found in sys.modules. | |||||
* | | Plug a refleak. | Brett Cannon | 2012-04-15 | 1 | -2/+1 | |
| | | ||||||
* | | Handle importing pkg.mod by executing | Brett Cannon | 2012-04-15 | 2 | -252/+266 | |
| | | | | | | | | | | __import__('mod', {'__packaging__': 'pkg', level=1) w/o properly (and thus not segfaulting). | |||||
* | | Rebuild importlib.h to incorporate added comments. | Brett Cannon | 2012-04-15 | 1 | -30/+30 | |
| | | ||||||
* | | Fix Windows build | Brian Curtin | 2012-04-14 | 1 | -3/+4 | |
| | | ||||||
* | | Undo a C99 idiom. | Brett Cannon | 2012-04-14 | 1 | -2/+2 | |
| | | ||||||
* | | Issue #2377: Make importlib the implementation of __import__(). | Brett Cannon | 2012-04-14 | 9 | -533/+3433 | |
| | | | | | | | | | | | | | | importlib._bootstrap is now frozen into Python/importlib.h and stored as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen code along with sys and imp and then uses _frozen_importlib._install() to set builtins.__import__() w/ _frozen_importlib.__import__(). | |||||
* | | merge 3.2 | Benjamin Peterson | 2012-04-13 | 1 | -2/+2 | |
|\ \ | |/ | ||||||
| * | move outside WITH_THREAD conditional | Benjamin Peterson | 2012-04-13 | 1 | -2/+2 | |
| | | ||||||
* | | merge 3.2 | Benjamin Peterson | 2012-04-13 | 1 | -4/+3 | |
|\ \ | |/ | ||||||
| * | take linkage def outside of WITH_THREAD conditional (closes #14569) | Benjamin Peterson | 2012-04-13 | 1 | -4/+3 | |
| | | ||||||
* | | Issue #1559549: Add 'name' and 'path' attributes to ImportError. | Brett Cannon | 2012-04-13 | 1 | -0/+47 | |
| | | | | | | | | | | | | | | | | Currently import does not use these attributes as they are planned for use by importlib (which will be another commit). Thanks to Filip Gruszczyński for the initial patch and Brian Curtin for refining it. | |||||
* | | Issue #14288: Serialization support for builtin iterators. | Kristján Valur Jónsson | 2012-04-03 | 1 | -3/+53 | |
| | | ||||||
* | | merge 3.2 | Benjamin Peterson | 2012-04-03 | 1 | -20/+31 | |
|\ \ | |/ | ||||||
| * | fix parse_syntax_error to clean up its resources | Benjamin Peterson | 2012-04-03 | 1 | -20/+31 | |
| | | ||||||
* | | Guard an LLTRACE variable to silence an unused variable warning. | Brett Cannon | 2012-04-02 | 1 | -0/+2 | |
| | | ||||||
* | | Issue #14383: Add _PyDict_GetItemId() and _PyDict_SetItemId() functions | Victor Stinner | 2012-03-26 | 1 | -4/+11 | |
| | | | | | | | | | | These functions simplify the usage of static constant Unicode strings. Generalize the usage of _Py_Identifier in ceval.c and typeobject.c. | |||||
* | | Merge with 3.2 | Kristján Valur Jónsson | 2012-03-23 | 1 | -1/+1 | |
|\ \ | |/ | ||||||
| * | Fix typo when "PyObject*" was changed to "identifier" | Kristján Valur Jónsson | 2012-03-23 | 1 | -1/+1 | |
| | | ||||||
* | | merge 3.2 | Benjamin Peterson | 2012-03-22 | 1 | -1/+1 | |
|\ \ | |/ | ||||||
| * | this should technicaly be identifier | Benjamin Peterson | 2012-03-22 | 1 | -1/+1 | |
| | | ||||||
* | | merge 3.2 | Benjamin Peterson | 2012-03-22 | 1 | -1/+2 | |
|\ \ | |/ | ||||||
| * | check for NULL | Benjamin Peterson | 2012-03-22 | 1 | -1/+2 | |
| | | ||||||
* | | merge 3.2 (#14378) | Benjamin Peterson | 2012-03-22 | 1 | -8/+2 | |
|\ \ | |/ | ||||||
| * | check by equality for __future__ not identity (closes #14378) | Benjamin Peterson | 2012-03-22 | 1 | -8/+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. | |||||
* | | use identifier api | Benjamin Peterson | 2012-03-21 | 1 | -1/+2 | |
| | | ||||||
* | | Issue #14328: Add keyword-only parameters to PyArg_ParseTupleAndKeywords. | Larry Hastings | 2012-03-20 | 1 | -1/+33 | |
| | | | | | | | | | | | | They're optional-only for now (unlike in pure Python) but that's all I needed. The syntax can easily be relaxed if we want to support required keyword-only arguments for extension types in the future. | |||||
* | | plug memory leak (closes #14325) | Benjamin Peterson | 2012-03-16 | 1 | -1/+1 | |
| | | ||||||
* | | kill capsule names that we don't need anymore | Benjamin Peterson | 2012-03-16 | 1 | -4/+0 | |
| | | ||||||
* | | use memory macros | Benjamin Peterson | 2012-03-16 | 1 | -3/+3 | |
| | | ||||||
* | | check result of PyMem_New | Benjamin Peterson | 2012-03-16 | 1 | -0/+8 | |
| | |