Commit Graph

36161 Commits

Author SHA1 Message Date
Lars Gustäbel d220144a84 Fix directory names to have only one trailing slash.
A regression from rev. 52525.
2007-04-20 14:49:02 +00:00
Anthony Baxter 9701832161 Tagging for release of Python 2.5.1 2007-04-18 03:53:15 +00:00
Anthony Baxter ef57abdb60 2.5.1 final 2007-04-18 03:35:45 +00:00
Raymond Hettinger 87b5d9196e Revert 53667 2007-04-18 02:02:15 +00:00
Neal Norwitz e6e383f498 Revert SF #1615701 (rev 53655): dict.update() does *not* call __getitem__() or
keys() if subclassed.  This is to remain consistent with 2.5.

See discussion here:
  http://mail.python.org/pipermail/python-dev/2007-April/072565.html
2007-04-16 06:59:13 +00:00
Neal Norwitz 8d61db5a00 Revert 54805 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen. 2007-04-16 06:20:14 +00:00
Neal Norwitz 03c566a268 Revert 54813 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen. 2007-04-16 06:19:52 +00:00
Neal Norwitz a4ff44aa26 Revert 54815 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen. 2007-04-16 06:19:32 +00:00
Neal Norwitz 16b7b53ad0 SF #1701207: svnversion_init assertion failed
Revert bogus asserts (added to the wrong place) from rev 52501.

Approved by Anthony.
2007-04-16 06:12:02 +00:00
Kristján Valur Jónsson a30d8bd653 Fix potential crash in path manipulation on windows 2007-04-13 22:21:07 +00:00
Kristján Valur Jónsson 9d9fbb4359 Fix a bug when using the __lltrace__ opcode tracer, and a problem sith signed chars in frameobject.c which can occur with opcodes > 127 2007-04-13 22:09:59 +00:00
Barry Warsaw 9bd522d7d1 Add code to read from master_fd in the parent, breaking when we get an OSError
(EIO can occur on Linux) or there's no more data to read.  Without this,
test_pty.py can hang on the waitpid() because the child is blocking on the
stdout write.  This will definitely happen on Mac OS X and could potentially
happen on other platforms.  See the comment for details.
2007-04-13 16:12:02 +00:00
Andrew M. Kuchling 9df5fa0d91 Describe undocumented third argument to touchline() 2007-04-11 13:47:58 +00:00
Anthony Baxter 2ae2f7549a Tagging for release of Python 2.5.1c1 2007-04-05 06:37:33 +00:00
Neal Norwitz ef4364f3b8 Fix unpack so it works on 64-bit platforms. 2007-04-05 05:06:49 +00:00
Anthony Baxter 9515c96cb0 preparing for 2.5.1c1 2007-04-05 04:52:06 +00:00
Raymond Hettinger b2064d7280 Fix-up error-exits on struct_unpack(). 2007-04-04 21:57:12 +00:00
Raymond Hettinger 3608f0570e Bug #1563759: struct.unpack doens't support buffer protocol objects 2007-04-04 20:32:03 +00:00
Martin v. Löwis 8863544522 Bug #1686475: Support stat'ing open files on Windows again. 2007-04-04 18:30:56 +00:00
Matthias Klose 5d2d2ef1f5 - Fix an off-by-one bug in locale.strxfrm().
Patch taken from http://bugs.debian.org/416934.
2007-04-03 04:39:34 +00:00
Raymond Hettinger 95289052f7 SF #1382213: Tutorial section 9.5.1 ignores MRO for new-style classes 2007-04-03 01:37:56 +00:00
Raymond Hettinger 6a390b34b7 SF 1602378 Clarify docstrings for bisect 2007-04-03 00:01:09 +00:00
Raymond Hettinger d6030acd7f Array module's buffer interface can now handle empty arrays. 2007-04-02 22:39:08 +00:00
Raymond Hettinger 4bbcb64d5d SF #1693079 Array module cannot pickle empty arrays 2007-04-02 17:03:46 +00:00
Neal Norwitz 93e9384402 Backport 54644:
SF #1685563, MSVCCompiler creates redundant and long PATH strings

If MSVCCompiler.initialize() was called multiple times, the path
would get duplicated.  On Windows, this is a problem because the
path is limited to 4k.  There's no benefit in adding a path multiple
times, so prevent that from occuring.  We also normalize the path
before checking for duplicates so things like /a and /a/ won't both
be stored.
2007-04-01 18:29:47 +00:00
Marc-André Lemburg 530698235d Bump the patch level version of distutils since there were a few bug fixes
since the 2.5.0 release.

Backport of r54615.
2007-03-31 21:02:43 +00:00
Georg Brandl 48642d4a0a Bug #1655392: don't add -L/usr/lib/pythonX.Y/config to the LDFLAGS
returned by python-config if Python was built with --enable-shared
because that prevented the shared library from being used.
  (backport from rev. 54634)
2007-03-31 18:58:21 +00:00
Neal Norwitz 65407fb734 Backport 54594:
Fix SF #1688393, sock.recvfrom(-24) crashes

Also fix some method names that were copied incorrectly (trunk fixed).
2007-03-31 18:56:11 +00:00
Andrew M. Kuchling ef9e09e737 Add item 2007-03-30 17:58:16 +00:00
Georg Brandl 7b1be36bb7 In Windows' time.clock(), when QueryPerformanceFrequency() fails,
the C lib's clock() is used, but it must be divided by CLOCKS_PER_SEC
as for the POSIX implementation (thanks to #pypy).
 (backport from rev. 54606)
2007-03-29 12:42:16 +00:00
Žiga Seilnacht 6524573995 Patch #1489771: update syntax rules in Python Reference Manual.
Python 2.5 added support for explicit relative import statements and
yield expressions, which were missing in the manual.
Also fix grammar productions that used the names from the Grammar file,
markup that broke the generated grammar.txt, and wrap some lines that
broke the pdf output.
 (backport from rev. 54559)
2007-03-24 14:27:21 +00:00
Thomas Heller b151f721a9 Prevent creation (followed by a segfault) of array types when the size
overflows the valid Py_ssize_t range.  Check return values of
PyMem_Malloc.

Backported from trunk.
2007-03-23 19:56:45 +00:00
Martin v. Löwis a8ddae6149 Bug #978833: Revert r50844, as it broke _socketobject.dup. 2007-03-23 13:27:29 +00:00
Martin v. Löwis fe048e8ee7 Patch #1686451: Fix return type for PySequence_{Count,Index,Fast_GET_SIZE}. 2007-03-23 10:35:57 +00:00
Thomas Heller 50d1d0bad5 Explain the purpose of the b_needsfree flag. This answers Neals
question (well, two months too late).
2007-03-22 20:33:04 +00:00
Thomas Heller 02b8feea9f Back out "Patch #1643874: memory leak in ctypes fixed."
The code in this patch leaves no way to give up the ownership of a
BSTR instance.
2007-03-22 19:43:37 +00:00
Georg Brandl 4d891193d1 Bug #1685704: use -m switch in timeit docs.
(backport from rev. 54524)
2007-03-22 08:05:53 +00:00
Žiga Seilnacht e5df857cc3 Bug #1675967: re patterns pickled with older Python versions can
now be unpickled.
 (backport form rev. 54492)
2007-03-21 20:37:39 +00:00
Raymond Hettinger 7ed0a65831 Test and fix fromkeys optional argument. 2007-03-21 20:36:45 +00:00
Andrew M. Kuchling e1b4a7e1f9 Add NEWS entry for old item 2007-03-21 16:52:51 +00:00
Georg Brandl 9225f226a3 Bug #1684254: webbrowser now uses shlex to split any command lines
given to get(). It also detects when you use '&' as the last argument
and creates a BackgroundBrowser then.
 (backport -- this is a regression from 2.4 and therefore backported)
2007-03-21 11:52:38 +00:00
Georg Brandl bd9d51321e Patch #1684834: document some utility C API functions.
(backport from rev. 54483)
2007-03-21 09:17:36 +00:00
Georg Brandl 8a10ea4613 Patch #1682205: a TypeError while unpacking an iterable is no longer
masked by a generic one with the message "unpack non-sequence".
 (backport from rev. 54480)
2007-03-21 09:00:55 +00:00
Raymond Hettinger f94e89c578 Extend work on rev 52962 and 53830 eliminating redundant PyObject_Hash() calls and fixing set/dict interoperability. 2007-03-20 21:45:04 +00:00
Raymond Hettinger 42f4cfa9b6 Add new example 2007-03-20 21:12:23 +00:00
Georg Brandl c77f6c6ea4 Backport docs for recv_into and recvfrom_into. 2007-03-18 08:26:23 +00:00
Gregory P. Smith 8e92dd0c9c move note to the correct section 2007-03-17 22:32:49 +00:00
Georg Brandl d20046622a RFE #1670167: fix in isinstance() docs.
(backport from rev. 54409)
2007-03-16 08:33:51 +00:00
Collin Winter 7d9ac78384 Patch #1642547: Fix an error/crash when encountering syntax errors in complex if statements.
Backported from r54404.
2007-03-16 04:12:48 +00:00
Žiga Seilnacht c1b4e8e6e2 Patch #1462488: prevent a segfault in object_reduce_ex() by splitting
the implementation for __reduce__ and __reduce_ex__ into two separate
functions. Fixes bug #931877.
 (backport from rev. 54397)
2007-03-15 11:47:59 +00:00