]> granicus.if.org Git - python/log
python
22 years agoSF patch 637176: list.sort crasher
Tim Peters [Tue, 12 Nov 2002 22:08:10 +0000 (22:08 +0000)]
SF patch 637176: list.sort crasher

Armin Rigo's Draconian but effective fix for

SF bug 453523: list.sort crasher

slightly fiddled to catch more cases of list mutation.  The dreaded
internal "immutable list type" is gone!  OTOH, if you look at a list
*while* it's being sorted now, it will appear to be empty.  Better
than a core dump.

22 years agoClarified documentation of tempnam().
Fred Drake [Tue, 12 Nov 2002 22:07:11 +0000 (22:07 +0000)]
Clarified documentation of tempnam().
Closes SF bug #635656.

22 years agoUpdate text to refer to 2.2.2
Andrew M. Kuchling [Tue, 12 Nov 2002 18:59:20 +0000 (18:59 +0000)]
Update text to refer to 2.2.2
Remove an XXX item: I'm not going to write a section on the email package
    at this point

22 years agoRemove extra word
Andrew M. Kuchling [Tue, 12 Nov 2002 18:45:46 +0000 (18:45 +0000)]
Remove extra word

22 years agoSF patch 629637: Add sample(population, k) method to the random module.
Raymond Hettinger [Tue, 12 Nov 2002 17:41:57 +0000 (17:41 +0000)]
SF patch 629637:  Add sample(population, k) method to the random module.
Used for random sampling without replacement.

22 years agodelete reference to building on Minix, which will be unsupported in 2.3
Skip Montanaro [Tue, 12 Nov 2002 16:53:36 +0000 (16:53 +0000)]
delete reference to building on Minix, which will be unsupported in 2.3

22 years agoUse PyInt_AsLong instead of PyInt_AS_LONG after the call to
Walter Dörwald [Tue, 12 Nov 2002 11:42:20 +0000 (11:42 +0000)]
Use PyInt_AsLong instead of PyInt_AS_LONG after the call to
PyNumber_Int, because now PyNumber_Int might return a long,
and PyInt_AsLong can handle that, whereas PyInt_AS_LONG can't.

This closes SF bug #629989.

22 years agoDon't define _XOPEN_SOURCE and _POSIX_C_SOURCE on FreeBSD 5.0. Fixes #636318.
Martin v. Löwis [Tue, 12 Nov 2002 06:04:39 +0000 (06:04 +0000)]
Don't define _XOPEN_SOURCE and _POSIX_C_SOURCE on FreeBSD 5.0. Fixes #636318.

22 years agoForgot a paren in the MSVC + 64-bit + Intel case.
Tim Peters [Mon, 11 Nov 2002 20:21:06 +0000 (20:21 +0000)]
Forgot a paren in the MSVC + 64-bit + Intel case.

22 years agoAdded a blurb about the change to sys.version under MSVC.
Tim Peters [Mon, 11 Nov 2002 19:51:33 +0000 (19:51 +0000)]
Added a blurb about the change to sys.version under MSVC.

22 years agoSome help for SF 614770: MSVC 7.0 compiler support
Tim Peters [Mon, 11 Nov 2002 19:44:39 +0000 (19:44 +0000)]
Some help for SF 614770:  MSVC 7.0 compiler support

This changes sys.version under Microsoft builds to include the MS compiler
version number (_MSC_VER).  Since VC 6 and VC 7 are apparently
incompatible, and both can be installed on a single box, distutils needs
some way to figure out which version of MSVC a given Python was compiled
under.

As also suggested by MvL, got rid of #ifdef'ery for the defunct _M_ALPHA
target.

Bugfix candidate?  Hard to say.  As far as I'm concerned, VC 7 wasn't
a supported platform in the 2.2 line.  If somebody thinks it should be,
they can do the work.

22 years agoUse new-style CHECK_TYPE to avoid modifying confdefs.h. Include sys/types.h
Martin v. Löwis [Mon, 11 Nov 2002 14:58:44 +0000 (14:58 +0000)]
Use new-style CHECK_TYPE to avoid modifying confdefs.h. Include sys/types.h
Fixes #636431.

22 years agoProtect pyconfig.h from multiple inclusions.
Martin v. Löwis [Mon, 11 Nov 2002 13:37:28 +0000 (13:37 +0000)]
Protect pyconfig.h from multiple inclusions.

22 years agoDo not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis [Mon, 11 Nov 2002 13:26:51 +0000 (13:26 +0000)]
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034

22 years agoDon't define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012].
Martin v. Löwis [Mon, 11 Nov 2002 13:26:51 +0000 (13:26 +0000)]
Don't define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012].

22 years agoCheck whether we can take the address of chown, link, and symlink.
Martin v. Löwis [Mon, 11 Nov 2002 13:23:45 +0000 (13:23 +0000)]
Check whether we can take the address of chown, link, and symlink.

22 years ago- Use imp to find appletrawmain.py in stead of hand-crafting the path
Jack Jansen [Mon, 11 Nov 2002 00:06:14 +0000 (00:06 +0000)]
- Use imp to find appletrawmain.py in stead of hand-crafting the path
  to it.
- Allow for symlinks in the applet template.

22 years ago- Building IDE is optional on waste being available, similar to building
Jack Jansen [Mon, 11 Nov 2002 00:05:00 +0000 (00:05 +0000)]
- Building IDE is optional on waste being available, similar to building
  IDLE (it was a fatal error before)
- Shuffled a few things around to facilitate the experimental building
  of MacPython for Jaguar's pre-installed python.

22 years agoMake private functions static so we don't pollute the namespace
Neal Norwitz [Sun, 10 Nov 2002 14:33:26 +0000 (14:33 +0000)]
Make private functions static so we don't pollute the namespace

22 years agoAllow both string and Unicode objects in levels.
Martin v. Löwis [Sat, 9 Nov 2002 20:19:12 +0000 (20:19 +0000)]
Allow both string and Unicode objects in levels.

22 years agoDon't try to convert the test filename to Unicode with -U.
Martin v. Löwis [Sat, 9 Nov 2002 19:57:26 +0000 (19:57 +0000)]
Don't try to convert the test filename to Unicode with -U.

22 years agoFix typo.
Martin v. Löwis [Sat, 9 Nov 2002 19:54:06 +0000 (19:54 +0000)]
Fix typo.

22 years agoLook in db4 directories when checking for db4.
Martin v. Löwis [Sat, 9 Nov 2002 19:53:04 +0000 (19:53 +0000)]
Look in db4 directories when checking for db4.

22 years agoSearch for tix subdirectories. Fixes #564729. Will backport to 2.2.
Martin v. Löwis [Sat, 9 Nov 2002 19:01:44 +0000 (19:01 +0000)]
Search for tix subdirectories. Fixes #564729. Will backport to 2.2.

22 years agoRestore to ANSI C.
Michael W. Hudson [Sat, 9 Nov 2002 14:47:18 +0000 (14:47 +0000)]
Restore to ANSI C.

22 years agoInstall the bz2 DLL on Windows.
Tim Peters [Sat, 9 Nov 2002 08:24:58 +0000 (08:24 +0000)]
Install the bz2 DLL on Windows.

22 years agoI already forgot what I changed -- it wasn't important <wink>.
Tim Peters [Sat, 9 Nov 2002 06:51:30 +0000 (06:51 +0000)]
I already forgot what I changed -- it wasn't important <wink>.

22 years agoOK -- all tests pass on Windows now. The rest were due to 3 more
Tim Peters [Sat, 9 Nov 2002 06:49:43 +0000 (06:49 +0000)]
OK -- all tests pass on Windows now.  The rest were due to 3 more
binary-vs-text-mode screwups.

22 years agoMore tests run on Windows now. Something is still wrong here, but no
Tim Peters [Sat, 9 Nov 2002 06:45:31 +0000 (06:45 +0000)]
More tests run on Windows now.  Something is still wrong here, but no
idea what.  Added liberal XXX explanations for the next guy.

22 years agoMany changes to get this to pass on Windows, and to make it easier to
Tim Peters [Sat, 9 Nov 2002 06:31:56 +0000 (06:31 +0000)]
Many changes to get this to pass on Windows, and to make it easier to
figure out what the code was doing.  The fixes were a combination of
closing open files before deletion, opening files in binary mode, and
plain skipping things that can't work on Windows (BaseTest.decompress
uses a process gimmick that doesn't exist on Windows, and, even if it
did, assumes a "bunzip2" executable is on PATH).

22 years agoWhitespace normalization.
Tim Peters [Sat, 9 Nov 2002 05:26:15 +0000 (05:26 +0000)]
Whitespace normalization.

22 years agoComment out the test docstrings so we can at least tell which tests are
Tim Peters [Sat, 9 Nov 2002 05:22:41 +0000 (05:22 +0000)]
Comment out the test docstrings so we can at least tell which tests are
failing.

22 years agoWhitespace normalization.
Tim Peters [Sat, 9 Nov 2002 05:08:07 +0000 (05:08 +0000)]
Whitespace normalization.

22 years agoStart building the bz2 module on Windows.
Tim Peters [Sat, 9 Nov 2002 04:48:58 +0000 (04:48 +0000)]
Start building the bz2 module on Windows.

CAUTION:  The Python test still has many failures, but I'm out of time
for this now (already took much longer than hoped to get this far).
The base bz2 library does pass its own tests (see next).

CAUTION:  People building on Windows have to download and build tne
bz2 compression libraries now.  See PCbuild\readme.txt for complete
instructions.

22 years agoOpen at least one binary file in binary mode. This allows a few of the
Tim Peters [Sat, 9 Nov 2002 04:44:30 +0000 (04:44 +0000)]
Open at least one binary file in binary mode.  This allows a few of the
bz2 tests to pass on Windows; most are still failing.

22 years agobz2_compress/bz2_decompress: more casting away LONG_LONG for
Tim Peters [Sat, 9 Nov 2002 04:33:36 +0000 (04:33 +0000)]
bz2_compress/bz2_decompress:  more casting away LONG_LONG for
_PyString_Resize calls.

22 years agoBZ2Decomp_decompress(): Fixed more long vs LONG_LONG confusions.
Tim Peters [Sat, 9 Nov 2002 04:31:38 +0000 (04:31 +0000)]
BZ2Decomp_decompress():  Fixed more long vs LONG_LONG confusions.

22 years agoBZ2Comp_flush(): Fixed more int vs LONG_LONG confusions.
Tim Peters [Sat, 9 Nov 2002 04:30:08 +0000 (04:30 +0000)]
BZ2Comp_flush():  Fixed more int vs LONG_LONG confusions.

22 years agoBZ2Comp_compress(): Explicitly cast the LONG_LONG size argument to
Tim Peters [Sat, 9 Nov 2002 04:28:17 +0000 (04:28 +0000)]
BZ2Comp_compress():  Explicitly cast the LONG_LONG size argument to
_PyString_Resize to int.

22 years agoBZ2Comp_compress(): changed decl of totalout to LONG_LONG, since it's
Tim Peters [Sat, 9 Nov 2002 04:26:02 +0000 (04:26 +0000)]
BZ2Comp_compress():  changed decl of totalout to LONG_LONG, since it's
solely used to hold LONG_LONG values, and the compiler rightfully warns
about potential data loss otherwise.

22 years agoRepaired signed-vs-unsigned mismatch.
Tim Peters [Sat, 9 Nov 2002 04:23:31 +0000 (04:23 +0000)]
Repaired signed-vs-unsigned mismatch.

22 years agoThis couldn't compile on WIndows, due to hardcoded "long long". Repaired.
Tim Peters [Sat, 9 Nov 2002 04:21:44 +0000 (04:21 +0000)]
This couldn't compile on WIndows, due to hardcoded "long long".  Repaired.

22 years agoAnother attempt at making the set constructor both safe and fast. [SF
Guido van Rossum [Fri, 8 Nov 2002 17:03:36 +0000 (17:03 +0000)]
Another attempt at making the set constructor both safe and fast.  [SF
bug 628246]

22 years ago[Bug #233259] Ugly traceback for DistutilsPlatformError
Andrew M. Kuchling [Fri, 8 Nov 2002 16:18:24 +0000 (16:18 +0000)]
[Bug #233259] Ugly traceback for DistutilsPlatformError
  Fixed by catching all exceptions that are subclasses of DistutilsError,
  so only the error message will be printed.  You can still get the
  whole traceback by enabling the Distutils debugging mode.

22 years agoFix comment typo
Andrew M. Kuchling [Fri, 8 Nov 2002 15:11:42 +0000 (15:11 +0000)]
Fix comment typo

22 years ago* Modules/bz2module.c
Gustavo Niemeyer [Fri, 8 Nov 2002 14:31:49 +0000 (14:31 +0000)]
* Modules/bz2module.c
  (BZ2File_dealloc): Call Util_DropReadAhead().
  (*): Included aesthetic changes by Neal Norwitz.

22 years agoSimply delete the fpectl module, instead of leaving it commented out;
Andrew M. Kuchling [Fri, 8 Nov 2002 13:11:50 +0000 (13:11 +0000)]
Simply delete the fpectl module, instead of leaving it commented out;
    if people want to compile it, they should edit Modules/Setup, not setup.py

22 years agoRichie Hindle
Michael W. Hudson [Fri, 8 Nov 2002 13:09:39 +0000 (13:09 +0000)]
Richie Hindle

22 years agoThis is Richie Hindle's patch:
Michael W. Hudson [Fri, 8 Nov 2002 13:08:46 +0000 (13:08 +0000)]
This is Richie Hindle's patch:

[ 631276 ] Exceptions raised by line trace function

It conflicted with the patches from Armin I just checked it, so I had
to so some bits by hand.

22 years agoAssorted patches from Armin Rigo:
Michael W. Hudson [Fri, 8 Nov 2002 12:53:11 +0000 (12:53 +0000)]
Assorted patches from Armin Rigo:

[ 617309 ] getframe hook (Psyco #1)
[ 617311 ] Tiny profiling info (Psyco #2)
[ 617312 ] debugger-controlled jumps (Psyco #3)

These are forward ports from 2.2.2.

22 years agoMake strip behave as documented. Will backport to 2.2.3.
Martin v. Löwis [Fri, 8 Nov 2002 12:09:59 +0000 (12:09 +0000)]
Make strip behave as documented. Will backport to 2.2.3.

22 years agoClarify the meaning of "requires Python 1.5.2".
Raymond Hettinger [Fri, 8 Nov 2002 05:49:47 +0000 (05:49 +0000)]
Clarify the meaning of "requires Python 1.5.2".

22 years agoCloses SF bug #634069 reporting the docs on the ** operator were out
Raymond Hettinger [Fri, 8 Nov 2002 05:30:23 +0000 (05:30 +0000)]
Closes SF bug #634069 reporting the docs on the ** operator were out
of date and did not reflect the current CPython implementation.

22 years ago_update(): Commented the new obscurity. Materialized into a tuple
Tim Peters [Fri, 8 Nov 2002 05:26:52 +0000 (05:26 +0000)]
_update():  Commented the new obscurity.  Materialized into a tuple
instead of into a list for a bit of speed/space savings.  Reopened the
bug report too (628246), as I'm unclear on why we don't sort out the
cause of the TypeError instead.

22 years agoCloses SF bug #628246.
Raymond Hettinger [Fri, 8 Nov 2002 05:03:21 +0000 (05:03 +0000)]
Closes SF bug #628246.

The _update method detected mutable elements by trapping TypeErrors.
Unfortunately, this masked useful TypeErrors raised by the iterable
itself.  For cases where it is possible for an iterable to raise
a TypeError, the iterable is pre-converted to a list outside the
try/except so that any TypeErrors propagate through.

22 years agoGot rid of the python.rsrc resource file. The error message strings and
Jack Jansen [Thu, 7 Nov 2002 23:07:05 +0000 (23:07 +0000)]
Got rid of the python.rsrc resource file. The error message strings and
dialogs are now stored in Mac/Lib, and loaded on demand through macresource.
Not only does this simplify a MacPython based on Apple's Python, but
it also makes Mac error codes come out symbolically when running command
line python (if you have Mac/Lib in your path).

The resource files are copied from Mac/Resources. The old ones will disappear
after the OS9 build procedure has been adjusted.

22 years agoAdd documentation for the PEP 293 functionality:
Walter Dörwald [Thu, 7 Nov 2002 22:33:17 +0000 (22:33 +0000)]
Add documentation for the PEP 293 functionality:

The errors attribute can be changed after the reader/writer
is created.

For encoding there are two additional errors values:
"xmlcharrefreplace" and "backslashreplace".

These values can be extended via register_error().

22 years agoMinor markup adjustments.
Fred Drake [Thu, 7 Nov 2002 17:13:03 +0000 (17:13 +0000)]
Minor markup adjustments.

22 years agoRestore attribute access so that the following work again:
Raymond Hettinger [Thu, 7 Nov 2002 16:55:54 +0000 (16:55 +0000)]
Restore attribute access so that the following work again:

   dir(xrange(10))
   xrange(10).__getitem__(4)

22 years agoUse dynamic linking for the SHGetSpecialFolderPath function, it is not
Thomas Heller [Thu, 7 Nov 2002 16:46:19 +0000 (16:46 +0000)]
Use dynamic linking for the SHGetSpecialFolderPath function, it is not
always available on Windows NT. When the function cannot be loaded,
get_special_folder_path raises OSError, "function not available".

Compiled the exe, and rebuilt bdist_wininst.py.

22 years agoFix a small bug when sys.argv[0] has an absolute path.
Thomas Heller [Thu, 7 Nov 2002 16:41:38 +0000 (16:41 +0000)]
Fix a small bug when sys.argv[0] has an absolute path.
See http://mail.python.org/pipermail/distutils-sig/2002-November/003039.html

22 years agoDocument the changed fdopen behaviour.
Thomas Heller [Thu, 7 Nov 2002 16:33:44 +0000 (16:33 +0000)]
Document the changed fdopen behaviour.
(Hope the markup is ok).

22 years agoNEWS entry for the changed fdopen function.
Thomas Heller [Thu, 7 Nov 2002 16:23:55 +0000 (16:23 +0000)]
NEWS entry for the changed fdopen function.

22 years agoEnforce valid filemode. Fixes SF Bug #623464.
Thomas Heller [Thu, 7 Nov 2002 16:00:59 +0000 (16:00 +0000)]
Enforce valid filemode. Fixes SF Bug #623464.

22 years agoTry linking the major/minor test program. Fixes #634444.
Martin v. Löwis [Thu, 7 Nov 2002 07:42:30 +0000 (07:42 +0000)]
Try linking the major/minor test program. Fixes #634444.

22 years agoFixed sre bug "[#581080] Provoking infinite scanner loops".
Gustavo Niemeyer [Thu, 7 Nov 2002 03:28:56 +0000 (03:28 +0000)]
Fixed sre bug "[#581080] Provoking infinite scanner loops".

This bug happened because: 1) the scanner_search and scanner_match methods
were not checking the buffer limits before increasing the current pointer;
and 2) SRE_SEARCH was using "if (ptr == end)" as a loop break, instead of
"if (ptr >= end)".

* Modules/_sre.c
  (SRE_SEARCH): Check for "ptr >= end" to break loops, so that we don't
  hang forever if a pointer passing the buffer limit is used.
  (scanner_search,scanner_match): Don't increment the current pointer
  if we're going to pass the buffer limit.

* Misc/NEWS
  Mention the fix.

22 years agoScript to create .app bundles. Largely untested.
Jack Jansen [Wed, 6 Nov 2002 23:15:51 +0000 (23:15 +0000)]
Script to create .app bundles. Largely untested.

22 years agoAdd --check-tkinter to setup.py. Install IDLE. Fixes #634078.
Martin v. Löwis [Wed, 6 Nov 2002 21:59:33 +0000 (21:59 +0000)]
Add --check-tkinter to setup.py. Install IDLE. Fixes #634078.

22 years agoUse column= rather than col=; with Tk 8.4 col= no longer works.
Guido van Rossum [Wed, 6 Nov 2002 19:00:30 +0000 (19:00 +0000)]
Use column= rather than col=; with Tk 8.4 col= no longer works.
[SF patch 634250 -- that was an IDLEFORK patch.]

22 years agoFixed bug "[#466200] ability to specify a 'verify' script".
Gustavo Niemeyer [Wed, 6 Nov 2002 18:44:26 +0000 (18:44 +0000)]
Fixed bug "[#466200] ability to specify a 'verify' script".

* Lib/distutils/command/bdist_rpm.py
  (bdist_rpm.initialize_options): Included verify_script attribute.
  (bdist_rpm.finalize_package_data): Ensure that verify_script is a filename.
  (bdist_rpm._make_spec_file): Included verify_script in script_options
  tuple.

* Misc/NEWS
  Mention change.

22 years agoAdd next() and __iter__() methods to StreamReader, StreamReaderWriter
Walter Dörwald [Wed, 6 Nov 2002 16:53:44 +0000 (16:53 +0000)]
Add next() and __iter__() methods to StreamReader, StreamReaderWriter
and StreamRecoder.

This closes SF bug #634246.

22 years agoMake int("...") return a long if an int would overflow.
Walter Dörwald [Wed, 6 Nov 2002 16:15:14 +0000 (16:15 +0000)]
Make int("...") return a long if an int would overflow.

Also remove the 512 character limitation for int(u"...") and long(u"...").

This closes SF bug #629989.

22 years agoFix NameError exception ('name' undefined)
Andrew M. Kuchling [Wed, 6 Nov 2002 15:40:05 +0000 (15:40 +0000)]
Fix NameError exception ('name' undefined)

22 years agoHandle really big steps in extended slices.
Michael W. Hudson [Wed, 6 Nov 2002 15:17:32 +0000 (15:17 +0000)]
Handle really big steps in extended slices.

Fixes a test failure on 64 bit platforms (I hope).

22 years agoFix docstring typos
Andrew M. Kuchling [Wed, 6 Nov 2002 14:51:20 +0000 (14:51 +0000)]
Fix docstring typos

22 years agoOld change (probably suggested by Jason Tishler) The GNU/Windows compiler is now...
Andrew M. Kuchling [Wed, 6 Nov 2002 14:34:50 +0000 (14:34 +0000)]
Old change (probably suggested by Jason Tishler) The GNU/Windows compiler is now called MinGW

22 years ago[Patch #633635 from David M. Cooke]
Andrew M. Kuchling [Wed, 6 Nov 2002 14:17:21 +0000 (14:17 +0000)]
[Patch #633635 from David M. Cooke]
    Make docs accurate; getch() in nodelay mode returns -1

22 years ago[Patch #633635 from David M. Cooke]
Andrew M. Kuchling [Wed, 6 Nov 2002 14:15:36 +0000 (14:15 +0000)]
[Patch #633635 from David M. Cooke]
   Make keyname raise ValueError if passed -1, avoiding a segfault
   Make getkey() match the docs and raise an exception in nodelay mode
   The return type of getch() is int, not chtype

22 years agoFixed bug #470582, using a modified version of patch #527371,
Gustavo Niemeyer [Wed, 6 Nov 2002 14:06:53 +0000 (14:06 +0000)]
Fixed bug #470582, using a modified version of patch #527371,
from Greg Chapman.

* Modules/_sre.c
  (lastmark_restore): New function, implementing algorithm to restore
  a state to a given lastmark. In addition to the similar algorithm used
  in a few places of SRE_MATCH, restore lastindex when restoring lastmark.
  (SRE_MATCH): Replace lastmark inline restoring by lastmark_restore(),
  function. Also include it where missing. In SRE_OP_MARK, set lastindex
  only if i > lastmark.

* Lib/test/re_tests.py
* Lib/test/test_sre.py
  Included regression tests for the fixed bugs.

* Misc/NEWS
  Mention fixes.

22 years agoFix for bug 631247: configure should test the build directory for
Jack Jansen [Wed, 6 Nov 2002 13:33:32 +0000 (13:33 +0000)]
Fix for bug 631247: configure should test the build directory for
being on a case-insensitive filesystem, not the source directory.

22 years agoSkip the test_nocaret test when running as jython. Jython happens to add
Finn Bock [Wed, 6 Nov 2002 11:45:15 +0000 (11:45 +0000)]
Skip the test_nocaret test when running as jython. Jython happens to add
a caret in this case too.

22 years agoMake the test pass for jython where there are no sys.executable.
Finn Bock [Wed, 6 Nov 2002 11:37:57 +0000 (11:37 +0000)]
Make the test pass for jython where there are no sys.executable.

22 years agoBy default when getting the search menu, the currently highligted
Chui Tey [Wed, 6 Nov 2002 02:18:45 +0000 (02:18 +0000)]
By default when getting the search menu, the currently highligted
text is the search term.

22 years agoFix minor wording and 2 typos
Neal Norwitz [Tue, 5 Nov 2002 23:55:27 +0000 (23:55 +0000)]
Fix minor wording and 2 typos

22 years agoSupport sdist.
Martin v. Löwis [Tue, 5 Nov 2002 23:01:50 +0000 (23:01 +0000)]
Support sdist.

22 years agoWhoops, fix the typo correctly this time
Neal Norwitz [Tue, 5 Nov 2002 22:46:39 +0000 (22:46 +0000)]
Whoops, fix the typo correctly this time

22 years agoUse PyOS_snprintf() instead of sprintf and wrap the long line
Neal Norwitz [Tue, 5 Nov 2002 22:41:37 +0000 (22:41 +0000)]
Use PyOS_snprintf() instead of sprintf and wrap the long line

22 years agoAdd an entry for pdb's new `pp' command.
Barry Warsaw [Tue, 5 Nov 2002 22:41:33 +0000 (22:41 +0000)]
Add an entry for pdb's new `pp' command.

22 years agoDocument the new `pp' command.
Barry Warsaw [Tue, 5 Nov 2002 22:41:16 +0000 (22:41 +0000)]
Document the new `pp' command.

22 years agoImplement a `pp' command, which is like `p' except that it
Barry Warsaw [Tue, 5 Nov 2002 22:40:20 +0000 (22:40 +0000)]
Implement a `pp' command, which is like `p' except that it
pretty-prints the value of its expression argument.

22 years agoFix minor typos
Neal Norwitz [Tue, 5 Nov 2002 22:37:58 +0000 (22:37 +0000)]
Fix minor typos

22 years agoMinor cleanups, markup.
Fred Drake [Tue, 5 Nov 2002 22:19:45 +0000 (22:19 +0000)]
Minor cleanups, markup.

22 years agoDocument that images go away when they go away. Fixes #632323.
Martin v. Löwis [Tue, 5 Nov 2002 22:11:50 +0000 (22:11 +0000)]
Document that images go away when they go away. Fixes #632323.

22 years agoparse(), _parseheaders(), _parsebody(): A fix for SF bug #633527,
Barry Warsaw [Tue, 5 Nov 2002 21:44:06 +0000 (21:44 +0000)]
parse(), _parseheaders(), _parsebody(): A fix for SF bug #633527,
where in lax parsing, the first non-header line after a header block
(e.g. the first line not containing a colon, and not a continuation),
can be treated as the first body line, even without the RFC mandated
blank line separator.

rfc822 had this behavior, and I vaguely remember problems with this,
but can't remember details.  In any event, all the tests still pass,
so I guess we'll find out. ;/

This patch works by returning the non-header, non-continuation line
from _parseheader() and using that as the first header line prepended
to fp.read() if given.  It's usually None.

We use this approach instead of trying to seek/tell the file-like
object.

22 years agotest_no_separating_blank_line(): A test for SF bug #633527, no
Barry Warsaw [Tue, 5 Nov 2002 21:36:17 +0000 (21:36 +0000)]
test_no_separating_blank_line(): A test for SF bug #633527, no
separating blank line between a header block and body text.

Tests both lax and strict parsing.

22 years agoA message with no separating blank line between the headers and the
Barry Warsaw [Tue, 5 Nov 2002 21:29:47 +0000 (21:29 +0000)]
A message with no separating blank line between the headers and the
body.  A test message for SF bug #633527.

22 years agotest_text_plain_in_a_multipart_digest(): A test of the fix for SF bug
Barry Warsaw [Tue, 5 Nov 2002 21:04:52 +0000 (21:04 +0000)]
test_text_plain_in_a_multipart_digest(): A test of the fix for SF bug
#631350, where a subobject in a multipart/digest isn't a
message/rfc822.

22 years ago_parsebody(): A fix for SF bug #631350, where a subobject in a
Barry Warsaw [Tue, 5 Nov 2002 20:54:37 +0000 (20:54 +0000)]
_parsebody(): A fix for SF bug #631350, where a subobject in a
multipart/digest isn't a message/rfc822.  This is legal, but counter
to recommended practice in RFC 2046, $5.1.5.

The fix is to look at the content type after setting the default
content type.  If the maintype is then message or multipart, attach
the parsed subobject, otherwise use set_payload() to set the data of
the other object.

22 years agoTest case, distilled from SF bug #631350, where a subobject in a
Barry Warsaw [Tue, 5 Nov 2002 20:53:18 +0000 (20:53 +0000)]
Test case, distilled from SF bug #631350, where a subobject in a
multipart/digest isn't a message/rfc822.  This is legal, but counter
to recommended practice in RFC 2046, $5.1.5.

22 years agoAnother round on SF patch 618135: gzip.py and files > 2G
Tim Peters [Tue, 5 Nov 2002 20:38:55 +0000 (20:38 +0000)]
Another round on SF patch 618135: gzip.py and files > 2G
The last round boosted "the limit" from 2GB to 4GB.  This round gets
rid of the 4GB limit.  For files > 4GB, gzip stores just the last 32
bits of the file size, and now we play along with that too.  Tested
by hand (on a 6+GB file) on Win2K.

Boosting from 2GB to 4GB was arguably enough "a bugfix".  Going beyond
that smells more like "new feature" to me.