]> granicus.if.org Git - python/log
python
22 years agoPatch #732284: Disable _XOPEN_SOURCE on UnixWare 7.
Martin v. Löwis [Mon, 5 May 2003 05:13:18 +0000 (05:13 +0000)]
Patch #732284: Disable _XOPEN_SOURCE on UnixWare 7.

22 years agoPatch #732234: Check for -Kthread.
Martin v. Löwis [Mon, 5 May 2003 05:05:30 +0000 (05:05 +0000)]
Patch #732234: Check for -Kthread.

22 years agoBetter fix for newurl as suggested by Jim Jewett in SF bug #730963.
Jeremy Hylton [Mon, 5 May 2003 04:09:13 +0000 (04:09 +0000)]
Better fix for newurl as suggested by Jim Jewett in SF bug #730963.

22 years agoAdd comment explaining try/except for endheaders().
Jeremy Hylton [Mon, 5 May 2003 01:47:13 +0000 (01:47 +0000)]
Add comment explaining try/except for endheaders().

22 years agoRepair redirect handling and raise URLError on host-not-found.
Jeremy Hylton [Sun, 4 May 2003 23:44:49 +0000 (23:44 +0000)]
Repair redirect handling and raise URLError on host-not-found.

The latest changes to the redirect handler couldn't possibly have been
tested, because they did not compute a newurl and failed with a
NameError.  The __name__ == "__main__": block has a test for
redirects.

Also, fix SF bug 723831.  A urlopen() that failed because the host was
not found raised a socket.gaierror unlike earlier versions of
urllib2.  The problem is that httplib actually establishes the
connection at a different point starting with Python 2.2.  Move the
try/except to endheaders(), which is where the connection gets
established.

22 years ago* Note how dummy entry re-use benefits use cases with interspersed deletes
Raymond Hettinger [Sun, 4 May 2003 21:25:19 +0000 (21:25 +0000)]
* Note how dummy entry re-use benefits use cases with interspersed deletes
  and adds.

* Note that dictionary iteration is negatively impacted by additional
  sparseness.

22 years ago'forget' now also deletes any proper .pyo files.
Brett Cannon [Sun, 4 May 2003 21:15:27 +0000 (21:15 +0000)]
'forget' now also deletes any proper .pyo files.

Added some docstrings.

22 years agoSomewhere along the way, the softspace attr of file objects became read-
Tim Peters [Sun, 4 May 2003 04:16:52 +0000 (04:16 +0000)]
Somewhere along the way, the softspace attr of file objects became read-
only.  Repaired, and added new tests to test_file.py.

22 years agoScattered wording and typographical improvements (up to but not
Greg Ward [Sat, 3 May 2003 21:22:58 +0000 (21:22 +0000)]
Scattered wording and typographical improvements (up to but not
including the "Callback Options" section).

22 years agoRename "The Tao of Option Parsing" section to "Philosophy".
Greg Ward [Sat, 3 May 2003 20:41:37 +0000 (20:41 +0000)]
Rename "The Tao of Option Parsing" section to "Philosophy".
Remove first-person usage from it.  Various wording tweaks.

22 years agoUse True/False instead of 1/0 when talking about store_true/store_false.
Greg Ward [Sat, 3 May 2003 20:13:08 +0000 (20:13 +0000)]
Use True/False instead of 1/0 when talking about store_true/store_false.
Particularly important since they now store True and False rather than 1
and 0!

22 years agoAdd a big comment about cross-platform issues (especially OpenBSD).
Greg Ward [Sat, 3 May 2003 19:45:47 +0000 (19:45 +0000)]
Add a big comment about cross-platform issues (especially OpenBSD).
This should be turned into a footnote by someone who actually
understands OSS and its relationship to Linux, FreeBSD, OpenBSD, NetBSD,
etc.

22 years agoUse TeX quotes -- ``foo'' -- as appropriate.
Greg Ward [Sat, 3 May 2003 19:41:45 +0000 (19:41 +0000)]
Use TeX quotes -- ``foo'' -- as appropriate.
Remove whitespace around em-dashes.

22 years agoFix various markup errors: use \longprogramopt{} more, and use it
Greg Ward [Sat, 3 May 2003 19:16:36 +0000 (19:16 +0000)]
Fix various markup errors: use \longprogramopt{} more, and use it
correctly.  (Closes SF #731689.)  Use \emph{} in a few places.

22 years agoTry linking hstrerror and inet_aton tests. Look for these functions in -lresolv.
Martin v. Löwis [Sat, 3 May 2003 12:10:48 +0000 (12:10 +0000)]
Try linking hstrerror and inet_aton tests. Look for these functions in -lresolv.

22 years agoPatch #730170: Check for sem_init in -lpthread. Fixes #727051.
Martin v. Löwis [Sat, 3 May 2003 11:25:43 +0000 (11:25 +0000)]
Patch #730170: Check for sem_init in -lpthread. Fixes #727051.

22 years agoUse \versionchanged, not \versionadded.
Martin v. Löwis [Sat, 3 May 2003 10:59:13 +0000 (10:59 +0000)]
Use \versionchanged, not \versionadded.

22 years agoPatch #731514: Update recursion documentation to mention simple recursion.
Martin v. Löwis [Sat, 3 May 2003 10:57:53 +0000 (10:57 +0000)]
Patch #731514: Update recursion documentation to mention simple recursion.

22 years agoPatch #708604: Check more function results. Will backport to 2.2.
Martin v. Löwis [Sat, 3 May 2003 10:53:08 +0000 (10:53 +0000)]
Patch #708604: Check more function results. Will backport to 2.2.

22 years agoPatch #730826: Enable extensions on NetBSD 2.0.
Martin v. Löwis [Sat, 3 May 2003 10:32:18 +0000 (10:32 +0000)]
Patch #730826: Enable extensions on NetBSD 2.0.

22 years agoPatch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis [Sat, 3 May 2003 10:12:45 +0000 (10:12 +0000)]
Patch #724588: Check whether the address of hstrerror and inet_pton can
be taken, and define NI_MAX{HOST|SERV} if necessary.

22 years agoPatch #684981: Add cleanup capability for argument parsers. Fixes 501716.
Martin v. Löwis [Sat, 3 May 2003 10:00:22 +0000 (10:00 +0000)]
Patch #684981: Add cleanup capability for argument parsers. Fixes 501716.

22 years agoRefer to __builtin__.file, not __builtins__.file
Martin v. Löwis [Sat, 3 May 2003 09:58:26 +0000 (09:58 +0000)]
Refer to __builtin__.file, not __builtins__.file

22 years agoImplement tcl object __cmp__.
Martin v. Löwis [Sat, 3 May 2003 09:45:12 +0000 (09:45 +0000)]
Implement tcl object __cmp__.

22 years agoPatch #708495: Port more stuff to OpenVMS.
Martin v. Löwis [Sat, 3 May 2003 09:14:54 +0000 (09:14 +0000)]
Patch #708495: Port more stuff to OpenVMS.

22 years agoPatch #711902: Cause pydoc to show data descriptor __doc__ strings.
Martin v. Löwis [Sat, 3 May 2003 09:09:02 +0000 (09:09 +0000)]
Patch #711902: Cause pydoc to show data descriptor __doc__ strings.

22 years agoChange 'and' to 'or' in _tkinter test.
Martin v. Löwis [Sat, 3 May 2003 08:45:51 +0000 (08:45 +0000)]
Change 'and' to 'or' in _tkinter test.

22 years agoAdd a reference to dictnotes.txt. It does no good if you don't know it's
Raymond Hettinger [Sat, 3 May 2003 06:51:59 +0000 (06:51 +0000)]
Add a reference to dictnotes.txt.  It does no good if you don't know it's
there or where to find it.

22 years ago* Added a substantial number of edge case and argument tests for
Raymond Hettinger [Sat, 3 May 2003 05:59:48 +0000 (05:59 +0000)]
* Added a substantial number of edge case and argument tests for
  the itertoolsmodule.
* Taught itertools.repeat(obj, n) to treat negative repeat counts as
  zero.  This behavior matches that for sequences and prevents
  infinite loops.

22 years agoApply the simplified test_support boilerplate.
Raymond Hettinger [Sat, 3 May 2003 03:38:01 +0000 (03:38 +0000)]
Apply the simplified test_support boilerplate.

22 years ago- add title attributes to the navigation icons on the navigation bars;
Fred Drake [Sat, 3 May 2003 02:07:22 +0000 (02:07 +0000)]
- add title attributes to the navigation icons on the navigation bars;
  this causes some browsers to offer descriptive tooltips when the
  mouse hovers over the linked icon
- clean up the code in this area

22 years agofixed typo
Just van Rossum [Sat, 3 May 2003 00:38:26 +0000 (00:38 +0000)]
fixed typo

22 years agoInstall automatic GIL switcher upon IDE startup.
Just van Rossum [Sat, 3 May 2003 00:31:35 +0000 (00:31 +0000)]
Install automatic GIL switcher upon IDE startup.
(Jack: maybe this could/should be done in Framework.py instead, that way
apps don't have to think about it. PackMan springs to mind...)

22 years agobuild the new autoGIL module on OSX
Just van Rossum [Sat, 3 May 2003 00:27:23 +0000 (00:27 +0000)]
build the new autoGIL module on OSX

22 years agoShort and sweet module doing something very useful: for event loop
Just van Rossum [Sat, 3 May 2003 00:18:55 +0000 (00:18 +0000)]
Short and sweet module doing something very useful: for event loop
based threads, release the GIL when the event loop goes to sleep,
and acquire it again when the event loop wakes up again. OSX-only.

22 years agoFixed age-old beginner's error: don't start the main loop as a side
Just van Rossum [Fri, 2 May 2003 23:40:29 +0000 (23:40 +0000)]
Fixed age-old beginner's error: don't start the main loop as a side
effect of an import. (This is one step towards threading support in
the IDE.)

22 years agoSimplify ref count test.
Raymond Hettinger [Fri, 2 May 2003 22:44:59 +0000 (22:44 +0000)]
Simplify ref count test.

22 years agoAdd StopIteration tests.
Raymond Hettinger [Fri, 2 May 2003 22:38:07 +0000 (22:38 +0000)]
Add StopIteration tests.
Simplify test_main().

22 years agoadd link types for the remaining links in the navigation panels
Fred Drake [Fri, 2 May 2003 20:30:18 +0000 (20:30 +0000)]
add link types for the remaining links in the navigation panels

22 years agoCWI moved websites around without me knowing it, and together with
Jack Jansen [Fri, 2 May 2003 20:27:40 +0000 (20:27 +0000)]
CWI moved websites around without me knowing it, and together with
a bug in urllib2 this caused pimp to stop working. Fixed the URL to
make it work again.

22 years agoNote itertools.islice() bugfix.
Raymond Hettinger [Fri, 2 May 2003 20:24:56 +0000 (20:24 +0000)]
Note itertools.islice() bugfix.

22 years ago- add link relationships to some of the links in the navigation panels
Fred Drake [Fri, 2 May 2003 20:18:01 +0000 (20:18 +0000)]
- add link relationships to some of the links in the navigation panels
- implement custom_REL_hook() so LaTeX2HTML uses currently recommended
  link types; those work fine with tools like the Mozilla Site
  Navigation Bar

22 years agoResearch notes and explorations for optimizing Python dictionaries.
Raymond Hettinger [Fri, 2 May 2003 20:11:29 +0000 (20:11 +0000)]
Research notes and explorations for optimizing Python dictionaries.

22 years agoThe previous made the stop argument optional.
Raymond Hettinger [Fri, 2 May 2003 19:44:20 +0000 (19:44 +0000)]
The previous made the stop argument optional.
It is better to be explicit and just allow stop to be None.

22 years agoSF bug #730685: itertools.islice stop argument is not optional
Raymond Hettinger [Fri, 2 May 2003 19:04:37 +0000 (19:04 +0000)]
SF bug #730685:  itertools.islice stop argument is not optional

* itertools.islice() stop argument did not perform as documented.
* beefed-up test suite

22 years agoSF patch 731504: Typo in datetimemodule.c comment.
Tim Peters [Fri, 2 May 2003 18:39:55 +0000 (18:39 +0000)]
SF patch 731504:  Typo in datetimemodule.c comment.
s/isofomat/isoformat/, by Steven Taschuk.

22 years agoAvoid extraneous blank line generated in the middle of the document
Fred Drake [Fri, 2 May 2003 18:21:22 +0000 (18:21 +0000)]
Avoid extraneous blank line generated in the middle of the document
head.

22 years agoRemove section number from the title for use in the
Fred Drake [Fri, 2 May 2003 18:08:16 +0000 (18:08 +0000)]
Remove section number from the title for use in the
<meta name='description' ...> element in the document head.

22 years agoPatch 731209: Restore socketmodule's behaviour with dotted quad addresses
Anthony Baxter [Fri, 2 May 2003 15:40:46 +0000 (15:40 +0000)]
Patch 731209: Restore socketmodule's behaviour with dotted quad addresses
to that of Python2.1. Such nnn.nnn.nnn.nnn addresses are just used directly,
not passed to the resolver for a pointless lookup.

22 years agoadd note about building with bsddb185 and making it appear as bsddb.
Skip Montanaro [Fri, 2 May 2003 15:27:59 +0000 (15:27 +0000)]
add note about building with bsddb185 and making it appear as bsddb.

22 years agoAdded missing modules to __all__ check.
Raymond Hettinger [Fri, 2 May 2003 09:36:07 +0000 (09:36 +0000)]
Added missing modules to __all__ check.

22 years agoUsed sets.Set() to compare unordered sequences.
Raymond Hettinger [Fri, 2 May 2003 09:06:28 +0000 (09:06 +0000)]
Used sets.Set() to compare unordered sequences.
Improves clarity and brevity.

22 years agoRename funny long suite to Disk_File_Folder.
Jack Jansen [Thu, 1 May 2003 22:06:15 +0000 (22:06 +0000)]
Rename funny long suite to Disk_File_Folder.

22 years agoSilence compiler warnings in VC 7.
Jeremy Hylton [Thu, 1 May 2003 21:31:53 +0000 (21:31 +0000)]
Silence compiler warnings in VC 7.

22 years agoSlightly more lenient pdbtrack prompt recognition, for people who use
Ken Manheimer [Thu, 1 May 2003 21:07:32 +0000 (21:07 +0000)]
Slightly more lenient pdbtrack prompt recognition, for people who use
eg "pdb>".

22 years agoAllow for multiple parens around pdb prompt for (new) nested debugging
Ken Manheimer [Thu, 1 May 2003 20:46:14 +0000 (20:46 +0000)]
Allow for multiple parens around pdb prompt for (new) nested debugging
sessions (and some cosmetic wording changes).

22 years agoCombine the functionality of test_support.run_unittest()
Walter Dörwald [Thu, 1 May 2003 17:45:56 +0000 (17:45 +0000)]
Combine the functionality of test_support.run_unittest()
and test_support.run_classtests() into run_unittest()
and use it wherever possible.

Also don't use "from test.test_support import ...", but
"from test import test_support" in a few spots.

From SF patch #662807.

22 years agoConsistently use test_support.foo everywhere.
Walter Dörwald [Thu, 1 May 2003 13:12:34 +0000 (13:12 +0000)]
Consistently use test_support.foo everywhere.

Remove the last use of veris().

Remove now useless imports and functions.

22 years agoConvert tcl objects to strings in getvar/setvar. Fixes #730506.
Martin v. Löwis [Thu, 1 May 2003 05:47:00 +0000 (05:47 +0000)]
Convert tcl objects to strings in getvar/setvar. Fixes #730506.

22 years agoPatch #729300: Disable error message if Python is not built for threads.
Martin v. Löwis [Thu, 1 May 2003 05:25:29 +0000 (05:25 +0000)]
Patch #729300: Disable error message if Python is not built for threads.

22 years agoPatch #725942: Always rename emulation functions.
Martin v. Löwis [Thu, 1 May 2003 05:20:46 +0000 (05:20 +0000)]
Patch #725942: Always rename emulation functions.

22 years agoPatch #727805: Remove extra line ending from CGI responses.
Martin v. Löwis [Thu, 1 May 2003 05:05:09 +0000 (05:05 +0000)]
Patch #727805: Remove extra line ending from CGI responses.

22 years agoMark CVS as 2.3b1+.
Guido van Rossum [Wed, 30 Apr 2003 22:14:27 +0000 (22:14 +0000)]
Mark CVS as 2.3b1+.

22 years agoAt the site of an indexed reference to print, point to the relevant
Fred Drake [Wed, 30 Apr 2003 16:44:36 +0000 (16:44 +0000)]
At the site of an indexed reference to print, point to the relevant
documentation.  Closes SF bug #723136.

22 years agowork around mostly-minor formatting problems; the encodings.idna
Fred Drake [Wed, 30 Apr 2003 15:03:46 +0000 (15:03 +0000)]
work around mostly-minor formatting problems; the encodings.idna
example still doesn't come out quite right: a bug in the formatting
tools

22 years ago- comment out \moduleauthor that broke formatting until the formatting
Fred Drake [Wed, 30 Apr 2003 15:02:07 +0000 (15:02 +0000)]
- comment out \moduleauthor that broke formatting until the formatting
  tools can be fixed; added XXX comment
- general markup fixes

22 years agoAllow _sre.c to compile with Python 2.2
Andrew M. Kuchling [Wed, 30 Apr 2003 13:09:08 +0000 (13:09 +0000)]
Allow _sre.c to compile with Python 2.2

22 years agoDelete comment my last checkin rendered obsolete.
Michael W. Hudson [Wed, 30 Apr 2003 08:42:19 +0000 (08:42 +0000)]
Delete comment my last checkin rendered obsolete.

I should also not that my last checkin did stuff that made failures give
more helpful information.

22 years agoChange from a threading.Condition object to a threading.Event object for
Brett Cannon [Wed, 30 Apr 2003 05:32:32 +0000 (05:32 +0000)]
Change from a threading.Condition object to a threading.Event object for
signalling when the TCP server is done.  Should hopefully solve hanging
issues for Solaris 8 & 9.  Solves the apparent hanging issue with OS X.

Closes patch #729988 .

22 years agoMake time.sleep calls go to 0 for common testing.
Brett Cannon [Wed, 30 Apr 2003 03:03:37 +0000 (03:03 +0000)]
Make time.sleep calls go to 0 for common testing.

22 years agoFlesh out test_support docs.
Brett Cannon [Wed, 30 Apr 2003 01:42:35 +0000 (01:42 +0000)]
Flesh out test_support docs.

22 years agoimproved CRLF regex for previous fix
Piers Lauder [Tue, 29 Apr 2003 23:58:08 +0000 (23:58 +0000)]
improved CRLF regex for previous fix

22 years agoadded code to canonicalise line endings in data sent via "append" - fix for bug repor...
Piers Lauder [Tue, 29 Apr 2003 23:40:59 +0000 (23:40 +0000)]
added code to canonicalise line endings in data sent via "append" - fix for bug report 723962

22 years agoAllow "@" in unquoted attribute values.
Fred Drake [Tue, 29 Apr 2003 22:12:55 +0000 (22:12 +0000)]
Allow "@" in unquoted attribute values.
Added test that checks for characters allowed in the query part of URLs.
Backport candidate.

22 years agoAdded a note about Stefan Deibels list of contacts.
Jack Jansen [Tue, 29 Apr 2003 21:49:30 +0000 (21:49 +0000)]
Added a note about Stefan Deibels list of contacts.

22 years agoThe new bundlebuilder-generated applets contain an absolute reference
Jack Jansen [Tue, 29 Apr 2003 21:48:46 +0000 (21:48 +0000)]
The new bundlebuilder-generated applets contain an absolute reference
to the Python used to create them (in the #! line). Therefore, when your
Python installation is moved the applets become invalid. As the
binary distribution is installed in a different place than where it was
created we need to fix up the #! lines.

22 years agoBy default be verbose.
Jack Jansen [Tue, 29 Apr 2003 21:46:31 +0000 (21:46 +0000)]
By default be verbose.

22 years agoPort test_richcmp.py to PyUnit. From SF patch #662807 which additional
Walter Dörwald [Tue, 29 Apr 2003 21:31:19 +0000 (21:31 +0000)]
Port test_richcmp.py to PyUnit. From SF patch #662807 which additional
tests and comments.

22 years agodocument socket speed reclamation. Patch 729293.
Skip Montanaro [Tue, 29 Apr 2003 21:07:16 +0000 (21:07 +0000)]
document socket speed reclamation.  Patch 729293.

22 years agoUse the new htmlentitydefs.codepoint2name for test_xmlcharnamereplace()
Walter Dörwald [Tue, 29 Apr 2003 20:59:55 +0000 (20:59 +0000)]
Use the new htmlentitydefs.codepoint2name for test_xmlcharnamereplace()

22 years agoAdd doctest for example in the library reference.
Raymond Hettinger [Tue, 29 Apr 2003 19:58:04 +0000 (19:58 +0000)]
Add doctest for example in the library reference.

22 years agoExtract the errno value to use from the errno module if possible.
Fred Drake [Tue, 29 Apr 2003 19:50:25 +0000 (19:50 +0000)]
Extract the errno value to use from the errno module if possible.

22 years agoWhen an unhandled exception happens, report the repr() of the function
Guido van Rossum [Tue, 29 Apr 2003 19:44:05 +0000 (19:44 +0000)]
When an unhandled exception happens, report the repr() of the function
that was used to start the thread.  This is useful to track down the
source of the problem when there is no traceback, as can happen when a
daemon thread gets to run after Python is finialized (a new kind of
event, somehow this is now possible due to changes in Py_Finalize()).

22 years agoRegain throughput lost with the _socketobject wrapper. The
Skip Montanaro [Tue, 29 Apr 2003 19:27:26 +0000 (19:27 +0000)]
Regain throughput lost with the _socketobject wrapper.  The
throughput-sensitive methods are grabbed from the underlying _socket.socket
object.  Closes SF patch 729293.

22 years agoUse Tim's suggestion to fix
Michael W. Hudson [Tue, 29 Apr 2003 17:07:36 +0000 (17:07 +0000)]
Use Tim's suggestion to fix

[ 708901 ] Lineno calculation sometimes broken

A one line patch to compile.c and a rather-more-than-one-line patch
to test_dis.  Hey ho.

Possibly a backport candidate -- tho' lnotab is less used in 2.2...

22 years agoArmin Rigo's fix & test for
Michael W. Hudson [Tue, 29 Apr 2003 16:18:47 +0000 (16:18 +0000)]
Armin Rigo's fix & test for

[ 729622 ] line tracing hook errors

with massaging from me to integrate test into test suite.

22 years agoApplying patch #728656, by logistix, fixing opening of nonexistent
Gustavo Niemeyer [Tue, 29 Apr 2003 14:53:08 +0000 (14:53 +0000)]
Applying patch #728656, by logistix, fixing opening of nonexistent
bz2 files. Also, included a testcase for this problem.

22 years agoRemove file that was moved to ../Include
Guido van Rossum [Tue, 29 Apr 2003 14:14:58 +0000 (14:14 +0000)]
Remove file that was moved to ../Include

22 years ago- clean up some extra punctuation hidden in indexing markup
Fred Drake [Tue, 29 Apr 2003 13:56:40 +0000 (13:56 +0000)]
- clean up some extra punctuation hidden in indexing markup
- fix a typo and one markup nit
- normalize whitespace

22 years agoClarify that the timeout argument to read_until() is in seconds.
Fred Drake [Tue, 29 Apr 2003 13:39:05 +0000 (13:39 +0000)]
Clarify that the timeout argument to read_until() is in seconds.

22 years agoRemoving new files accidentally checked in on the trunk rather than on the
Guido van Rossum [Tue, 29 Apr 2003 11:27:16 +0000 (11:27 +0000)]
Removing new files accidentally checked in on the trunk rather than on the
idlefork-merge-branch.

22 years agoAdd back files that were accidentally deleted on the trunk rather than
Guido van Rossum [Tue, 29 Apr 2003 11:15:38 +0000 (11:15 +0000)]
Add back files that were accidentally deleted on the trunk rather than
on the idlefork-merge-branch as intended.

22 years agoChecking in IDLEFORK exactly as it appears in the idlefork CVS.
Guido van Rossum [Tue, 29 Apr 2003 10:23:27 +0000 (10:23 +0000)]
Checking in IDLEFORK exactly as it appears in the idlefork CVS.
On a branch, for now.

22 years agoAdded tests for urlretrieve. Also made sure urlopen tests cleaned up properly after...
Brett Cannon [Tue, 29 Apr 2003 05:08:06 +0000 (05:08 +0000)]
Added tests for urlretrieve.  Also made sure urlopen tests cleaned up properly after themselves.

22 years agoSF bug #729096: getopt online documentation example improvement
Raymond Hettinger [Tue, 29 Apr 2003 04:35:36 +0000 (04:35 +0000)]
SF bug #729096:  getopt online documentation example improvement

A newbie found it difficult to translate the exampe into a
case that used only short options or long options but not both.
He tried to shorten the tuple search but forgot the trailing comma,
The appropriate pattern is an equality check.

Revised the example to point him in the right direction.

Backport candidate.

22 years agoAdd comment that urlopen opens local files without universal newlines
Brett Cannon [Tue, 29 Apr 2003 04:11:12 +0000 (04:11 +0000)]
Add comment that urlopen opens local files without universal newlines

22 years agoReworded fabs() for consistency with the others. Noted that all
Tim Peters [Mon, 28 Apr 2003 21:32:03 +0000 (21:32 +0000)]
Reworded fabs() for consistency with the others.  Noted that all
return values are floats.

22 years agoRaise a ValueError when there is data that was not covered in the format string....
Brett Cannon [Mon, 28 Apr 2003 21:30:13 +0000 (21:30 +0000)]
Raise a ValueError when there is data that was not covered in the format string.  Done to match behavior of pre-existing C-based strptime implementations.

22 years agowalk() docs: Emphasize that the recursive-delete example is dangerous.
Tim Peters [Mon, 28 Apr 2003 19:15:10 +0000 (19:15 +0000)]
walk() docs:  Emphasize that the recursive-delete example is dangerous.

22 years agoSF bug 728097: tmpnam problems on windows 2.3b, breaks test.test_os.
Tim Peters [Mon, 28 Apr 2003 03:13:03 +0000 (03:13 +0000)]
SF bug 728097:  tmpnam problems on windows 2.3b, breaks test.test_os.
tmpnam() appears essentially useless on Windows, and it finally broke
the test for Irmen de Jong.  Read the long new comment in test_tmpnam()
for details.  Since the MS implementation is insane, it might be good
if we supplied a different implementation.

Bugfix candidate.