- 08 May, 2003 4 commits
-
-
Greg Ward authored
-
Greg Ward authored
-
Greg Ward authored
add dedent() function, to remove indentation from multiline strings (eg. triple-quoted strings). Differs from inspect.getdoc() by not special-casing the first line (often a sensible approach for non-docstring multiline strings). This should make this function more general (symmetric 'indent' also possible), and more fitting for the textwrap module.
-
Greg Ward authored
-
- 07 May, 2003 16 commits
-
-
Brett Cannon authored
-
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 2 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
-