Commit Graph

36442 Commits

Author SHA1 Message Date
Guido van Rossum 5f4fc831ad This got fixed in r60056. 2008-01-18 23:06:49 +00:00
Guido van Rossum 03706d2db0 Backport r55080:
Fix for #1303614 and #1174712:
- __dict__ descriptor abuse for subclasses of built-in types
- subclassing from both ModuleType and another built-in types
2008-01-18 21:31:32 +00:00
Guido van Rossum d187381b81 Fix an edge case whereby the __del__() method of a classic class could
create a new weakref to the object.
2008-01-18 20:53:37 +00:00
Gregory P. Smith 0f99b71bd0 ** backport r60015 from trunk.
- Issue829951: In the smtplib module, SMTP.starttls() now complies with
  RFC 3207 and forgets any knowledge obtained from the server not obtained
  from the TLS negotiation itself.  Patch contributed by Bill Fenner.
2008-01-17 07:54:47 +00:00
Thomas Heller f43a86b9d7 Backport from trunk:
Fix a potential 'SystemError: NULL result without error'.
  NULL may be a valid return value from PyLong_AsVoidPtr.
Also move an older ctypes NEWS item in the correct category.
2008-01-16 19:24:20 +00:00
Georg Brandl 2e7fde7069 Backport r59999: fix MSDN link. (#1854) 2008-01-16 16:57:19 +00:00
Raymond Hettinger 665ddc9bb3 Fix 1698398: Zipfile.printdir() crashed because the format string expected a tuple object of length six instead of a time.struct_time object. 2008-01-14 23:02:51 +00:00
Thomas Heller b9c741c43c Added NEWS entry, plus:
Merged revisions 59925 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk/Modules/_ctypes

........
  r59925 | thomas.heller | 2008-01-11 20:34:06 +0100 (Fr, 11 Jan 2008) | 5 lines

  Raise an error instead of crashing with a segfault when a NULL
  function pointer is called.

  Will backport to release25-maint.
........
2008-01-11 19:48:46 +00:00
Facundo Batista c5bb868414 Link to external documentation about new style classes was
wrong. Fix issue 1774.
2008-01-09 16:37:02 +00:00
Andrew M. Kuchling 5e2760cc9f Update reference to bug tracker 2008-01-09 12:43:55 +00:00
Mark Dickinson 4a3c7c78fb Add Decimal backport to Misc/NEWS 2008-01-09 01:02:07 +00:00
Mark Dickinson d77fedc745 Fix Decimal hash in Python 2.5 maintenance branch so that hash(x) == hash(int(x))
for any integral Decimal instance x.
2008-01-08 21:42:03 +00:00
Facundo Batista 5dfc48060b Decimal module and test cases were updated to their state of
the art.  It now complies latest specification and tests.

The only difference of this version with the one in the trunk
is that a small subset that hash tests were removed, because
they rely on modifications to core hash() function (see
issue 1182 for further details).
2008-01-08 16:20:31 +00:00
Andrew M. Kuchling 7a062c6dca Patch 1114: fix compilation of curses module on 64-bit AIX, and any other LP64 platforms where attr_t isn't a C long 2008-01-08 14:58:52 +00:00
Martin v. Löwis 85cbabfde9 Fix bug tracker link. 2008-01-07 22:46:22 +00:00
Facundo Batista d0dcbc4ba2 Backport of issue 1755179 fix. 2008-01-07 16:49:02 +00:00
Guido van Rossum 6e3e6e0d77 Forgot to backport the rest of #1637. 2008-01-06 02:40:07 +00:00
Guido van Rossum 81728cf4c9 Backport r59758.
Patch #1637: fix urlparse for URLs like 'http://x.com?arg=/foo'.
Fix by John Nagle.
2008-01-05 23:34:38 +00:00
Guido van Rossum 62bceeccdd Backport r57216 (see issue #1731).
Add a hack (originally devised in a slightly different form by Thomas Wouters)
to prevent spurious tracebacks when a daemon thread's cleanup happens to wake
up when the world around it has already been destroyed.

This also backports other small changes to this file, essentially making
it identical to the trunk version.
2008-01-04 19:06:02 +00:00
Andrew M. Kuchling b234ceb1ac Update links to bug/patch tracker 2008-01-04 14:47:42 +00:00
Lars Gustäbel e5f9e588c6 Issue #1735: TarFile.extractall() now correctly sets directory
permissions and times.

(backport from r59712)
2008-01-04 14:44:23 +00:00
Christian Heimes 12f03ccece Bug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint. 2008-01-04 13:22:36 +00:00
Guido van Rossum 3b4a5bd9da Fix bug #1301 -- a bad assert in _tkinter. 2008-01-03 23:52:04 +00:00
Guido van Rossum 6df9a82bd3 Issue #1700, reported by Nguyen Quan Son, fix by Fredruk Lundh:
Regular Expression inline flags not handled correctly for some unicode
characters.
2008-01-03 19:08:15 +00:00
Guido van Rossum 309e241881 Add some news items I missed. Careful inspection of the svn log output
reveals that a lot more are missing.  If you checked anything into the
2.5.2 branch without updating Misc/NEWS, please correct your mistake!
2008-01-03 18:57:40 +00:00
Guido van Rossum 9b1f5a4740 Patch #1696. Don't attempt to call None.close() in dry-run mode. 2008-01-02 18:59:36 +00:00
Martin v. Löwis ff36b2ce00 Bug #1699: Define _BSD_SOURCE only on OpenBSD. 2007-12-29 18:48:57 +00:00
Brett Cannon 35b84b4123 Backport of fix for issue 1695. 2007-12-24 20:00:42 +00:00
Thomas Heller 4f1cbd27b4 Change ctypes version number to 1.0.3 (when Python 2.5.2 is released,
ctypes 1.0.3 will be also be released).
2007-12-19 17:22:34 +00:00
Christian Heimes c2b0d17b31 Fixed merge glitch, second try 2007-12-18 22:03:10 +00:00
Christian Heimes 3880210545 Fixed merge glitch 2007-12-18 22:00:19 +00:00
Christian Heimes 60d96cd54c Backport of #1638: %zd configure test fails on Linux 2007-12-18 21:14:54 +00:00
Thomas Heller 8e9e4d8f95 Issue #1642: Fix segfault in ctypes when trying to delete attributes. 2007-12-18 19:00:59 +00:00
Georg Brandl 52550e593d Add a note about future import needed for with statement. 2007-12-15 09:36:15 +00:00
Thomas Heller caff05d26b Regenerated with autoconf. 2007-12-14 06:58:04 +00:00
Guido van Rossum d4029c8fda Bug #1608: use -fwrapv when GCC supports it. This is important, newer
GCC versions may optimize away overflow buffer overflow checks without
this option!  Thanks to Ismail Donmez.  No thanks to the GCC devs.
2007-12-13 20:42:33 +00:00
Alexandre Vassalotti 483704508d Backport r59480.
Fix issue #1313119.
2007-12-13 18:18:47 +00:00
Guido van Rossum 47485a49f0 Backport patch #1643738. 2007-12-10 23:03:55 +00:00
Ronald Oussoren de39bd3f27 This is a backport of the fix in rev. 59369.
This patch doesn't remove the wrappers for OSADebug* API's but only defines
them when configure detects that the API's are present in the system's
header files.
2007-12-05 20:43:57 +00:00
Christian Heimes 03acd85dbf merge -r59315:59316 from py3k: Fix issue #1553: An errornous __length_hint__ can make list() raise a SystemError 2007-12-05 12:51:23 +00:00
Martin v. Löwis c8dbc92395 os.access now returns True on Windows for any existing directory. 2007-12-03 22:39:10 +00:00
Lars Gustäbel 7cc9c8bbe1 Issue #1531: Read fileobj from the current offset, do not seek to
the start.

(backport from r59260)
2007-12-01 21:06:06 +00:00
Amaury Forgeot d'Arc 8334a4fc31 Backport of r59241: str.decode fails on very long strings on 64bit platforms.
PyArgs_ParseTuple t# and w# formats truncated the lengths to 32bit.
2007-11-30 21:53:17 +00:00
Georg Brandl a5463ab7de Spaces vs. Tabs.
(backport from rev. 59224)
2007-11-29 18:33:04 +00:00
Guido van Rossum dbe97b38be Fix bug #1517, a possible segfault in lookup(). 2007-11-29 18:23:48 +00:00
Gerhard Häring 14fbf29692 - Backported a workaround for a bug in SQLite 3.2.x/3.3.x versions where a
statement recompilation with no bound parameters lead to a segfault
- Backported a fix necessary because of an SQLite API change in version 3.5.
  This prevents segfaults when executing empty queries, like our test suite
  does.
2007-11-25 17:40:35 +00:00
Skip Montanaro 664ad76a34 back in these go - thanks to Titus Brown for the fix 2007-11-24 14:31:16 +00:00
Amaury Forgeot d'Arc 30f61cbb13 Issue #1445: Fix a SystemError when accessing the ``cell_contents``
attribute of an empty cell object.  Now a ValueError is raised.

Backport of r59170.
2007-11-24 13:53:29 +00:00
Skip Montanaro 9163783881 revert 2007-11-24 04:31:07 +00:00
Skip Montanaro fb80cd91a8 revert change that breaks test_doctest (which I forgot to run - sorry) 2007-11-24 04:29:52 +00:00