Jeffrey Yasskin
a885c1521a
Followup to r61011: Also avoid the reference cycle when the Thread's target
...
raises an exception.
2008-02-23 20:40:35 +00:00
Jeffrey Yasskin
3414ea9ed9
Prevent classes like:
...
class RunSelfFunction(object):
def __init__(self):
self.thread = threading.Thread(target=self._run)
self.thread.start()
def _run(self):
pass
from creating a permanent cycle between the object and the thread by having the
Thread delete its references to the object when it completes.
As an example of the effect of this bug, paramiko.Transport inherits from
Thread to avoid it.
2008-02-23 19:40:54 +00:00
Andrew M. Kuchling
1beea27299
#1389051 , #1092502 : fix excessively large allocations when using read() on a socket
2008-02-23 19:28:58 +00:00
Andrew M. Kuchling
1219a80989
#1389051 : IMAP module tries to read entire message in one chunk. Patch by Fredrik Lundh.
2008-02-23 19:02:33 +00:00
Georg Brandl
1704828098
Documentation coverage builder, part 1.
2008-02-23 18:47:04 +00:00
Christian Heimes
4034685a58
Issue #2051 and patch from Alexander Belopolsky:
...
Permission for pyc and pyo files are inherited from the py file.
2008-02-23 17:52:07 +00:00
Christian Heimes
f0476e8169
Patch #1957 : syslogmodule: Release GIL when calling syslog(3)
2008-02-23 17:42:31 +00:00
Christian Heimes
c5f05e45cf
Patch #2167 from calvin: Remove unused imports
2008-02-23 17:40:11 +00:00
Andrew M. Kuchling
19aff0c90a
#1433694 : minidom's .normalize() failed to set .nextSibling for last element.
...
Fix by Malte Helmert
2008-02-23 17:10:46 +00:00
Andrew M. Kuchling
8887e54867
#835521 : Add index entries for various pickle-protocol methods and attributes
2008-02-23 16:39:43 +00:00
Andrew M. Kuchling
085f75a851
#1330538 : Improve comparison of xmlrpclib.DateTime and datetime instances.
...
Remove automatic handling of datetime.date and datetime.time.
This breaks backward compatibility, but python-dev discussion was strongly
against this automatic conversion; see the bug for a link.
2008-02-23 16:23:05 +00:00
Eric Smith
8328bbc57d
Removed duplicate Py_CHARMASK define. It's already defined in Python.h.
2008-02-23 16:05:26 +00:00
Andrew M. Kuchling
322349e31b
#1119331 : ncurses will just call exit() if the terminal name isn't found.
...
Call setupterm() first so that we get a Python exception instead of just existing.
2008-02-23 15:49:35 +00:00
Georg Brandl
5972493383
#2161 : Fix opcode name.
2008-02-23 15:43:48 +00:00
Andrew M. Kuchling
b678f98511
#2072 : correct documentation for .rpc_paths
2008-02-23 15:41:51 +00:00
Georg Brandl
080b094d20
More difflib examples. Written for GHOP by Josip Dzolonga.
2008-02-23 15:19:54 +00:00
Georg Brandl
ad61bc8d9b
#2067 : file.__exit__() now calls subclasses' close() method.
2008-02-23 15:11:18 +00:00
Facundo Batista
7e251e83d5
Issue 1089358. Adds the siginterrupt() function, that is just a
...
wrapper around the system call with the same name. Also added
test cases, doc changes and NEWS entry. Thanks Jason and Ralf
Schmitt.
2008-02-23 15:07:35 +00:00
Georg Brandl
57826cf9f8
#2165 : fix test_logging failure on some machines.
2008-02-23 15:06:25 +00:00
Georg Brandl
1647923bbf
#1492 : allow overriding BaseHTTPServer's content type for error messages.
2008-02-23 15:02:28 +00:00
Christian Heimes
5224d28d38
Patch #1759 : Backport of PEP 3129 class decorators
...
with some help from Georg
2008-02-23 15:01:05 +00:00
Facundo Batista
b12f0b581a
Issue 1781. Now ConfigParser.add_section does not let you add a
...
DEFAULT section any more, because it duplicated sections with
the rest of the machinery. Thanks Tim Lesher and Manuel Kaufmann.
2008-02-23 12:46:10 +00:00
Facundo Batista
1660933d23
Issue 1776581. Minor corrections to smtplib, and two small tests.
...
Thanks Alan McIntyre.
2008-02-23 12:27:17 +00:00
Facundo Batista
fc2d01032f
Issue 1881. Increased the stack limit from 500 to 1500. Also added
...
a test for this (and because of this test you'll see in stderr a
message that parser.c sends before raising MemoryError).
Thanks Ralf Schmitt.
2008-02-23 12:01:13 +00:00
Raymond Hettinger
7832d4d534
Add recipe using itertools.product().
2008-02-23 10:04:15 +00:00
Raymond Hettinger
532316dfa6
Add more comments
2008-02-23 04:03:50 +00:00
Eric Smith
a73fbe791d
Added future_builtins, which contains PEP 3127 compatible versions of hex() and oct().
2008-02-23 03:09:44 +00:00
Raymond Hettinger
73d7963242
Improve the implementation of itertools.product()
...
* Fix-up issues pointed-out by Neal Norwitz.
* Add extensive comments.
* The lz->result variable is now a tuple instead of a list.
* Use fast macro getitem/setitem calls so most code is in-line.
* Re-use the result tuple if available (modify in-place instead of copy).
2008-02-23 02:20:41 +00:00
Raymond Hettinger
c5705a823b
Document itertools.product().
2008-02-22 19:50:06 +00:00
Eric Smith
fb0742fe4f
Tests for bin() builtin. These need to get merged into py3k, which has no tests for bin.
2008-02-22 17:43:17 +00:00
Eric Smith
3cd8194b9c
Added bin() builtin. I'm going to check in the tests in a seperate checkin, because the builtin doesn't need to be ported to py3k, but the tests are missing in py3k and need to be merged there.
2008-02-22 16:30:22 +00:00
Georg Brandl
1699db145f
Another fix.
2008-02-22 12:57:05 +00:00
Georg Brandl
4e37c66262
Don't reference pyshell.
2008-02-22 12:56:34 +00:00
Georg Brandl
907a720f89
A lot more typo fixes by Ori Avtalion.
2008-02-22 12:31:45 +00:00
Nick Coghlan
a14a4e8b84
Try to make command line error messages from runpy easier to understand (and suppress traceback cruft from the implicitly invoked runpy machinery)
2008-02-22 10:54:06 +00:00
Raymond Hettinger
50986cc45b
First draft for itertools.product(). Docs and other updates forthcoming.
2008-02-22 03:16:42 +00:00
Georg Brandl
12db865a64
Part of #2154 : minimal syntax fixes in doc example snippets.
2008-02-21 20:38:13 +00:00
Georg Brandl
359b9e994b
#2079 : typo in userdict docs.
2008-02-21 20:33:38 +00:00
Eric Smith
ce584d420d
Moved test_format into the correct TestCase.
2008-02-21 20:17:08 +00:00
Guido van Rossum
af16ece18e
Fix a few typos and layout glitches (more work is needed).
...
Move 2.5 news to Misc/HISTORY.
2008-02-21 19:46:35 +00:00
Raymond Hettinger
31ce5cb989
Update more instances of has_key().
2008-02-21 19:24:53 +00:00
Thomas Heller
8982cf5484
Replace 'has_key()' with 'in'.
...
Replace 'raise Error, stuff' with 'raise Error(stuff)'.
2008-02-21 18:52:20 +00:00
Thomas Heller
981f31860b
configure.ac: Remove the configure check for _Bool, it is already done in the
...
top-level Python configure script.
configure, fficonfig.h.in: regenerated.
2008-02-21 18:28:48 +00:00
Guido van Rossum
8bc0965adf
Removed uses of dict.has_key() from distutils, and uses of
...
callable() from copy_reg.py, so the interpreter now starts up
without warnings when '-3' is given. More work like this needs to
be done in the rest of the stdlib.
2008-02-21 18:18:37 +00:00
Guido van Rossum
b5e2684a1a
Remove news about float repr() -- issue 1580 is still in limbo.
2008-02-21 17:46:16 +00:00
Andrew M. Kuchling
2d6c13e733
Close manifest file.
...
This change doesn't make any difference to CPython, but is a necessary fix for Jython.
2008-02-21 14:23:38 +00:00
Eric Smith
8a803dd94b
Now that PyOS_ascii_formatd supports the 'n' format, simplify the float formatting code to just call it.
2008-02-20 23:39:28 +00:00
Eric Smith
7ef40bf9c7
Trim leading zeros from a floating point exponent, per C99. See issue 1600. As far as I know, this only affects Windows. Add float type 'n' to PyOS_ascii_formatd (see PEP 3101 for 'n' description).
2008-02-20 23:34:22 +00:00
Georg Brandl
e1b8e9c666
Fixes contributed by Ori Avtalion.
2008-02-20 19:12:36 +00:00
Eric Smith
5a3c135e17
Added PEP 3101.
2008-02-19 13:21:56 +00:00