summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Issue 19306: Add extra hints to faulthandler stack dumps that they are ↵Guido van Rossum2013-10-211-8/+8
| | | | upside down.
* cleanup the construction of __qualname__ (closes #19301 again)Benjamin Peterson2013-10-202-205/+217
|
* Close #19313: remove no longer needed Py_XINCREFNick Coghlan2013-10-201-1/+0
| | | | Eliminates a refleak introduced in commit b4a325275fb0
* removal u_qualname, since compiler_scope_qualname is only ever called onceBenjamin Peterson2013-10-191-8/+0
|
* strengthen condition and add assertionBenjamin Peterson2013-10-191-1/+2
|
* give explicitly global functions and classes a global __qualname__ (closes ↵Benjamin Peterson2013-10-192-3450/+3247
| | | | #19301)
* Issue #1772673: The type of `char*` arguments now changed to `const char*`.Serhiy Storchaka2013-10-196-34/+33
|
* Issue #18810: Be optimistic with stat calls when seeing if a directoryBrett Cannon2013-10-181-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.FileFinderBrett Cannon2013-10-181-776/+778
| | | | now that self.path is no longer forced to '.'.
* Issue #18416: Have importlib.machinery.PathFinder treat '' as the cwdBrett Cannon2013-10-181-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 cleanupsNick Coghlan2013-10-181-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 Coghlan2013-10-171-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.cAntoine Pitrou2013-10-141-2/+0
|
* Re #18521: move array bounds check before array access.Georg Brandl2013-10-141-1/+1
|
* Re #18521: remove assignments of variables that are immediately reassigned.Georg Brandl2013-10-141-1/+1
|
* Issue #18776: atexit callbacks now display their full traceback when they ↵Antoine Pitrou2013-10-131-0/+10
|\ | | | | | | raise an exception.
| * Issue #18776: atexit callbacks now display their full traceback when they ↵Antoine Pitrou2013-10-131-0/+10
| | | | | | | | raise an exception.
* | Catch a few extra error cases in marshal.cKristján Valur Jónsson2013-10-131-0/+4
| |
* | Issue #19219 Remove a lot of "retval = NULL" statements, now that retvalKristján Valur Jónsson2013-10-131-79/+22
| | | | | | | | is pre-initialized to that value. Test show a 5% speedup as a bonus.
* | Issue #19219: retval may be used uninitialized valueChristian Heimes2013-10-131-1/+1
| | | | | | | | CID 486239: Uninitialized pointer read (UNINIT)
* | Try to fix weird assertion error on the Fedora buildbot.Antoine Pitrou2013-10-121-3/+3
| |
* | Issue #4555: All exported C symbols are now prefixed with either "Py" or "_Py".Antoine Pitrou2013-10-123-82/+82
| | | | | | | | ("make smelly" now clean)
* | Don't export internal symbols ("make smelly")Antoine Pitrou2013-10-122-2/+2
| |
* | Issue #19219: Speed up marshal.loads(), and make pyc files slightly (5% to ↵Antoine Pitrou2013-10-122-3549/+3466
| | | | | | | | 10%) smaller.
* | Close #19199: Remove ``PyThreadState.tick_counter`` fieldVictor Stinner2013-10-092-2/+0
| |
* | Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at ↵Antoine Pitrou2013-10-071-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 Pitrou2013-10-071-2/+2
| | | | | | | | least one place so as to avoid regressions.
* | merge with 3.3Georg Brandl2013-10-061-2/+3
|\ \ | |/
| * Closes #15213: update comment for _PyOS_URandomGeorg Brandl2013-10-061-2/+3
| |
| * [issue19152] Revert 832579dbafd6.Eric Snow2013-10-031-210/+192
| |
| * [issue19152] Add ExtensionFileLoader.get_filename().Eric Snow2013-10-031-192/+210
| |
| * [issue19151] Fix docstring and use of _get_suppported_file_loaders() to ↵Eric Snow2013-10-031-2613/+2611
| | | | | | | | reflect 2-tuples.
* | [issue19152] Add ExtensionFileLoader.get_filename().Eric Snow2013-10-031-1348/+1362
| |
* | [issue19951] Fix docstring and use of _get_suppported_file_loaders() to ↵Eric Snow2013-10-031-1931/+1929
| | | | | | | | reflect 2-tuples.
* | merge 3.3 (#19098)Benjamin Peterson2013-09-271-2/+6
|\ \ | |/
| * don't scale compiler stack frames if the recursion limit is huge (closes #19098)Benjamin Peterson2013-09-271-2/+6
| |
* | Issue #18818: The "encodingname" part of PYTHONIOENCODING is now optional.Serhiy Storchaka2013-09-131-8/+12
| |
* | Issue #18808: Thread.join() now waits for the underlying thread state to be ↵Antoine Pitrou2013-09-071-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 commentsVictor Stinner2013-09-071-3/+3
| | | | | | | | Patch written by Vajrasky Kok.
* | Issue #16826: Revert fix while Windows issues are being worked out.Meador Inge2013-09-041-3119/+3115
|\ \ | |/
| * Issue #16826: Revert fix while Windows issues are being worked out.Meador Inge2013-09-041-4206/+4201
| |
* | Issue #16826: Don't check for PYTHONCASEOK when using -E.Meador Inge2013-09-031-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 Inge2013-09-031-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 Hettinger2013-09-021-0/+14
| |
* | Issue #18756: os.urandom() now uses a lazily-opened persistent file ↵Antoine Pitrou2013-08-302-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_MAXVictor Stinner2013-08-271-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 handlesVictor Stinner2013-08-275-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 Storchaka2013-08-274-6/+5
|\ \ | |/ | | | | error messages and comments.
| * Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-274-6/+5
| | | | | | | | error messages and comments.
* | Close #11619: The parser and the import machinery do not encode UnicodeVictor Stinner2013-08-268-113/+268
| | | | | | | | filenames anymore on Windows.