Christian Heimes
3adfe9aaae
Renamed PCBuild9 directory to PCBuild
2007-12-31 15:18:55 +00:00
Christian Heimes
cdaa2cbfd5
Added wininst-9.0.exe executable for VS 2008
...
Integrated bdist_wininst into PCBuild9 directory
2007-12-31 14:47:07 +00:00
Martin v. Löwis
cb78de6d25
Bug #1699 : Define _BSD_SOURCE only on OpenBSD.
2007-12-29 18:49:21 +00:00
Christian Heimes
e93237dfcc
#1629 : Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
2007-12-19 02:37:44 +00:00
Christian Heimes
0a8143f646
Applied patch #1635 : Float patch for inf and nan on Windows (and other platforms).
...
The patch unifies float("inf") and repr(float("inf")) on all platforms.
2007-12-18 23:22:54 +00:00
Raymond Hettinger
fd7ed407d7
Give meaning to the oparg for BUILD_MAP: estimated size of the dictionary.
...
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.
2007-12-18 21:24:09 +00:00
Thomas Heller
153038efa4
Issue #1642 : Fix segfault in ctypes when trying to delete attributes.
2007-12-18 19:00:34 +00:00
Christian Heimes
db3d6cbce0
Fixed #1638 : %zd configure test fails on Linux
2007-12-16 21:39:43 +00:00
Christian Heimes
90e10e79ea
Fixed bug #1620 : New @spam.getter property syntax modifies the property in 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().
2007-12-14 02:35:23 +00:00
Guido van Rossum
7c862f8077
Patch #1608 . Someone with access to autoconf 2.61 or higher needs to
...
run it and check in the resulting configure file.
2007-12-13 20:50:10 +00:00
Raymond Hettinger
adf9ffdfbe
Fix bug 1604. deque.__init__() did not clear existing contents like list.__init__. Not a backport candidate.
2007-12-13 00:08:37 +00:00
Christian Heimes
284d927625
Backport of r59456:59458 from py3k to trunk
...
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.
2007-12-10 22:28:56 +00:00
Christian Heimes
7c7f6afa92
Added wide char api variants of getch and putch to msvcrt module. The wide char methods are required to fix #1578 in py3k. I figured out that they might be useful in 2.6, too.
2007-12-10 15:12:41 +00:00
Skip Montanaro
26015494f2
When splitting, avoid making a copy of the string if the split doesn't find
...
anything (issue 1538).
2007-12-08 15:33:24 +00:00
Guido van Rossum
901464f131
Be (just a bit :) more specific about release date.
2007-12-08 04:38:23 +00:00
Andrew M. Kuchling
395fe44210
Spelling fix
2007-12-05 13:27:20 +00:00
Christian Heimes
7cc1c6f0af
Added msg to Misc/NEWS
2007-12-05 12:52:34 +00:00
Martin v. Löwis
69233e87c4
Move nt.access change into the right section.
2007-12-04 08:39:16 +00:00
Martin v. Löwis
7b3cc06a9a
Forward-port r59310:
...
os.access now returns True on Windows for any existing directory.
2007-12-03 23:09:04 +00:00
Christian Heimes
44eeaec173
Patch #1537 from Chad Austin
...
Change GeneratorExit's base class from Exception to BaseException
(This time I'm applying the patch to the correct sandbox.)
2007-12-03 20:01:02 +00:00
Martin v. Löwis
6b449f4f2b
Issue #1727780 : Support loading pickles of random.Random objects created
...
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.
2007-12-03 19:20:02 +00:00
Christian Heimes
c654fc2cad
Added comment to Misc/NEWS for r59290
2007-12-03 13:55:16 +00:00
Nick Coghlan
ef01d822aa
Implement PEP 366
2007-12-03 12:55:17 +00:00
Lars Gustäbel
77b2d63b40
Issue #1531 : Read fileobj from the current offset, do not seek to
...
the start.
(will backport to 2.5)
2007-12-01 21:02:12 +00:00
Christian Heimes
dfdfaab1c5
Feature #1534
...
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.
2007-12-01 11:20:10 +00:00
Amaury Forgeot d'Arc
dafd32b730
Issue #1521 : on 64bit platforms, str.decode fails on very long strings.
...
The t# and w# formats were not correctly handled.
Will backport.
2007-11-30 20:51:40 +00:00
Amaury Forgeot d'Arc
be49a90eb3
Add a NEWS entry for r59231
2007-11-30 20:37:22 +00:00
Christian Heimes
28104c58d2
Expose Py_Py3kWarningFlag as sys.py3kwarning as discussed in #1504
...
Also added a warning.warnpy3k() as convenient method for Python 3.x related deprecation warnings.
2007-11-27 23:16:44 +00:00
Skip Montanaro
58a6f446db
back in these go - thanks to Titus Brown for the fix
2007-11-24 14:30:47 +00:00
Amaury Forgeot d'Arc
ce7d10ccc4
Issue #1445 : Fix a SystemError when accessing the ``cell_contents``
...
attribute of an empty cell object. Now a ValueError is raised.
2007-11-24 13:44:17 +00:00
Skip Montanaro
98f4079fa0
revert
2007-11-24 04:31:15 +00:00
Skip Montanaro
90b5bc3a7d
issue 1429818
2007-11-23 17:12:47 +00:00
Amaury Forgeot d'Arc
f57375af28
Add a NEWS entry for r59076.
2007-11-21 01:38:26 +00:00
Christian Heimes
3f065a414a
Added NEWS entry
...
Thanks for the reminder, Brett
2007-11-21 01:17:28 +00:00
Brett Cannon
43e53f85b6
doctest assumed that a package's __loader__.get_data() method used universal
...
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.
2007-11-21 00:47:36 +00:00
Nick Coghlan
327a39b047
Patch #1739468 : Directories and zipfiles containing __main__.py are now executable
2007-11-18 11:56:28 +00:00
Amaury Forgeot d'Arc
0d75f09177
Merge from py3k branch:
...
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.
2007-11-13 21:54:28 +00:00
Martin v. Löwis
63bf149a26
Patch #1418 : Make the AC_REPLACE_FUNCS object files actually work.
2007-11-12 05:14:05 +00:00
Raymond Hettinger
1760c8a017
Add set.isdisjoint()
2007-11-08 02:52:43 +00:00
Nick Coghlan
90b858e1b3
Add missing NEWS entry
2007-11-07 11:57:51 +00:00
Raymond Hettinger
dc1d1ba9cf
Add build option for faster loop execution.
2007-11-07 02:45:46 +00:00
Raymond Hettinger
12e94200c0
Fix marshal's incorrect handling of subclasses of builtin types (backport candidate).
2007-11-07 01:13:09 +00:00
Gregory P. Smith
e1ac4f1930
Fixes Issue 1385: The hmac module now computes the correct hmac when using
...
hashes with a block size other than 64 bytes (such as sha384 and sha512).
2007-11-06 00:19:03 +00:00
Gregory P. Smith
ac11e02143
Add the bsddb.db.DBEnv.lock_id_free method.
...
Improve test_lock's tempdir creation and cleanup.
2007-11-05 02:56:31 +00:00
Gregory P. Smith
ec10a4a402
Fixes bug 477182 on pybsddb.sf.net. DB objects now load the flags and
...
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.
2007-11-05 02:32:26 +00:00
Thomas Heller
486b1b0268
Issue #1292 : On alpha, arm, ppc, and s390 linux systems the
...
--with-system-ffi configure option defaults to "yes" because the
bundled libffi sources are too old.
2007-11-02 19:10:24 +00:00
Gregory P. Smith
f7601ee2c0
false "fix" undone as correct problem was found and fixed.
2007-11-01 21:17:47 +00:00
Hye-Shik Chang
a838a801f2
- Add support for FreeBSD 8 which is recently forked from FreeBSD 7.
...
- Regenerate IN module for most recent maintenance tree of FreeBSD 6 and 7.
2007-10-28 11:19:02 +00:00
Georg Brandl
1a94ec2664
Bug #1287 : make os.environ.pop() work as expected.
2007-10-24 21:40:38 +00:00
Matthias Klose
9afb9850f2
- Build using system ffi library on arm*-linux*.
2007-10-24 20:00:44 +00:00