- 12 Jun, 2002 5 commits
-
-
Guido van Rossum authored
Changed test_timeout.py to conform to the guidelines in Lib/test/README.
-
Guido van Rossum authored
['BINARY_FLOOR_DIVIDE', 'BINARY_TRUE_DIVIDE', 'INPLACE_FLOOR_DIVIDE', 'INPLACE_TRUE_DIVIDE', 'GET_ITER', 'YIELD_VALUE', 'FOR_ITER', 'CONTINUE_LOOP']
-
Guido van Rossum authored
of a new-style instance are detected by the garbage collector.
-
Guido van Rossum authored
This was a simple typo. Strange that the compiler didn't catch it! Instead of WHY_CONTINUE, two tests used CONTINUE_LOOP, which isn't a why_code at all, but an opcode; but even though 'why' is declared as an enum, comparing it to an int is apparently not even worth a warning -- not in gcc, and not in VC++. :-( Will fix in 2.2 too.
-
Kurt B. Kaiser authored
code is directed to the Shell.
-
- 11 Jun, 2002 9 commits
-
-
Guido van Rossum authored
-
Skip Montanaro authored
also call using_history() to properly initialize history variables
-
Neal Norwitz authored
since the URLopener base class does and **kwargs are used in urlopen.
-
Michael W. Hudson authored
slicelength. Include his test case.
-
Guido van Rossum authored
-
Michael W. Hudson authored
[ 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 authored
-
Steven M. Gava authored
slightly tweaked and modified for the idlefork config system
-
Fred Drake authored
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 Jun, 2002 20 commits
-
-
Guido van Rossum authored
-
Greg Ward authored
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 authored
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 authored
keyword args, which are passed directly to the TextWrapper constructor.
-
Greg Ward authored
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 authored
Fixes SF 564840.
-
Guido van Rossum authored
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 authored
-
Guido van Rossum authored
-
Guido van Rossum authored
The file returned by tmpfile() has mode w+b, so use that in the call to PyFile_FromFile(). Bugfix candidate.
-
Andrew M. Kuchling authored
Add a reminder
-
Guido van Rossum authored
-
Andrew M. Kuchling authored
-
Guido van Rossum authored
assert into PyType_Ready(): now that we're not clearing tp_dict, we can assert that it's non-NULL again.
-
Guido van Rossum authored
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 authored
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 authored
-
Michael W. Hudson authored
-
Andrew MacIntyre authored
-
Andrew MacIntyre authored
-
- 09 Jun, 2002 5 commits
-
-
Jack Jansen authored
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 authored
-
Martin v. Löwis authored
-
Just van Rossum authored
-
Greg Ward authored
-
- 07 Jun, 2002 1 commit
-
-
Greg Ward authored
-