- 19 Oct, 2013 15 commits
-
-
Georg Brandl authored
-
Nick Coghlan authored
- explain single use, reusable and reentrant in docs - converted suppress to a reentrant class based impl - converted redirect_stdout to a reusable impl - moved both suppress and redirect_stdout behind a functional facade - added reentrancy tests for the updated suppress - added reusability tests for the updated redirect_stdio - slightly cleaned up an exception from contextmanager
-
Christian Heimes authored
-
Christian Heimes authored
-
Christian Heimes authored
-
Serhiy Storchaka authored
-
Larry Hastings authored
for C files to generate argument parsing code. (See PEP 436.)
-
Ned Deily authored
-
Ned Deily authored
-
Ned Deily authored
of OPT for special build options. By setting OPT, some compiler-specific options like -fwrapv were overridden and thus not used, which could result in broken interpreters when building with clang.
-
Ned Deily authored
1. ppc arch detection for extension module builds broke with Xcode 5 2. ppc arch detection in configure did not work on OS X 10.4 3. -sysroot and -arch flags were unnecessarily duplicated 4. there was no obvious way to configure an intel-32 only build.
-
Ned Deily authored
-
Ned Deily authored
-
Ned Deily authored
-
Victor Stinner authored
not patched
-
- 18 Oct, 2013 25 commits
-
-
Guido van Rossum authored
-
-
Nadeem Vawda authored
Original patch by Tim Heaney.
-
Nadeem Vawda authored
Patch by Tim Heaney and Vajrasky Kok.
-
Nadeem Vawda authored
Patch by Tim Heaney and Vajrasky Kok.
-
Brett Cannon authored
-
Brett Cannon authored
source code.
-
Brett Cannon authored
code.
-
Brett Cannon authored
-
Brett Cannon authored
-
Brett Cannon authored
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.
-
Guido van Rossum authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Richard Oudkerk authored
-
Brett Cannon authored
now that self.path is no longer forced to '.'.
-
Brett Cannon authored
-
Brett Cannon authored
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.
-
Richard Oudkerk authored
-
Guido van Rossum authored
Rename Transport.pause/resume to pause_reading/pause_writing. Also relax timeout in test_call_later().
-
Brett Cannon authored
source.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Nick Coghlan authored
-