| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
using "".join(). Fold a long line.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
nonzero value is OK. Also fixed the error message for this and for
testGetSockOpt().
|
|
|
|
| |
information on what went wrong.
|
| |
|
|
|
|
|
| |
depends is a list of files that the target depends, but aren't direct
sources of the target. think .h files.
|
|
|
|
|
| |
settimeout(), test settimeout(None), and the interaction between
settimeout() and setblocking().
|
|
|
|
| |
Changed test_timeout.py to conform to the guidelines in Lib/test/README.
|
|
|
|
|
|
| |
['BINARY_FLOOR_DIVIDE', 'BINARY_TRUE_DIVIDE',
'INPLACE_FLOOR_DIVIDE', 'INPLACE_TRUE_DIVIDE', 'GET_ITER',
'YIELD_VALUE', 'FOR_ITER', 'CONTINUE_LOOP']
|
|
|
|
| |
of a new-style instance are detected by the garbage collector.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
code is directed to the Shell.
|
| |
|
|
|
|
| |
also call using_history() to properly initialize history variables
|
|
|
|
| |
since the URLopener base class does and **kwargs are used in urlopen.
|
|
|
|
| |
slicelength. Include his test case.
|
| |
|
|
|
|
|
|
|
|
|
| |
[ 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.
|
| |
|
|
|
|
| |
slightly tweaked and modified for the idlefork config system
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
keyword args, which are passed directly to the TextWrapper constructor.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Fixes SF 564840.
|
|
|
|
|
|
|
| |
The WeakKeyDictionary constructor didn't work when a dict arg was
given. Fixed by moving a line. Also adding a unit test.
Bugfix candidate.
|
| |
|
| |
|
|
|
|
|
|
|
| |
The file returned by tmpfile() has mode w+b, so use that in the call
to PyFile_FromFile().
Bugfix candidate.
|
|
|
|
| |
Add a reminder
|
| |
|
| |
|
|
|
|
|
| |
assert into PyType_Ready(): now that we're not clearing tp_dict, we
can assert that it's non-NULL again.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|