]> granicus.if.org Git - python/log
python
21 years agoElaborate the explanation of different flavors of _* identifiers.
Fred Drake [Sat, 6 Sep 2003 03:50:07 +0000 (03:50 +0000)]
Elaborate the explanation of different flavors of _* identifiers.
Fixes SF bug #520325.

21 years ago- create a hyperlink for a section reference (also more robust in the
Fred Drake [Sat, 6 Sep 2003 03:33:32 +0000 (03:33 +0000)]
- create a hyperlink for a section reference (also more robust in the
  face of section re-ordering)
- fix minor markup nits for better presentation

21 years agoavoid spurious vertical whitespace preceeding heading which are marked
Fred Drake [Sat, 6 Sep 2003 01:10:14 +0000 (01:10 +0000)]
avoid spurious vertical whitespace preceeding heading which are marked
with a \label

21 years agomarkup updates
Fred Drake [Fri, 5 Sep 2003 15:50:20 +0000 (15:50 +0000)]
markup updates

21 years agonormalize whitespace; detabify
Fred Drake [Fri, 5 Sep 2003 15:43:58 +0000 (15:43 +0000)]
normalize whitespace; detabify

21 years agofix some nuissance formatting problems for the "alltt" environment;
Fred Drake [Fri, 5 Sep 2003 15:43:00 +0000 (15:43 +0000)]
fix some nuissance formatting problems for the "alltt" environment;
there's still a bug for the environment, but that's worked around in
this change as well

21 years agonormalize whitespace
Fred Drake [Fri, 5 Sep 2003 15:36:23 +0000 (15:36 +0000)]
normalize whitespace

21 years agoSF bug #800796: Difference between hash() and __hash__()
Raymond Hettinger [Fri, 5 Sep 2003 14:27:30 +0000 (14:27 +0000)]
SF bug #800796:  Difference between hash() and __hash__()

slice(5).__hash__() now raises a TypeError.

21 years agoadd index entry
Fred Drake [Fri, 5 Sep 2003 14:06:35 +0000 (14:06 +0000)]
add index entry

21 years agofix minor markup nits
Fred Drake [Fri, 5 Sep 2003 14:01:15 +0000 (14:01 +0000)]
fix minor markup nits

21 years agoadd a relevant "see also" link
Fred Drake [Fri, 5 Sep 2003 13:59:10 +0000 (13:59 +0000)]
add a relevant "see also" link

21 years agomake the padding inside a "See also" box more consistent around the
Fred Drake [Fri, 5 Sep 2003 13:58:26 +0000 (13:58 +0000)]
make the padding inside a "See also" box more consistent around the
sides

21 years agoclean up some markup
Fred Drake [Fri, 5 Sep 2003 13:48:02 +0000 (13:48 +0000)]
clean up some markup

21 years agonormalize whitespace
Fred Drake [Thu, 4 Sep 2003 22:21:17 +0000 (22:21 +0000)]
normalize whitespace

21 years agoSuppress more online-only navigation in the printed HTML.
Fred Drake [Thu, 4 Sep 2003 22:16:45 +0000 (22:16 +0000)]
Suppress more online-only navigation in the printed HTML.

21 years agomake sure cells are really generated for all table cells, even those
Fred Drake [Thu, 4 Sep 2003 21:25:03 +0000 (21:25 +0000)]
make sure cells are really generated for all table cells, even those
that are left empty
fixes first of the problems reported in SF bug #727692

21 years agoadjust markup to avoid suppressing a word space in content
Fred Drake [Thu, 4 Sep 2003 19:52:02 +0000 (19:52 +0000)]
adjust markup to avoid suppressing a word space in content

21 years agoMake the redundent portion of the lower navigation area disappear from the
Fred Drake [Thu, 4 Sep 2003 19:30:15 +0000 (19:30 +0000)]
Make the redundent portion of the lower navigation area disappear from the
printed version for browsers that support "@media print" in CSS.

21 years agoPatch #788249: Pass an explicit buffer to setvbuf in PyFile_SetBufSize().
Martin v. Löwis [Thu, 4 Sep 2003 19:01:46 +0000 (19:01 +0000)]
Patch #788249: Pass an explicit buffer to setvbuf in PyFile_SetBufSize().
Fixes #603724. Will backport to 2.3.

21 years agoPatch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis [Thu, 4 Sep 2003 18:50:54 +0000 (18:50 +0000)]
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Will backport to 2.2.

21 years agoPatch #794826: Add __file__ in dynamically loaded modules for multiple
Martin v. Löwis [Thu, 4 Sep 2003 18:45:59 +0000 (18:45 +0000)]
Patch #794826: Add __file__ in dynamically loaded modules for multiple
interpreters. Fixes #698282. Will backport to 2.3.

21 years agoPatch #792338: Correct documentation for timetuple return type.
Martin v. Löwis [Thu, 4 Sep 2003 18:29:53 +0000 (18:29 +0000)]
Patch #792338: Correct documentation for timetuple return type.

21 years agoPatch #798145: Return correct information from nl_langinfo(RADIXCHAR).
Martin v. Löwis [Thu, 4 Sep 2003 18:24:47 +0000 (18:24 +0000)]
Patch #798145: Return correct information from nl_langinfo(RADIXCHAR).
Will backport to 2.3.

21 years agoBug #794140: cygwin builds do not embed
Jason Tishler [Thu, 4 Sep 2003 11:59:50 +0000 (11:59 +0000)]
Bug #794140: cygwin builds do not embed

The embed2.diff patch solves the user's problem by exporting the missing
symbols from the Python core so Python can be embedded in another Cygwin
application (well, at lest vim).

21 years agoThis patch enables the building of Cygwin Python with a static core
Jason Tishler [Thu, 4 Sep 2003 11:04:06 +0000 (11:04 +0000)]
This patch enables the building of Cygwin Python with a static core
which still supports shared extensions. It takes advantage the latest
Cygwin binutils (i.e., 20030901-1) which can export symbols from
executables:

http://cygwin.com/ml/cygwin-announce/2003-09/msg00002.html

Additionally, it finally lays to rest the following mailing list
subthread:

http://mail.python.org/pipermail/python-list/2002-May/102500.html

I tested the patch under Red Hat Linux 8.0 too

21 years agoCatch locale.error as well. Fixes #788378. Will backport to 2.3.
Martin v. Löwis [Wed, 3 Sep 2003 05:13:14 +0000 (05:13 +0000)]
Catch locale.error as well. Fixes #788378. Will backport to 2.3.

21 years agoUse de_DE in example, change message for unknown locale. Fixes #797447.
Martin v. Löwis [Wed, 3 Sep 2003 04:50:13 +0000 (04:50 +0000)]
Use de_DE in example, change message for unknown locale. Fixes #797447.
Will backport to 2.3.

21 years agotest_get_param_with_semis_in_quotes(): Test case for SF bug #794466.
Barry Warsaw [Wed, 3 Sep 2003 04:10:52 +0000 (04:10 +0000)]
test_get_param_with_semis_in_quotes(): Test case for SF bug #794466.

Backport candidate.

21 years agoNEWS about email package 794466 patch.
Barry Warsaw [Wed, 3 Sep 2003 04:09:49 +0000 (04:09 +0000)]
NEWS about email package 794466 patch.

21 years agoA fix for parsing parameters when there are semicolons inside the
Barry Warsaw [Wed, 3 Sep 2003 04:08:13 +0000 (04:08 +0000)]
A fix for parsing parameters when there are semicolons inside the
quotes.  Fixes SF bug #794466, with the essential patch provided by
Stuart D. Gathman.  Specifically,

_parseparam(), _get_params_preserve(): Use the parsing function that
takes quotes into account, as given (essentially) in the bug report's
test program.

Backport candidate.

21 years agoDocument the Pynche patch.
Barry Warsaw [Wed, 3 Sep 2003 03:20:37 +0000 (03:20 +0000)]
Document the Pynche patch.

21 years agoFix for SF bug #780996, crash when no .pynche file exists and -d
Barry Warsaw [Wed, 3 Sep 2003 03:15:50 +0000 (03:15 +0000)]
Fix for SF bug #780996, crash when no .pynche file exists and -d
option is not given.  If dbfile isn't given and can't be retrieved
from the optionsdb, just initialize it to the first element in
RGB_TXT.

Backport candidate.

21 years agouse the long names for re compilation options; this makes it easier to
Fred Drake [Tue, 2 Sep 2003 16:01:07 +0000 (16:01 +0000)]
use the long names for re compilation options; this makes it easier to
figure out what the code is doing

21 years agoModernize code a bit: use isinstance instead of type(); return True/False
Andrew M. Kuchling [Tue, 2 Sep 2003 11:52:06 +0000 (11:52 +0000)]
Modernize code a bit: use isinstance instead of type(); return True/False

21 years ago[Patch #759208] Fix has_key emulation to not raise KeyError
Andrew M. Kuchling [Tue, 2 Sep 2003 11:44:44 +0000 (11:44 +0000)]
[Patch #759208] Fix has_key emulation to not raise KeyError

21 years agoOnly apply case-insensitivity test on appropriate platforms.' test_filecmp.py
Raymond Hettinger [Tue, 2 Sep 2003 06:59:21 +0000 (06:59 +0000)]
Only apply case-insensitivity test on appropriate platforms.' test_filecmp.py

21 years agoSF bug #453515: filecmp.dircmp case sensitivity bug
Raymond Hettinger [Tue, 2 Sep 2003 05:42:02 +0000 (05:42 +0000)]
SF bug #453515:  filecmp.dircmp case sensitivity bug

21 years agoSF patch #798255: Document httplib.HTTPResponse.read "amt" argument
Raymond Hettinger [Tue, 2 Sep 2003 02:32:54 +0000 (02:32 +0000)]
SF patch #798255:  Document httplib.HTTPResponse.read "amt" argument
(Contributed by Jeff Epler.)

21 years agoSF 798269: bug fix for doctest (sf bug id: 798254
Raymond Hettinger [Tue, 2 Sep 2003 02:17:46 +0000 (02:17 +0000)]
SF 798269:  bug fix for doctest (sf bug id: 798254
(Contributed by Alexander Belopolsky.)

21 years agoSF 798269: bug fix for doctest (sf bug id: 798254
Raymond Hettinger [Tue, 2 Sep 2003 02:09:05 +0000 (02:09 +0000)]
SF 798269:  bug fix for doctest (sf bug id: 798254
(Contributed by Alexander Belopolsky.)

Doctest would crash when encountering unbound methods:
  class A:
    def f(self): pass

  class C(A):
    g = A.f

21 years agoSF patch #736962: Port tests to unittest (Part 2)
Raymond Hettinger [Tue, 2 Sep 2003 01:53:01 +0000 (01:53 +0000)]
SF patch #736962:  Port tests to unittest (Part 2)
(Contributed by Walter Dörwald.)

* Convert test_slice.py to unittest format
* Expand the test coverage.

21 years agoSF patch #790443: add SafeConfigParser to __all__
Raymond Hettinger [Mon, 1 Sep 2003 23:30:44 +0000 (23:30 +0000)]
SF patch #790443:  add SafeConfigParser to __all__
(Contributed by George Yoshida.)

21 years agoMinor typo
Raymond Hettinger [Mon, 1 Sep 2003 23:13:04 +0000 (23:13 +0000)]
Minor typo

21 years agoSF patch #791153: inconsistency with implementation(logging)
Raymond Hettinger [Mon, 1 Sep 2003 22:50:52 +0000 (22:50 +0000)]
SF patch #791153:  inconsistency with implementation(logging)
(Contributed by George Yoshida.)

21 years agoSF patch #798534: Windows os.popen needlessly gets a reference to tuple ()
Raymond Hettinger [Mon, 1 Sep 2003 22:34:31 +0000 (22:34 +0000)]
SF patch #798534:  Windows os.popen needlessly gets a reference to tuple ()
(Contributed by Andrew Gaul.)

Fixes a minor leak.

21 years agoSF patch #798534: Windows os.popen needlessly gets a reference to tuple ()
Raymond Hettinger [Mon, 1 Sep 2003 22:25:41 +0000 (22:25 +0000)]
SF patch #798534:  Windows os.popen needlessly gets a reference to tuple ()
(Contributed by Andrew Gaul.)

Fixes a minor leak.

21 years agoSF patch #798467: Update docstring of has_key for bool changes
Raymond Hettinger [Mon, 1 Sep 2003 22:17:18 +0000 (22:17 +0000)]
SF patch #798467:  Update docstring of has_key for bool changes
(Contributed by George Yoshida.)

21 years agoSF patch #798467: Update docstring of has_key for bool changes
Raymond Hettinger [Mon, 1 Sep 2003 22:12:08 +0000 (22:12 +0000)]
SF patch #798467:  Update docstring of has_key for bool changes
(Contributed by George Yoshida.)

21 years agoSF bug #797853: Small problems with the csv module's documentation
Raymond Hettinger [Sun, 31 Aug 2003 05:44:54 +0000 (05:44 +0000)]
SF bug #797853:  Small problems with the csv module's documentation

21 years agoSF bug #732120:An extended definition of "non-overlapping" would save time.
Raymond Hettinger [Sun, 31 Aug 2003 05:29:02 +0000 (05:29 +0000)]
SF bug #732120:An extended definition of "non-overlapping" would save time.

Clarified the meaning of non-overlapping in patterns with zero length
matches.

21 years agoSF patch #797157: Bug 794658: os.chmod docs, stat constants
Raymond Hettinger [Sun, 31 Aug 2003 05:09:52 +0000 (05:09 +0000)]
SF patch #797157:  Bug 794658: os.chmod docs, stat constants
(Contributed by Christos Georgiou.)

Reference the symbol definitions in the stat module.

21 years agoSF bug #785222: zlib monotonic test
Raymond Hettinger [Sun, 31 Aug 2003 04:35:24 +0000 (04:35 +0000)]
SF bug #785222:  zlib monotonic test

For smaller datasets, it is not always true the increasing the compression
level always results in better compression.  Removed the test which made
this invalid assumption.

21 years agoFix long option markup.
Raymond Hettinger [Sun, 31 Aug 2003 04:20:12 +0000 (04:20 +0000)]
Fix long option markup.

21 years agoRemove 'e.g.' from error message
Raymond Hettinger [Sat, 30 Aug 2003 23:57:36 +0000 (23:57 +0000)]
Remove 'e.g.' from error message

21 years agoSF patch #797180: Bug 792656: slicing explained
Raymond Hettinger [Sat, 30 Aug 2003 23:31:31 +0000 (23:31 +0000)]
SF patch #797180: Bug 792656: slicing explained

21 years agoSF patch #797868: Tutorial, sec. 5.1.4 could contain an extra example
Raymond Hettinger [Sat, 30 Aug 2003 23:21:32 +0000 (23:21 +0000)]
SF patch #797868:  Tutorial, sec. 5.1.4 could contain an extra example
(Revised from the original patch contributed by Michal Pasternak.)

Also, make a couple minor fixups elsewhere.

21 years agoSF patch #736962: Port tests to unittest
Raymond Hettinger [Sat, 30 Aug 2003 22:54:55 +0000 (22:54 +0000)]
SF patch #736962:  Port tests to unittest
(Contributed by Walter Dörwald).

* Convert three test modules to unittest format.
* Expanded coverage in test_structseq.py.
* Raymond added a new test in test_sets.py

21 years agoSF bug 797650: Infinite loop in textwrap.py
Raymond Hettinger [Sat, 30 Aug 2003 14:43:55 +0000 (14:43 +0000)]
SF bug 797650: Infinite loop in textwrap.py

When the indents were set to longer than the width and long word breaking
was enabled, an infinite loop would result because the inner loop did not
assure that at least one character was stripped off on every pass.

21 years agoEliminate unnecessary eval() in tests
Raymond Hettinger [Sat, 30 Aug 2003 01:24:19 +0000 (01:24 +0000)]
Eliminate unnecessary eval() in tests

21 years agoFor safety, replace a tuple entry before decreffing it.
Raymond Hettinger [Sat, 30 Aug 2003 00:10:06 +0000 (00:10 +0000)]
For safety, replace a tuple entry before decreffing it.

21 years agoSF bug #793826: using itertools.izip to mutate tuples
Raymond Hettinger [Fri, 29 Aug 2003 23:09:58 +0000 (23:09 +0000)]
SF bug #793826:  using itertools.izip to mutate tuples

Avoid Armin Rigo's dastardly exercise in re-entrancy.

21 years agoRework previous fix slightly; the &0x20 test seems useless, and the isprint() check...
Andrew M. Kuchling [Fri, 29 Aug 2003 18:50:59 +0000 (18:50 +0000)]
Rework previous fix slightly; the &0x20 test seems useless, and the isprint() check mustn't prevent the meta-bit check at the end

21 years agoAdd tests for meta- bit set
Andrew M. Kuchling [Fri, 29 Aug 2003 18:49:05 +0000 (18:49 +0000)]
Add tests for meta- bit set

21 years ago[Bug #790356] unctrl() doesn't work for full printable charset. Fix by Dave Cinege.
Andrew M. Kuchling [Fri, 29 Aug 2003 18:40:03 +0000 (18:40 +0000)]
[Bug #790356] unctrl() doesn't work for full printable charset.  Fix by Dave Cinege.

21 years agoAdd simple unit test for ascii.unctrl() function
Andrew M. Kuchling [Fri, 29 Aug 2003 18:37:37 +0000 (18:37 +0000)]
Add simple unit test for ascii.unctrl() function

21 years ago[Bug #776542] open_https() generates a bad Authorization header because it calls...
Andrew M. Kuchling [Fri, 29 Aug 2003 18:12:23 +0000 (18:12 +0000)]
[Bug #776542] open_https() generates a bad Authorization header because it calls .putheader() wrongly.  Reported by Steffen Ries.

21 years ago[Bug #780231] One of the changes described in the 2.3 "What's New" document
Andrew M. Kuchling [Fri, 29 Aug 2003 17:49:26 +0000 (17:49 +0000)]
[Bug #780231]  One of the changes described in the 2.3 "What's New" document
   actually occurred in 2.2.  Move the description to whatsnew22.tex.

[Bugfix candidate -- I'll backport to 2.3 (another 2.2 bugfix seems unlikely)

21 years agofix minor syntactic faux pas
Fred Drake [Fri, 29 Aug 2003 04:09:26 +0000 (04:09 +0000)]
fix minor syntactic faux pas

21 years agoMake sure parentheses are escaped when used in the format string.
Brett Cannon [Fri, 29 Aug 2003 02:28:54 +0000 (02:28 +0000)]
Make sure parentheses are escaped when used in the format string.
Closes bug #796149 .  Will be backported.

21 years agoSupport DBEnv.set_shm_key() to allow multi-threaded multi-process
Gregory P. Smith [Thu, 28 Aug 2003 21:50:30 +0000 (21:50 +0000)]
Support DBEnv.set_shm_key() to allow multi-threaded multi-process
database environments to use shared memory on systems supporting it.

21 years agoFix for SF bug [ 784075 ] Fatal Python error: unknown scope
Jeremy Hylton [Thu, 28 Aug 2003 14:42:14 +0000 (14:42 +0000)]
Fix for SF bug [ 784075 ] Fatal Python error: unknown scope

Make sure the inner function is not compiled when there is a syntax
error in the default arguments.

21 years agoFix SF bug [ 788011 ] compiler.compileFile fails on csv.py
Jeremy Hylton [Thu, 28 Aug 2003 02:09:26 +0000 (02:09 +0000)]
Fix SF bug [ 788011 ] compiler.compileFile fails on csv.py

Bug fix candidate.

21 years agoFix typo in docstring: The switch is '-x', not '-s'.
Thomas Heller [Wed, 27 Aug 2003 20:19:35 +0000 (20:19 +0000)]
Fix typo in docstring: The switch is '-x', not '-s'.

Will backport to 2.3 myself.

21 years agoremove extra word occurance; reported to webmaster
Fred Drake [Wed, 27 Aug 2003 15:11:40 +0000 (15:11 +0000)]
remove extra word occurance; reported to webmaster

21 years agoRemove a typo. (Or is this some markup I don't understand? ;-)
Thomas Heller [Wed, 27 Aug 2003 10:48:12 +0000 (10:48 +0000)]
Remove a typo. (Or is this some markup I don't understand? ;-)

21 years agoSF bug #795506: Wrong handling of string format code for float values.
Raymond Hettinger [Wed, 27 Aug 2003 04:55:52 +0000 (04:55 +0000)]
SF bug #795506:  Wrong handling of string format code for float values.

Adding missing support for '%F'.

Will backport to 2.3.1.

21 years agotest_largefile can leave its temp file open if one of many tests fail. On
Jason Tishler [Tue, 26 Aug 2003 11:59:27 +0000 (11:59 +0000)]
test_largefile can leave its temp file open if one of many tests fail. On
platforms (e.g., Cygwin) that are "particular" about open files, this will
cause other regression tests that use the same temp file to fail:

    $ ./python.exe -E -tt Lib/test/regrtest.py -l
    test_largefile test_mmap test_mutants
    test_largefile
    test test_largefile failed -- got -1794967295L, but expected 2500000001L
    test_mmap
    test test_mmap crashed -- exceptions.IOError: [Errno 13] Permission denied: '@test'
    test_mutants
    test test_mutants crashed -- exceptions.IOError: [Errno 13] Permission denied: '@test'

This patch solves the problem by adding missing "try/finally" blocks. Note
that the "large" size of this patch is due to many white space changes --
otherwise, the patch is small.

I tested this patch under Red Hat Linux 8.0 too.

21 years agoMake the derived tools amendable to cut and paste.
Raymond Hettinger [Mon, 25 Aug 2003 05:06:09 +0000 (05:06 +0000)]
Make the derived tools amendable to cut and paste.

21 years agoFix doubled word typos.
Raymond Hettinger [Mon, 25 Aug 2003 04:43:53 +0000 (04:43 +0000)]
Fix doubled word typos.

21 years agoAdded doubled word warnings.
Raymond Hettinger [Mon, 25 Aug 2003 04:39:55 +0000 (04:39 +0000)]
Added doubled word warnings.

21 years agoFix double word typos.
Raymond Hettinger [Mon, 25 Aug 2003 04:28:05 +0000 (04:28 +0000)]
Fix double word typos.

21 years agoSF bug #793702: Section 13.1 HTMLParser documentation error
Raymond Hettinger [Mon, 25 Aug 2003 03:31:28 +0000 (03:31 +0000)]
SF bug #793702:  Section 13.1 HTMLParser documentation error

The -- is special to TeX and was printing as just -.

21 years agoFix typo.
Raymond Hettinger [Sat, 23 Aug 2003 03:49:08 +0000 (03:49 +0000)]
Fix typo.

Thou shalt not count to two unless proceeding to the number three.

21 years agoFix typo.
Raymond Hettinger [Sat, 23 Aug 2003 03:38:11 +0000 (03:38 +0000)]
Fix typo.

21 years agoFix a loooong-standing brainfart: I got the site-packages path for
Greg Ward [Sat, 23 Aug 2003 02:09:18 +0000 (02:09 +0000)]
Fix a loooong-standing brainfart: I got the site-packages path for
Python 1.5.2 wrong in the section on config files.

21 years agoBuild the bzip2.lib as a custom pre-link step in MSVC.
Thomas Heller [Wed, 20 Aug 2003 18:27:36 +0000 (18:27 +0000)]
Build the bzip2.lib as a custom pre-link step in MSVC.

21 years agoOpening the WISE script changes a few items:
Thomas Heller [Wed, 20 Aug 2003 17:27:42 +0000 (17:27 +0000)]
Opening the WISE script changes a few items:
I have a different WISE version, and it's installed in a different directory.
My sytem directory is somewhere else.

21 years agoUpdate get_param() description to reflect changes to the docstring.
Barry Warsaw [Tue, 19 Aug 2003 04:26:59 +0000 (04:26 +0000)]
Update get_param() description to reflect changes to the docstring.

21 years agoBump the version number for the standalone mimelib package.
Barry Warsaw [Tue, 19 Aug 2003 04:05:25 +0000 (04:05 +0000)]
Bump the version number for the standalone mimelib package.

21 years agoDescribe the fix to the email package.
Barry Warsaw [Tue, 19 Aug 2003 03:59:09 +0000 (03:59 +0000)]
Describe the fix to the email package.

21 years agotest_rfc2231_no_language_or_charset_in_filename(),
Barry Warsaw [Tue, 19 Aug 2003 03:54:24 +0000 (03:54 +0000)]
test_rfc2231_no_language_or_charset_in_filename(),
test_rfc2231_no_language_or_charset_in_boundary(),
test_rfc2231_no_language_or_charset_in_charset(): New tests for proper
decoding of some RFC 2231 headers.

Backport candidate (as was the Utils.py 1.25 change) to both Python
2.3.1 and 2.2.4 -- will do momentarily.

21 years agoget_param(): Update the docstring to explain how CHARSET and LANGUAGE
Barry Warsaw [Tue, 19 Aug 2003 03:53:02 +0000 (03:53 +0000)]
get_param(): Update the docstring to explain how CHARSET and LANGUAGE
can be None, and what to do in that situation.

get_filename(), get_boundary(), get_content_charset(): Make sure these
handle RFC 2231 headers without a CHARSET field.

Backport candidate (as was the Utils.py 1.25 change) to both Python
2.3.1 and 2.2.4 -- will do momentarily.

21 years agodecode_rfc2231(): We need to urllib.unquote() the value even if the
Barry Warsaw [Tue, 19 Aug 2003 03:49:34 +0000 (03:49 +0000)]
decode_rfc2231(): We need to urllib.unquote() the value even if the
charset and language fields are not present, e.g. as in:

    title*0="This%20is%20encoded"

21 years agoThis started opening files in text mode by default in the 2.3 release,
Tim Peters [Mon, 18 Aug 2003 23:52:09 +0000 (23:52 +0000)]
This started opening files in text mode by default in the 2.3 release,
which is a disaster on Windows.  Restored the binary default of all
previous releases.  Also minor code cleanups.

Bugfix candidate!

21 years agoFix a crash: when sq_item failed the code continued blindly and used the
Walter Dörwald [Mon, 18 Aug 2003 18:28:45 +0000 (18:28 +0000)]
Fix a crash: when sq_item failed the code continued blindly and used the
NULL pointer. (Detected by Michael Hudson, patch provided by Neal Norwitz).

Fix refcounting leak in filtertuple().

21 years agoRemove a stray single quote.
Thomas Heller [Mon, 18 Aug 2003 17:53:33 +0000 (17:53 +0000)]
Remove a stray single quote.
Will backport to release23-maint.

21 years agoSF #784031: Byte-order bug in socket-module getaddrinfo.c
Raymond Hettinger [Sun, 17 Aug 2003 21:28:39 +0000 (21:28 +0000)]
SF #784031:  Byte-order bug in socket-module getaddrinfo.c

21 years agoImprovements to set.py:
Raymond Hettinger [Sun, 17 Aug 2003 08:34:09 +0000 (08:34 +0000)]
Improvements to set.py:

* Relaxed the argument restrictions for non-operator methods.  They now
  allow any iterable instead of requiring a set.  This makes the module
  a little easier to use and paves the way for an efficient C
  implementation which can take better advantage of iterable arguments
  while screening out immutables.

* Deprecated Set.update() because it now duplicates Set.union_update()

* Adapted the tests and docs to include the above changes.

* Added more test coverage including testing identities and checking
  to make sure non-restartable generators work as arguments.

Will backport to Py2.3.1 so that the interface remains consistent
across versions.  The deprecation of update() will be changed to
a FutureWarning.

21 years agoAdjust some horizontal indentation to be consistent with the style used
Fred Drake [Sat, 16 Aug 2003 06:30:47 +0000 (06:30 +0000)]
Adjust some horizontal indentation to be consistent with the style used
throughout the documentation.

21 years agoKeep doctests in sync with the docs.
Raymond Hettinger [Sat, 16 Aug 2003 00:59:59 +0000 (00:59 +0000)]
Keep doctests in sync with the docs.