]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
23 years agobackport tim_one's checkin of
Michael W. Hudson [Mon, 11 Mar 2002 10:17:17 +0000 (10:17 +0000)] 
backport tim_one's checkin of
    revision 2.111 of floatobject.c

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.

23 years agobackport tim_one's checkin of
Michael W. Hudson [Mon, 11 Mar 2002 10:16:47 +0000 (10:16 +0000)] 
backport tim_one's checkin of
    revision 2.28 of cmathmodule.c

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.

23 years agoThis has been declared to work.
Michael W. Hudson [Mon, 11 Mar 2002 10:16:23 +0000 (10:16 +0000)] 
This has been declared to work.

backport tim_one's checkin of
    revision 2.45 of pyport.h

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.

23 years agobackport tim_one's checkin of
Michael W. Hudson [Mon, 11 Mar 2002 10:15:00 +0000 (10:15 +0000)] 
backport tim_one's checkin of
    revision 2.248 of bltinmodule.c

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).

23 years agobackport jhylton's checkin of
Michael W. Hudson [Mon, 11 Mar 2002 10:14:23 +0000 (10:14 +0000)] 
backport jhylton's checkin of
    revision 1.295 of configure.in

Add fix for AIX as reported by srubben in SF bug #477487.

Untested, of course.

23 years agoProbably should have merged the two checkins to this file (oh well).
Michael W. Hudson [Mon, 11 Mar 2002 10:12:58 +0000 (10:12 +0000)] 
Probably should have merged the two checkins to this file (oh well).

backport jhylton's checkin of
    revision 2.98 of abstract.c

Fix leak of NotImplemented in previous checkin to PyNumber_Add().

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

23 years agobackport jhylton's checkin of
Michael W. Hudson [Mon, 11 Mar 2002 10:11:46 +0000 (10:11 +0000)] 
backport jhylton's checkin of
    revision 2.97 of abstract.c

Fix for SF bug 516727: MyInt(2) + "3" -> NotImplemented

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

23 years agobackport jhylton's checkin of
Michael W. Hudson [Mon, 11 Mar 2002 10:06:36 +0000 (10:06 +0000)] 
backport jhylton's checkin of
    revision 1.45 of httplib.py

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.

23 years agobackport akuchling's checkin of
Michael W. Hudson [Mon, 11 Mar 2002 10:05:07 +0000 (10:05 +0000)] 
backport akuchling's checkin of
    revision 1.6 of libxmlrpclib.tex

[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.

23 years agoI presume most of the fixes currently hitting the tree should go into
Michael W. Hudson [Mon, 11 Mar 2002 10:04:07 +0000 (10:04 +0000)] 
I presume most of the fixes currently hitting the tree should go into
2.2.1, but it would be nice if people remembered to comment on their
fixes' applicability!

backport akuchling's checkin of
    revision 1.26 of webchecker.py

[Bug #512799] urllib.splittype() returns a 2-tuple.  (Reported by seb bacon)

23 years agobackport jhylton's checkin of
Michael W. Hudson [Mon, 11 Mar 2002 10:02:18 +0000 (10:02 +0000)] 
backport jhylton's checkin of
    revision 2.33 of cStringIO.c

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.

23 years agoBackport of 1.22:
Jack Jansen [Sun, 10 Mar 2002 21:33:19 +0000 (21:33 +0000)] 
Backport of 1.22:
Use waste included with CW in stead of separate package.

(But a truer log message would have been "updated to current version of waste",
as in MachoPython we use a normal standalone separate Waste distribution).

23 years agoBackport of 1.9 (missed last time around):
Jack Jansen [Sun, 10 Mar 2002 21:29:55 +0000 (21:29 +0000)] 
Backport of 1.9 (missed last time around):

Changes by Donovan Preston (and a few minor ones by me) to make IDE run under
MachoPython. Mainly making sure we don't call routines that don't exist
and representing pathnames in a os.separator-neutral format.

23 years agoAdd more explanation of how data_files is used (esp. where the files end up
Fred Drake [Fri, 8 Mar 2002 22:02:17 +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).

23 years agobackport jackjansen's checkin of
Michael W. Hudson [Fri, 8 Mar 2002 14:11:35 +0000 (14:11 +0000)] 
backport jackjansen's checkin of
    revision 1.294 of configure.in
    revision 1.285 of configure

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.

23 years agobackport montanaro's checkin of
Michael W. Hudson [Fri, 8 Mar 2002 13:41:09 +0000 (13:41 +0000)] 
backport montanaro's checkin of
    revision 1.18 of BaseHTTPServer.py

add Content-Type header to error responses
this closes patch 502080

23 years agobackport montanaro's checkin of
Michael W. Hudson [Fri, 8 Mar 2002 13:40:46 +0000 (13:40 +0000)] 
backport montanaro's checkin of
    revision 1.58 of pydoc.py

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.

23 years agobackport tim_one's checkin of
Michael W. Hudson [Fri, 8 Mar 2002 13:40:07 +0000 (13:40 +0000)] 
backport tim_one's checkin of
    revision 2.38 of mmapmodule.c

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.

23 years agobackport tim_one's checkin of
Michael W. Hudson [Fri, 8 Mar 2002 13:39:25 +0000 (13:39 +0000)] 
backport tim_one's checkin of
    revision 1.20 of test_mmap.py

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.

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

23 years agobackport my checkin of
Michael W. Hudson [Thu, 7 Mar 2002 15:16:07 +0000 (15:16 +0000)] 
backport my checkin of
    revision 1.6 of structseq.c

Guido pointed out that I was missing a couple decrefs.

23 years agoAfter some thinking, I decided to move all of this across onto
Michael W. Hudson [Thu, 7 Mar 2002 10:16:43 +0000 (10:16 +0000)] 
After some thinking, I decided to move all of this across onto
the branch.  I don't think it can break code, so the only risk
is introducing new bugs.  In that vein, can I ask -checkins readers
who have time to carefully look this over, check my refcounts &c?
TIA.

backport my checkin of
    revision 1.5 of structseq.c

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.

23 years agobackport my checkin of
Michael W. Hudson [Thu, 7 Mar 2002 10:12:38 +0000 (10:12 +0000)] 
backport my checkin of
    revision 1.14 of pickletester.py

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.

23 years agobackport my checkin of
Michael W. Hudson [Thu, 7 Mar 2002 10:12:11 +0000 (10:12 +0000)] 
backport my checkin of
    revision 1.52 of os.py

revision 1.52
date: 2002/03/06 17:11:17;  author: mwh;  state: Exp;  lines: +20 -0
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.

23 years agobackport my checkin of
Michael W. Hudson [Thu, 7 Mar 2002 10:09:48 +0000 (10:09 +0000)] 
backport my checkin of
    revision 1.3 of test_structseq.py

Test for

[ 526039 ] devious code can crash structseqs

Bugfix candidate.

I haven't actually fixed this on the branch yet.  Will soon.

23 years agoRegenerate.
Michael W. Hudson [Thu, 7 Mar 2002 10:05:09 +0000 (10:05 +0000)] 
Regenerate.

23 years agobackport my checkin of
Michael W. Hudson [Thu, 7 Mar 2002 10:04:49 +0000 (10:04 +0000)] 
backport my checkin of
    revision 1.84 of setup.py
    revision 1.293 of configure.in

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.

23 years agoFirst stab at files for 2.2.1.
Jack Jansen [Wed, 6 Mar 2002 22:00:35 +0000 (22:00 +0000)] 
First stab at files for 2.2.1.

23 years agoBackport of 1.4 and 1.5:
Jack Jansen [Wed, 6 Mar 2002 21:59:54 +0000 (21:59 +0000)] 
Backport of 1.4 and 1.5:
Added support for SyncCGContextOriginWithPort
Added ClipCGContextToRegion

23 years agoBackport of 1.3:
Jack Jansen [Wed, 6 Mar 2002 21:57:47 +0000 (21:57 +0000)] 
Backport of 1.3:
CGStubLib wasn't weak-linked, fixed.

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

23 years agobackport loewis' checkin of
Michael W. Hudson [Tue, 5 Mar 2002 15:55:25 +0000 (15:55 +0000)] 
backport loewis' checkin of
    revision 1.24 of codecs.py

Set default value for readlines.sizehint to None. Change needed for 2.2.1
as well.

23 years agobackport tim_one's checkin of
Michael W. Hudson [Tue, 5 Mar 2002 15:42:48 +0000 (15:42 +0000)] 
backport tim_one's checkin of
    revision 1.114 of longobject.c

_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 agoBackport the bits of Guido's fix for
Michael W. Hudson [Tue, 5 Mar 2002 15:41:40 +0000 (15:41 +0000)] 
Backport the bits of Guido's fix for

SF patch 514641 (Naofumi Honda) - Negative ob_size of LongObjects

that Tim didn't later back out.

23 years agobackport tim_one's checkin of
Michael W. Hudson [Tue, 5 Mar 2002 15:38:43 +0000 (15:38 +0000)] 
backport tim_one's checkin of
    revision 1.116 of test_descr.py

_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 agobackport gvanrossum's checkin of
Michael W. Hudson [Tue, 5 Mar 2002 15:37:46 +0000 (15:37 +0000)] 
backport gvanrossum's checkin of
    revision 1.163 of ACKS

23 years agobackport gvanrossum's checkin of
Michael W. Hudson [Tue, 5 Mar 2002 15:37:18 +0000 (15:37 +0000)] 
backport gvanrossum's checkin of
    revision 1.115 of test_descr.py

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.

I haven't quite worked out how to port the fix yet, but the test cases
can go straight over.

23 years agobackport tim_one's checkin of
Michael W. Hudson [Tue, 5 Mar 2002 14:24:45 +0000 (14:24 +0000)] 
backport tim_one's checkin of
    revision 2.5 of pymem.h
    revision 2.44 of pyport.h

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 agobackport tim_one's checkin of
Michael W. Hudson [Tue, 5 Mar 2002 14:23:56 +0000 (14:23 +0000)] 
backport tim_one's checkin of
    revision 2.164 of object.c

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 agobackport gvanrossum's checkin of
Michael W. Hudson [Tue, 5 Mar 2002 14:20:51 +0000 (14:20 +0000)] 
backport gvanrossum's checkin of
    revision 1.162 of ACKS

SF patch 517245 by Marc Recht.

Support GMP version >= 2.

Bugfix candidate.

23 years agobackport gvanrossum's checkin of
Michael W. Hudson [Tue, 5 Mar 2002 14:20:32 +0000 (14:20 +0000)] 
backport gvanrossum's checkin of
    revision 2.40 of mpzmodule.c

SF patch 517245 by Marc Recht.

Support GMP version >= 2.

Bugfix candidate.

23 years agobackport my checkin of
Michael W. Hudson [Tue, 5 Mar 2002 14:01:28 +0000 (14:01 +0000)] 
backport my checkin of
    revision 1.13 of pickletester.py

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.

23 years agobackport my checkin of
Michael W. Hudson [Tue, 5 Mar 2002 14:00:52 +0000 (14:00 +0000)] 
backport my checkin of
    revision 1.4 of structseq.c

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.

23 years agobackport bwarsaw's checkin of
Michael W. Hudson [Tue, 5 Mar 2002 14:00:16 +0000 (14:00 +0000)] 
backport bwarsaw's checkin of
    revision 1.34 of mailbox.py

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 agobackport gvanrossum's checkin of
Michael W. Hudson [Tue, 5 Mar 2002 13:58:42 +0000 (13:58 +0000)] 
backport gvanrossum's checkin of
    revision 1.24 of copy.py

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 agobackport gvanrossum's checkin of
Michael W. Hudson [Tue, 5 Mar 2002 13:58:13 +0000 (13:58 +0000)] 
backport gvanrossum's checkin of
    revision 1.161 of ACKS

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 agobackport tim_one's checkin of
Michael W. Hudson [Tue, 5 Mar 2002 13:56:23 +0000 (13:56 +0000)] 
backport tim_one's checkin of
    revision 2.22 of thread_nt.h

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 agobackport gvanrossum's checkin of
Michael W. Hudson [Tue, 5 Mar 2002 13:52:29 +0000 (13:52 +0000)] 
backport gvanrossum's checkin of
    revision 1.76 of Makefile.pre.in

SF patch #524005 by Paul Eggert.

Use posixly correct sort args.

Bugfix candidate.

23 years agoPatch #50002: Display line information for bad \x escapes:
Martin v. Löwis [Sun, 3 Mar 2002 21:32:01 +0000 (21:32 +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:17:07 +0000 (15:17 +0000)] 
SF #506611, fix sys.setprofile(), sys.settrace() core dumps
when no arguments are passed

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

23 years agoWhitespace normalization.
Michael W. Hudson [Fri, 1 Mar 2002 08:58:32 +0000 (08:58 +0000)] 
Whitespace normalization.

23 years agoMerge bugfix:
Guido van Rossum [Thu, 28 Feb 2002 22:59:02 +0000 (22:59 +0000)] 
Merge bugfix:

Patch #520483: Make IDLE OutputWindow handle Unicode.
2.2.1 candidate.

23 years agobackport gvanrossum's checkin of
Michael W. Hudson [Thu, 28 Feb 2002 10:14:24 +0000 (10:14 +0000)] 
backport gvanrossum's checkin of
    revision 1.44 of test_b1.py
    revision 1.31 of test_b2.py

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 agobackport gvanrossum's checkin of
Michael W. Hudson [Thu, 28 Feb 2002 10:13:26 +0000 (10:13 +0000)] 
backport gvanrossum's checkin of
    revision 1.7 of test_builtin

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 agobackport gvanrossum's checkin of
Michael W. Hudson [Thu, 28 Feb 2002 10:13:04 +0000 (10:13 +0000)] 
backport gvanrossum's checkin of
    revision 1.159 of ACKS

Edward K. Ream.

23 years agobackport gvanrossum's checkin of
Michael W. Hudson [Thu, 28 Feb 2002 10:00:34 +0000 (10:00 +0000)] 
backport gvanrossum's checkin of
    revision 1.35 of bdb.py

date: 2002/02/25 23:23:24;  author: gvanrossum;  state: Exp;  lines: +1 -0
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 agoAssorted Windows buildno, copyright and version number changes for 2.2.1a1.
Tim Peters [Thu, 28 Feb 2002 07:43:20 +0000 (07:43 +0000)] 
Assorted Windows buildno, copyright and version number changes for 2.2.1a1.
Repair PY_VERSION in patchlevel.h.

23 years agoBackport of 1.7:
Jack Jansen [Wed, 27 Feb 2002 23:18:00 +0000 (23:18 +0000)] 
Backport of 1.7:
Added SndRecord and (classic only) SndRecordToFile.

23 years agoBackport of 1.2:
Jack Jansen [Wed, 27 Feb 2002 23:17:21 +0000 (23:17 +0000)] 
Backport of 1.2:
Added support for the Carbon scrap manager (finally).

23 years agoBackport of 1.8 and 1.9:
Jack Jansen [Wed, 27 Feb 2002 23:16:52 +0000 (23:16 +0000)] 
Backport of 1.8 and 1.9:
Added some support for unicode arguments.

23 years agoBackport of 1.7:
Jack Jansen [Wed, 27 Feb 2002 23:16:08 +0000 (23:16 +0000)] 
Backport of 1.7:
Added some support for unicode arguments.

23 years agoBackport of 1.8-1.10 (of _Menumodule.c):
Jack Jansen [Wed, 27 Feb 2002 23:15:29 +0000 (23:15 +0000)] 
Backport of 1.8-1.10 (of _Menumodule.c):
- The output MenuRef of GetMenuItemHierarchicalMenu() may be NULL.
- Added support for optional MenuObj arguments
- Added a bunch of calls as functions with an optional
  MenuObj first argument. The same calls already
  exist as methods, but then the first arg isn't
  optional... The method versions could go as far as I'm
  concerned. Jack?

23 years agoBackport of 1.5:
Jack Jansen [Wed, 27 Feb 2002 23:13:06 +0000 (23:13 +0000)] 
Backport of 1.5:
Today's Carbon Toolbox addition: QDTextBounds()

23 years agoBackport of 1.7 (of _Dragmodule.c):
Jack Jansen [Wed, 27 Feb 2002 23:12:31 +0000 (23:12 +0000)] 
Backport of 1.7 (of _Dragmodule.c):
Callback error handling improvements:
- print traceback
- don't use fprintf()
- clear exception (implied by PyErr_Print())

23 years agoBackport of 1.4 thru 1.16 (of _Ctlmodule.c):
Jack Jansen [Wed, 27 Feb 2002 23:11:42 +0000 (23:11 +0000)] 
Backport of 1.4 thru 1.16 (of _Ctlmodule.c):
- added support for UserPaneKeyDownProc and UserPaneFocusProc
- clear error after failing PyArg_Parse()
- Oops, forgot to mark CreateScrollBarControl and CreateSliderControl
as Carbon-only
- added support for ControlActionProcs, exposing the following calls:
    - ctl.SetControlAction()
    - CreateScrollBarControl()
    - CreateSliderControl()

23 years agoBackport of 1.8 (of _CFModule.c):
Jack Jansen [Wed, 27 Feb 2002 23:10:01 +0000 (23:10 +0000)] 
Backport of 1.8 (of _CFModule.c):
Added some support for unicode arguments.

23 years agoBackport of 1.5 thru 1.7 (of _CarbonEvtmodule.c):
Jack Jansen [Wed, 27 Feb 2002 23:09:08 +0000 (23:09 +0000)] 
Backport of 1.5 thru 1.7 (of _CarbonEvtmodule.c):
- Fixed TrackMouseRegion() argument: ioWasInRgn is an in/out parameter.
- Today's Carbon Toolbox addition: CarbonEvt.TrackMouseLocation() and friends.
- fixed SetEventParameter() signature: removed unneccesary length arg.

23 years agoBackport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen [Wed, 27 Feb 2002 23:07:46 +0000 (23:07 +0000)] 
Backport of 1.6 thru 1.9 (of _Appmodule.c):
- Added support for DrawThemeButton() and friends.
- Q&D support for ThemeDrawingState objects.
- Added DrawThemeTextBox()
- fixed GetThemeTextDimensions(): it has an in/out Point arg, not just out.

23 years agoBackport of 1.25:
Jack Jansen [Wed, 27 Feb 2002 22:48:37 +0000 (22:48 +0000)] 
Backport of 1.25:
Ugh, by all means, _do_ report exceptions somehow ;-)

23 years agoBackport of 1.17:
Jack Jansen [Wed, 27 Feb 2002 22:28:58 +0000 (22:28 +0000)] 
Backport of 1.17:
Use the Carbon scrap manager interface if the old interface isn't available.

23 years agoBackport of 1.12:
Jack Jansen [Wed, 27 Feb 2002 22:28:23 +0000 (22:28 +0000)] 
Backport of 1.12:
Use the Carbon scrap manager interface if the old interface isn't available.

23 years agoBackport of 1.13:
Jack Jansen [Wed, 27 Feb 2002 22:27:39 +0000 (22:27 +0000)] 
Backport of 1.13:
added support for live feedback in scrollbars

23 years agobackport my checkin of
Michael W. Hudson [Wed, 27 Feb 2002 13:33:29 +0000 (13:33 +0000)] 
backport my checkin of
    revision 1.19 of LICENSE
    revision 1.140 of README

Add 2002 to PSF copyrights.

+ some other branch specific stuff.

23 years agobackport my checkin of
Michael W. Hudson [Wed, 27 Feb 2002 13:32:25 +0000 (13:32 +0000)] 
backport my checkin of
    revision 1.46 of README

date: 2002/02/27 13:29:45;  author: mwh;  state: Exp;  lines: +1 -1
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 agobackport my checkin of
Michael W. Hudson [Wed, 27 Feb 2002 13:31:58 +0000 (13:31 +0000)] 
backport my checkin of
    revision 1.16 of getcopyright.c

date: 2002/02/27 13:29:46;  author: mwh;  state: Exp;  lines: +1 -1
Add 2002 to PSF copyrights.

23 years agobackport my checkin of
Michael W. Hudson [Wed, 27 Feb 2002 13:31:33 +0000 (13:31 +0000)] 
backport my checkin of
    revision 1.5 of license.tex

Add 2002 to PSF copyrights.

23 years agoBump version number.
Michael W. Hudson [Wed, 27 Feb 2002 13:03:37 +0000 (13:03 +0000)] 
Bump version number.

I *think* this is the only place I need to do this.

There are also some "(c) 2001"s that should probably be turned into
"(c) 2001, 2002"s -- should this be done on the trunk too?

23 years agoBackport of 1.8:
Jack Jansen [Tue, 26 Feb 2002 21:19:42 +0000 (21:19 +0000)] 
Backport of 1.8:
Internet Config is now part of official Apple interfaces, so use the new
headers and libraries.

23 years agoBackport of a useful trunk fix:
Guido van Rossum [Mon, 25 Feb 2002 23:16:45 +0000 (23:16 +0000)] 
Backport of a useful trunk fix:

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:57:04 +0000 (18:57 +0000)] 
Fix error in explanation of the interaction between $ and MULTILINE mode.
Reported by Steve Alexander.

23 years agoWhitespace normalization and minor cosmetics.
Marc-André Lemburg [Mon, 25 Feb 2002 14:51:00 +0000 (14:51 +0000)] 
Whitespace normalization and minor cosmetics.

23 years agoFix UTF-8 encoder pointer arithmetic and restore 2.2 behaviour.
Marc-André Lemburg [Mon, 25 Feb 2002 14:30:49 +0000 (14:30 +0000)] 
Fix UTF-8 encoder pointer arithmetic and restore 2.2 behaviour.

23 years agobackport tim_one's checkin of
Michael W. Hudson [Mon, 25 Feb 2002 13:52:14 +0000 (13:52 +0000)] 
backport tim_one's checkin of
    revision 1.11 of test_descrtut.py

Somebody made list.__dict__ grow a '__doc__' key, but apparently didn't
run the test suite afterwards.  Either that, or whether '__doc__' shows
up is platform-dependent!

23 years agobackport loewis' checkin of
Michael W. Hudson [Mon, 25 Feb 2002 10:56:25 +0000 (10:56 +0000)] 
backport loewis' checkin of
    revision 1.6 of FixTk.py

Set TCL_LIBRARY before import _tkinter. Suggested by Kirill Simonov.
Fixes #418173 and #219960. 2.2.1 candidate.

23 years agobackport loewis' checkin of
Michael W. Hudson [Mon, 25 Feb 2002 10:55:47 +0000 (10:55 +0000)] 
backport loewis' checkin of
    revision 1.283 of configure
    revision 1.292 of configure.in

Patch #510825: PTHREAD_SCOPE_SYSTEM support for HP-UX
(pass non-null argument to pthread_create). 2.2.1 candidate.

23 years agobackport loewis' checkin of
Michael W. Hudson [Mon, 25 Feb 2002 10:52:43 +0000 (10:52 +0000)] 
backport loewis' checkin of
    revision 1.48 of smtplib.py

Accept Unicode strings as SMTP TO addresses. Fixes #521270.
2.2.1 candidate.

23 years agoBackport of 1.18 through 1.21:
Jack Jansen [Sun, 24 Feb 2002 23:23:52 +0000 (23:23 +0000)] 
Backport of 1.18 through 1.21:
- Get rid of keyword list and use keyword.iskeyword() function (which I wasn't aware of previously).
- Identify() enum values. This was changed in 1.14, but I don't think it is a good idea.

23 years agoBackport of 1.15 and 1.16:
Jack Jansen [Sun, 24 Feb 2002 23:21:35 +0000 (23:21 +0000)] 
Backport of 1.15 and 1.16:
- Added minimal support for floating windows.
- Changes by Donovan Preston (and a few minor ones by me) to make IDE run under
MachoPython. Mainly making sure we don't call routines that don't exist
and representing pathnames in a os.separator-neutral format.

These shouldn't interfere too much with Just's work on the next generation IDE,
I hope.

23 years agoBackport of 1.15 and 1.16:
Jack Jansen [Sun, 24 Feb 2002 23:19:07 +0000 (23:19 +0000)] 
Backport of 1.15 and 1.16:
- Don't append quit menu when on OSX, it is special and automatic there.
- Changes by Donovan Preston (and a few minor ones by me) to make IDE run under
MachoPython. Mainly making sure we don't call routines that don't exist
and representing pathnames in a os.separator-neutral format.

These shouldn't interfere too much with Just's work on the next generation IDE,
I hope.

23 years agoBackport of 1.27 and 1.28:
Jack Jansen [Sun, 24 Feb 2002 23:17:23 +0000 (23:17 +0000)] 
Backport of 1.27 and 1.28:
- Added minimal support for floating windows.
- Changes by Donovan Preston (and a few minor ones by me) to make IDE run under
MachoPython. Mainly making sure we don't call routines that don't exist
and representing pathnames in a os.separator-neutral format.

These shouldn't interfere too much with Just's work on the next generation IDE,
I hope.

23 years agoBackport of 1.9:
Jack Jansen [Sun, 24 Feb 2002 23:16:25 +0000 (23:16 +0000)] 
Backport of 1.9:
Changes by Donovan Preston (and a few minor ones by me) to make IDE run under
MachoPython. Mainly making sure we don't call routines that don't exist
and representing pathnames in a os.separator-neutral format.

These shouldn't interfere too much with Just's work on the next generation IDE,
I hope.

23 years agoBackport of 1.9-1.11:
Jack Jansen [Sun, 24 Feb 2002 23:12:47 +0000 (23:12 +0000)] 
Backport of 1.9-1.11:
- Flush screen buffer upon console.flush() and output.flush().
This fixes bug #511992.
- Changes by Donovan Preston (and a few minor ones by me) to make IDE run under
MachoPython. Mainly making sure we don't call routines that don't exist
and representing pathnames in a os.separator-neutral format.

These shouldn't interfere too much with Just's work on the next generation IDE,
I hope.
- Modified version of patch #496882: echo SimpleStdin readline()
input to stdout.

23 years agoBackport of 1.13:
Jack Jansen [Sun, 24 Feb 2002 23:11:34 +0000 (23:11 +0000)] 
Backport of 1.13:
half-hearted stab at supported the 2.2 object model better.

23 years agobackport of 1.3:
Jack Jansen [Sun, 24 Feb 2002 23:10:14 +0000 (23:10 +0000)] 
backport of 1.3:
made radio button labels readable under OSX

23 years agobackport of 1.4:
Jack Jansen [Sun, 24 Feb 2002 23:07:58 +0000 (23:07 +0000)] 
backport of 1.4:
Don't call PyMac_OutputSeen if we have a custom console. Fix by
Alexandre Parenteau.

23 years agobqackport of 1.73:
Jack Jansen [Sun, 24 Feb 2002 23:07:04 +0000 (23:07 +0000)] 
bqackport of 1.73:
In MachoPython, don't simulate argc/argv unless we have argc=1 and argv[1]
starts with "-psn_". This means the drag-and-drop continues to work as
expected, but we can now also do
/Applications/Python.app/Contents/MacOS/python script.py
from the command line, which is a lot easier with debugging. Pressing <option>
at this point also has the expected effect of opening the options dialog!

23 years agoBackport of 1.5 thru 1.8:
Jack Jansen [Sun, 24 Feb 2002 23:03:47 +0000 (23:03 +0000)] 
Backport of 1.5 thru 1.8:
- Use full paths for Rez and DeRez, which may not be on $PATH. Fixes bug
#509074.
- Also install the Tools directory on "make installmacsubtree".
- Added a note that you have to add Mac/Lib to sys.path after doing
a "make installmacsubtree".
- Include errors.rsrc in the Python.app resource file, so the error strings
are available in MacOS API exceptions.

23 years agoBackport of 1.9:
Jack Jansen [Sun, 24 Feb 2002 22:57:48 +0000 (22:57 +0000)] 
Backport of 1.9:
Ugh, by all means, _do_ report exceptions somehow ;-)

23 years agobackport of 1.52 and 1.53:
Jack Jansen [Sun, 24 Feb 2002 22:55:34 +0000 (22:55 +0000)] 
backport of 1.52 and 1.53:
- Added as_pathname() method to FSRef objects.
- In MachoPython expect Unix-style pathnames for both FSSpec and FSRef
initializers.