- 11 Haz, 2002 9 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Skip Montanaro yazdı
also call using_history() to properly initialize history variables
-
Neal Norwitz yazdı
since the URLopener base class does and **kwargs are used in urlopen.
-
Michael W. Hudson yazdı
slicelength. Include his test case.
-
Guido van Rossum yazdı
-
Michael W. Hudson yazdı
[ 400998 ] experimental support for extended slicing on lists somewhat spruced up and better tested than it was when I wrote it. Includes docs & tests. The whatsnew section needs expanding, and arrays should support extended slices -- later.
-
Martin v. Löwis yazdı
-
Steven M. Gava yazdı
slightly tweaked and modified for the idlefork config system
-
Fred Drake yazdı
the semantics and presentation used in the library reference. Added an explanation of the use of [...] to denote optional arguments, since this is the only use of this in a signature line. Closes SF bug #567127.
-
- 10 Haz, 2002 20 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Greg Ward yazdı
transformed them into the initial_indent and subsequent_indent instance attributes. Now they actually work as advertised, ie. they are accounted for in the width of each output line. Plus you can use them with wrap() as well as fill(), and fill() went from simple-and-broken to trivial-and-working.
-
Guido van Rossum yazdı
metaclasses. This is essentially the same problem as that reported in bug 494904 for pickle: deepcopy should treat instances of custom metaclasses the same way it treats instances of type 'type'. Bugfix candidate.
-
Greg Ward yazdı
keyword args, which are passed directly to the TextWrapper constructor.
-
Greg Ward yazdı
and fill() methods. Keep interface of existing wrap() and fill() functions by going back to having them construct a new TextWrapper instance on each call, with the preferred width passed to the constructor.
-
Thomas Heller yazdı
Fixes SF 564840.
-
Guido van Rossum yazdı
The WeakKeyDictionary constructor didn't work when a dict arg was given. Fixed by moving a line. Also adding a unit test. Bugfix candidate.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
The file returned by tmpfile() has mode w+b, so use that in the call to PyFile_FromFile(). Bugfix candidate.
-
Andrew M. Kuchling yazdı
Add a reminder
-
Guido van Rossum yazdı
-
Andrew M. Kuchling yazdı
-
Guido van Rossum yazdı
assert into PyType_Ready(): now that we're not clearing tp_dict, we can assert that it's non-NULL again.
-
Guido van Rossum yazdı
discovered that subtype_traverse must traverse the type if it is a heap type, because otherwise some cycles involving a type and its instance would not be collected. Simplest example: while 1: class C(object): pass C.ref = C() This program grows without bounds before this fix. (It grows ever slower since it spends ever more time in the collector.) Simply adding the right visit() call to subtype_traverse() revealed other problems. With MvL's help we re-learned that type_clear() doesn't have to clear *all* references, only the ones that may not be cleared by other means. Careful analysis (see comments in the code) revealed that only tp_mro needs to be cleared. (The previous checkin to this file adds a test for tp_mro==NULL to _PyType_Lookup() that's essential to prevent crashes due to tp_mro being NULL when subtype_dealloc() tries to look for a __del__ method.) The same kind of analysis also revealed that subtype_clear() doesn't need to clear the instance dict. With this fix, a useful property of the collector is once again guaranteed: a single gc.collect() call will clear out all garbage. (It didn't always before, which put us on the track of this bug.) Will backport to 2.2.
-
Guido van Rossum yazdı
about the test case, slot_nb_power gets called on behalf of its second argument, but with a non-None modulus it wouldn't check this, and believes it is called on behalf of its first argument. Fix this properly, and get rid of the code in _PyType_Lookup() that tries to call _PyType_Ready(). But do leave a check for a NULL tp_mro there, because this can still legitimately occur. I'll fix this in 2.2.x too.
-
Andrew M. Kuchling yazdı
-
Michael W. Hudson yazdı
-
Andrew MacIntyre yazdı
-
Andrew MacIntyre yazdı
-
- 09 Haz, 2002 5 kayıt (commit)
-
-
Jack Jansen yazdı
verbose output to the console, etc. - Allow Cocoa applets to be built with BuildApplet. No full testing has been done yet to ensure OS9 operation hasn't suffered.
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
-
Just van Rossum yazdı
-
Greg Ward yazdı
-
- 07 Haz, 2002 6 kayıt (commit)
-
-
Greg Ward yazdı
-
Greg Ward yazdı
-
Greg Ward yazdı
-
Greg Ward yazdı
Yuck.
-
Greg Ward yazdı
handle sentences like this: And she said, "Go to hell!" Can you believe that?
-
Greg Ward yazdı
sentences are separated by two spaces. Improve _fix_sentence_endings() a bit -- look for ".!?" instead of just ".", and factor out the list of sentence-ending punctuation characters to a class attribute.
-