]> granicus.if.org Git - python/log
python
23 years agoDon't use Latex \code{...} in docstrings.
Guido van Rossum [Mon, 17 Dec 2001 16:07:06 +0000 (16:07 +0000)]
Don't use Latex \code{...} in docstrings.

23 years agoGet rid of the stupid backslash in front of the column zero open
Barry Warsaw [Mon, 17 Dec 2001 15:40:24 +0000 (15:40 +0000)]
Get rid of the stupid backslash in front of the column zero open
paren.  This was there to worm around a stupid XEmacs bug, but since I
can't tickle the bug in newer XEmacsen (just tried w/21.4.5) it's
possible the problem has been fixed.  We shouldn't have to be working
around editor bugs anyway.

If it crops up again, I'll report it (again) to the XEmacs crowd.

23 years agoThere's a new include file AEInteraction.h which contains AESend and friends.
Jack Jansen [Mon, 17 Dec 2001 11:47:27 +0000 (11:47 +0000)]
There's a new include file AEInteraction.h which contains AESend and friends.

23 years agoTickCount moved to a different header file. We manually added it back in here, for...
Jack Jansen [Mon, 17 Dec 2001 11:46:50 +0000 (11:46 +0000)]
TickCount moved to a different header file. We manually added it back in here, for conveninece.

23 years agoPortability fix: Not every compiler implements the extension of
Sjoerd Mullender [Mon, 17 Dec 2001 11:39:56 +0000 (11:39 +0000)]
Portability fix: Not every compiler implements the extension of
unescaped newlines in strings.

23 years agoSynch with pyunit CVS:
Steve Purcell [Mon, 17 Dec 2001 10:13:17 +0000 (10:13 +0000)]
Synch with pyunit CVS:
 - Adds Fred's patch 487662: "Better error message for assertEqual"
 - Removed small portion of code unused after Guido's patch
   490119: "Don't treat ^C as error"

23 years agoSF patch #493452: docstrings for staticmethod/classmethod (Skip
Guido van Rossum [Mon, 17 Dec 2001 02:53:53 +0000 (02:53 +0000)]
SF patch #493452: docstrings for staticmethod/classmethod (Skip
Montanaro)

(With minor adjustments.)

23 years agoDavid Abrahams tried to compile this as a separate DLL under MSVC, and
Tim Peters [Mon, 17 Dec 2001 01:27:01 +0000 (01:27 +0000)]
David Abrahams tried to compile this as a separate DLL under MSVC, and
got a barrage of compile errors that didn't make sense to the C++ brain:
MSVC does not allow C (but does allow C++) initializers to contain
data addresses supplied by other DLLs.  So changed the initializers here
to use dummy nulls, and changed module init to plug in the foreign
addresses at runtime (manually simulating what C++ does by magic).  Tested
on Windows, and Guido tested on Linux (thanks!).  BTW, the *point* is that
people are going to use this module as a template for writing their own
subtypes, and it's unusual for extension authors to build their extensions
into Python directly (separate DLLs are the norm on Windows); so it's
better if we give them a template that works <wink>.

23 years agoAdapted for Universal Headers 3.4
Jack Jansen [Sun, 16 Dec 2001 20:18:40 +0000 (20:18 +0000)]
Adapted for Universal Headers 3.4

23 years ago_PyEval_SliceIndex(): explain why a NULL argument is allowed (thanks
Tim Peters [Sun, 16 Dec 2001 19:44:20 +0000 (19:44 +0000)]
_PyEval_SliceIndex():  explain why a NULL argument is allowed (thanks
to Guido for the revelation).

23 years ago_PyEval_SliceIndex(): Repaired the comments, and added XXX comments
Tim Peters [Sun, 16 Dec 2001 19:11:44 +0000 (19:11 +0000)]
_PyEval_SliceIndex():  Repaired the comments, and added XXX comments
about its dubious treatment of NULL (also opened a bug report on that,
but don't want to risk changing it this late in the 2.2 game).

23 years agoMark the mpz module deprecated as of Python 2.2.
Fred Drake [Sun, 16 Dec 2001 01:54:55 +0000 (01:54 +0000)]
Mark the mpz module deprecated as of Python 2.2.

23 years agoUpdate the example Windows extension to 2.2 (was hardcoded to 2.1).
Tim Peters [Sat, 15 Dec 2001 22:27:01 +0000 (22:27 +0000)]
Update the example Windows extension to 2.2 (was hardcoded to 2.1).

23 years agoUpdate to reflect recently added markup.
Fred Drake [Sat, 15 Dec 2001 22:24:06 +0000 (22:24 +0000)]
Update to reflect recently added markup.

23 years agoSF patch 493739 2 Bugfixes for 2.2c1 (RISC OS specific), from
Tim Peters [Sat, 15 Dec 2001 22:12:47 +0000 (22:12 +0000)]
SF patch 493739 2 Bugfixes for 2.2c1 (RISC OS specific), from
Dietmar Schwertberger.
Bugfix candidate.
"""
RISCOS/Modules/getpath_riscos.c:
Include trailing '\0' when using strncpy [copy
strlen(...)+1 characters].

Lib/plat-riscos/riscospath.py:
Use riscosmodule.expand for os.path.abspath.
[fixes problems with site.py where
abspath("<Python$Dir>") returned
join(os.getcwd(), "<Python$Dir>") as e.g.
"SCSI::SCSI4.$.<Python$Dir>" because "<Python$Dir>"
wasn't recognised as an absolute path.]
"""

23 years agoAdd a link to the mxNumber package.
Fred Drake [Sat, 15 Dec 2001 20:37:40 +0000 (20:37 +0000)]
Add a link to the mxNumber package.

23 years agoAdd link to the gmpy project.
Fred Drake [Sat, 15 Dec 2001 18:37:24 +0000 (18:37 +0000)]
Add link to the gmpy project.

23 years agoDon't call resetwarnings(). Be more restrictive in what we filter out
Guido van Rossum [Sat, 15 Dec 2001 18:04:10 +0000 (18:04 +0000)]
Don't call resetwarnings().  Be more restrictive in what we filter out
instead.

23 years agoSF bug #493561: incorrect format string descrobject.c (Neal Norwitz)
Guido van Rossum [Sat, 15 Dec 2001 05:00:30 +0000 (05:00 +0000)]
SF bug #493561: incorrect format string descrobject.c (Neal Norwitz)

%300s should be %.300s, twice.

23 years agoFinally CW7 allows me to replace the continually-in-need-of-updating exports files...
Jack Jansen [Sat, 15 Dec 2001 00:23:35 +0000 (00:23 +0000)]
Finally CW7 allows me to replace the continually-in-need-of-updating exports files with one 6-line anti-export-file. Yeah! (Thanks Alex, for reminding me:-)

23 years agoPost-release fiddling -- prep for 2.2 final.
Tim Peters [Fri, 14 Dec 2001 23:16:18 +0000 (23:16 +0000)]
Post-release fiddling -- prep for 2.2 final.

23 years agoMade event callbacks more rubust: keep an actual reference to the
Just van Rossum [Fri, 14 Dec 2001 23:16:04 +0000 (23:16 +0000)]
Made event callbacks more rubust: keep an actual reference to the
python callback, and do RemoveEventHandler() upon deallocation.

23 years agoQuick patch to allow building with Universal Headers 3.4.
Jack Jansen [Fri, 14 Dec 2001 23:03:07 +0000 (23:03 +0000)]
Quick patch to allow building with Universal Headers 3.4.

23 years agoThe import of the scanner can also fail, cater for that.
Jack Jansen [Fri, 14 Dec 2001 23:01:34 +0000 (23:01 +0000)]
The import of the scanner can also fail, cater for that.

23 years agoWe have strdup(), but not its prototype:-(
Jack Jansen [Fri, 14 Dec 2001 22:58:11 +0000 (22:58 +0000)]
We have strdup(), but not its prototype:-(

23 years agoUse getcwd(), not silly old getwd().
Jack Jansen [Fri, 14 Dec 2001 22:57:34 +0000 (22:57 +0000)]
Use getcwd(), not silly old getwd().

23 years agoUpdate to use the notice environment so a multi-paragraph note can be
Fred Drake [Fri, 14 Dec 2001 22:55:14 +0000 (22:55 +0000)]
Update to use the notice environment so a multi-paragraph note can be
appropriately marked.

23 years agoUpdated for CW7
Jack Jansen [Fri, 14 Dec 2001 22:53:16 +0000 (22:53 +0000)]
Updated for CW7

23 years agoUpdate information about __del__() & reference cycles for CPython.
Fred Drake [Fri, 14 Dec 2001 22:52:41 +0000 (22:52 +0000)]
Update information about __del__() & reference cycles for CPython.
This partially fixes SF bug #492619.

Fix a typo & use the new notice environment instead of (ab)using the \note
and \warning macros.

23 years agoUpdated to CodeWarrior Pro 7.
Jack Jansen [Fri, 14 Dec 2001 22:50:26 +0000 (22:50 +0000)]
Updated to CodeWarrior Pro 7.

23 years agoAdd a new environment for whole-paragraph (or longer) notes & warnings.
Fred Drake [Fri, 14 Dec 2001 22:50:06 +0000 (22:50 +0000)]
Add a new environment for whole-paragraph (or longer) notes & warnings.

23 years agoMany of the new calls are Carbon-only. Flagged them as such.
Jack Jansen [Fri, 14 Dec 2001 22:47:19 +0000 (22:47 +0000)]
Many of the new calls are Carbon-only. Flagged them as such.

23 years agoAdded test_socketserver and test_unicode_file to tests expected to be
Jack Jansen [Fri, 14 Dec 2001 21:28:53 +0000 (21:28 +0000)]
Added test_socketserver and test_unicode_file to tests expected to be
skipped on Mac OS X. Not sure yet about test_locale.py: this may be
due to my copy of Mac OS X (although it talks english fine enough).

23 years agoAdd a missing "cycle".
Fred Drake [Fri, 14 Dec 2001 21:19:08 +0000 (21:19 +0000)]
Add a missing "cycle".

23 years agoMerge last minute 2.2c1 changes from branch to trunk.
Barry Warsaw [Fri, 14 Dec 2001 20:47:12 +0000 (20:47 +0000)]
Merge last minute 2.2c1 changes from branch to trunk.

23 years agosend(), ehlo(): Integrate patch #487310 by Fazal Majid. Consistently
Barry Warsaw [Fri, 14 Dec 2001 20:34:20 +0000 (20:34 +0000)]
send(), ehlo(): Integrate patch #487310 by Fazal Majid.  Consistently
call self.close() just before raising SMTPServerDisconnected.  This
allows you to, e.g. reconnect after a server timeout.

Merged from the 2.2c1 branch.

23 years agoAs usual, bump the version number.
Barry Warsaw [Fri, 14 Dec 2001 20:30:23 +0000 (20:30 +0000)]
As usual, bump the version number.

23 years agoNote the tighter complex() parameter checking.
Fred Drake [Fri, 14 Dec 2001 17:08:12 +0000 (17:08 +0000)]
Note the tighter complex() parameter checking.

23 years agoWork around the problem of spaces after a "}" being dropped by LaTeX2HTML if
Fred Drake [Fri, 14 Dec 2001 16:57:31 +0000 (16:57 +0000)]
Work around the problem of spaces after a "}" being dropped by LaTeX2HTML if
they were represented by newlines in the document source.
Partially fixes SF bug #493243.

23 years agoThe valign attribute to control the vertical alignment of a table cell should
Fred Drake [Fri, 14 Dec 2001 16:54:53 +0000 (16:54 +0000)]
The valign attribute to control the vertical alignment of a table cell should
be on the <tr> element, not the <table> element.
Partially fixes SF bug #493243.

23 years agoBump version numbers for the trunk.
Fred Drake [Fri, 14 Dec 2001 16:45:04 +0000 (16:45 +0000)]
Bump version numbers for the trunk.

23 years agoReflect change of Digital Creations to Zope Corporation.
Fred Drake [Fri, 14 Dec 2001 16:42:56 +0000 (16:42 +0000)]
Reflect change of Digital Creations to Zope Corporation.

23 years agoPartial fix for problem in SF buf #487458
Jeremy Hylton [Fri, 14 Dec 2001 16:15:11 +0000 (16:15 +0000)]
Partial fix for problem in SF buf #487458

Rev 1.20 introduced a call to getpeername() in the dispatcher
constructor.  This only works for a connected socket.  Apparently
earlier versions of the code worked with un-connected sockets, e.g. a
listening socket.

It's not clear that the code is supposed to accept these sockets,
because it sets self.connected = 1 when passed a socket.  But it's
also not clear that it should be a fatal error to pass a listening
socket.

The solution, for now, is to put a try/except around the getpeername()
call and continue if it fails.  The self.addr attribute is used
primarily (only?) to produce a nice repr for the object, so it hardly
matters.  If there is a real error on a connected socket, it's likely
that subsequent calls will fail too.

23 years agoAdd default values for options in the class init routine, not in the convenience...
Jack Jansen [Fri, 14 Dec 2001 14:31:15 +0000 (14:31 +0000)]
Add default values for options in the class init routine, not in the convenience wrapper function: distutils uses the class directly. Fixes bug #492665.

23 years ago(Merge into trunk.)
Guido van Rossum [Fri, 14 Dec 2001 04:19:56 +0000 (04:19 +0000)]
(Merge into trunk.)

Fix for SF bug #492345.  (I could've sworn I checked this in, but
apparently I didn't!)

This code:

    class Classic:
        pass

    class New(Classic):
        __metaclass__ = type

attempts to create a new-style class with only classic bases -- but it
doesn't work right.  Attempts to fix it so it works caused problems
elsewhere, so I'm now raising a TypeError in this case.

23 years ago- "manage" controls created by CreateXxxXxxControl() functions.
Just van Rossum [Thu, 13 Dec 2001 21:24:37 +0000 (21:24 +0000)]
- "manage" controls created by CreateXxxXxxControl() functions.
- FindControlUnderMouse() returns an existing control, not a new one.

23 years agoUndo inadvertent change to test_scope in previous checkin
Jeremy Hylton [Thu, 13 Dec 2001 20:00:26 +0000 (20:00 +0000)]
Undo inadvertent change to test_scope in previous checkin

23 years agoAdd a comment explaining what these tests are for, and where to look for
Fred Drake [Thu, 13 Dec 2001 19:57:53 +0000 (19:57 +0000)]
Add a comment explaining what these tests are for, and where to look for
tests of complex().

23 years agoFor the exec-free var bug.
Jeremy Hylton [Thu, 13 Dec 2001 19:53:26 +0000 (19:53 +0000)]
For the exec-free var bug.

23 years agoEnsure that complex() only accepts a string argument as the first arg,
Fred Drake [Thu, 13 Dec 2001 19:52:22 +0000 (19:52 +0000)]
Ensure that complex() only accepts a string argument as the first arg,
and only if there is no second arg.
This closes SF patch #479551.

23 years agoFix for SF bug [ #492403 ] exec() segfaults on closure's func_code
Jeremy Hylton [Thu, 13 Dec 2001 19:51:56 +0000 (19:51 +0000)]
Fix for SF bug [ #492403 ] exec() segfaults on closure's func_code

Based on the patch from Danny Yoo.  The fix is in exec_statement() in
ceval.c.

There are also changes to introduce use of PyCode_GetNumFree() in
several places.

23 years agoUpdate output generated by test_scope
Jeremy Hylton [Thu, 13 Dec 2001 19:47:51 +0000 (19:47 +0000)]
Update output generated by test_scope

23 years agoAdd helper macro to get the number of free variables for a PyCodeObject.
Jeremy Hylton [Thu, 13 Dec 2001 19:47:02 +0000 (19:47 +0000)]
Add helper macro to get the number of free variables for a PyCodeObject.

23 years agoAdd test for SF bug [ #492403 ] exec() segfaults on closure's func_code
Jeremy Hylton [Thu, 13 Dec 2001 19:45:04 +0000 (19:45 +0000)]
Add test for SF bug [ #492403 ] exec() segfaults on closure's func_code

23 years agoUpdate Windows buildno for 2.2c1.
Tim Peters [Thu, 13 Dec 2001 19:34:00 +0000 (19:34 +0000)]
Update Windows buildno for 2.2c1.
Update 2.2c1 release data in NEWS.

23 years agoReplace the "Cookbook approach" with the approach documented in
Fred Drake [Thu, 13 Dec 2001 17:20:32 +0000 (17:20 +0000)]
Replace the "Cookbook approach" with the approach documented in
PC/example_nt/readme.txt; this one does not rely on any external scripts.
This "fixes" SF bug #221671 and most of SF bug #225003.

23 years agoOSX workaround: don't crash if the extentions folder can't be found.
Just van Rossum [Thu, 13 Dec 2001 17:11:21 +0000 (17:11 +0000)]
OSX workaround: don't crash if the extentions folder can't be found.
Not sure how to properly solve this.

23 years agobuild CoreGraphics under darwin
Just van Rossum [Thu, 13 Dec 2001 13:41:36 +0000 (13:41 +0000)]
build CoreGraphics under darwin

23 years agoinclude the proper header for Mach-O
Just van Rossum [Thu, 13 Dec 2001 13:40:04 +0000 (13:40 +0000)]
include the proper header for Mach-O

23 years agoadded CoreGraphics to build list
Just van Rossum [Thu, 13 Dec 2001 13:22:46 +0000 (13:22 +0000)]
added CoreGraphics to build list

23 years agoadded non-support for CoreGraphics...
Just van Rossum [Thu, 13 Dec 2001 13:21:38 +0000 (13:21 +0000)]
added non-support for CoreGraphics...

23 years agoproject file for CoreGraphics
Just van Rossum [Thu, 13 Dec 2001 13:20:00 +0000 (13:20 +0000)]
project file for CoreGraphics

23 years agosecond CoreGraphics batch
Just van Rossum [Thu, 13 Dec 2001 13:17:20 +0000 (13:17 +0000)]
second CoreGraphics batch

23 years agofirst checkin for CoreGraphics
Just van Rossum [Thu, 13 Dec 2001 13:15:28 +0000 (13:15 +0000)]
first checkin for CoreGraphics

23 years agofixed typo in my email address
Just van Rossum [Thu, 13 Dec 2001 12:58:09 +0000 (12:58 +0000)]
fixed typo in my email address

23 years agoDon't barf when an AppleEvent was not handled. It's ok to ignore.
Just van Rossum [Thu, 13 Dec 2001 12:57:11 +0000 (12:57 +0000)]
Don't barf when an AppleEvent was not handled. It's ok to ignore.

23 years agore-checkin as AppleSingle
Just van Rossum [Thu, 13 Dec 2001 12:54:36 +0000 (12:54 +0000)]
re-checkin as AppleSingle

23 years agoMake tix_configure() work the same way configure() works for the basic
Fred Drake [Thu, 13 Dec 2001 04:53:07 +0000 (04:53 +0000)]
Make tix_configure() work the same way configure() works for the basic
Tkinter classes.
Adjust a lot of docstrings.
Convert a few type checks to use isinstance() instead of type().
This is part of SF patch #485959.

23 years agoMinor adjustments.
Fred Drake [Thu, 13 Dec 2001 04:25:37 +0000 (04:25 +0000)]
Minor adjustments.

23 years agoBuild _CarbonEvt module on Mac OS X. Still gives a couple of warnings
Jack Jansen [Wed, 12 Dec 2001 23:03:17 +0000 (23:03 +0000)]
Build _CarbonEvt module on Mac OS X. Still gives a couple of warnings
but compiles OK.

23 years agoShut up gcc warning.
Jack Jansen [Wed, 12 Dec 2001 22:51:39 +0000 (22:51 +0000)]
Shut up gcc warning.

23 years agoUpdated for 2.2 release.
Jack Jansen [Wed, 12 Dec 2001 22:44:59 +0000 (22:44 +0000)]
Updated for 2.2 release.

23 years agoadded CarbonEvents
Just van Rossum [Wed, 12 Dec 2001 22:42:37 +0000 (22:42 +0000)]
added CarbonEvents

23 years agoUpdated for Universal Headers 3.4.
Just van Rossum [Wed, 12 Dec 2001 22:40:27 +0000 (22:40 +0000)]
Updated for Universal Headers 3.4.

23 years agoSupport files for CarbonEvents
Just van Rossum [Wed, 12 Dec 2001 22:39:52 +0000 (22:39 +0000)]
Support files for CarbonEvents

23 years agoAdded proper error checking in event callback handler
Just van Rossum [Wed, 12 Dec 2001 21:48:00 +0000 (21:48 +0000)]
Added proper error checking in event callback handler

23 years agoReady for 2.2 distribution.
Jack Jansen [Wed, 12 Dec 2001 21:40:38 +0000 (21:40 +0000)]
Ready for 2.2 distribution.

23 years agoOSX tweak: recognize both EXTERN_API_C and EXTERN_API declarations.
Just van Rossum [Wed, 12 Dec 2001 20:51:22 +0000 (20:51 +0000)]
OSX tweak: recognize both EXTERN_API_C and EXTERN_API declarations.
Jack: I hope I didn't break anything for you!

23 years agoExposed quite a few more calls.
Just van Rossum [Wed, 12 Dec 2001 20:48:53 +0000 (20:48 +0000)]
Exposed quite a few more calls.

23 years agoFix for SF #491953 (Andrew Dalke): ScrolledText.py has TabError
Guido van Rossum [Wed, 12 Dec 2001 12:47:57 +0000 (12:47 +0000)]
Fix for SF #491953 (Andrew Dalke): ScrolledText.py has TabError

Untabified.

23 years agoFix for
Michael W. Hudson [Wed, 12 Dec 2001 11:56:33 +0000 (11:56 +0000)]
Fix for

[ #429329 ] actual-parameters *arg, **kws not doc'd

23 years agoThis is what Jason Tishler and I believe to be the state of play on Cygwin
Michael W. Hudson [Wed, 12 Dec 2001 11:46:52 +0000 (11:46 +0000)]
This is what Jason Tishler and I believe to be the state of play on Cygwin
at present.

23 years agoAdded the iSilo documentation to the standard target for distribution files
Fred Drake [Wed, 12 Dec 2001 06:22:43 +0000 (06:22 +0000)]
Added the iSilo documentation to the standard target for distribution files
for "online" (as opposed to typeset) formats.

23 years agoWrapped a long line.
Fred Drake [Wed, 12 Dec 2001 06:20:34 +0000 (06:20 +0000)]
Wrapped a long line.
Converted to use "".startswith() to avoid slicing (& temp string creation).

23 years agoAdd a note about yield requiring a __future__ directive.
Fred Drake [Wed, 12 Dec 2001 06:06:43 +0000 (06:06 +0000)]
Add a note about yield requiring a __future__ directive.

23 years agoDocument that isleap() returns exactly 1 or 0, which is guaranteed by the
Fred Drake [Wed, 12 Dec 2001 05:40:46 +0000 (05:40 +0000)]
Document that isleap() returns exactly 1 or 0, which is guaranteed by the
docstring.
This closes SF bug #485794.

Additional (very) small details were added.

23 years agoVery small test suite for the calendar module, mostly to check a constraint
Fred Drake [Wed, 12 Dec 2001 05:38:08 +0000 (05:38 +0000)]
Very small test suite for the calendar module, mostly to check a constraint
on the return values from isleap().  Also checks firstweekday() and
setfirstweekday().

23 years agoFix SF bug #482171: webchecker dies on file: URLs w/o robots.txt
Guido van Rossum [Tue, 11 Dec 2001 22:41:24 +0000 (22:41 +0000)]
Fix SF bug #482171: webchecker dies on file: URLs w/o robots.txt

The cause seems to be that when a file URL doesn't exist,
urllib.urlopen() raises OSError instead of IOError.  Simply add this
to the except clause.  Not elegant, but effective. :-)

23 years agoClean up a sad sentence in the yield description.
Fred Drake [Tue, 11 Dec 2001 21:58:35 +0000 (21:58 +0000)]
Clean up a sad sentence in the yield description.

23 years agoFixed to the extend that it now builds in CW6, and actually works
Just van Rossum [Tue, 11 Dec 2001 21:52:02 +0000 (21:52 +0000)]
Fixed to the extend that it now builds in CW6, and actually works
a little.

23 years agoAdded -Qnew news about the test_coercion.py failure. That's the only test
Tim Peters [Tue, 11 Dec 2001 21:43:14 +0000 (21:43 +0000)]
Added -Qnew news about the test_coercion.py failure.  That's the only test
that still fails under -Qnew, and is so tied to details of current
behavior that fixing it before new division becomes the default is
impractical.

23 years agoDocument generators and the yield statement, avoiding implementation details.
Fred Drake [Tue, 11 Dec 2001 21:10:08 +0000 (21:10 +0000)]
Document generators and the yield statement, avoiding implementation details.

23 years agoRemove crufty whitespace in a block of index entries.
Fred Drake [Tue, 11 Dec 2001 20:49:23 +0000 (20:49 +0000)]
Remove crufty whitespace in a block of index entries.
Minor, but generates slightly smaller HTML & makes it easier to see what's
happening when debugging the HTML.

23 years agoJoe VanAndel wrote:
Marc-André Lemburg [Tue, 11 Dec 2001 20:44:42 +0000 (20:44 +0000)]
Joe VanAndel wrote:
>
> When using 'distutils' (shipped with Python 2.1) I've found that my
> Python scripts installed with a first line of:
>
> #!/usr/bin/python2.1None
>
> This is caused by distutils trying to patch the first line of the python
> script to use the current interpreter.

23 years agofloat_floor_div: An expression like 3.//1j crashed the interpreter, or
Tim Peters [Tue, 11 Dec 2001 20:31:34 +0000 (20:31 +0000)]
float_floor_div:  An expression like 3.//1j crashed the interpreter, or
delivered bizarre results.  Check float_divmod for a Py_NotImplemented
return and pass it along (instead of treating Py_NotImplemented as a
2-tuple).
CONVERT_TO_DOUBLE:  Added comments; this macro is obscure.

23 years agofloat_int_div(): For clarity, move this closer to the other float
Tim Peters [Tue, 11 Dec 2001 19:57:24 +0000 (19:57 +0000)]
float_int_div():  For clarity, move this closer to the other float
division functions, and rename to float_floor_div.

23 years agoA number of small adjustments.
Fred Drake [Tue, 11 Dec 2001 19:40:16 +0000 (19:40 +0000)]
A number of small adjustments.

23 years agoFiddle test_class so it passes with -Qnew.
Tim Peters [Tue, 11 Dec 2001 19:28:47 +0000 (19:28 +0000)]
Fiddle test_class so it passes with -Qnew.

23 years agoAdded discussion of protecting against screwing up the exception state in
Fred Drake [Tue, 11 Dec 2001 19:28:22 +0000 (19:28 +0000)]
Added discussion of protecting against screwing up the exception state in
an object's deallocator, including an example of how to do this.

23 years agoFiddle test_augassign so it passes under -Qnew.
Tim Peters [Tue, 11 Dec 2001 19:20:15 +0000 (19:20 +0000)]
Fiddle test_augassign so it passes under -Qnew.