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
Thomas Heller
291a1b89c6
Backport of r51379 from trunk:
...
Add asserts to check for 'impossible' NULL values, with comments.
In one place where I'm not 1000% sure about the non-NULL, raise
a RuntimeError for safety.
This should fix the klocwork issues that Neal sent me. If so,
it should be applied to the release25-maint branch also.
2006-09-06 17:48:56 +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
Andrew M. Kuchling
a8ed1b01a1
Rearrange example a bit, and show rpartition() when separator is not found
2006-09-05 13:11:33 +00:00
Georg Brandl
08f6f476d9
Bug #1552618 : change docs of dict.has_key() to reflect recommendation
...
to use "in".
(backport from rev. 51740)
2006-09-05 12:45:18 +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
fe50f8e961
Backport 51669: Make sure memory is properly cleaned up in file_init (even though this should not be able to happen since we already parsed the args)
2006-09-05 04:32:06 +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
Neal Norwitz
8568752268
Fix SF #1552093 , eval docstring typo (3 ps in mapping)
2006-09-05 01:52:00 +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
Neal Norwitz
8bd1c0d8ce
Backport docos
2006-09-03 20:01:05 +00:00
Neal Norwitz
665a3ae0af
Backport doco
2006-09-03 20:00:39 +00:00
Nick Coghlan
08c496d81d
NEWS entry for decimal module changes
2006-09-03 01:13:06 +00:00
Nick Coghlan
c48daf5bc4
Backport of decimal module context management updates from rev 51694 to 2.5 release branch
2006-09-03 01:08:30 +00:00
Neal Norwitz
f07b590d7e
Backport 51663:
...
Doc fix: hashlib objects don't always return a digest of 16 bytes.
2006-09-03 00:04:26 +00:00
Neal Norwitz
38b9460b4a
SF #1547931 , fix typo (missing and). Backport candidate for 2.3/2.4 too
2006-09-02 02:45:43 +00:00
Georg Brandl
097bbea4b6
evalfile() should be execfile().
...
(backport from rev. 51677)
2006-09-01 22:30:56 +00:00
Fred Drake
2998a1c21b
- SF patch #1550263 : Enhance and correct unittest docs
...
- various minor cleanups for improved consistency
2006-09-01 03:56:22 +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
7b3c031790
Alexander Belopolsky pointed out that pos is a size_t
2006-08-22 13:57:07 +00:00
Anthony Baxter
ab7e5ef695
patch for documentation for recent uuid changes (from ping)
2006-08-22 07:36:06 +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
bebdc9e52c
Backport 51443:
...
Handle a few more error conditions.
Klocwork 301 and 302. Will backport.
2006-08-21 20:20:59 +00:00
Neal Norwitz
47f0ffa7ee
Fix a couple of ssize-t issues reported by Alexander Belopolsky on python-dev
2006-08-21 18:44:09 +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
Neal Norwitz
3ba24783ba
Move initialization of interned strings to before allocating the
...
object so we don't leak op. (Fixes an earlier patch to this code)
Klockwork #350
2006-08-19 04:19:14 +00:00
Neal Norwitz
03ee62c352
Move assert to after NULL check, otherwise we deref NULL in the assert.
...
Klocwork #307
2006-08-19 04:18:39 +00:00
Andrew M. Kuchling
e12b9f63ec
Minor edits
2006-08-18 13:54:33 +00:00
Georg Brandl
1e8feed293
Typo in tp_clear docs.
...
(backport from rev. 51368)
2006-08-18 07:35:53 +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
Martin v. Löwis
9f04e6a110
Leave tk build directory to restore original path.
2006-08-17 17:27:31 +00:00
Anthony Baxter
e1d4fe615e
Tagging for release of Python 2.5c1
2006-08-17 03:08:55 +00:00
Anthony Baxter
86f5bf6be9
Branching release25-maint. All further 2.5 releases (including the release candidates,
...
the final release and all bugfix releases) will be from this branch, not the trunk.
2006-08-17 00:38:04 +00:00