Raymond Hettinger
3dc3484ac8
SF bug #892492 : Multiple close() for asyncore.dispatcher.
...
(Contributed by Alexey Klimkin.)
Don't keep the file descriptor after the channel is deleted.
2004-02-08 11:32:50 +00:00
Raymond Hettinger
204b000610
Revert improvement to list.append() checked in before it was ready.
2004-02-08 11:08:52 +00:00
Raymond Hettinger
06353f76be
Let reversed() work with itself.
2004-02-08 10:49:42 +00:00
Jim Fulton
8a1a594590
Fixed a bug in object.__reduce_ex__ (reduce_2) when using protocol
...
2. Failure to clear the error when attempts to get the __getstate__
attribute fail caused intermittent errors and odd behavior.
2004-02-08 04:21:26 +00:00
Raymond Hettinger
ee33b27ef0
Make deque.rotate() smarter. Beef-up related tests.
2004-02-08 04:05:26 +00:00
Barry Warsaw
3b6d025d9b
Patch #868499 , adds -T option for code coverage. The implementation is a
...
fairly simpleminded adaptation of Zope3's test.py -T flag.
I also changed some booleans to use True/False where appropriate.
2004-02-07 22:43:03 +00:00
Raymond Hettinger
5c5eb86347
* Incorporate Skip's suggestions for documentation (explain the word deque
...
comes from and show the differences from lists).
* Add a rotate() method.
2004-02-07 21:13:00 +00:00
Skip Montanaro
b31764837d
no longer support linux1 platform
2004-02-07 20:03:34 +00:00
Skip Montanaro
b23b7698cc
no longer support sunos4 platform
2004-02-07 20:01:11 +00:00
Skip Montanaro
db6080507d
Remove support for --without-universal-newlines (see PEP 11).
2004-02-07 13:53:46 +00:00
Skip Montanaro
f1afe6682c
Remove support for systems defining Py_PTHREAD_D[467] in
...
Python/thread_pthread.h.
2004-02-07 13:00:18 +00:00
Skip Montanaro
7e11a016e6
Remove HAVE_STRPTIME - no longer necessary with the pure Python version of
...
time.strptime().
2004-02-07 12:55:46 +00:00
Skip Montanaro
7209294112
a couple other sunos4 support items removed
2004-02-07 12:50:19 +00:00
Raymond Hettinger
ac093c6af0
Use collection.deque() instead of a list for a FIFO queue.
2004-02-07 03:19:10 +00:00
Raymond Hettinger
c058fd14a9
* Fix ref counting in extend() and extendleft().
...
* Let deques support reversed().
2004-02-07 02:45:22 +00:00
Raymond Hettinger
b5ba8d749d
Lists work better when popping from the right.
2004-02-07 02:16:24 +00:00
Raymond Hettinger
3ba85c2e8a
Have deques support high volume loads.
2004-02-06 19:04:56 +00:00
Raymond Hettinger
1dd8309246
SF patch #864059 : optimize eval_frame
...
Simplified version of Neal Norwitz's patch which adds gotos for
opcodes that set "why". This skips a number of tests where the
outcome of the tests are known in advance.
2004-02-06 18:32:33 +00:00
Walter Dörwald
7dcf9f89d3
Fix test failure message (from SF patch #885008 )
2004-02-06 18:30:31 +00:00
Hye-Shik Chang
0a83778572
Back rev 1.3 out per Raymond's request.
2004-02-06 04:40:56 +00:00
Fred Drake
228765b0e1
added notes about weakref changes
2004-02-06 04:15:22 +00:00
Hye-Shik Chang
d310f13cd2
Simple is better than complex.
2004-02-06 02:52:15 +00:00
Walter Dörwald
cd736e71a3
Fix reallocation bug in unicode.translate(): The code was comparing
...
characters instead of character pointers to determine space requirements.
2004-02-05 17:36:00 +00:00
Fred Drake
bc875f5a36
Allocating a new weakref object can cause existing weakref objects for
...
the same object to be collected by the cyclic GC support if they are
only referenced by a cycle. If the weakref being collected was one of
the weakrefs without callbacks, some local variables for the
constructor became invalid and have to be re-computed.
The test caused a segfault under a debug build without the fix applied.
2004-02-04 23:14:14 +00:00
Fred Drake
21ae4f983e
minor markup adjustments
2004-02-03 20:55:15 +00:00
Fred Drake
ea2adc9c80
- add tests that exercise fixes for the PyWeakref_NewRef() and
...
PyWeakref_NewProxy() constructors from the C API
- elaborate the getweakrefcount() and getweakrefs() tests slightly
2004-02-03 19:56:46 +00:00
Fred Drake
6a2852cd48
Fix bug in interpretation of the "callback" argument in the constructors for
...
weakref ref and proxy objects; None was not being treated as identical to
NULL, though it was documented as equivalent.
2004-02-03 19:52:56 +00:00
Fred Drake
4458ece4d7
Clarify minor point about the ref() and proxy() constructors.
...
This matches what is already documented for corresponding feature of the C API.
2004-02-03 19:44:26 +00:00
Hye-Shik Chang
ff83c2bacc
Fix input() builtin function to respect compiler flags.
...
(SF patch 876178, patch by mwh, unittest by perky)
2004-02-02 13:39:01 +00:00
Hye-Shik Chang
96c44658b9
Add FreeBSD support for bluetooth sockets. (SF Patch #888148 )
2004-02-02 08:48:45 +00:00
Hye-Shik Chang
81268608bf
Add FreeBSD support for bluetooth sockets.
...
(SF Patch #888148 , reviewed by loewis)
2004-02-02 06:05:24 +00:00
Martin v. Löwis
e2879c34a1
Add collectionsmodule.c.
...
Don't link with largeint.lib anymore.
2004-02-01 18:02:48 +00:00
Martin v. Löwis
12af0485f8
Patch #874083 : Bluetooth support for socket module.
2004-01-31 12:34:17 +00:00
Fred Drake
4d205e366c
update dependency information
2004-01-29 15:13:08 +00:00
Raymond Hettinger
dd256d97cc
Add documentation for collections.deque().
2004-01-29 07:35:45 +00:00
Raymond Hettinger
d0814eb7fe
Fix spelling.
2004-01-29 07:29:32 +00:00
Raymond Hettinger
e52f3b1e56
Add documentation for collections.deque().
2004-01-29 07:27:45 +00:00
Raymond Hettinger
756b3f3c15
* Move collections.deque() in from the sandbox
...
* Add unittests, newsitem, and whatsnew
* Apply to Queue.py mutex.py threading.py pydoc.py and shlex.py
* Docs are forthcoming
2004-01-29 06:37:52 +00:00
Hye-Shik Chang
141d4e5643
Add missed entry for cjkcodecs._iso_2022_kr.
2004-01-28 09:03:28 +00:00
Fred Drake
bd12b181c8
fix whitespace style (inconsistent with the rest of the docs)
2004-01-27 21:08:04 +00:00
Brett Cannon
fb5a4e33fb
Removed two unneeded lines from PyObject_Compare().
...
Closes bug #885293 (thanks, Josiah Carlson).
2004-01-27 20:17:54 +00:00
Fred Drake
fcc51767bd
update signature of the socket constructor
...
(could someone backport this to Python 2.3.x please?)
2004-01-27 18:21:26 +00:00
Armin Rigo
76beca957f
Two forgotten Py_DECREF() for two out-of-memory conditions.
2004-01-27 16:08:07 +00:00
Skip Montanaro
d5a21fd387
add hotshotmain ref
2004-01-27 14:49:04 +00:00
Skip Montanaro
f91c59a06b
add hotshotmain.py ref
2004-01-27 14:47:23 +00:00
Skip Montanaro
4aba6f51cb
The bagpipe didn't say "no" (*), so here's a main program script useful for
...
running an application under hotshot's control. Only slightly embellished
from what Walter Dörwald posted to python-dev.
(*) http://www.icdc.com/~roadkill/silverstein/turtle.html
2004-01-26 19:44:48 +00:00
Fred Drake
ee3c6074c3
add missing period
2004-01-26 19:40:18 +00:00
Fred Drake
913829cb1d
fix markup
2004-01-26 19:39:13 +00:00
Skip Montanaro
db8d1c26d3
add references between getopt and optparse docs
2004-01-26 19:30:21 +00:00
Fred Drake
4e9e7a6140
don't wrap lines too late by default
...
closes SF bug #842213
2004-01-26 16:42:30 +00:00