Christian Heimes
5e8e6d2454
MS Windows doesn't have mode_t but stat.st_mode is defined as unsigned short.
2008-02-23 23:59:45 +00:00
Georg Brandl
4425e7cee7
Specify what kind of warning -3 emits.
2008-02-23 23:43:01 +00:00
Georg Brandl
f1699cd4c1
Document import ./. threading issues. #1720705 .
2008-02-23 23:25:26 +00:00
Georg Brandl
ebcfd11c16
#1506171 : added operator.methodcaller().
2008-02-23 23:04:35 +00:00
Georg Brandl
e2065c65d3
#1826 : allow dotted attribute paths in operator.attrgetter.
2008-02-23 23:02:23 +00:00
Georg Brandl
b0b0317ba2
#1825 : correctly document msilib.add_data.
2008-02-23 22:55:18 +00:00
Facundo Batista
c12b9888f7
Added simple test case. Thanks Benjamin Peterson.
2008-02-23 22:54:12 +00:00
Georg Brandl
0bb8567e1e
In test_heapq and test_bisect, test both the Python and the C implementation.
...
Originally written for GHOP by Josip Dzolonga, heavily patched by me.
2008-02-23 22:35:33 +00:00
Georg Brandl
c76ea27965
Use os.closerange().
2008-02-23 22:14:02 +00:00
Georg Brandl
8d01bb2b19
Use os.closerange() in popen2.
2008-02-23 22:09:24 +00:00
Georg Brandl
ffada76d04
Add examples to modulefinder docs. Written for GHOP by Josip Dzolonga.
2008-02-23 22:05:38 +00:00
Georg Brandl
7d009926ad
#2101 : fix removeAttribute docs.
2008-02-23 21:59:11 +00:00
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