- 16 Jan, 2008 9 commits
-
-
Georg Brandl authored
-
Georg Brandl authored
to work with the newest Sphinx.
-
Thomas Heller authored
are used in a Structure or Union constructor.
-
Thomas Heller authored
passed to a Structure or Union constructor.
-
Thomas Heller authored
that array types do not live longer than needed.
-
Georg Brandl authored
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
- 15 Jan, 2008 17 commits
-
-
Amaury Forgeot d'Arc authored
Not sure if these are the correct values, but save_stdout has to be set before its usage...
-
Raymond Hettinger authored
-
Raymond Hettinger authored
Refactor if/elif chain for clarity and speed. Remove dependency on subclasses having to implement _empty and _full.
-
Guido van Rossum authored
exec call and when creating a recursive instance.
-
Andrew M. Kuchling authored
The duplication is intentional -- this paragraph is in a section describing additions to the sys module, and there's a later section that mentions the switch. I think most people scan the what's-new and don't read it in detail, so a bit of duplication is OK.
-
Jeffrey Yasskin authored
precision. This has been discussed at http://bugs.python.org/issue1682. It's useful primarily for teaching, but it also demonstrates how to implement a member of the numeric tower, including fallbacks for mixed-mode arithmetic. I expect to write a couple more patches in this area: * Rational.from_decimal() * Rational.trim/approximate() (maybe with different names) * Maybe remove the parentheses from Rational.__str__() * Maybe rename one of the Rational classes * Maybe make Rational('3/2') work.
-
Georg Brandl authored
-
Georg Brandl authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Skip Montanaro authored
empty() and full().
-
Raymond Hettinger authored
-
Raymond Hettinger authored
Orignal patch (without tests) by Leif Walsh.
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
- 14 Jan, 2008 11 commits
-
-
Raymond Hettinger authored
Fix 1698398: Zipfile.printdir() crashed because the format string expected a tuple object of length six instead of a time.struct_time object.
-
Andrew M. Kuchling authored
-
Thomas Heller authored
-
Christian Heimes authored
-
Christian Heimes authored
Now that I've learnt about structseq objects I felt like converting sys.float_info to a structseq. It's readonly and help(sys.float_info) explains the attributes nicely.
-
Christian Heimes authored
-
Christian Heimes authored
-
Christian Heimes authored
Added new an better structseq representation. E.g. repr(time.gmtime(0)) now returns 'time.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=1, tm_isdst=0)' instead of '(1970, 1, 1, 0, 0, 0, 3, 1, 0)'. The feature is part of #1816: sys.flags
-
Amaury Forgeot d'Arc authored
Slots inheritance is very different from OO inheritance. This code lead to infinite recursion on classes derived from StructType.
-
Amaury Forgeot d'Arc authored
now that ctypes uses a more supported method to create types: Method cache optimization, by Armin Rigo, ported to 2.6 by Kevin Jacobs.
-
Amaury Forgeot d'Arc authored
ctypes takes some liberties when creating python types: it modifies the types' __dict__ directly, bypassing all the machinery of type objects which deal with special methods. And this broke recent optimisations of method lookup. Now we try to modify the type with more "official" functions.
-
- 13 Jan, 2008 3 commits
-
-
Georg Brandl authored
-
Ka-Ping Yee authored
#1550: help('modules') broken by several 3rd party libraries. Tested with Python build: trunk:54235:59936M -- the reported error occurs with Django installed (or with any __init__.py present on the path that raises an exception), and such errors indeed go away when this change is applied.
-
Thomas Heller authored
-