]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
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.

23 years agobackport of 1.13:
Jack Jansen [Sun, 24 Feb 2002 22:51:26 +0000 (22:51 +0000)] 
backport of 1.13:
Fixed to work under MachoPython, doing the expected unpacking for applesingle
files.

23 years agobackport of 1.13:
Jack Jansen [Sun, 24 Feb 2002 22:50:03 +0000 (22:50 +0000)] 
backport of 1.13:
Get rid of fsspec type initializer, it wasn't used anyway.

23 years agoBackport of 1.3:
Jack Jansen [Sun, 24 Feb 2002 22:48:51 +0000 (22:48 +0000)] 
Backport of 1.3:
Rename the routine to start the target running _start(), with a compatibility
routine start() calling it.

Some suites declare an event start(), which obscures this method, which
causes the class initializer to fail when called with start=1.

Based on bug report and fix suggestion by Jacob Kaplan-Moss.

23 years agoBackport of 1.3:
Jack Jansen [Sun, 24 Feb 2002 22:47:43 +0000 (22:47 +0000)] 
Backport of 1.3:
Added support for unicode strings (utxt).

23 years agoBackport of 1.47, 1.48 and 1.49:
Jack Jansen [Sun, 24 Feb 2002 22:46:28 +0000 (22:46 +0000)] 
Backport of 1.47, 1.48 and 1.49:
- 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.
- Don't barf when an AppleEvent was not handled. It's ok to ignore.

23 years agoBackport of 1.9 and 1.10:
Jack Jansen [Sun, 24 Feb 2002 22:44:00 +0000 (22:44 +0000)] 
Backport of 1.9 and 1.10:
Rewritten, clarified, corrected and cleaned up by Michael J. Barber.
Some modifications and clarifications (by me) to Michael's mods.

23 years agoBackport jackjansen's checkin of revision 2.37:
Michael W. Hudson [Sat, 23 Feb 2002 08:43:03 +0000 (08:43 +0000)] 
Backport jackjansen's checkin of revision 2.37:

Workaround for what is probably a problem in Apple's gcc: <pthread.h> fails
on a function pointer formal argument called "destructor", which is typedeffed
as a different function pointer type in object.h.

23 years agobackport tim_one's checkin of
Michael W. Hudson [Sat, 23 Feb 2002 08:31:37 +0000 (08:31 +0000)] 
backport tim_one's checkin of
    revision 1.101 of libfuncs.tex

SF bug #501591:  dir() doc is old
Bugfix candidate.

+ Updated dir() description to match actual 2.2 behavior.

+ Replaced the dir(sys) example with dir(struct), because the former
  was way out of date and is bound to change frequently, while the
  latter is stable.

+ Added a note cautioning that dir() is supplied primarily for
  convenience at an interactive prompt (hoping to discourage its
  use as the foundation of introspective code outside the core).

23 years agoMerge trunk.
Greg Ward [Fri, 22 Feb 2002 21:26:49 +0000 (21:26 +0000)] 
Merge trunk.

23 years agoTypo: thsi -> this. Closes SF bug #521450.
Fred Drake [Fri, 22 Feb 2002 15:40:45 +0000 (15:40 +0000)] 
Typo: thsi -> this.  Closes SF bug #521450.

23 years agoBackport theller's check-in of revision 1.45:
Michael W. Hudson [Fri, 22 Feb 2002 13:55:28 +0000 (13:55 +0000)] 
Backport theller's check-in of revision 1.45:

Make it 1.5.2 compatible again.

(I'm not sure how having symlinks around the repository interacts with
branches -- I'm going to tread carefully in here)

23 years agobackport guido's checkin of revision 1.139:
Michael W. Hudson [Fri, 22 Feb 2002 13:50:51 +0000 (13:50 +0000)] 
backport guido's checkin of revision 1.139:

Updates related to Modules/Setup and setup.py.  This addresses SF bug
#512871 (Jon Ribbens): Installation instructions are wrong.

Bugfix candidate.

23 years agoFix the problem reported in
Michael W. Hudson [Fri, 22 Feb 2002 13:44:43 +0000 (13:44 +0000)] 
Fix the problem reported in

[ #495401 ] Build troubles: --with-pymalloc

in a slightly different manner to the trunk, as discussed on python-dev.

23 years agobackport loewis' checkin of
Michael W. Hudson [Fri, 22 Feb 2002 13:31:18 +0000 (13:31 +0000)] 
backport loewis' checkin of
    revision 2.127 of typeobject.c

Allow __doc__ to be of arbitrary type. Patch by James Henstridge,
fixes #504343. 2.2.1 candidate.

23 years agobackport tim_one's checkin of
Michael W. Hudson [Fri, 22 Feb 2002 13:30:17 +0000 (13:30 +0000)] 
backport tim_one's checkin of
    revision 1.3 of reindent.py

SF bug #497839:  reindent chokes on empty first lines.
Reindenter.run():  copy over initial all-whitespace lines (if any, and
after normalizing to remove trailing blanks and tabs).
Bugfix candidate.

23 years agobackport tim_one's checkin of
Michael W. Hudson [Fri, 22 Feb 2002 13:29:32 +0000 (13:29 +0000)] 
backport tim_one's checkin of
    revision 1.10 of test_thread.py
    revision 1.5 of test_threaded_import.py

SF bug #516372:  test_thread: unhandled exc. in thread
Fix exit races in test_thread.py and test_threaded_import.py.
I suspect the bug is provokable only under Linux (where child threads
seem to get lots of cycles before they get killed after the main thread
exits), or on multi-processor machines running other OSes.
Bugfix candidate.

23 years agobackport gward's checkin of
Michael W. Hudson [Fri, 22 Feb 2002 13:26:54 +0000 (13:26 +0000)] 
backport gward's checkin of
    revision 1.25 of urllib2.py

Fix bug #511786 (2.2.1 candidate): ensure that custom-supplied headers
are preserved for redirected requests.

23 years agobackport gvanrossum's checkin of
Michael W. Hudson [Fri, 22 Feb 2002 13:23:33 +0000 (13:23 +0000)] 
backport gvanrossum's checkin of
    revision 2.54 of complexobject.c

Declare real and imag as read-only attributes.

This fixes SF bug #514858 (Gregory Smith): complex not entirely
immutable

2.2.1 Bugfix candidate!

23 years agobackport akuchling's checkin of
Michael W. Hudson [Fri, 22 Feb 2002 13:22:55 +0000 (13:22 +0000)] 
backport akuchling's checkin of
    revision 1.12 of file_util.py

[Bug #220993; may also fix bug #479469] Fix flakiness when old
  installations are present, by always unlinking the destination file
  before copying to it.  Without the unlink(), the copied file remains
  owned by its previous UID, causing the subsequent chmod() to fail.

Bugfix candidate, though it may cause changes on platforms where
  file ownership behaves differently.

23 years agobackport gvanrossum's checkin of
Michael W. Hudson [Fri, 22 Feb 2002 13:22:31 +0000 (13:22 +0000)] 
backport gvanrossum's checkin of
    revision 1.21 of CGIHTTPServer.py

date: 2002/02/01 16:27:59;  author: gvanrossum;  state: Exp;  lines: +18 -4
Wesley Chun's SF patch 511380: add CGIHTTPServer error supt for Win32

This uses os.popen3 (if it exists) to ensure that errors from a
non-Python CGI script are logged.

Bugfix candidate.

23 years agobackport akuchling's checkin of
Michael W. Hudson [Fri, 22 Feb 2002 13:19:54 +0000 (13:19 +0000)] 
backport akuchling's checkin of
    revision 1.11 of install_scripts.py

Restrict the mode to the lowest four octal positions; higher positions
   contain the type of the file (regular file, socket, link, &c.).
   This means that install_scripts will now print
   "changing mode of <file> to 775" instead of "... to 100775".

2.2 bugfix candidate, I suppose, though this isn't actually fixing a bug.

This patch was applied by an alarmingly automated system -- I hope it
worked...

23 years agoCorrect the refcount information for the PyWeakref_GetObject() function.
Fred Drake [Wed, 20 Feb 2002 05:08:02 +0000 (05:08 +0000)] 
Correct the refcount information for the PyWeakref_GetObject() function.
This closes SF bug #520087.

23 years agoBackport gvanrossum's checkin of revision 2.80:
Michael W. Hudson [Tue, 19 Feb 2002 14:17:02 +0000 (14:17 +0000)] 
Backport gvanrossum's checkin of revision 2.80:

Bugfix candidate.

Fix SF bug #511603: Error calling str on subclass of int

Explicitly fill in tp_str with the same pointer as tp_repr.

23 years agoBackport theller's checkin of revision 1.35:
Michael W. Hudson [Tue, 19 Feb 2002 14:15:40 +0000 (14:15 +0000)] 
Backport theller's checkin of revision 1.35:

package_dir must be converted from the distutils path conventions to
local conventions before being used by build_py.

Fixes SF bug #509288, probably a candidate for 2.2.1

23 years agoSF #515023. Make _DummyThread.join() signature match base class (Thread)
Neal Norwitz [Tue, 19 Feb 2002 03:02:33 +0000 (03:02 +0000)] 
SF #515023.  Make _DummyThread.join() signature match base class (Thread)

23 years agoSF #515041, Update path for 2.2
Neal Norwitz [Tue, 19 Feb 2002 02:57:05 +0000 (02:57 +0000)] 
SF #515041,  Update path for 2.2

23 years agoPatch #508038: Do not use a type as a variable name.
Martin v. Löwis [Sat, 16 Feb 2002 23:41:39 +0000 (23:41 +0000)] 
Patch #508038: Do not use a type as a variable name.

23 years agoThe Grande 'sendall()' patch, copied from release21-maint. Fixes #516715.
Martin v. Löwis [Sat, 16 Feb 2002 23:08:25 +0000 (23:08 +0000)] 
The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715.
Replaces calls to socket.send() (which isn't guaranteed to send all data)
with the new socket.sendall() method.

23 years agoAdd an availability statement for alarm().
Fred Drake [Fri, 15 Feb 2002 21:00:17 +0000 (21:00 +0000)] 
Add an availability statement for alarm().

23 years agoAdded deprecatioon information for mac.xstat().
Fred Drake [Fri, 15 Feb 2002 14:40:52 +0000 (14:40 +0000)] 
Added deprecatioon information for mac.xstat().
This closes SF bug #505150.

23 years agoThe "%" character does not need to be escaped in verbatim environments.
Fred Drake [Fri, 15 Feb 2002 04:21:45 +0000 (04:21 +0000)] 
The "%" character does not need to be escaped in verbatim environments.
This closes SF bug #517811.

23 years agoConsistently use \textasciicircum to produce a ^ character.
Fred Drake [Thu, 14 Feb 2002 15:22:04 +0000 (15:22 +0000)] 
Consistently use \textasciicircum to produce a ^ character.
LaTeX really falls flat on this one!

23 years agoAdded regression test for start()/stop() returning bogus NULL.
Fred Drake [Fri, 8 Feb 2002 21:31:47 +0000 (21:31 +0000)] 
Added regression test for start()/stop() returning bogus NULL.

23 years agostart() and stop() methods: return None where there is no exception;
Fred Drake [Fri, 8 Feb 2002 21:31:23 +0000 (21:31 +0000)] 
start() and stop() methods: return None where there is no exception;
returning NULL causes the interpreter to raise a SystemError.
Noted by Anthony Baxter at Python 10.

23 years agoPython 10 was a success, commemorate it\!
Fred Drake [Fri, 8 Feb 2002 20:47:47 +0000 (20:47 +0000)] 
Python 10 was a success, commemorate it\!
This includes Guido's whitespace cleanup.

23 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn [Fri, 8 Feb 2002 20:47:47 +0000 (20:47 +0000)] 
This commit was manufactured by cvs2svn to create branch
'release22-maint'.

23 years agoBackport my fixing up of PyObject_New/PyMem_Del mismatches.
Michael W. Hudson [Wed, 6 Feb 2002 17:11:51 +0000 (17:11 +0000)] 
Backport my fixing up of PyObject_New/PyMem_Del mismatches.

23 years agoBackport loewis' checkin of revision 1.44:
Michael W. Hudson [Wed, 6 Feb 2002 17:09:18 +0000 (17:09 +0000)] 
Backport loewis' checkin of revision 1.44:

Encode MSVC paths as mbcs. Fixes #509117. 2.2.1 candidate.

(apparently 1.5.2 compatibility is still a goal for distutils, but
I'll wait until that gets amended on the trunk...)

23 years agoFix a bunch of typos found by nnorwitz.
Michael W. Hudson [Wed, 6 Feb 2002 17:06:03 +0000 (17:06 +0000)] 
Fix a bunch of typos found by nnorwitz.

23 years agoUpdate the instructions on reporting bugs to reflect that anonymous reports
Fred Drake [Mon, 4 Feb 2002 21:43:44 +0000 (21:43 +0000)] 
Update the instructions on reporting bugs to reflect that anonymous reports
are no longer accepted.

23 years agostring.split() docstring described the interpretation of the maxsplit
Fred Drake [Wed, 30 Jan 2002 16:15:59 +0000 (16:15 +0000)] 
string.split() docstring described the interpretation of the maxsplit
argument incorrectly.
This closes SF bug #505997.

23 years agoRevise cheeseshop example so that the order of the keyword output is
Fred Drake [Tue, 29 Jan 2002 14:54:18 +0000 (14:54 +0000)] 
Revise cheeseshop example so that the order of the keyword output is
completely determined by the example; dict insertion order and the string
hash algorithm no longer affect the output.
This fixes SF bug #509281.

23 years agoIt's merge time! (well, this is the last one for the moment)
Michael W. Hudson [Mon, 28 Jan 2002 16:06:11 +0000 (16:06 +0000)] 
It's merge time!  (well, this is the last one for the moment)

Backport gvanrossum's checkin of revision 2.236:

A tentative fix for SF bug #503837 (Roeland Rengelink):
type.__module__ problems (again?)

This simply initializes the __module__ local in a class statement from
the __name__ global.  I'm not 100% sure that this is the correct fix,
although it usually does the right thing.  The problem is that if the
class statement executes in a custom namespace, the __name__ global
may be taken from __builtins__, in which case it would have the value
__builtin__, or it may not exist at all (if the custom namespace also
has a custom __builtins__), in which case the class statement will
fail.

Nevertheless, unless someone finds a better solution, this is a 2.2.1
bugfix too.

(apparently noone has :()

23 years agoIt's merge time!
Michael W. Hudson [Mon, 28 Jan 2002 15:31:14 +0000 (15:31 +0000)] 
It's merge time!

Backport bwarsaw's checkin of revision 1.25:

test_multipart_one_part(): Idempotency test case for a multipart/*
with only one subpart.

23 years agoIt's merge time!
Michael W. Hudson [Mon, 28 Jan 2002 15:30:05 +0000 (15:30 +0000)] 
It's merge time!

Backport bwarsaw's checkin of revision 1.1:

Test case of a singleton multipart; i.e. a multipart/* with only one
subpart.

23 years agoIt's merge time!
Michael W. Hudson [Mon, 28 Jan 2002 15:27:20 +0000 (15:27 +0000)] 
It's merge time!

Backport bwarsaw's checkin of revision 1.6:

_parsebody(): When adding subparts to a multipart container, make sure
that the first subpart added makes the payload a list object.
Otherwise, a multipart/* with only one subpart will not have the
proper structure.

23 years agoIt's merge time!
Michael W. Hudson [Mon, 28 Jan 2002 15:14:57 +0000 (15:14 +0000)] 
It's merge time!

Backport loewis' checkin of revision 1.123:

Encode Unicode arguments to split/splitlist as UTF-8. Fixes #507962.
2.2.1 bugfix candidate.