Brett Cannon
c70e003f75
Backport of fix to allow exception instances to be sliced once again.
2006-09-21 18:12:15 +00:00
Anthony Baxter
2d8697f32c
Preparing for 2.5 final.
...
(damn, it's nice to see the line
#define PY_VERSION "2.5"
in patchlevel.h)
2006-09-18 06:51:50 +00:00
Anthony Baxter
72345f2a0b
remove 2.5 final section from NEWS.txt until after rc2 (reduced confusion)
2006-09-11 15:32:50 +00:00
Anthony Baxter
2d4183c5f6
preparing for 2.5c2
2006-09-11 15:30:13 +00:00
Neal Norwitz
0bcafac29e
Building with HP's cc on HP-UX turned up a couple of problems.
...
_PyGILState_NoteThreadState was declared as static inconsistently.
Make it static as it's not necessary outside of this module.
Some tests failed because errno was reset to 0. (I think the tests
that failed were at least: test_fcntl and test_mailbox).
Ensure that errno doesn't change after a call to Py_END_ALLOW_THREADS.
This only affected debug builds.
This needs to be ported to HEAD. I'll try to remember to do that tomorrow.
(Anyone, feel free to port it.)
2006-09-11 08:51:17 +00:00
Neal Norwitz
48829ba61d
As mentioned on python-dev, reverting patch #1504333 because it introduced
...
an infinite loop in rev 47154.
This patch also adds a test to prevent the regression.
Will backport to 2.4 and head later.
2006-09-11 04:05:18 +00:00
Neal Norwitz
2e488fdebf
Add NEWS entries for ctypes backports.
2006-09-11 04:03:07 +00:00
Brett Cannon
19d76c5aa8
Remove __unicode__ method so that ``unicode(BaseException)`` succeeds.
...
Fixes bug #1551432 .
2006-09-09 07:18:44 +00:00
Nick Coghlan
62f19e4281
Backport inspect.py fix from rev 51803
2006-09-08 10:01:23 +00:00
Hye-Shik Chang
137ae0cf7c
Backport from trunk r51737:
...
Fixed a few bugs on cjkcodecs:
- gbk and gb18030 codec now handle U+30FB KATAKANA MIDDLE DOT correctly.
- iso2022_jp_2 codec now encodes into G0 for KS X 1001, GB2312
codepoints to conform the standard.
- iso2022_jp_3 and iso2022_jp_2004 codec can encode JIS X 0213:2
codepoints now.
2006-09-07 12:50:38 +00:00
Gustavo Niemeyer
d1b1b8c882
Fixed bug #1531862 : Do not close standard file descriptors in subprocess.
...
Let's try that once more. Buildbots were broken last time, but probably
because tests were sending data to stderr for testing it (sending to a
file doesn't touch the problem).
The fix is still the same, but tests were reduced (removing tests to
be able to fix something is weird, but oh well).
2006-09-06 22:44:51 +00:00
Marc-André Lemburg
8a230b50a1
Backport bug fix for SF bug report #1546372 .
2006-09-06 20:38:50 +00:00
Georg Brandl
4dc095249e
Fix missing import of the types module in logging.config.
...
(backport from rev. 51785)
2006-09-06 20:06:27 +00:00
Georg Brandl
ecab623e13
Bug #1542051 : Exceptions now correctly call PyObject_GC_UnTrack.
...
Also make sure that every exception class has __module__ set to
'exceptions'.
(backport)
2006-09-06 06:47:02 +00:00
Georg Brandl
37a9e579ec
Bug #1550983 : emit better error messages for erroneous relative
...
imports (if not in package and if beyond toplevel package).
(backport from rev. 51765)
2006-09-06 06:09:34 +00:00
Georg Brandl
b20cb33f7f
Bug #1551427 : fix a wrong NULL pointer check in the win32 version
...
of os.urandom().
(backport from rev. 51762)
2006-09-06 06:04:06 +00:00
Neal Norwitz
f3ce2ab2f1
Revert 51759 because it broke all the buildbots
2006-09-06 03:58:59 +00:00
Gustavo Niemeyer
63d675ce82
Backporting fix for bug #1531862 , committed in 51758, into 2.5,
...
making subprocess not close standard file descriptors.
2006-09-06 02:05:35 +00:00
Sean Reifscheider
d7357791e8
Fixing an improperly escaped grep in .spec file, pointed out by Neal Norwitz.
2006-09-05 13:39:06 +00:00
Neal Norwitz
9a2447943e
Add another NEWS entry for a fix already in 2.5c1
2006-09-05 04:49:45 +00:00
Neal Norwitz
24b6f208ae
Add some NEWS for fixes already in 2.5c1
2006-09-05 04:43:56 +00:00
Neal Norwitz
3b3aae013b
Bug #1520864 (again): unpacking singleton tuples in list comprehensions and
...
generator expressions (x for x, in ... ) works again.
Sigh, I only fixed for loops the first time, not list comps and genexprs too.
I couldn't find any more unpacking cases where there is a similar bug lurking.
2006-09-05 03:56:01 +00:00
Neal Norwitz
541a48b262
Patch #1540470 , for OpenBSD 4.0. Backport candidate for 2.[34].
2006-09-05 02:54:42 +00:00
Neal Norwitz
716692ff13
Backport fix from 51683.
2006-09-05 02:33:44 +00:00
Neal Norwitz
7ae5f29465
Backport fix for SF bug #1550714 , itertools.tee raises SystemError
2006-09-05 02:30:10 +00:00
Neal Norwitz
29a5fdb7ca
Fix str.rpartition(sep) when sep is not found in str.
...
Partially from SF patch #1551339 , but also taken from head.
2006-09-05 02:21:38 +00:00
Neal Norwitz
8dc71f2161
This was found by Guido AFAIK on p3yk (sic) branch.
2006-09-05 02:00:21 +00:00
Neal Norwitz
d3da7d394a
Fix SF bug #1546288 , crash in dict_equal
2006-09-05 01:54:06 +00:00
Tim Peters
cbdd350dd7
i_divmod(): As discussed on Python-Dev, changed the overflow
...
checking to live happily with recent gcc optimizations that
assume signed integer arithmetic never overflows.
2006-09-05 01:47:53 +00:00
Neal Norwitz
3467352fe2
SF patch #1551340 ] Updated spec file for 2.5 release (c2)
2006-09-05 01:36:43 +00:00
Nick Coghlan
08c496d81d
NEWS entry for decimal module changes
2006-09-03 01:13:06 +00:00
Martin v. Löwis
58af7ef55d
Patch #1545507 : Exclude ctypes package in Win64 MSI file.
2006-08-25 00:11:38 +00:00
Neal Norwitz
19c35bba5d
- Patch #1541585 : fix buffer overrun when performing repr() on
...
a unicode string in a build with wide unicode (UCS-4) support.
I will forward port to 2.6. Can someone backport to 2.4?
2006-08-21 22:13:11 +00:00
Neal Norwitz
7443b80549
Backport 51432:
...
Fix bug #1543303 , tarfile adds padding that breaks gunzip.
Patch # 1543897. (remove the padding)
2006-08-21 18:43:51 +00:00
Georg Brandl
db232dc86a
Patch #1542948 : fix urllib2 header casing issue. With new test.
...
(backport from rev. 51416)
2006-08-20 13:15:43 +00:00
Neal Norwitz
d6f8629b20
SF #1542693 : Remove semi-colon at end of PyImport_ImportModuleEx macro
2006-08-19 04:19:43 +00:00
Georg Brandl
595d9b6bc6
Bug #1541682 : Fix example in the "Refcount details" API docs.
...
Additionally, remove a faulty example showing PySequence_SetItem applied
to a newly created list object and add notes that this isn't a good idea.
(backport from rev. 51364)
2006-08-18 07:28:03 +00:00
Martin v. Löwis
2c3a256351
Bug #1541863 : uuid.uuid1 failed to generate unique identifiers
...
on systems with low clock resolution.
2006-08-18 03:40:13 +00:00
Martin v. Löwis
552262409d
Invoke debug mk1mf.pl after running Configure.
2006-08-17 18:54:43 +00:00
Neil Schemenauer
4c6b0d5bec
Fix a bug in the ``compiler`` package that caused invalid code to be
...
generated for generator expressions.
2006-08-16 23:38:05 +00:00
Andrew M. Kuchling
c13324e313
Grammar fix
2006-08-16 17:11:18 +00:00
Marc-André Lemburg
574cfea993
Add NEWS item mentioning the reverted distutils version number patch.
2006-08-16 16:11:01 +00:00
Thomas Heller
b4a0cf17c4
Remove the special casing of Py_None when converting the return value
...
of the Python part of a callback function to C. If it cannot be
converted, call PyErr_WriteUnraisable with the exception we got.
Before, arbitrary data has been passed to the calling C code in this
case.
(I'm not really sure the NEWS entry is understandable, but I cannot
find better words)
2006-08-16 15:10:12 +00:00
Andrew M. Kuchling
f9b5b8e9f8
Wording/typo fixes
2006-08-16 14:21:14 +00:00
Thomas Heller
b0aa98fd4f
The __repr__ method of a NULL py_object does no longer raise an
...
exception. Remove a stray '?' character from the exception text
when the value is retrieved of such an object.
Includes tests.
2006-08-16 14:07:44 +00:00
Anthony Baxter
581795902d
news entry for 51307
2006-08-16 13:08:25 +00:00
Martin v. Löwis
a09fd6efdd
Build _hashlib on Windows. Build OpenSSL with masm assembler code.
...
Fixes #1535502 .
2006-08-16 12:55:10 +00:00
Kurt B. Kaiser
d112bc7958
Patch #1540892 : site.py Quitter() class attempts to close sys.stdin
...
before raising SystemExit, allowing IDLE to honor quit() and exit().
M Lib/site.py
M Lib/idlelib/PyShell.py
M Lib/idlelib/CREDITS.txt
M Lib/idlelib/NEWS.txt
M Misc/NEWS
2006-08-16 05:01:42 +00:00
Anthony Baxter
b409666e8c
preparing for 2.5c1
2006-08-16 03:42:26 +00:00
Neal Norwitz
b476fdf7c3
Fix the test for SocketServer so it should pass on cygwin and not fail
...
sporadically on other platforms. This is really a band-aid that doesn't
fix the underlying issue in SocketServer. It's not clear if it's worth
it to fix SocketServer, however, I opened a bug to track it:
http://python.org/sf/1540386
2006-08-15 04:58:28 +00:00