- 07 May, 2003 15 commits
-
-
Jim Fulton authored
Changed the example to show how to create types the new way: - Use a class new method rather than a new function. - Use self->ob_type->tp_free in deallocators - Use attribute descriptors rather than set/getattr methods. - Make the type usable as a base type. I split the example into 3 parts: 1. The minimal new type 2. Adding attributes and methods. 3. Finer control over attributes. It's much simpler to define builtin types. These updates hopefully show this. I also made minor wording changes in two other places. I still need to update xxobject.c
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Andrew M. Kuchling authored
Add ~ to MvL's last name Fix use of all-caps for a name Bump version number
-
Skip Montanaro authored
Fred
-
Skip Montanaro authored
-
Skip Montanaro authored
but convenient in interactive sessions.
-
Jack Jansen authored
-
Jack Jansen authored
- Don't generate README, but ask the user to provide it. - Create destination dir, if needed. - Updated for 2.3b1.
-
Raymond Hettinger authored
Reverted a Py2.3b1 change to iterator in subclasses of list and tuple. They had been changed to use __getitem__ whenever it had been overriden in the subclass. This caused some usabilty and performance problems. Also, it was inconsistent with the rest of python where many container methods access the underlying object directly without first checking for an overridden getter. Users needing a change in iterator behavior should override it directly.
-
Greg Ward authored
stricter: specifically, "--" must be preceded by a limited set of characters, not by any non-whitespace character.
-
Greg Ward authored
edge cases that David Goodger reported long ago (July 2002?).
-
Greg Ward authored
-
Greg Ward authored
-
Raymond Hettinger authored
Adjust resize argument for dict.update() and dict.copy(). Extends the previous change to dict.__setitem__().
-
- 06 May, 2003 18 commits
-
-
Skip Montanaro authored
leading and trailing '/' characters on Unix systems.
-
Skip Montanaro authored
-
Skip Montanaro authored
-
Skip Montanaro authored
module to load them
-
Skip Montanaro authored
-
Skip Montanaro authored
restricted to the whichdb module
-
Skip Montanaro authored
-
Skip Montanaro authored
-
Skip Montanaro authored
-
Skip Montanaro authored
be needed - just being anal)
-
Skip Montanaro authored
-
Skip Montanaro authored
-
Skip Montanaro authored
-
Jack Jansen authored
interactive window is frontmost.
-
Jack Jansen authored
-
Jack Jansen authored
you got a strange error message. Fixed.
-
Raymond Hettinger authored
-
Walter Dörwald authored
-
- 05 May, 2003 7 commits
-
-
Raymond Hettinger authored
* Increase dictionary growth rate resulting in more sparse dictionaries, fewer lookup collisions, increased memory use, and better cache performance. For dicts with over 50k entries, keep the current growth rate in case an application is suffering from tight memory constraints. * Set the most common case (no resize) to fall-through the test.
-
Martin v. Löwis authored
-
Raymond Hettinger authored
-
Tim Peters authored
Some version of gcc in the "RTEMS port running on the Coldfire (m5200) processor" generates bad code for a loop in long_from_binary_base(), comparing the wrong half of an int to a short. The patch changes the decl of the short temp to be an int temp instead. This "simplifies" the code enough that gcc no longer blows it.
-
Walter Dörwald authored
('pgsql', '*', 252, []) and ('postgres', '*', 252, ['skip']), but pwd.getgrgid(252) might return ('pgsql', '', 252, ['skip']). Drop the test that tried to find a tuple similar to the one returned from pwd.getgrgid() among those for the same gid returned by pwd.getgrall(), as the only working definition of 'similar' seems to be 'has the same gid'. This check can be done more directly. This should fix SF bug #732783.
-
Jeremy Hylton authored
Resolves SF bugs 697989, 697988, 697986.
-
Jeremy Hylton authored
Bug fix candidate.
-