]> granicus.if.org Git - python/log
python
21 years agoSF patch #892821: example for urllib2 has SyntaxError
Raymond Hettinger [Sun, 8 Feb 2004 20:25:01 +0000 (20:25 +0000)]
SF patch #892821: example for urllib2 has SyntaxError
(Contributed by George Yoshida.)

21 years agoFix misspelled name.
Raymond Hettinger [Sun, 8 Feb 2004 20:18:26 +0000 (20:18 +0000)]
Fix misspelled name.

21 years agoFix typo
Raymond Hettinger [Sun, 8 Feb 2004 20:05:40 +0000 (20:05 +0000)]
Fix typo

21 years agoSF patch #884022: dynamic execution profiling vs opcode prediction
Raymond Hettinger [Sun, 8 Feb 2004 19:59:27 +0000 (19:59 +0000)]
SF patch #884022:  dynamic execution profiling vs opcode prediction
(Contributed by Andrew I MacIntyre.)

disables opcode prediction when dynamic execution
profiling is in effect, so the profiling counters at
the top of the main interpreter loop in eval_frame()
are updated for each opcode.

21 years agoSF patch #880552: Fix typo in usage message(prechm.py)
Raymond Hettinger [Sun, 8 Feb 2004 19:24:18 +0000 (19:24 +0000)]
SF patch #880552:  Fix typo in usage message(prechm.py)
(Contributed by George Yoshida.)

* Also convert tabs to spaces.

21 years agoSF patch #875689: >100k alloc wasted on startup
Raymond Hettinger [Sun, 8 Feb 2004 18:54:37 +0000 (18:54 +0000)]
SF patch #875689: >100k alloc wasted on startup
(Contributed by Mike Pall.)

Make sure fill_free_list() is called only once rather than 106 times
when pre-allocating small ints.

21 years agoSF bug #892854: typo in textwrap doc page
Raymond Hettinger [Sun, 8 Feb 2004 18:09:32 +0000 (18:09 +0000)]
SF bug #892854:  typo in textwrap doc page
(Reported by Drew Perttula.)

21 years agoSF bug #892492: Multiple close() for asyncore.dispatcher.
Raymond Hettinger [Sun, 8 Feb 2004 11:32:50 +0000 (11:32 +0000)]
SF bug #892492:  Multiple close() for asyncore.dispatcher.
(Contributed by Alexey Klimkin.)

Don't keep the file descriptor after the channel is deleted.

21 years agoRevert improvement to list.append() checked in before it was ready.
Raymond Hettinger [Sun, 8 Feb 2004 11:08:52 +0000 (11:08 +0000)]
Revert improvement to list.append() checked in before it was ready.

21 years agoLet reversed() work with itself.
Raymond Hettinger [Sun, 8 Feb 2004 10:49:42 +0000 (10:49 +0000)]
Let reversed() work with itself.

21 years agoFixed a bug in object.__reduce_ex__ (reduce_2) when using protocol
Jim Fulton [Sun, 8 Feb 2004 04:21:26 +0000 (04:21 +0000)]
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.

21 years agoMake deque.rotate() smarter. Beef-up related tests.
Raymond Hettinger [Sun, 8 Feb 2004 04:05:26 +0000 (04:05 +0000)]
Make deque.rotate() smarter.  Beef-up related tests.

21 years agoPatch #868499, adds -T option for code coverage. The implementation is a
Barry Warsaw [Sat, 7 Feb 2004 22:43:03 +0000 (22:43 +0000)]
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.

21 years ago* Incorporate Skip's suggestions for documentation (explain the word deque
Raymond Hettinger [Sat, 7 Feb 2004 21:13:00 +0000 (21:13 +0000)]
* Incorporate Skip's suggestions for documentation  (explain the word deque
  comes from and show the differences from lists).
* Add a rotate() method.

21 years agono longer support linux1 platform
Skip Montanaro [Sat, 7 Feb 2004 20:03:34 +0000 (20:03 +0000)]
no longer support linux1 platform

21 years agono longer support sunos4 platform
Skip Montanaro [Sat, 7 Feb 2004 20:01:11 +0000 (20:01 +0000)]
no longer support sunos4 platform

21 years agoRemove support for --without-universal-newlines (see PEP 11).
Skip Montanaro [Sat, 7 Feb 2004 13:53:46 +0000 (13:53 +0000)]
Remove support for --without-universal-newlines (see PEP 11).

21 years agoRemove support for systems defining Py_PTHREAD_D[467] in
Skip Montanaro [Sat, 7 Feb 2004 13:00:18 +0000 (13:00 +0000)]
Remove support for systems defining Py_PTHREAD_D[467] in
Python/thread_pthread.h.

21 years agoRemove HAVE_STRPTIME - no longer necessary with the pure Python version of
Skip Montanaro [Sat, 7 Feb 2004 12:55:46 +0000 (12:55 +0000)]
Remove HAVE_STRPTIME - no longer necessary with the pure Python version of
time.strptime().

21 years agoa couple other sunos4 support items removed
Skip Montanaro [Sat, 7 Feb 2004 12:50:19 +0000 (12:50 +0000)]
a couple other sunos4 support items removed

21 years agoUse collection.deque() instead of a list for a FIFO queue.
Raymond Hettinger [Sat, 7 Feb 2004 03:19:10 +0000 (03:19 +0000)]
Use collection.deque() instead of a list for a FIFO queue.

21 years ago* Fix ref counting in extend() and extendleft().
Raymond Hettinger [Sat, 7 Feb 2004 02:45:22 +0000 (02:45 +0000)]
* Fix ref counting in extend() and extendleft().
* Let deques support reversed().

21 years agoLists work better when popping from the right.
Raymond Hettinger [Sat, 7 Feb 2004 02:16:24 +0000 (02:16 +0000)]
Lists work better when popping from the right.

21 years agoHave deques support high volume loads.
Raymond Hettinger [Fri, 6 Feb 2004 19:04:56 +0000 (19:04 +0000)]
Have deques support high volume loads.

21 years agoSF patch #864059: optimize eval_frame
Raymond Hettinger [Fri, 6 Feb 2004 18:32:33 +0000 (18:32 +0000)]
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.

21 years agoFix test failure message (from SF patch #885008)
Walter Dörwald [Fri, 6 Feb 2004 18:30:31 +0000 (18:30 +0000)]
Fix test failure message (from SF patch #885008)

21 years agoBack rev 1.3 out per Raymond's request.
Hye-Shik Chang [Fri, 6 Feb 2004 04:40:56 +0000 (04:40 +0000)]
Back rev 1.3 out per Raymond's request.

21 years agoadded notes about weakref changes
Fred Drake [Fri, 6 Feb 2004 04:15:22 +0000 (04:15 +0000)]
added notes about weakref changes

21 years agoSimple is better than complex.
Hye-Shik Chang [Fri, 6 Feb 2004 02:52:15 +0000 (02:52 +0000)]
Simple is better than complex.

21 years agoFix reallocation bug in unicode.translate(): The code was comparing
Walter Dörwald [Thu, 5 Feb 2004 17:36:00 +0000 (17:36 +0000)]
Fix reallocation bug in unicode.translate(): The code was comparing
characters instead of character pointers to determine space requirements.

21 years agoAllocating a new weakref object can cause existing weakref objects for
Fred Drake [Wed, 4 Feb 2004 23:14:14 +0000 (23:14 +0000)]
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.

21 years agominor markup adjustments
Fred Drake [Tue, 3 Feb 2004 20:55:15 +0000 (20:55 +0000)]
minor markup adjustments

21 years ago- add tests that exercise fixes for the PyWeakref_NewRef() and
Fred Drake [Tue, 3 Feb 2004 19:56:46 +0000 (19:56 +0000)]
- add tests that exercise fixes for the PyWeakref_NewRef() and
  PyWeakref_NewProxy() constructors from the C API
- elaborate the getweakrefcount() and getweakrefs() tests slightly

21 years agoFix bug in interpretation of the "callback" argument in the constructors for
Fred Drake [Tue, 3 Feb 2004 19:52:56 +0000 (19:52 +0000)]
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.

21 years agoClarify minor point about the ref() and proxy() constructors.
Fred Drake [Tue, 3 Feb 2004 19:44:26 +0000 (19:44 +0000)]
Clarify minor point about the ref() and proxy() constructors.
This matches what is already documented for corresponding feature of the C API.

21 years agoFix input() builtin function to respect compiler flags.
Hye-Shik Chang [Mon, 2 Feb 2004 13:39:01 +0000 (13:39 +0000)]
Fix input() builtin function to respect compiler flags.
(SF patch 876178, patch by mwh, unittest by perky)

21 years agoAdd FreeBSD support for bluetooth sockets. (SF Patch #888148)
Hye-Shik Chang [Mon, 2 Feb 2004 08:48:45 +0000 (08:48 +0000)]
Add FreeBSD support for bluetooth sockets. (SF Patch #888148)

21 years agoAdd FreeBSD support for bluetooth sockets.
Hye-Shik Chang [Mon, 2 Feb 2004 06:05:24 +0000 (06:05 +0000)]
Add FreeBSD support for bluetooth sockets.
(SF Patch #888148, reviewed by loewis)

21 years agoAdd collectionsmodule.c.
Martin v. Löwis [Sun, 1 Feb 2004 18:02:48 +0000 (18:02 +0000)]
Add collectionsmodule.c.
Don't link with largeint.lib anymore.

21 years agoPatch #874083: Bluetooth support for socket module.
Martin v. Löwis [Sat, 31 Jan 2004 12:34:17 +0000 (12:34 +0000)]
Patch #874083: Bluetooth support for socket module.

21 years agoupdate dependency information
Fred Drake [Thu, 29 Jan 2004 15:13:08 +0000 (15:13 +0000)]
update dependency information

21 years agoAdd documentation for collections.deque().
Raymond Hettinger [Thu, 29 Jan 2004 07:35:45 +0000 (07:35 +0000)]
Add documentation for collections.deque().

21 years agoFix spelling.
Raymond Hettinger [Thu, 29 Jan 2004 07:29:32 +0000 (07:29 +0000)]
Fix spelling.

21 years agoAdd documentation for collections.deque().
Raymond Hettinger [Thu, 29 Jan 2004 07:27:45 +0000 (07:27 +0000)]
Add documentation for collections.deque().

21 years ago* Move collections.deque() in from the sandbox
Raymond Hettinger [Thu, 29 Jan 2004 06:37:52 +0000 (06:37 +0000)]
* 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

21 years agoAdd missed entry for cjkcodecs._iso_2022_kr.
Hye-Shik Chang [Wed, 28 Jan 2004 09:03:28 +0000 (09:03 +0000)]
Add missed entry for cjkcodecs._iso_2022_kr.

21 years agofix whitespace style (inconsistent with the rest of the docs)
Fred Drake [Tue, 27 Jan 2004 21:08:04 +0000 (21:08 +0000)]
fix whitespace style (inconsistent with the rest of the docs)

21 years agoRemoved two unneeded lines from PyObject_Compare().
Brett Cannon [Tue, 27 Jan 2004 20:17:54 +0000 (20:17 +0000)]
Removed two unneeded lines from PyObject_Compare().

Closes bug #885293 (thanks, Josiah Carlson).

21 years agoupdate signature of the socket constructor
Fred Drake [Tue, 27 Jan 2004 18:21:26 +0000 (18:21 +0000)]
update signature of the socket constructor
(could someone backport this to Python 2.3.x please?)

21 years agoTwo forgotten Py_DECREF() for two out-of-memory conditions.
Armin Rigo [Tue, 27 Jan 2004 16:08:07 +0000 (16:08 +0000)]
Two forgotten Py_DECREF() for two out-of-memory conditions.

21 years agoadd hotshotmain ref
Skip Montanaro [Tue, 27 Jan 2004 14:49:04 +0000 (14:49 +0000)]
add hotshotmain ref

21 years agoadd hotshotmain.py ref
Skip Montanaro [Tue, 27 Jan 2004 14:47:23 +0000 (14:47 +0000)]
add hotshotmain.py ref

21 years agoThe bagpipe didn't say "no" (*), so here's a main program script useful for
Skip Montanaro [Mon, 26 Jan 2004 19:44:48 +0000 (19:44 +0000)]
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

21 years agoadd missing period
Fred Drake [Mon, 26 Jan 2004 19:40:18 +0000 (19:40 +0000)]
add missing period

21 years agofix markup
Fred Drake [Mon, 26 Jan 2004 19:39:13 +0000 (19:39 +0000)]
fix markup

21 years agoadd references between getopt and optparse docs
Skip Montanaro [Mon, 26 Jan 2004 19:30:21 +0000 (19:30 +0000)]
add references between getopt and optparse docs

21 years agodon't wrap lines too late by default
Fred Drake [Mon, 26 Jan 2004 16:42:30 +0000 (16:42 +0000)]
don't wrap lines too late by default
closes SF bug #842213

21 years agomake this distutils doc match the other in using boilerplate.tex
Fred Drake [Mon, 26 Jan 2004 15:07:31 +0000 (15:07 +0000)]
make this distutils doc match the other in using boilerplate.tex

21 years agoAdded the cjkcodecs files to the MSVC 6 build.
Tim Peters [Sun, 25 Jan 2004 03:25:40 +0000 (03:25 +0000)]
Added the cjkcodecs files to the MSVC 6 build.

21 years agono reason not to use boilerplate.tex now that it names the PSF
Fred Drake [Fri, 23 Jan 2004 15:23:49 +0000 (15:23 +0000)]
no reason not to use boilerplate.tex now that it names the PSF

21 years agoFix MSVC6 warnings. (spotted by Tim Peters)
Hye-Shik Chang [Fri, 23 Jan 2004 14:36:17 +0000 (14:36 +0000)]
Fix MSVC6 warnings. (spotted by Tim Peters)

21 years agofix some sloppy markup to use \guilabel
Fred Drake [Fri, 23 Jan 2004 09:01:56 +0000 (09:01 +0000)]
fix some sloppy markup to use \guilabel

21 years agoadd \guilabel macro to mark labels that occur in user interfaces
Fred Drake [Fri, 23 Jan 2004 08:52:28 +0000 (08:52 +0000)]
add \guilabel macro to mark labels that occur in user interfaces

21 years agofix method name in example code
Fred Drake [Fri, 23 Jan 2004 04:05:27 +0000 (04:05 +0000)]
fix method name in example code

21 years agoThere was an error in the Tk error dialog fix at Rev 1.84 which caused starting
Kurt B. Kaiser [Wed, 21 Jan 2004 22:10:01 +0000 (22:10 +0000)]
There was an error in the Tk error dialog fix at Rev 1.84 which caused starting
w/o the subprocess to fail.  Check in a fix to IDLE and IDLEfork.

M PyShell.py

Backport candidate, combine with previous.

21 years agorpc.py:SocketIO - Large modules were generating large pickles when downloaded
Kurt B. Kaiser [Wed, 21 Jan 2004 19:21:11 +0000 (19:21 +0000)]
rpc.py:SocketIO - Large modules were generating large pickles when downloaded
to the execution server.  The return of the OK response from the subprocess
initialization was interfering and causing the sending socket to be not
ready.  Add an IO ready test to fix this.  Moved the polling IO ready test
into pollpacket().

M NEWS.txt
M rpc.py

Backport candidate.

21 years agoAdded a Tk error dialog to run.py inform the user if the subprocess can't
Kurt B. Kaiser [Wed, 21 Jan 2004 18:54:30 +0000 (18:54 +0000)]
Added a Tk error dialog to run.py inform the user if the subprocess can't
connect to the user GUI process.  Added a timeout to the GUI's listening
socket.  Added Tk error dialogs to PyShell.py to announce a failure to bind
the port or connect to the subprocess.  Clean up error handling during
connection initiation phase.  This is an update of Python Patch 778323.

M NEWS.txt
M PyShell.py
M ScriptBinding.py
M run.py

Backport candidate.

21 years agoadd direct link to the article in DDJ
Fred Drake [Wed, 21 Jan 2004 18:30:28 +0000 (18:30 +0000)]
add direct link to the article in DDJ
closes SF bug #871402

21 years agoexpand on notion of row object type
Skip Montanaro [Wed, 21 Jan 2004 13:47:04 +0000 (13:47 +0000)]
expand on notion of row object type

21 years agotypo
Skip Montanaro [Wed, 21 Jan 2004 13:34:35 +0000 (13:34 +0000)]
typo

21 years agoAdd cjkcodecs to build process
Martin v. Löwis [Wed, 21 Jan 2004 07:54:02 +0000 (07:54 +0000)]
Add cjkcodecs to build process

21 years agopwd_getpwuid(), pwd_getpwnam(): Patch # 868499, improvement to the error
Barry Warsaw [Tue, 20 Jan 2004 21:07:23 +0000 (21:07 +0000)]
pwd_getpwuid(), pwd_getpwnam(): Patch # 868499, improvement to the error
messages.

21 years agogrp_getgrgid(), grp_getgrnam(): Patch # 868499, improvement to the error
Barry Warsaw [Tue, 20 Jan 2004 21:06:00 +0000 (21:06 +0000)]
grp_getgrgid(), grp_getgrnam(): Patch # 868499, improvement to the error
messages.

21 years agoAdd a Guido inspired example for groupby().
Raymond Hettinger [Tue, 20 Jan 2004 20:04:40 +0000 (20:04 +0000)]
Add a Guido inspired example for groupby().

21 years agoAdd news item about change in encodings search function.
Marc-André Lemburg [Tue, 20 Jan 2004 18:24:34 +0000 (18:24 +0000)]
Add news item about change in encodings search function.

21 years agoRemoving TODO comment for None keys, as suggested by Neal Norwitz.
Gustavo Niemeyer [Tue, 20 Jan 2004 15:24:29 +0000 (15:24 +0000)]
Removing TODO comment for None keys, as suggested by Neal Norwitz.

21 years agoWhen key is None, give up if _DB_get_type() returns -1 as well.
Gustavo Niemeyer [Tue, 20 Jan 2004 15:20:03 +0000 (15:20 +0000)]
When key is None, give up if _DB_get_type() returns -1 as well.

21 years agoFixing #880531: raise TypeError when trying to use a None key with RECNO
Gustavo Niemeyer [Tue, 20 Jan 2004 15:14:55 +0000 (15:14 +0000)]
Fixing #880531: raise TypeError when trying to use a None key with RECNO
or QUEUE database.

21 years agoLet the default encodings search function lookup aliases before trying the codec...
Marc-André Lemburg [Tue, 20 Jan 2004 09:40:14 +0000 (09:40 +0000)]
Let the default encodings search function lookup aliases before trying the codec import. This allows applications to install codecs which override (non-special-cased) builtin codecs.

21 years agoAdd some more code page aliases needed for completeness.
Marc-André Lemburg [Tue, 20 Jan 2004 09:38:52 +0000 (09:38 +0000)]
Add some more code page aliases needed for completeness.

21 years agoFix a typo: s/iso_3022/iso2022/
Hye-Shik Chang [Tue, 20 Jan 2004 09:33:30 +0000 (09:33 +0000)]
Fix a typo: s/iso_3022/iso2022/

21 years agoTest not the standard utf-8 codec but gb18030 which is the most complex
Hye-Shik Chang [Tue, 20 Jan 2004 09:11:48 +0000 (09:11 +0000)]
Test not the standard utf-8 codec but gb18030 which is the most complex
codec in multibytecodec consumers.

21 years agoFor whatever reason, these files had \r\r\n line endings on Windows,
Tim Peters [Sun, 18 Jan 2004 21:03:23 +0000 (21:03 +0000)]
For whatever reason, these files had \r\r\n line endings on Windows,
meaning they must have been checked in to CVS from a Linuxish box with
Windowish \r\n line endings to begin with.

21 years agoRevert another local change that snuck into a whitespace normalization
Tim Peters [Sun, 18 Jan 2004 20:39:35 +0000 (20:39 +0000)]
Revert another local change that snuck into a whitespace normalization
patch.

21 years agoRevert change accidentally checked in as part of a whitespace normalization
Tim Peters [Sun, 18 Jan 2004 20:31:02 +0000 (20:31 +0000)]
Revert change accidentally checked in as part of a whitespace normalization
patch.

21 years agoWhitespace normalization.
Tim Peters [Sun, 18 Jan 2004 20:29:55 +0000 (20:29 +0000)]
Whitespace normalization.

21 years agoAdd CJK codecs
Andrew M. Kuchling [Sun, 18 Jan 2004 15:55:51 +0000 (15:55 +0000)]
Add CJK codecs

21 years agoAdd a news entry for importing of CJK codecs.
Hye-Shik Chang [Sat, 17 Jan 2004 14:59:36 +0000 (14:59 +0000)]
Add a news entry for importing of CJK codecs.

21 years agoAdd CJK codecs support as discussed on python-dev. (SF #873597)
Hye-Shik Chang [Sat, 17 Jan 2004 14:29:29 +0000 (14:29 +0000)]
Add CJK codecs support as discussed on python-dev. (SF #873597)

Several style fixes are suggested by Martin v. Loewis and
Marc-Andre Lemburg. Thanks!

21 years agodocument PEP 11 progress so far.
Skip Montanaro [Sat, 17 Jan 2004 14:22:44 +0000 (14:22 +0000)]
document PEP 11 progress so far.

21 years agoRemove support for SunOS 4.
Skip Montanaro [Sat, 17 Jan 2004 14:19:44 +0000 (14:19 +0000)]
Remove support for SunOS 4.
Remove BAD_EXEC_PROTOYPE (leftover from IRIX 4 demolition).

21 years agoMore updates for zlib 1.2.1
Martin v. Löwis [Sat, 17 Jan 2004 11:20:17 +0000 (11:20 +0000)]
More updates for zlib 1.2.1

21 years agoUpdate to 1.2.1 for release build too.
Martin v. Löwis [Sat, 17 Jan 2004 11:10:34 +0000 (11:10 +0000)]
Update to 1.2.1 for release build too.

21 years agoRemove support for DYNIX, IRIX 4, --with-sgi-dl, --with-dl-dld
Skip Montanaro [Sat, 17 Jan 2004 04:04:13 +0000 (04:04 +0000)]
Remove support for DYNIX, IRIX 4, --with-sgi-dl, --with-dl-dld

21 years agoRemove support for systems defining __d6_pthread_create.
Skip Montanaro [Sat, 17 Jan 2004 03:04:46 +0000 (03:04 +0000)]
Remove support for systems defining __d6_pthread_create.

21 years agoremove DGUX support.
Skip Montanaro [Sat, 17 Jan 2004 00:29:32 +0000 (00:29 +0000)]
remove DGUX support.

21 years agoRemove support for minix.
Skip Montanaro [Sat, 17 Jan 2004 00:16:12 +0000 (00:16 +0000)]
Remove support for minix.
Remove unused and unnecessary checks for sizeof(char).

21 years ago- add warning that hotshot doesn't work well with threads
Fred Drake [Fri, 16 Jan 2004 17:30:16 +0000 (17:30 +0000)]
- add warning that hotshot doesn't work well with threads
- fix some markup

21 years agominor markup improvements
Fred Drake [Fri, 16 Jan 2004 16:07:04 +0000 (16:07 +0000)]
minor markup improvements

21 years agoMake parameter names in docstring more mnemonic
Andrew M. Kuchling [Fri, 16 Jan 2004 13:18:42 +0000 (13:18 +0000)]
Make parameter names in docstring more mnemonic