| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Someone review this, please! Final releases are getting close, Fred
(the weakref guy) won't be around until Tuesday, and the pre-patch
code can indeed raise spurious RuntimeErrors in the presence of
threads or mutating comparison functions.
See the bug report for my confusions: I can't see any reason for why
__delitem__ iterated over the keys. The new one-liner implementation
is much faster, can't raise RuntimeError, and should be better-behaved
in all respects wrt threads.
New tests test_weak_keyed_bad_delitem and
test_weak_keyed_cascading_deletes fail before this patch.
Bugfix candidate for 2.2.3 too, if someone else agrees with this patch.
|
|
|
|
|
| |
restarts the shell while it is generating output. Also improved
annotation when user repeatedly hammers the Ctrl-F6 restart.
|
|
|
|
|
|
| |
user's PYTHONPATH is empty (though Linux can).
Modified Files:
idle idle.py idle.pyw
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
e.g. further improve subprocess interrupt, exceptions, and termination.
2. Remove the workarounds in PyShell.py and ScriptBinding.py involving
interrupting the subprocess prior to killing it, not necessary anymore.
3. Fix a bug introduced at PyShell Rev 1.66: was getting extra shell menu
every time the shell window was recreated.
M PyShell.py
M ScriptBinding.py
M rpc.py
M run.py
|
|
|
|
| |
works just fine.
|
|
|
|
|
|
|
| |
float_pow(): Don't let the platform pow() raise -1.0 to an integer power
anymore; at least glibc gets it wrong in some cases. Note that
math.pow() will continue to deliver wrong (but platform-native) results
in such cases.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
TIOCGPGRP and many other definitions come from bsdtty.h, so it needs
to be included at least on HPUX.
|
|
|
|
|
| |
two fixed bits, position 15 and 16. It is right, why should these
be elsewhere.
|
|
|
|
|
| |
over the size of the array, or the callers check the index bounds themselves,
so the index check never failed => Replace it with an assert().
|
|
|
|
| |
the loop.
|
| |
|
|
|
|
|
|
| |
the purpose. Increased my claim to two bits, hoping that nobody
will complain about it. I'm taking the highest two bits, whatever
the integer word size may be.
|
| |
|
|
|
|
| |
Bug spotted by Joerg Lehmann <joerg@luga.de>.
|
|
|
|
| |
Update error message. Hopefully this is clearer to some people.
|
|
|
|
| |
From SF patch #736962.
|
|
|
|
| |
so make it static.
|
| |
|
|
|
|
| |
Remove comment about how code used to work.
|
|
|
|
|
|
|
| |
to do.
XXX Please be careful when checking in patches to avoid checking in
junk that explains what the patched code used to do.
|
| |
|
|
|
|
| |
document" text from html/stdabout.dat, not html/about.dat.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Check the supplied breakpoint number more carefully.
(Incompatibility: before this patch, "enable -1" would enable
the last breakpoint on the list; now -1 is not a legal ID. Not sure
anyone would ever use negative indices...)
2.2 bugfix candidate, assuming making -1 illegal isn't considered a problem.
|
|
|
|
|
| |
* Move new test_byteswap into FPTest.
* Remove extra lines at end of file.
|
|
|
|
|
|
|
|
|
|
| |
patterns as floats/doubles results in floating point exceptions.
Fix this by implementing a separate test_byteswap() for the floating
point tests. This new test compares the tostring() values of both arrays
instead of the arrays themselves.
Discovered by Neal Norwitz.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
tp_free is NULL or PyObject_Del at the end. Because it's a base type
it must call tp_free in its dealloc function, and because it's gc'able
it must not call PyObject_Del.
inherit_slots(): Don't inherit tp_free unless the type and its base
agree about whether they're gc'able. If the type is gc'able and the
base is not, and the base uses the default PyObject_Del for its
tp_free, give the type PyObject_GC_Del for its tp_free (the appropriate
default for a gc'able type).
cPickle.c: The Pickler and Unpickler types claim to be base classes
and gc'able, but their dealloc functions didn't call tp_free.
Repaired that. Also call PyType_Ready() on these typeobjects, so
that the correct (PyObject_GC_Del) default memory-freeing function
gets plugged into these types' tp_free slots.
|
|
|
|
|
|
| |
The compiler was reseting the list comprehension tmpname counter for each function, but the symtable was using the same counter for the entire module. Repair by move tmpname into the symtable entry.
Bugfix candidate.
|
|
|
|
| |
Fulfilled request to special case repetitions of lists of length 0 or 1.
|
| |
|
|
|
|
|
|
|
|
| |
in .po metadata caused a crash.
Also, removed some unnecessary code.
Backport candidate.
|
|
|
|
|
|
| |
in .po metadata caused a crash.
Backport candidate.
|
| |
|
|
|
|
|
|
| |
really can't be smushed together.
Bugfix candidate.
|
| |
|
|
|
|
| |
Line numbering of examples is not used elsewhere.
|
|
|
|
|
| |
The presence of this bit controls, whether there
are special fields for non-recursive calls.
|
| |
|
| |
|
|
|
|
|
| |
* added the missing parameter
* put optional parameters in correct positional order
|
|
|
|
|
| |
Paul Moore's patch to have timeit.py check the current directory for
imports (instead of the directory for Lib/timeit.py).
|
|
|
|
| |
from socket.ssl docs.
|