]> granicus.if.org Git - python/log
python
22 years agoUpdate version number in README.
Guido van Rossum [Mon, 11 Mar 2002 01:05:32 +0000 (01:05 +0000)]
Update version number in README.

22 years agofile_truncate(): provide full "large file" support on Windows, by
Tim Peters [Mon, 11 Mar 2002 00:24:00 +0000 (00:24 +0000)]
file_truncate():  provide full "large file" support on Windows, by
dropping MS's inadequate _chsize() function.  This was inspired by
SF patch 498109 ("fileobject truncate support for win32"), which I
rejected.

libstdtypes.tex:  Someone who knows should update the availability
blurb.  For example, if it's available on Linux, it would be good to
say so.

test_largefile:  Uncommented the file.truncate() tests, and reworked to
do more.  The old comment about "permission errors" in the truncation
tests under Windows was almost certainly due to that the file wasn't open
for *write* access at this point, so of course MS wouldn't let you
truncate it.  I'd be appalled if a Unixish system did.

CAUTION:  Someone should run this test on Linux (etc) too.  The
truncation part was commented out before.  Note that test_largefile isn't
run by default.

22 years agoBugfix candidate.
Guido van Rossum [Mon, 11 Mar 2002 00:07:13 +0000 (00:07 +0000)]
Bugfix candidate.
Adapter from SF patch 528038; fixes SF bug 527816.

The wrapper for __nonzero__ should be wrap_inquiry rather than
wrap_unaryfunc, since the slot returns an int, not a PyObject *.

22 years agomkalias() now also works for folders. Fixes bug #515830.
Just van Rossum [Sun, 10 Mar 2002 19:28:02 +0000 (19:28 +0000)]
mkalias() now also works for folders. Fixes bug #515830.

22 years agoAccess the exception argument to see whether it starts with '500'.
Martin v. Löwis [Sun, 10 Mar 2002 15:59:58 +0000 (15:59 +0000)]
Access the exception argument to see whether it starts with '500'.
Fixes #527855.

22 years agoBugfix candidate.
Guido van Rossum [Sun, 10 Mar 2002 14:11:16 +0000 (14:11 +0000)]
Bugfix candidate.
Adapter from SF patch 528038; fixes SF bug 527816.

The wrapper for __nonzero__ should be wrap_inquiry rather than
wrap_unaryfunc, since the slot returns an int, not a PyObject *.

22 years agoSF patch 499062: Minor typo in test_generators.py.
Tim Peters [Sun, 10 Mar 2002 07:59:13 +0000 (07:59 +0000)]
SF patch 499062: Minor typo in test_generators.py.
There's no actual patch there.  It's an objection that Guido's example
doesn't actually generator "leaves", so change the comment that says
it does.

22 years agoPatch #504224: add plan9 threads include to thread.c.
Martin v. Löwis [Sat, 9 Mar 2002 12:10:54 +0000 (12:10 +0000)]
Patch #504224: add plan9 threads include to thread.c.

22 years agoPatch #494045: patches errno and stat to cope on plan9.
Martin v. Löwis [Sat, 9 Mar 2002 12:07:51 +0000 (12:07 +0000)]
Patch #494045: patches errno and stat to cope on plan9.

22 years agoPatch #494047: removes 64-bit ?: to cope on plan9.
Martin v. Löwis [Sat, 9 Mar 2002 12:02:59 +0000 (12:02 +0000)]
Patch #494047: removes 64-bit ?: to cope on plan9.

22 years agoPatch #500136: Update Update ext build documentation. 2.2.1 candidate.
Martin v. Löwis [Sat, 9 Mar 2002 10:06:14 +0000 (10:06 +0000)]
Patch #500136: Update Update ext build documentation. 2.2.1 candidate.

22 years agoFix SF bug 525520.
Jeremy Hylton [Sat, 9 Mar 2002 06:07:23 +0000 (06:07 +0000)]
Fix SF bug 525520.

Don't automatically add a Host: header if the headers passed to
request() already has a Host key.

22 years agoSF bug 525705: [2.2] underflow raise OverflowException.
Tim Peters [Sat, 9 Mar 2002 04:58:24 +0000 (04:58 +0000)]
SF bug 525705:  [2.2] underflow raise OverflowException.
Another year in the quest to out-guess random C behavior.

Added macros Py_ADJUST_ERANGE1(X) and Py_ADJUST_ERANGE2(X, Y).  The latter
is useful for functions with complex results.  Two corrections to errno-
after-libm-call are attempted:

1. If the platform set errno to ERANGE due to underflow, clear errno.
   Some unknown subset of libm versions and link options do this.  It's
   allowed by C89, but I never figured anyone would do it.

2. If the platform did not set errno but overflow occurred, force
   errno to ERANGE.  C89 required setting errno to ERANGE, but C99
   doesn't.  Some unknown subset of libm versions and link options do
   it the C99 way now.

Bugfix candidate, but hold off until some Linux people actually try it,
with and without -lieee.  I'll send a help plea to Python-Dev.

22 years agoDocstring for filter(): Someone on the Tutor list reasonably complained
Tim Peters [Sat, 9 Mar 2002 00:06:26 +0000 (00:06 +0000)]
Docstring for filter():  Someone on the Tutor list reasonably complained
that it didn't tell enough of the truth.
Bugfix candidate (I guess -- it helps and it's harmless).

22 years agoAdd more explanation of how data_files is used (esp. where the files end up
Fred Drake [Fri, 8 Mar 2002 22:02:06 +0000 (22:02 +0000)]
Add more explanation of how data_files is used (esp. where the files end up
in the installation and how that location is determined).

22 years agoAdd fix for AIX as reported by srubben in SF bug #477487.
Jeremy Hylton [Fri, 8 Mar 2002 21:43:51 +0000 (21:43 +0000)]
Add fix for AIX as reported by srubben in SF bug #477487.

Untested, of course.

22 years agoFix pyclbr test of httplib without really understanding pyclbr.
Jeremy Hylton [Fri, 8 Mar 2002 21:31:59 +0000 (21:31 +0000)]
Fix pyclbr test of httplib without really understanding pyclbr.

It seems that the new class HTTP11 in httplib.test() isn't
discoverable by pyclbr, which causes this test to fail.

22 years agoFix leak of NotImplemented in previous checkin to PyNumber_Add().
Jeremy Hylton [Fri, 8 Mar 2002 21:28:54 +0000 (21:28 +0000)]
Fix leak of NotImplemented in previous checkin to PyNumber_Add().

If result == Py_NotImplemented, always DECREF it before assigning a
new value to result.

22 years agoFix for SF bug 516727: MyInt(2) + "3" -> NotImplemented
Jeremy Hylton [Fri, 8 Mar 2002 21:11:37 +0000 (21:11 +0000)]
Fix for SF bug 516727: MyInt(2) + "3" -> NotImplemented

PyNumber_Add() tries the nb_add slot first, then falls back to
sq_concat.  However, tt didn't check the return value of sq_concat.
If sq_concat returns NotImplemented, raise the standard TypeError.

22 years agoSF bug report #405939: wrong Host header with proxy
Jeremy Hylton [Fri, 8 Mar 2002 19:35:51 +0000 (19:35 +0000)]
SF bug report #405939: wrong Host header with proxy

In August, Greg said this looked good, so I'm going ahead with it.

The fix is different from the one in the bug report.  Instead of using
a regular expression to extract the host from the url, I use
urlparse.urlsplit.

Martin commented that the patch doesn't address URLs that have basic
authentication username and password in the header.  I don't see any
code anywhere in httplib that supports this feature, so I'm not going
to address it for this fix.

Bug fix candidate.

22 years ago[Bug #491820] Define two abstract methods to shut up Pychecker, and for
Andrew M. Kuchling [Fri, 8 Mar 2002 18:27:11 +0000 (18:27 +0000)]
[Bug #491820] Define two abstract methods to shut up Pychecker, and for
    documentation purposes.  These implementations are the same as the
    ones suggested by Skip in the bug report.

22 years ago[Bug #517554] When a signal happens during the select call in
Andrew M. Kuchling [Fri, 8 Mar 2002 18:19:59 +0000 (18:19 +0000)]
[Bug #517554] When a signal happens during the select call in
asyncore.poll, the select fails with EINTR, which the
code catches. However, the code fails to clear the
r/w/e arrays (like poll3 does), which means it acts as
if every descriptor had received all possible events.

Bug report and patch by Cesar Eduardo Barros

22 years agoAs part of fixing bug #523301, add a simple test of ConfigParser.write()
Andrew M. Kuchling [Fri, 8 Mar 2002 18:10:12 +0000 (18:10 +0000)]
As part of fixing bug #523301, add a simple test of ConfigParser.write()

22 years ago[Bug #523301] ConfigParser.write() produces broken output for values that
Andrew M. Kuchling [Fri, 8 Mar 2002 18:08:47 +0000 (18:08 +0000)]
[Bug #523301] ConfigParser.write() produces broken output for values that
   were originally rfc822-like line continuations.
   Modified version of a patch from Matthias Ralfs.

22 years ago[Bug #486527] Note that the caller has to ensure there are no control
Andrew M. Kuchling [Fri, 8 Mar 2002 17:46:02 +0000 (17:46 +0000)]
[Bug #486527] Note that the caller has to ensure there are no control
    characters in strings being passed via XML-RPC.
Fix some typos.

2.2.1 bugfix candidate.

22 years ago[Bug #512799] urllib.splittype() returns a 2-tuple. (Reported by seb bacon)
Andrew M. Kuchling [Fri, 8 Mar 2002 17:19:10 +0000 (17:19 +0000)]
[Bug #512799] urllib.splittype() returns a 2-tuple.  (Reported by seb bacon)

22 years agoFix SF bug #526518
Jeremy Hylton [Fri, 8 Mar 2002 17:17:33 +0000 (17:17 +0000)]
Fix SF bug #526518

The doc string for cStringIO suggested that str() of a StringIO object
was equivalent to getvalue().  This was never true, so repair the doc
string.  (doctest would have helped here.)

Bug fix candidate for any past versions.

22 years agoWhen testing for availability of pthreads without special compiler options
Jack Jansen [Fri, 8 Mar 2002 13:43:01 +0000 (13:43 +0000)]
When testing for availability of pthreads without special compiler options
or libraries also look for thread_detach. SGI has thread_create in libc
but complete pthread support only in -lpthread. Fixes #522393.

2.2.1 candidate.Killed by signal 2.

22 years agofixed missing IMAP4_SSL_PORT
Piers Lauder [Fri, 8 Mar 2002 09:05:12 +0000 (09:05 +0000)]
fixed missing IMAP4_SSL_PORT

22 years agoSF bug 515943: searching for data with \0 in mmap.
Tim Peters [Fri, 8 Mar 2002 05:43:32 +0000 (05:43 +0000)]
SF bug 515943:  searching for data with \0 in mmap.
mmap_find_method():  this obtained the string to find via s#, but it
ignored its length, acting as if it were \0-terminated instead.

Someone please run on Linux too (the extended test_mmap works on Windows).

Bugfix candidate.

22 years agoAdd entry for mac/libscrap.tex.
Fred Drake [Fri, 8 Mar 2002 03:18:19 +0000 (03:18 +0000)]
Add entry for mac/libscrap.tex.

22 years agoI started writing more documentation on the Scrap module at one point, but
Fred Drake [Fri, 8 Mar 2002 03:15:49 +0000 (03:15 +0000)]
I started writing more documentation on the Scrap module at one point, but
it is difficult to do without a Mac box to try things out on.  This expands
on what was there only a little bit; hopefully someone with a Mac can work
on this as well!

22 years agoadd Content-Type header to error responses
Skip Montanaro [Fri, 8 Mar 2002 02:36:18 +0000 (02:36 +0000)]
add Content-Type header to error responses
this closes patch 502080

22 years agoadd SSL class submitted by Tino Lange
Piers Lauder [Fri, 8 Mar 2002 01:53:24 +0000 (01:53 +0000)]
add SSL class submitted by Tino Lange

22 years ago"Shortcut" should be "short-circuit".
Fred Drake [Fri, 8 Mar 2002 00:54:43 +0000 (00:54 +0000)]
"Shortcut" should be "short-circuit".
This closes SF bug #526277.

22 years agoadd repr_str as alias for repr_string in both HTMLRepr and TextRepr classes
Skip Montanaro [Thu, 7 Mar 2002 22:58:02 +0000 (22:58 +0000)]
add repr_str as alias for repr_string in both HTMLRepr and TextRepr classes
- reflects the change in type("").__name__ between 2.1 and 2.2.  The
__name__ field is used to find a method to call for particular types.

22 years agoGuido pointed out that I was missing a couple decrefs.
Michael W. Hudson [Thu, 7 Mar 2002 15:13:40 +0000 (15:13 +0000)]
Guido pointed out that I was missing a couple decrefs.

22 years agoRegenerate.
Michael W. Hudson [Thu, 7 Mar 2002 09:59:15 +0000 (09:59 +0000)]
Regenerate.

22 years agoApply Jack's patch attached to
Michael W. Hudson [Thu, 7 Mar 2002 09:58:56 +0000 (09:58 +0000)]
Apply Jack's patch attached to

[ 508779 ] Disable flat namespace on MacOS X

I presume you wanted this on the trunk too, Jack?

2.2.1 candidate.

22 years agoTest for
Michael W. Hudson [Wed, 6 Mar 2002 17:18:15 +0000 (17:18 +0000)]
Test for

[ 526039 ] devious code can crash structseqs

Bugfix candidate.

22 years agoSpecial support for pickling os.stat and os.stat_vfs results portably
Michael W. Hudson [Wed, 6 Mar 2002 17:11:18 +0000 (17:11 +0000)]
Special support for pickling os.stat and os.stat_vfs results portably
(the types come from different modules on different platforms).

Added tests for pickling these types.

May be a bugfix candidate.

22 years agoApply (my) patch:
Michael W. Hudson [Wed, 6 Mar 2002 17:07:49 +0000 (17:07 +0000)]
Apply (my) patch:

[ 526072 ] pickling os.stat results round II

structseq's constructors can now take "invisible" fields in a dict.
Gave the constructors better error messages.
their __reduce__ method puts these fields in a dict.

(this is all in aid of getting os.stat_result's to pickle portably)

Also fixes

[ 526039 ] devious code can crash structseqs

Thought needed about how much of this counts as a bugfix.  Certainly
#526039 needs to be fixed.

22 years agoAdded missing version annotation for dict().
Fred Drake [Wed, 6 Mar 2002 02:29:30 +0000 (02:29 +0000)]
Added missing version annotation for dict().

22 years agoCGStubLib wasn't weak-linked, fixed. 221 candidate.
Jack Jansen [Tue, 5 Mar 2002 22:43:50 +0000 (22:43 +0000)]
CGStubLib wasn't weak-linked, fixed. 221 candidate.

22 years agoSet default value for readlines.sizehint to None. Change needed for 2.2.1
Martin v. Löwis [Tue, 5 Mar 2002 15:46:38 +0000 (15:46 +0000)]
Set default value for readlines.sizehint to None. Change needed for 2.2.1
as well.

22 years agoA fix & test for
Michael W. Hudson [Tue, 5 Mar 2002 13:27:58 +0000 (13:27 +0000)]
A fix & test for

[ 496873 ] structseqs unpicklable

by adding a __reduce__ method to structseqs.

Will also commit this to the 2.2.1 branch momentarily.

22 years agoAdd implementations for \textgreater and \textless, defined in (relatively)
Fred Drake [Tue, 5 Mar 2002 04:04:06 +0000 (04:04 +0000)]
Add implementations for \textgreater and \textless, defined in (relatively)
recent versions of LaTeX2e but not support in LaTeX2HTML.

22 years agoRemove extra indenatation from sample interpreter session.
Fred Drake [Tue, 5 Mar 2002 04:02:39 +0000 (04:02 +0000)]
Remove extra indenatation from sample interpreter session.
Remove whitespace from the middle of an inline RE example; it was OK for
the typeset formats, but LaTeX2HTML is more touchy about this.

22 years agoremove debug cruft
Steven M. Gava [Tue, 5 Mar 2002 00:31:43 +0000 (00:31 +0000)]
remove debug cruft

22 years agofurther work on new config system
Steven M. Gava [Tue, 5 Mar 2002 00:25:58 +0000 (00:25 +0000)]
further work on new config system

22 years agoadd simple example of avoiding backtracking
Skip Montanaro [Mon, 4 Mar 2002 23:08:28 +0000 (23:08 +0000)]
add simple example of avoiding backtracking

22 years agoAdded ClipCGContextToRegion() from Quickdraw.h.
Just van Rossum [Mon, 4 Mar 2002 10:31:32 +0000 (10:31 +0000)]
Added ClipCGContextToRegion() from Quickdraw.h.

23 years agoRemove tp_print.
Martin v. Löwis [Mon, 4 Mar 2002 09:38:52 +0000 (09:38 +0000)]
Remove tp_print.

23 years agoPython no longer compiled on Windows, due to #include file confusion
Tim Peters [Sun, 3 Mar 2002 23:17:02 +0000 (23:17 +0000)]
Python no longer compiled on Windows, due to #include file confusion
over SEP, ALTSEP and MAXPATHLEN.
Patched up posixmodule.c for MSVC, but unsure what the story is now on
other non-Unixish platforms -- the preprocessor maze has no exit <wink>.

23 years agoRemoved two unused imports. Closes patch #525225.
Barry Warsaw [Sun, 3 Mar 2002 22:46:46 +0000 (22:46 +0000)]
Removed two unused imports.  Closes patch #525225.

2.2.1 candidate (but not terribly important).

23 years agoPatch #50002: Display line information for bad \x escapes:
Martin v. Löwis [Sun, 3 Mar 2002 21:30:27 +0000 (21:30 +0000)]
Patch #50002: Display line information for bad \x escapes:
- recognize "SyntaxError"s by the print_file_and_line attribute.
- add the syntaxerror attributes to all exceptions in compile.c.
Fixes #221791

23 years agoSF #506611, fix sys.setprofile(), sys.settrace() core dumps
Neal Norwitz [Sun, 3 Mar 2002 15:12:58 +0000 (15:12 +0000)]
SF #506611, fix sys.setprofile(), sys.settrace() core dumps
when no arguments are passed

23 years agoOS/2 more program behaves like Win32 more
Andrew MacIntyre [Sun, 3 Mar 2002 03:12:30 +0000 (03:12 +0000)]
OS/2 more program behaves like Win32 more
(see patch #514490, by Stefan Schwarzer)

23 years agoOS/2 EMX port changes (Modules part of patch #450267):
Andrew MacIntyre [Sun, 3 Mar 2002 03:07:07 +0000 (03:07 +0000)]
OS/2 EMX port changes (Modules part of patch #450267):
  Modules/
    posixmodule.c

- use SEP,ALTSEP #defines instead of hard coded path separator chars
- use EMX specific variants of chdir2(),getcwd() that support drive letters
- OS/2+EMX spawnv(),spawnve() support
- EMX specific popen[234]() derived from Win32 popen[234]() code

23 years agoOS/2 EMX port changes (Modules part of patch #450267):
Andrew MacIntyre [Sun, 3 Mar 2002 03:03:52 +0000 (03:03 +0000)]
OS/2 EMX port changes (Modules part of patch #450267):
  Modules/
    socketmodule.c

EMX handles sockets like Posix, rather than use native APIs

23 years agoOS/2 EMX port changes (Modules part of patch #450267):
Andrew MacIntyre [Sun, 3 Mar 2002 02:59:16 +0000 (02:59 +0000)]
OS/2 EMX port changes (Modules part of patch #450267):
  Modules/
    _hotshot.c
    dbmmodule.c
    fcntlmodule.c
    main.c
    pwdmodule.c
    readline.c
    selectmodule.c
    signalmodule.c
    termios.c
    timemodule.c
    unicodedata.c

23 years agoAdded support for SyncCGContextOriginWithPort().
Just van Rossum [Sat, 2 Mar 2002 10:20:44 +0000 (10:20 +0000)]
Added support for SyncCGContextOriginWithPort().

23 years agoWhether platform malloc(0) returns NULL has nothing to do with whether
Tim Peters [Sat, 2 Mar 2002 08:43:19 +0000 (08:43 +0000)]
Whether platform malloc(0) returns NULL has nothing to do with whether
platform realloc(p, 0) returns NULL, so MALLOC_ZERO_RETURNS_NULL can
be correctly undefined yet realloc(p, 0) can return NULL anyway.

Prevent realloc(p, 0) doing free(p) and returning NULL via a different
hack.  Would probably be better to get rid of MALLOC_ZERO_RETURNS_NULL
entirely.

Bugfix candidate.

23 years agoFirst work on making config changes dynamic,
Steven M. Gava [Sat, 2 Mar 2002 07:16:21 +0000 (07:16 +0000)]
First work on making config changes dynamic,
dynamic theme changes

23 years agoFor clarity, change _longobject to build directly from PyObject_VAR_HEAD
Tim Peters [Sat, 2 Mar 2002 04:33:09 +0000 (04:33 +0000)]
For clarity, change _longobject to build directly from PyObject_VAR_HEAD
instead of faking it by hand.  It *is* a var object, and nothing but
hysterical raisins to pretend it's an oddball.

23 years ago_PyLong_Copy(): was creating a copy of the absolute value, but should
Tim Peters [Sat, 2 Mar 2002 04:18:04 +0000 (04:18 +0000)]
_PyLong_Copy():  was creating a copy of the absolute value, but should
copy the sign too.  Added a test to test_descr to ensure that it does.

Bugfix candidate.

23 years agoRevert the last odd change to PyNumber_Long: the problem it was trying
Tim Peters [Sat, 2 Mar 2002 04:14:21 +0000 (04:14 +0000)]
Revert the last odd change to PyNumber_Long:  the problem it was trying
to fix was almost certainly a bug in _PyLong_Copy (which I'll fix next).

23 years agoAdded PortableUnixMailbox to the __all__ variable, and in the __main__
Barry Warsaw [Fri, 1 Mar 2002 22:39:14 +0000 (22:39 +0000)]
Added PortableUnixMailbox to the __all__ variable, and in the __main__
section use this class instead of UnixMailbox as per the comments in
the latter's class.

Bug fix candidate for 2.2.1.

23 years agoSF patch 514641 (Naofumi Honda) - Negative ob_size of LongObjects
Guido van Rossum [Fri, 1 Mar 2002 22:24:49 +0000 (22:24 +0000)]
SF patch 514641 (Naofumi Honda) - Negative ob_size of LongObjects

Due to the bizarre definition of _PyLong_Copy(), creating an instance
of a subclass of long with a negative value could cause core dumps
later on.  Unfortunately it looks like the behavior of _PyLong_Copy()
is quite intentional, so the fix is more work than feels comfortable.

This fix is almost, but not quite, the code that Naofumi Honda added;
in addition, I added a test case.

23 years agoSF patch 517245 by Marc Recht.
Guido van Rossum [Fri, 1 Mar 2002 21:31:27 +0000 (21:31 +0000)]
SF patch 517245 by Marc Recht.

Support GMP version >= 2.

Bugfix candidate.

23 years agoChanges to what we do to modules that don't import, as
Michael W. Hudson [Fri, 1 Mar 2002 14:16:31 +0000 (14:16 +0000)]
Changes to what we do to modules that don't import, as
discussed on python-dev.

23 years agoPatch #524008: Fix portability bug on new POSIX hosts
Martin v. Löwis [Fri, 1 Mar 2002 13:15:30 +0000 (13:15 +0000)]
Patch #524008: Fix portability bug on new POSIX hosts

23 years agoSF #517447, correct syntax error
Neal Norwitz [Fri, 1 Mar 2002 13:07:34 +0000 (13:07 +0000)]
SF #517447, correct syntax error

23 years agoPatch #523268, #522027: return enhanced tuples.
Martin v. Löwis [Fri, 1 Mar 2002 10:47:37 +0000 (10:47 +0000)]
Patch #523268, #522027: return enhanced tuples.

23 years agoPatch #523268, #522027: return enhanced tuples.
Martin v. Löwis [Fri, 1 Mar 2002 10:38:44 +0000 (10:38 +0000)]
Patch #523268, #522027: return enhanced tuples.

23 years agoPatch 520694: arraymodule.c improvements:
Martin v. Löwis [Fri, 1 Mar 2002 10:27:01 +0000 (10:27 +0000)]
Patch 520694: arraymodule.c improvements:
- make array.array a type
- add Py_UNICODE arrays
- support +=, *=

23 years agoPatch #520062: Support IPv6 with VC.NET.
Martin v. Löwis [Fri, 1 Mar 2002 08:31:07 +0000 (08:31 +0000)]
Patch #520062: Support IPv6 with VC.NET.

23 years agoCells are not VAR objects.
Jeremy Hylton [Thu, 28 Feb 2002 23:46:34 +0000 (23:46 +0000)]
Cells are not VAR objects.

Noted by Jason Orendorff, SF #520768.

Bug fix candidate for 2.1 & 2.2.

23 years agoSF patch 518765 (Derek Harland): Bug in copy.py when used through
Guido van Rossum [Thu, 28 Feb 2002 23:19:52 +0000 (23:19 +0000)]
SF patch 518765 (Derek Harland): Bug in copy.py when used through
rexec.

When using a restricted environment, imports of copy will fail with an
AttributeError when trying to access types.CodeType.

Bugfix candidate (all the way back to 1.5.3, but at least 2.1.3 and
2.2.1).

23 years agoSF patch 522961: Leak in Python/thread_nt.h, from Gerald S. Williams.
Tim Peters [Thu, 28 Feb 2002 21:34:34 +0000 (21:34 +0000)]
SF patch  522961: Leak in Python/thread_nt.h, from Gerald S. Williams.
A file-static "threads" dict mapped thread IDs to Windows handles, but
was never referenced, and entries never got removed.  This gets rid of
the YAGNI-dict entirely.
Bugfix candidate.

23 years agoPyGC_Head: Use "long double" instead of "double" as the worst-case
Tim Peters [Thu, 28 Feb 2002 19:38:51 +0000 (19:38 +0000)]
PyGC_Head:  Use "long double" instead of "double" as the worst-case
alignment gimmick.  David Abrahams notes that the standard "long double"
actually requires stricter alignment than "double" on some Tru64 box.
On my box and yours <wink>, it's the same, so no harm done on most
boxes.

23 years agoSF patch #524005 by Paul Eggert.
Guido van Rossum [Thu, 28 Feb 2002 19:26:08 +0000 (19:26 +0000)]
SF patch #524005 by Paul Eggert.

Use posixly correct sort args.

Bugfix candidate.

23 years agoPatch #522279: transformer.py nodes shadows global.
Martin v. Löwis [Thu, 28 Feb 2002 17:48:48 +0000 (17:48 +0000)]
Patch #522279: transformer.py nodes shadows global.

23 years agoCorrect various errors:
Martin v. Löwis [Thu, 28 Feb 2002 15:24:47 +0000 (15:24 +0000)]
Correct various errors:
- Use substring search, not re search for user-agent and paths.
- Consider * entry last. Unquote, then requote URLs.
- Treat empty Disallow as "allow everything".
Add test cases. Fixes #523041

23 years ago%#x/%#X format conversion cleanup (see patch #450267):
Andrew MacIntyre [Thu, 28 Feb 2002 11:38:24 +0000 (11:38 +0000)]
%#x/%#X format conversion cleanup (see patch #450267):
  Objects/
    stringobject.c
    unicodeobject.c

23 years agoAllow shebang's which use versioned Python binaries. Fixes
Marc-André Lemburg [Thu, 28 Feb 2002 09:16:21 +0000 (09:16 +0000)]
Allow shebang's which use versioned Python binaries. Fixes
bug #521526.

23 years agoFix 2.2.1 string.
Tim Peters [Thu, 28 Feb 2002 07:27:48 +0000 (07:27 +0000)]
Fix 2.2.1 string.

23 years agoReserve a Windows build num for 2.2.1c1.
Tim Peters [Thu, 28 Feb 2002 07:13:58 +0000 (07:13 +0000)]
Reserve a Windows build num for 2.2.1c1.

23 years agoAdd 2002 to PSF copyrights.
Michael W. Hudson [Wed, 27 Feb 2002 13:29:46 +0000 (13:29 +0000)]
Add 2002 to PSF copyrights.

Doc/README is odd; it assigns some copyright to the PSF in 2000, when
I didn't think it existed...

23 years agoSF patch #523169, by Samuele Pedroni.
Guido van Rossum [Tue, 26 Feb 2002 22:39:23 +0000 (22:39 +0000)]
SF patch #523169, by Samuele Pedroni.

There were never tests for the fact that list() always returns a *new*
list object, even when the argument is a list, while tuple() may
return a reference to the argument when it is a tuple.  Now there are.

23 years agoSome buffers needed to be unsigned char, not char.
Jack Jansen [Tue, 26 Feb 2002 21:36:19 +0000 (21:36 +0000)]
Some buffers needed to be unsigned char, not char.

23 years agoOS/2 EMX port changes (Python part of patch #450267):
Andrew MacIntyre [Tue, 26 Feb 2002 11:41:34 +0000 (11:41 +0000)]
OS/2 EMX port changes (Python part of patch #450267):
  Python/
    dynload_shlib.c  // EMX port emulates dlopen() etc. for DL extensions
    import.c         // changes to support 8.3 DLL name limit (VACPP+EMX)
                     //  and case sensitive import semantics
    importdl.h
    thread_os2.h

23 years agoOS/2 EMX port changes (Objects part of patch #450267):
Andrew MacIntyre [Tue, 26 Feb 2002 11:36:35 +0000 (11:36 +0000)]
OS/2 EMX port changes (Objects part of patch #450267):
  Objects/
    fileobject.c
    stringobject.c
    unicodeobject.c

This commit doesn't include the cleanup patches for stringobject.c and
unicodeobject.c which are shown separately in the patch manager.  Those
patches will be regenerated and applied in a subsequent commit, so as
to preserve a fallback position (this commit to those files).

23 years agoOS/2 EMX port changes (Include part of patch #450267):
Andrew MacIntyre [Tue, 26 Feb 2002 11:20:01 +0000 (11:20 +0000)]
OS/2 EMX port changes (Include part of patch #450267):
  Include/
    osdefs.h  // EMX promotes Un*x path separators
    pyport.h

23 years agobugfix for the problem where EditorWindow instances
Steven M. Gava [Tue, 26 Feb 2002 02:31:03 +0000 (02:31 +0000)]
bugfix for the problem where EditorWindow instances
would appear to freeze for a few seconds on closing
in some cases when running under X

23 years agocanonic(): Fix by Edward K Ream to make breakpoints work better on
Guido van Rossum [Mon, 25 Feb 2002 23:23:24 +0000 (23:23 +0000)]
canonic(): Fix by Edward K Ream to make breakpoints work better on
Windows: apply normcase() as well as abspath().  (Note: this isn't
needed to make IDLE work, but it's a good idea anyway.)

Bugfix candidate -- both 2.2.1 and 2.1.3.

23 years agoFix by Edward K Ream to make breakpoints work on Windows: insert a
Guido van Rossum [Mon, 25 Feb 2002 23:22:08 +0000 (23:22 +0000)]
Fix by Edward K Ream to make breakpoints work on Windows: insert a
missing call to self.canonic().

23 years agoEdward K. Ream.
Guido van Rossum [Mon, 25 Feb 2002 23:12:32 +0000 (23:12 +0000)]
Edward K. Ream.

23 years agoFix by Edward K Ream to make breakpoints work on Windows: insert a
Guido van Rossum [Mon, 25 Feb 2002 23:11:03 +0000 (23:11 +0000)]
Fix by Edward K Ream to make breakpoints work on Windows: insert a
missing call to self.canonic().

23 years agoFix error in explanation of the interaction between $ and MULTILINE mode.
Fred Drake [Mon, 25 Feb 2002 18:56:45 +0000 (18:56 +0000)]
Fix error in explanation of the interaction between $ and MULTILINE mode.
Reported by Steve Alexander.