Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue 19306: Add extra hints to faulthandler stack dumps that they are ↵ | Guido van Rossum | 2013-10-21 | 1 | -8/+8 |
| | | | | upside down. | ||||
* | cleanup the construction of __qualname__ (closes #19301 again) | Benjamin Peterson | 2013-10-20 | 2 | -205/+217 |
| | |||||
* | Close #19313: remove no longer needed Py_XINCREF | Nick Coghlan | 2013-10-20 | 1 | -1/+0 |
| | | | | Eliminates a refleak introduced in commit b4a325275fb0 | ||||
* | removal u_qualname, since compiler_scope_qualname is only ever called once | Benjamin Peterson | 2013-10-19 | 1 | -8/+0 |
| | |||||
* | strengthen condition and add assertion | Benjamin Peterson | 2013-10-19 | 1 | -1/+2 |
| | |||||
* | give explicitly global functions and classes a global __qualname__ (closes ↵ | Benjamin Peterson | 2013-10-19 | 2 | -3450/+3247 |
| | | | | #19301) | ||||
* | Issue #1772673: The type of `char*` arguments now changed to `const char*`. | Serhiy Storchaka | 2013-10-19 | 6 | -34/+33 |
| | |||||
* | Issue #18810: Be optimistic with stat calls when seeing if a directory | Brett Cannon | 2013-10-18 | 1 | -769/+768 |
| | | | | | | | | | | | | | | | | | | | exists when checking for a package. Before there was an isdir check and then various isfile checks for possible __init__ files when looking for a package. This change drops the isdir check by leaning on the assumption that a directory will not contain something named after the module being imported which is not a directory. If the module is a package then it saves a stat call. If there is nothing in the directory with the potential package name it also saves a stat call. Only if there is something in the directory named the same thing as the potential package will the number of stat calls increase (due to more wasteful __init__ checks). Semantically there is no change as the isdir check moved down so that namespace packages continue to have no chance of accidentally collecting non-existent directories. | ||||
* | Issue #18416: Fix various os calls in importlib.machinery.FileFinder | Brett Cannon | 2013-10-18 | 1 | -776/+778 |
| | | | | now that self.path is no longer forced to '.'. | ||||
* | Issue #18416: Have importlib.machinery.PathFinder treat '' as the cwd | Brett Cannon | 2013-10-18 | 1 | -3219/+3442 |
| | | | | | | | | | | | | | | | | | | | and stop importlib.machinery.FileFinder treating '' as '.'. Previous PathFinder transformed '' into '.' which led to __file__ for modules imported from the cwd to always be relative paths. This meant the values of the attribute were wrong as soon as the cwd changed. This change now means that as long as the site module is run (which makes all entries in sys.path absolute) then all values for __file__ will also be absolute unless it's for __main__ when specified by file path in a relative way (modules imported by runpy will have an absolute path). Now that PathFinder is no longer treating '' as '.' it only makes sense for FileFinder to stop doing so as well. Now no transformation is performed for the directory given to the __init__ method. Thanks to Madison May for the initial patch. | ||||
* | Issue #16129: Py_SetStandardStreamEncoding cleanups | Nick Coghlan | 2013-10-18 | 1 | -4/+9 |
| | | | | | | | | | - don't call PyErr_NoMemory with interpreter is not initialised - note that it's OK to call _PyMem_RawStrDup here - don't include this in the limited API - capitalise "IO" - be explicit that a non-zero return indicates an error - include versionadded marker in docs | ||||
* | Issue #16129: Add `Py_SetStandardStreamEncoding` | Nick Coghlan | 2013-10-17 | 1 | -16/+65 |
| | | | | | | | | | | | This new pre-initialization API allows embedding applications like Blender to force a particular encoding and error handler for the standard IO streams. Also refactors Modules/_testembed.c to let us start testing multiple embedding scenarios. (Initial patch by Bastien Montagne) | ||||
* | Close #19260: remove outdated comment in marshal.c | Antoine Pitrou | 2013-10-14 | 1 | -2/+0 |
| | |||||
* | Re #18521: move array bounds check before array access. | Georg Brandl | 2013-10-14 | 1 | -1/+1 |
| | |||||
* | Re #18521: remove assignments of variables that are immediately reassigned. | Georg Brandl | 2013-10-14 | 1 | -1/+1 |
| | |||||
* | Issue #18776: atexit callbacks now display their full traceback when they ↵ | Antoine Pitrou | 2013-10-13 | 1 | -0/+10 |
|\ | | | | | | | raise an exception. | ||||
| * | Issue #18776: atexit callbacks now display their full traceback when they ↵ | Antoine Pitrou | 2013-10-13 | 1 | -0/+10 |
| | | | | | | | | raise an exception. | ||||
* | | Catch a few extra error cases in marshal.c | Kristján Valur Jónsson | 2013-10-13 | 1 | -0/+4 |
| | | |||||
* | | Issue #19219 Remove a lot of "retval = NULL" statements, now that retval | Kristján Valur Jónsson | 2013-10-13 | 1 | -79/+22 |
| | | | | | | | | is pre-initialized to that value. Test show a 5% speedup as a bonus. | ||||
* | | Issue #19219: retval may be used uninitialized value | Christian Heimes | 2013-10-13 | 1 | -1/+1 |
| | | | | | | | | CID 486239: Uninitialized pointer read (UNINIT) | ||||
* | | Try to fix weird assertion error on the Fedora buildbot. | Antoine Pitrou | 2013-10-12 | 1 | -3/+3 |
| | | |||||
* | | Issue #4555: All exported C symbols are now prefixed with either "Py" or "_Py". | Antoine Pitrou | 2013-10-12 | 3 | -82/+82 |
| | | | | | | | | ("make smelly" now clean) | ||||
* | | Don't export internal symbols ("make smelly") | Antoine Pitrou | 2013-10-12 | 2 | -2/+2 |
| | | |||||
* | | Issue #19219: Speed up marshal.loads(), and make pyc files slightly (5% to ↵ | Antoine Pitrou | 2013-10-12 | 2 | -3549/+3466 |
| | | | | | | | | 10%) smaller. | ||||
* | | Close #19199: Remove ``PyThreadState.tick_counter`` field | Victor Stinner | 2013-10-09 | 2 | -2/+0 |
| | | |||||
* | | Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at ↵ | Antoine Pitrou | 2013-10-07 | 1 | -2/+2 |
|\ \ | |/ | | | | | least one place so as to avoid regressions. | ||||
| * | Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at ↵ | Antoine Pitrou | 2013-10-07 | 1 | -2/+2 |
| | | | | | | | | least one place so as to avoid regressions. | ||||
* | | merge with 3.3 | Georg Brandl | 2013-10-06 | 1 | -2/+3 |
|\ \ | |/ | |||||
| * | Closes #15213: update comment for _PyOS_URandom | Georg Brandl | 2013-10-06 | 1 | -2/+3 |
| | | |||||
| * | [issue19152] Revert 832579dbafd6. | Eric Snow | 2013-10-03 | 1 | -210/+192 |
| | | |||||
| * | [issue19152] Add ExtensionFileLoader.get_filename(). | Eric Snow | 2013-10-03 | 1 | -192/+210 |
| | | |||||
| * | [issue19151] Fix docstring and use of _get_suppported_file_loaders() to ↵ | Eric Snow | 2013-10-03 | 1 | -2613/+2611 |
| | | | | | | | | reflect 2-tuples. | ||||
* | | [issue19152] Add ExtensionFileLoader.get_filename(). | Eric Snow | 2013-10-03 | 1 | -1348/+1362 |
| | | |||||
* | | [issue19951] Fix docstring and use of _get_suppported_file_loaders() to ↵ | Eric Snow | 2013-10-03 | 1 | -1931/+1929 |
| | | | | | | | | reflect 2-tuples. | ||||
* | | merge 3.3 (#19098) | Benjamin Peterson | 2013-09-27 | 1 | -2/+6 |
|\ \ | |/ | |||||
| * | don't scale compiler stack frames if the recursion limit is huge (closes #19098) | Benjamin Peterson | 2013-09-27 | 1 | -2/+6 |
| | | |||||
* | | Issue #18818: The "encodingname" part of PYTHONIOENCODING is now optional. | Serhiy Storchaka | 2013-09-13 | 1 | -8/+12 |
| | | |||||
* | | Issue #18808: Thread.join() now waits for the underlying thread state to be ↵ | Antoine Pitrou | 2013-09-07 | 1 | -0/+5 |
| | | | | | | | | | | | | destroyed before returning. This prevents unpredictable aborts in Py_EndInterpreter() when some non-daemon threads are still running. | ||||
* | | Close #18954: Fix some typo in fileutils.c comments | Victor Stinner | 2013-09-07 | 1 | -3/+3 |
| | | | | | | | | Patch written by Vajrasky Kok. | ||||
* | | Issue #16826: Revert fix while Windows issues are being worked out. | Meador Inge | 2013-09-04 | 1 | -3119/+3115 |
|\ \ | |/ | |||||
| * | Issue #16826: Revert fix while Windows issues are being worked out. | Meador Inge | 2013-09-04 | 1 | -4206/+4201 |
| | | |||||
* | | Issue #16826: Don't check for PYTHONCASEOK when using -E. | Meador Inge | 2013-09-03 | 1 | -3115/+3119 |
|\ \ | |/ | | | | | | | This commit fixes a regression that sneaked into Python 3.3 where importlib was not respecting -E when checking for the PYTHONCASEOK environment variable. | ||||
| * | Issue #16826: Don't check for PYTHONCASEOK when using -E. | Meador Inge | 2013-09-03 | 1 | -4201/+4206 |
| | | | | | | | | | | This commit fixes a regression that sneaked into Python 3.3 where importlib was not respecting -E when checking for the PYTHONCASEOK environment variable. | ||||
* | | Factor-out the common code for setting a KeyError. | Raymond Hettinger | 2013-09-02 | 1 | -0/+14 |
| | | |||||
* | | Issue #18756: os.urandom() now uses a lazily-opened persistent file ↵ | Antoine Pitrou | 2013-08-30 | 2 | -13/+43 |
| | | | | | | | | descriptor, so as to avoid using many file descriptors when run in parallel from multiple threads. | ||||
* | | pythonrun.c: use MAXPATHLEN instead of PATH_MAX | Victor Stinner | 2013-08-27 | 1 | -1/+1 |
| | | | | | | | | PATH_MAX is not available on "MIPS IRIX 6.5.30 [SB] 3.x" buildbot | ||||
* | | Issue #18571: Implementation of the PEP 446: file descriptors and file handles | Victor Stinner | 2013-08-27 | 5 | -19/+334 |
| | | | | | | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable(). | ||||
* | | Issue #18783: Removed existing mentions of Python long type in docstrings, | Serhiy Storchaka | 2013-08-27 | 4 | -6/+5 |
|\ \ | |/ | | | | | error messages and comments. | ||||
| * | Issue #18783: Removed existing mentions of Python long type in docstrings, | Serhiy Storchaka | 2013-08-27 | 4 | -6/+5 |
| | | | | | | | | error messages and comments. | ||||
* | | Close #11619: The parser and the import machinery do not encode Unicode | Victor Stinner | 2013-08-26 | 8 | -113/+268 |
| | | | | | | | | filenames anymore on Windows. |