- 29 Mar, 2011 3 commits
-
-
guido@google.com authored
-
guido@google.com authored
-
guido@google.com authored
(This version is a cleaned-up backport of a fix by Senthil Kumaran.)
-
- 24 Mar, 2011 14 commits
-
-
Raymond Hettinger authored
-
R David Murray authored
-
R David Murray authored
-
R David Murray authored
Algorithm and initial patch by Michael Henry.
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
-
Antoine Pitrou authored
-
Antoine Pitrou authored
-
Senthil Kumaran authored
-
Senthil Kumaran authored
-
Senthil Kumaran authored
-
Raymond Hettinger authored
Move __name__ back out of the template; the responsibility for setting __name__ lies with the caller (which knows something about the new namespace), not with the class definition (which doesn't know about the namespace it is being built in).
-
Brett Cannon authored
-
- 23 Mar, 2011 23 commits
-
-
Brett Cannon authored
paths. __import__ does a little trick when importing from bytecode by back-patching the co_filename paths to point to the file location where the code object was loaded from, *not* where the code object was originally created. This allows co_filename to point to a valid path. Problem is that co_filename is immutable from Python, so a private function -- imp._fix_co_filename() -- had to be introduced in order to get things working properly. Originally the plan was to add a file argument to marshal.loads(), but that failed as the algorithm used by __import__ is not fully recursive as one might expect, so to be fully backwards-compatible the code used by __import__ needed to be exposed. This closes issue #6811 by taking a different approach than outlined in the issue.
-
Brett Cannon authored
This makes it obvious that an import failed because of some extraneous whitespace (e.g., a newline). This is a partial fix for issue #8754.
-
Antoine Pitrou authored
-
Antoine Pitrou authored
-
Antoine Pitrou authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
R David Murray authored
-
R David Murray authored
-
R David Murray authored
-
Antoine Pitrou authored
appropriate number of parallel workers.
-
Antoine Pitrou authored
parallel (thanks Michael for pointing this).
-
Raymond Hettinger authored
-
R David Murray authored
-
R David Murray authored
-
R David Murray authored
Patch by Michael Henry.
-
Mark Dickinson authored
Issue #11244: Remove outdated peepholer check that was preventing the peepholer from folding -0 and -0.0. Thanks Eugene Toder for the patch.
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Éric Araujo authored
-