| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Py_REFCNT. Macros for b/w compatibility are available.
|
|
|
|
|
|
| |
platforms).
The patch unifies float("inf") and repr(float("inf")) on all platforms.
|
|
|
|
|
|
|
|
|
|
|
| |
Allows dictionaries to be pre-sized (upto 255 elements) saving time lost
to re-sizes with their attendant mallocs and re-insertions.
Has zero effect on small dictionaries (5 elements or fewer), a slight
benefit for dicts upto 22 elements (because they had to resize once
anyway), and more benefit for dicts upto 255 elements (saving multiple
resizes during the build-up and reducing the number of collisions on
the first insertions). Beyond 255 elements, there is no addional benefit.
|
| |
|
| |
|
|
|
|
|
|
| |
place.
I added also the feature that a @prop.getter decorator does not overwrite the doc string of the property if it was given as an argument to property().
|
|
|
|
| |
run it and check in the resulting configure file.
|
|
|
|
| |
list.__init__. Not a backport candidate.
|
|
|
|
|
| |
in signalmodule.c more robust. Includes Martin von Loewis's suggestion
to set is_tripped after .tripped.
|
|
|
|
|
|
| |
Issue #1580: New free format floating point representation based on "Floating-Point Printer Sample Code", by Robert G. Burger. For example repr(11./5) now returns '2.2' instead of '2.2000000000000002'.
Thanks to noam for the patch! I had to modify doubledigits.c slightly to support X64 and IA64 machines on Windows. I also added the new file to the three project files.
|
|
|
|
| |
char methods are required to fix #1578 in py3k. I figured out that they might be useful in 2.6, too.
|
| |
|
|
|
|
| |
anything (issue 1538).
|
| |
|
| |
|
|
|
|
| |
Written for GHOP by Turkay Eren.
|
| |
|
| |
|
| |
|
|
|
|
| |
os.access now returns True on Windows for any existing directory.
|
|
|
|
|
| |
Change GeneratorExit's base class from Exception to BaseException
(This time I'm applying the patch to the correct sandbox.)
|
|
|
|
|
|
| |
on 32-bit systems on 64-bit systems, and vice versa. As a consequence
of the change, Random pickles created by Python 2.6 cannot be loaded
in Python 2.5.
|
| |
|
| |
|
|
|
|
| |
Written by Michael Schneider for GHOP.
|
|
|
|
|
|
| |
the start.
(will backport to 2.5)
|
|
|
|
|
| |
Added PyFloat_GetMax(), PyFloat_GetMin() and PyFloat_GetInfo() to the float API.
Added a dictionary sys.float_info with information about the internal floating point type to the sys module.
|
|
|
|
|
|
| |
The t# and w# formats were not correctly handled.
Will backport.
|
| |
|
|
|
|
| |
Also added a warning.warnpy3k() as convenient method for Python 3.x related deprecation warnings.
|
| |
|
|
|
|
| |
attribute of an empty cell object. Now a ValueError is raised.
|
| |
|
| |
|
| |
|
|
|
|
| |
Thanks for the reminder, Brett
|
|
|
|
|
|
|
| |
newlines; it doesn't. To rectify this the string returned replaces all
instances of os.linesep with '\n' to fake universal newline support.
Backport candidate.
|
|
|
|
| |
executable
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Correction for issue1265 (pdb bug with "with" statement).
When an unfinished generator-iterator is garbage collected, PyEval_EvalFrameEx
is called with a GeneratorExit exception set. This leads to funny results
if the sys.settrace function itself makes use of generators.
A visible effect is that the settrace function is reset to None.
Another is that the eventual "finally" block of the generator is not called.
It is necessary to save/restore the exception around the call to the trace
function.
This happens a lot with py3k: isinstance() of an ABCMeta instance runs
def __instancecheck__(cls, instance):
"""Override for isinstance(instance, cls)."""
return any(cls.__subclasscheck__(c)
for c in {instance.__class__, type(instance)})
which lets an opened generator expression each time it returns True.
Backport candidate, even if the case is less frequent in 2.5.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
candidate).
|
|
|
|
| |
hashes with a block size other than 64 bytes (such as sha384 and sha512).
|
|
|
|
| |
Improve test_lock's tempdir creation and cleanup.
|
|
|
|
|
|
|
|
|
|
| |
pay attention to them when opening an existing database. This means
that d[] behaves properly even on databases previously created with DB_DUP
or DB_DUPSORT flags to allow duplicate keys.
http://sourceforge.net/tracker/index.php?func=detail&aid=477182&group_id=13900&atid=113900
Do not backport, this bugfix could be considered an API change.
|
|
|
|
|
| |
--with-system-ffi configure option defaults to "yes" because the
bundled libffi sources are too old.
|
| |
|