Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | merge 3.2 | Benjamin Peterson | 2012-09-02 | 1 | -2/+2 | |
|\ \ | |/ | ||||||
| * | put * in the normal place | Benjamin Peterson | 2012-09-02 | 1 | -2/+2 | |
| | | ||||||
* | | get rid of ast_error_finish by passing the compiling struct to ast_error | Benjamin Peterson | 2012-09-02 | 1 | -118/+72 | |
| | | ||||||
* | | merge 3.2 | Benjamin Peterson | 2012-09-02 | 1 | -2/+2 | |
|\ \ | |/ | ||||||
| * | move variable decl to the top of the function | Benjamin Peterson | 2012-09-02 | 1 | -2/+2 | |
| | | ||||||
* | | merge 3.2 (#15846) | Benjamin Peterson | 2012-09-02 | 1 | -0/+8 | |
|\ \ | |/ | ||||||
| * | prevert ast errors from being normalized before ast_error_finish is called ↵ | Benjamin Peterson | 2012-09-02 | 1 | -0/+8 | |
| | | | | | | | | (closes #15846) | |||||
* | | Issue #15781: Fix two small race conditions in import's module locking. | Antoine Pitrou | 2012-08-27 | 2 | -3632/+3638 | |
| | | ||||||
* | | Issue #15316: Let exceptions raised during imports triggered by the | Brett Cannon | 2012-08-24 | 1 | -189/+198 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fromlist of __import__ propagate. The problem previously was that if something listed in fromlist didn't exist then that's okay. The fix for that was too broad in terms of catching ImportError. The trick with the solution to this issue is that the proper refactoring of import thanks to importlib doesn't allow for a way to distinguish (portably) between an ImportError because finders couldn't find a loader, or a loader raised the exception. In Python 3.4 the hope is to introduce a new exception (e.g. ModuleNotFound) to make it clean to differentiate why ImportError was raised. | |||||
* | | Issue #2051: Tweak last commit for this issue to pass in mode instead | Brett Cannon | 2012-08-24 | 1 | -1871/+1868 | |
| | | | | | | | | | | of source path to set_data() and make the new argument private until possible API changes can be discussed more thoroughly in Python 3.4. | |||||
* | | Close #2501: Permission bits are once again correctly copied from the source ↵ | Nick Coghlan | 2012-08-24 | 1 | -4180/+4243 | |
| | | | | | | | | file to the cached bytecode file. Test by Eric Snow. | |||||
* | | Issue #15766: Fix a crash in imp.load_dynamic() on PyUnicode_FromString() ↵ | Victor Stinner | 2012-08-22 | 1 | -3/+3 | |
| | | | | | | | | failure | |||||
* | | Issue #15726: Fix incorrect bounds checking in PyState_FindModule. | Antoine Pitrou | 2012-08-20 | 1 | -1/+1 | |
|\ \ | |/ | | | | | Patch by Robin Schreiber. | |||||
| * | Issue #15726: Fix incorrect bounds checking in PyState_FindModule. | Antoine Pitrou | 2012-08-20 | 1 | -1/+1 | |
| | | | | | | | | Patch by Robin Schreiber. | |||||
* | | Merge 3.2. | Stefan Krah | 2012-08-20 | 1 | -0/+2 | |
|\ \ | |/ | ||||||
| * | Issue #15741: Fix potential NULL dereference. Found by Coverity. | Stefan Krah | 2012-08-20 | 1 | -0/+2 | |
| | | ||||||
* | | Check return value of asdl_seq_new(). Found by Coverity. | Stefan Krah | 2012-08-20 | 1 | -0/+2 | |
| | | ||||||
* | | Close #14846: Handle a sys.path entry going away | Nick Coghlan | 2012-08-20 | 1 | -929/+933 | |
| | | ||||||
* | | Issue #15715: Ignore failed imports triggered by the use of fromlist. | Brett Cannon | 2012-08-17 | 1 | -454/+456 | |
| | | | | | | | | | | | | | | | | | | | | | | When the fromlist argument is specified for __import__() and the attribute doesn't already exist, an import is attempted. If that fails (e.g. module doesn't exist), the ImportError will now be silenced (for backwards-compatibility). This *does not* affect ``from ... import ...`` statements. Thanks to Eric Snow for the patch and Simon Feltman for reporting the regression. | |||||
* | | Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵ | Antoine Pitrou | 2012-08-15 | 1 | -1/+3 | |
|\ \ | |/ | | | | | | | | | errors correctly. Patch by Serhiy Storchaka. | |||||
| * | Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵ | Antoine Pitrou | 2012-08-15 | 2 | -3/+14 | |
| | | | | | | | | | | | | errors correctly. Patch by Serhiy Storchaka. | |||||
| * | Close #13119: use "\r\n" newline for sys.stdout/err on Windows | Victor Stinner | 2012-08-03 | 1 | -5/+8 | |
| | | | | | | | | sys.stdout and sys.stderr are now using "\r\n" newline on Windows, as Python 2. | |||||
| * | remove unused variable | Meador Inge | 2012-07-18 | 1 | -1/+1 | |
| | | ||||||
* | | Don't overwrite a __path__ value from extension modules if already | Brett Cannon | 2012-08-11 | 1 | -1658/+1661 | |
| | | | | | | | | set. | |||||
* | | fix docstring wording | Philip Jenvey | 2012-08-10 | 1 | -2612/+2613 | |
| | | ||||||
* | | Issue #15502: Refactor some code. | Brett Cannon | 2012-08-10 | 1 | -4152/+4153 | |
| | | ||||||
* | | Fix issue #15607: Update the print builtin function docstring with the new ↵ | Senthil Kumaran | 2012-08-10 | 1 | -4/+5 | |
| | | | | | | | | | | | | flush keyword. Patch contributed by Daniel Ellis. | |||||
* | | update docstring per the extension package fix, refactor | Philip Jenvey | 2012-08-10 | 1 | -1647/+1658 | |
| | | ||||||
* | | Issue #15576: Allow extension modules to be a package's __init__ | Brett Cannon | 2012-08-10 | 1 | -3615/+3616 | |
| | | | | | | | | | | module again. Also took the opportunity to stop accidentally exporting _imp.extension_suffixes() as public. | |||||
* | | Issue #15502: Finish bringing importlib.abc in line with the current | Brett Cannon | 2012-08-10 | 1 | -1160/+1192 | |
| | | | | | | | | | | | | | | | | | | state of the import system. Also make importlib.invalidate_caches() work with sys.meta_path instead of sys.path_importer_cache to completely separate the path-based import system from the overall import system. Patch by Eric Snow. | |||||
* | | Remove now unused IntOrLongToString type | Victor Stinner | 2012-08-09 | 1 | -3/+0 | |
| | | ||||||
* | | merge heads | Benjamin Peterson | 2012-08-07 | 2 | -70/+73 | |
|\ \ | ||||||
| * | | Issue #15471: Don't use mutable object as default values for the | Brett Cannon | 2012-08-06 | 2 | -70/+73 | |
| | | | | | | | | | | | | parameters of importlib.__import__(). | |||||
* | | | fix yield from return value on custom iterators (closes #15568) | Benjamin Peterson | 2012-08-07 | 1 | -1/+1 | |
|/ / | ||||||
* | | Fix a spelling mistake in a comment. | Brett Cannon | 2012-08-05 | 1 | -1/+1 | |
| | | ||||||
* | | Remove unused variable `trim_get_code`. | Antoine Pitrou | 2012-08-04 | 1 | -4/+0 | |
| | | ||||||
* | | Close #13119: use "\r\n" newline for sys.stdout/err on Windows | Victor Stinner | 2012-08-03 | 1 | -5/+8 | |
| | | | | | | | | sys.stdout and sys.stderr are now using "\r\n" newline on Windows, as Python 2. | |||||
* | | Issue #15502: Bring the importlib.PathFinder docs and docstring more in line ↵ | Nick Coghlan | 2012-08-02 | 1 | -1276/+1277 | |
| | | | | | | | | with the new import system documentation, and fix various parts of the new docs that weren't quite right given PEP 420 or were otherwise a bit misleading. Also note the key terminology problem still being discussed in the issue | |||||
* | | Close #15519: Properly expose WindowsRegistryFinder in importlib and bring ↵ | Nick Coghlan | 2012-08-02 | 1 | -2491/+2489 | |
| | | | | | | | | the name into line with normal import terminology. Original patch by Eric Snow | |||||
* | | Close #15486: Simplify the mechanism used to remove importlib frames from ↵ | Nick Coghlan | 2012-07-31 | 2 | -3552/+3456 | |
| | | | | | | | | tracebacks when they just introduce irrelevant noise | |||||
* | | Fix initialization of the faulthandler module | Victor Stinner | 2012-07-31 | 1 | -4/+4 | |
| | | | | | | | | | | | | | | faulthandler requires the importlib if "-X faulthandler" option is present on the command line, so initialize faulthandler after importlib. Add also an unit test. | |||||
* | | Issue #15508: Fix the docstring for __import__ to not mention negative | Brett Cannon | 2012-07-30 | 1 | -3/+2 | |
| | | | | | | | | | | | | 'level' values and set its document default value to 0. Thanks to Arfrever Frehtes Taifersar Arahesis for filing the bug. | |||||
* | | Issue #15463: the faulthandler module truncates strings to 500 characters, | Victor Stinner | 2012-07-30 | 1 | -1/+1 | |
| | | | | | | | | instead of 100, to be able to display long file paths | |||||
* | | Close #15425: Eliminate more importlib related traceback noise | Nick Coghlan | 2012-07-29 | 2 | -4107/+4154 | |
| | | ||||||
* | | Issue #14578: Support modules registered in the Windows registry again. | Martin v. Löwis | 2012-07-28 | 1 | -3943/+4128 | |
| | | | | | | | | Patch by Amaury Forgeot d'Arc. | |||||
* | | Issue #15466: Stop using TYPE_INT64 in marshal, | Martin v. Löwis | 2012-07-28 | 2 | -2332/+2326 | |
| | | | | | | | | | | to make importlib.h (and other byte code files) equal between 32-bit and 64-bit systems. | |||||
* | | Issue #15365: Make traceback reporting ignore any errors when printing out | Kristján Valur Jónsson | 2012-07-19 | 1 | -1/+4 | |
| | | | | | | | | | | the source line. Such errors can't be reported anyway. This makes error reporting work, even if the "io" module can't be loaded. | |||||
* | | remove unused variable | Benjamin Peterson | 2012-07-18 | 1 | -1/+1 | |
| | | ||||||
* | | Issue #15368: fixing variable typo. | Meador Inge | 2012-07-18 | 1 | -1/+1 | |
|\ \ | |/ | ||||||
| * | Issue #15368: fixing variable typo. | Meador Inge | 2012-07-18 | 1 | -1/+1 | |
| | |