- 29 Aug, 2001 1 commit
-
-
Andrew M. Kuchling authored
Rewrite snprintf() item a bit Bump version number
-
- 28 Aug, 2001 21 commits
-
-
Tim Peters authored
64-bit INTs on 32-bit boxes (where they become longs). Also exploit that int(str) and long(str) will ignore a trailing newline (saves creating a new string at the Python level). pickletester.py: Simulate reading a pickle produced by a 64-bit box.
-
Tim Peters authored
couldn't succeed. Fixed.
-
Barry Warsaw authored
-
Tim Peters authored
-
Guido van Rossum authored
Dunno why I didn't catch this before.
-
Guido van Rossum authored
-
Guido van Rossum authored
directly.
-
Fred Drake authored
This closes SF bug #456222.
-
Guido van Rossum authored
-
Guido van Rossum authored
don't use getattr, but only look in the dict of the type and base types. This prevents picking up all sorts of weird stuff, including things defined by the metaclass when the object is a class (type). For this purpose, a helper function lookup_method() was added. One or two other places also use this.
-
Jeremy Hylton authored
contiguous.
-
Guido van Rossum authored
rather than a type equality test.
-
Jeremy Hylton authored
varnames should list all the local variables (with arguments first). The XXX_NAME ops typically occur at the module level and assignment ops should create locals.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Fred Drake authored
the contents will be shared by multiple references. This closes SF bug #455694.
-
Jack Jansen authored
-
Fred Drake authored
-
Eric S. Raymond authored
while \0 doesn't do what one might expect, \g<0> does.
-
Barry Warsaw authored
Closes SF patch #455666.
-
Barry Warsaw authored
Closes SF patch #455666.
-
- 27 Aug, 2001 18 commits
-
-
Jack Jansen authored
Experimental feature: allow \n as well as \r as newline for text files, by breaking in to the lowlevel I/O system. Can be disabled by defining WITHOUT_UNIX_NEWLINES.
-
Jeremy Hylton authored
(Hard to believe these were never handled before) Add misc.mangle() that mangles based on the rules in compile.c. XXX Need to test the corner cases Update CodeGenerator with a class_name attribute bound to None. If a particular instance is created within a class scope, the instance's class_name is bound to that class's name. Add mangle() method to CodeGenerator that mangles if the class_name has a class_name in it. Modify the FunctionCodeGenerator family to handle an extra argument-- the class_name. Wrap all name ops and attrnames in calls to self.mangle()
-
Jack Jansen authored
-
Jack Jansen authored
to make it pass on Windows:-).
-
Jeremy Hylton authored
-
Jeremy Hylton authored
Make nested scopes enabled by default Add is_constant_false() helper so that compiled code and symbols are consistent with builtin compiler's handling of "if 0:" Fix doc string handling to be consistent with recent change that eliminates the doc string from the Module's node attribute. Add fix to print handling from Evan & Shane. Track change to visitor api by making "verbose" explicit. Comment out setting CO_NESTED flag (it's unnecessary in 2.2).
-
Tim Peters authored
-
Tim Peters authored
are auto-coerced to longs now, but this test still expected OverflowError. I can't imagine this test failure was unique to Windows.
-
Jack Jansen authored
-
Jack Jansen authored
specified resource was already available and no file was opened.
-
Jack Jansen authored
resources in applets and separate OS9 style resource files, but it will eventually also be thought the hoops to jump through on OSX/MachO.
-
Jack Jansen authored
-
Jeremy Hylton authored
Evan Simpson's fix. And his explanation: If you defined two nested functions in a row that refer to the same non-global variable, the second one will be generated as though the variable were global.
-
Jeremy Hylton authored
The use of com_node() introduces a lot of extra stack frames, enough to cause a stack overflow compiling test.test_parser with the standard interpreter recursionlimit. The com_node() is a convenience function that hides the dispatch details, but comes at a very high cost. It is more efficient to dispatch directly in the callers. In these cases, use lookup_node() and call the dispatched node directly. Also handle yield_stmt in a way that will work with Python 2.1 (suggested by Shane Hathaway)
-
Jeremy Hylton authored
Remove _preorder as alias for dispatch and call dispatch directly. Add an extra optional argument to walk() XXX Also comment out some code that does debugging prints.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
The tests are run from a copy of the library directory, where everything has been compiled by the compiler package. Add a raw_input() call at the end of the script, so that I can check the output before the temp directory with the compiled code is removed.
-