Martin v. Löwis [Wed, 13 Nov 2002 08:51:19 +0000 (08:51 +0000)]
The libsocket/libnsl problem is specific to IRIX 4. Confirmed by Tim Rice.
Neal Norwitz [Tue, 12 Nov 2002 23:21:15 +0000 (23:21 +0000)]
Fix SF # 464405, freeze doesn't like DOS files on Linux
Use universal newline support when opening a file for freezing.
Fred Drake [Tue, 12 Nov 2002 23:12:54 +0000 (23:12 +0000)]
Clarified meaning of \w and \W with respect to the UNICODE and LOCALE flags.
Closes SF bug #635595.
Neal Norwitz [Tue, 12 Nov 2002 23:09:12 +0000 (23:09 +0000)]
SF # 627900, Bytecode copy bug in freeze
Pass co_freevars and co_cellvars to new.code().
Will backport.
Neal Norwitz [Tue, 12 Nov 2002 23:01:12 +0000 (23:01 +0000)]
Fix SF # 635969, No error "not all arguments converted"
When mwh added extended slicing, strings and unicode became mappings.
Thus, dict was set which prevented an error when doing:
newstr = 'format without a percent' % string_value
This fix raises an exception again when there are no formats
and % with a string value.
Fred Drake [Tue, 12 Nov 2002 22:19:34 +0000 (22:19 +0000)]
Handle the Content-Type header a little more appropriately: if it
contains options, drop them to get the major/minor content type.
Modified from the supplied patch to support more whitespace variation.
Closes SF patch #613605.
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.
Fred Drake [Tue, 12 Nov 2002 22:07:11 +0000 (22:07 +0000)]
Clarified documentation of tempnam().
Closes SF bug #635656.
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
Andrew M. Kuchling [Tue, 12 Nov 2002 18:45:46 +0000 (18:45 +0000)]
Remove extra word
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.
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
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.
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.
Tim Peters [Mon, 11 Nov 2002 20:21:06 +0000 (20:21 +0000)]
Forgot a paren in the MSVC + 64-bit + Intel case.
Tim Peters [Mon, 11 Nov 2002 19:51:33 +0000 (19:51 +0000)]
Added a blurb about the change to sys.version under MSVC.
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.
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.
Martin v. Löwis [Mon, 11 Nov 2002 13:37:28 +0000 (13:37 +0000)]
Protect pyconfig.h from multiple inclusions.
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
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].
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.
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.
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.
Neal Norwitz [Sun, 10 Nov 2002 14:33:26 +0000 (14:33 +0000)]
Make private functions static so we don't pollute the namespace
Martin v. Löwis [Sat, 9 Nov 2002 20:19:12 +0000 (20:19 +0000)]
Allow both string and Unicode objects in levels.
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.
Martin v. Löwis [Sat, 9 Nov 2002 19:54:06 +0000 (19:54 +0000)]
Fix typo.
Martin v. Löwis [Sat, 9 Nov 2002 19:53:04 +0000 (19:53 +0000)]
Look in db4 directories when checking for db4.
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.
Michael W. Hudson [Sat, 9 Nov 2002 14:47:18 +0000 (14:47 +0000)]
Restore to ANSI C.
Tim Peters [Sat, 9 Nov 2002 08:24:58 +0000 (08:24 +0000)]
Install the bz2 DLL on Windows.
Tim Peters [Sat, 9 Nov 2002 06:51:30 +0000 (06:51 +0000)]
I already forgot what I changed -- it wasn't important <wink>.
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.
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.
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).
Tim Peters [Sat, 9 Nov 2002 05:26:15 +0000 (05:26 +0000)]
Whitespace normalization.
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.
Tim Peters [Sat, 9 Nov 2002 05:08:07 +0000 (05:08 +0000)]
Whitespace normalization.
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.
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.
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.
Tim Peters [Sat, 9 Nov 2002 04:31:38 +0000 (04:31 +0000)]
BZ2Decomp_decompress(): Fixed more long 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.
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.
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.
Tim Peters [Sat, 9 Nov 2002 04:23:31 +0000 (04:23 +0000)]
Repaired signed-vs-unsigned mismatch.
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.
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]
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.
Andrew M. Kuchling [Fri, 8 Nov 2002 15:11:42 +0000 (15:11 +0000)]
Fix comment typo
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.
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
Michael W. Hudson [Fri, 8 Nov 2002 13:09:39 +0000 (13:09 +0000)]
Richie Hindle
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.
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.
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.
Raymond Hettinger [Fri, 8 Nov 2002 05:49:47 +0000 (05:49 +0000)]
Clarify the meaning of "requires Python 1.5.2".
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.
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.
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.
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.
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().
Fred Drake [Thu, 7 Nov 2002 17:13:03 +0000 (17:13 +0000)]
Minor markup adjustments.
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)
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.
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
Thomas Heller [Thu, 7 Nov 2002 16:33:44 +0000 (16:33 +0000)]
Document the changed fdopen behaviour.
(Hope the markup is ok).
Thomas Heller [Thu, 7 Nov 2002 16:23:55 +0000 (16:23 +0000)]
NEWS entry for the changed fdopen function.
Thomas Heller [Thu, 7 Nov 2002 16:00:59 +0000 (16:00 +0000)]
Enforce valid filemode. Fixes SF Bug #623464.
Martin v. Löwis [Thu, 7 Nov 2002 07:42:30 +0000 (07:42 +0000)]
Try linking the major/minor test program. Fixes #634444.
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.
Jack Jansen [Wed, 6 Nov 2002 23:15:51 +0000 (23:15 +0000)]
Script to create .app bundles. Largely untested.
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.
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.]
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.
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.
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.
Andrew M. Kuchling [Wed, 6 Nov 2002 15:40:05 +0000 (15:40 +0000)]
Fix NameError exception ('name' undefined)
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).
Andrew M. Kuchling [Wed, 6 Nov 2002 14:51:20 +0000 (14:51 +0000)]
Fix docstring typos
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
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
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
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.
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.
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.
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.
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.
Neal Norwitz [Tue, 5 Nov 2002 23:55:27 +0000 (23:55 +0000)]
Fix minor wording and 2 typos
Martin v. Löwis [Tue, 5 Nov 2002 23:01:50 +0000 (23:01 +0000)]
Support sdist.
Neal Norwitz [Tue, 5 Nov 2002 22:46:39 +0000 (22:46 +0000)]
Whoops, fix the typo correctly this time
Neal Norwitz [Tue, 5 Nov 2002 22:41:37 +0000 (22:41 +0000)]
Use PyOS_snprintf() instead of sprintf and wrap the long line
Barry Warsaw [Tue, 5 Nov 2002 22:41:33 +0000 (22:41 +0000)]
Add an entry for pdb's new `pp' command.
Barry Warsaw [Tue, 5 Nov 2002 22:41:16 +0000 (22:41 +0000)]
Document the new `pp' command.
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.
Neal Norwitz [Tue, 5 Nov 2002 22:37:58 +0000 (22:37 +0000)]
Fix minor typos
Fred Drake [Tue, 5 Nov 2002 22:19:45 +0000 (22:19 +0000)]
Minor cleanups, markup.
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.
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.