]> granicus.if.org Git - python/log
python
23 years agoFix a typo
Neal Norwitz [Wed, 19 Dec 2001 20:44:13 +0000 (20:44 +0000)]
Fix a typo

23 years agoMore cygwin news. This section is getting a bit long. Oh well.
Michael W. Hudson [Wed, 19 Dec 2001 19:49:58 +0000 (19:49 +0000)]
More cygwin news.  This section is getting a bit long.  Oh well.

23 years agoSF bug #495021: Crash calling os.stat with a trailing backslash
Tim Peters [Wed, 19 Dec 2001 19:05:01 +0000 (19:05 +0000)]
SF bug #495021:  Crash calling os.stat with a trailing backslash
Patch from Mark Hammond, plus code rearrangement and comments from me.
posix_do_stat():  Windows-specific code could try to free() stack
memory in some cases when a path ending with a forward or backward slash
was passed to os.stat().

23 years agoAdd test for pickling new-style class with custom metaclass.
Guido van Rossum [Wed, 19 Dec 2001 16:58:54 +0000 (16:58 +0000)]
Add test for pickling new-style class with custom metaclass.

23 years agoFix for SF bug #494904: Cannot pickle a class with a metaclass,
Guido van Rossum [Wed, 19 Dec 2001 16:57:36 +0000 (16:57 +0000)]
Fix for SF bug #494904: Cannot pickle a class with a metaclass,
reported by Dan Parisien.

23 years agosave(): Fix for SF bug #494904: Cannot pickle a class with a
Guido van Rossum [Wed, 19 Dec 2001 16:56:54 +0000 (16:56 +0000)]
save(): Fix for SF bug #494904: Cannot pickle a class with a
metaclass, reported by Dan Parisien.

Objects that are instances of custom metaclasses, i.e. whose ob_type
is a subclass of PyType_Type, should be pickled the same as new-style
classes (objects whose ob_type is PyType_Type).  This can't be done
through the existing dispatch switches, and the __reduce__ trick
doesn't work for these, since it finds the unbound __reduce__ for
instances of the class (inherited from PyBaseObject_Type).  So check
explicitly using PyType_IsSubtype().

23 years agoPickler.save(): Fix for SF bug #494904: Cannot pickle a class with a
Guido van Rossum [Wed, 19 Dec 2001 16:55:02 +0000 (16:55 +0000)]
Pickler.save(): Fix for SF bug #494904: Cannot pickle a class with a
metaclass, reported by Dan Parisien.

Objects that are instances of custom metaclasses, i.e. whose class is
a subclass of 'type', should be pickled the same as new-style classes
(objects whose class is 'type').  This can't be done through a
dispatch table entry, and the __reduce__ trick doesn't work for these,
since it finds the unbound __reduce__ for instances of the class
(inherited from 'object').  So check explicitly using issubclass().

23 years agoAdd some additional tests that check more proxy behaviors.
Fred Drake [Wed, 19 Dec 2001 16:54:23 +0000 (16:54 +0000)]
Add some additional tests that check more proxy behaviors.

23 years agoproxy_compare(): Make sure that we unwrap both objects being compared if
Fred Drake [Wed, 19 Dec 2001 16:44:30 +0000 (16:44 +0000)]
proxy_compare():  Make sure that we unwrap both objects being compared if
both are proxy objects.

23 years agoFix the test control support for the pickle & cPickle tests so the tests run
Fred Drake [Wed, 19 Dec 2001 16:42:15 +0000 (16:42 +0000)]
Fix the test control support for the pickle & cPickle tests so the tests run
under regrtest.

23 years agoThe test using class initarg failed, because it was lacking a
Guido van Rossum [Wed, 19 Dec 2001 16:38:29 +0000 (16:38 +0000)]
The test using class initarg failed, because it was lacking a
__safe_for_unpickling__ attribute.

23 years agoMake the module docstring agree with reality: the module prvides the
Fred Drake [Wed, 19 Dec 2001 14:27:41 +0000 (14:27 +0000)]
Make the module docstring agree with reality: the module prvides the
"handler()" function, not the "handle()" function.

23 years agoWhen running regen for the plat directories we should use the BUILDEXT
Jack Jansen [Wed, 19 Dec 2001 09:24:40 +0000 (09:24 +0000)]
When running regen for the plat directories we should use the BUILDEXT
extension, not the EXT one, as regen uses the python binary in the build
directory. Fixes #493959.

23 years agoSF bug #494738: binascii_b2a_base64 overwrites memory.
Tim Peters [Wed, 19 Dec 2001 04:41:35 +0000 (04:41 +0000)]
SF bug #494738:  binascii_b2a_base64 overwrites memory.
binascii_b2a_base64():  We didn't allocate enough buffer space for very
short inputs (e.g., a 1-byte input can produce a 5-byte output, but we
only allocated 2 bytes).  I expect that malloc overheads absorbed the
overrun in practice, but computing a correct upper bound is a very simple
change.

23 years agoSF bug #494668: PUSH() should assert-fail on overflow.
Tim Peters [Wed, 19 Dec 2001 04:11:07 +0000 (04:11 +0000)]
SF bug #494668:  PUSH() should assert-fail on overflow.
eval_frame():  Added asserts to the top of the eval loop, to verify
that the eval stack pointer is in bounds, plus some comments.

23 years agoTemporaryFileWrapper: fixed typo in new comment.
Tim Peters [Tue, 18 Dec 2001 23:22:01 +0000 (23:22 +0000)]
TemporaryFileWrapper:  fixed typo in new comment.

23 years agoPatch #494384: Disable more Unicode API if Unicode is not used.
Martin v. Löwis [Tue, 18 Dec 2001 22:36:40 +0000 (22:36 +0000)]
Patch #494384: Disable more Unicode API if Unicode is not used.

23 years agoTemporaryFileWrapper: cache the value of os.unlink for use by __del__,
Tim Peters [Tue, 18 Dec 2001 22:32:40 +0000 (22:32 +0000)]
TemporaryFileWrapper:  cache the value of os.unlink for use by __del__,
to prevent mysterious errors at shutdown due to "os.unlink" turning into
"None.unlink".

23 years agoMove the helper class _closedsocket *into* the _socketobject class.
Guido van Rossum [Tue, 18 Dec 2001 22:22:25 +0000 (22:22 +0000)]
Move the helper class _closedsocket *into* the _socketobject class.
This way, when a socket object is deleted after the socket module has
already been zapped by module shutdown, we don't get annoying warnings
about exceptions in __del__ methods.

23 years agoRecreated after source changes.
Thomas Heller [Tue, 18 Dec 2001 21:08:15 +0000 (21:08 +0000)]
Recreated after source changes.

23 years agoMoved a bunch of routines from "blacklisted" to "graylisted", as they _are_
Just van Rossum [Tue, 18 Dec 2001 20:15:27 +0000 (20:15 +0000)]
Moved a bunch of routines from "blacklisted" to "graylisted", as they _are_
available in OSX (mach-o) but not in CarbonLib (neither on OSX or OS9).

23 years agoSecond part of fix for bug [#483982] Python 2.2b2 bdist_wininst
Thomas Heller [Tue, 18 Dec 2001 20:13:40 +0000 (20:13 +0000)]
Second part of fix for bug [#483982] Python 2.2b2 bdist_wininst
crashes.

If no external zip-utility is found, the archive is created by the
zipfile module, which behaves different now than in 2.1: if the
zip-file is created in the root directory if the distribution, it will
contain an (empty) version of itself.

This triggered the above bug - so it's better to create the zip-file
far away in the TMP directory.

23 years agoAdd entry for the pydoc documentation.
Fred Drake [Tue, 18 Dec 2001 16:32:30 +0000 (16:32 +0000)]
Add entry for the pydoc documentation.

23 years agoAdd documentation for the pydoc module; contributed by Ka-Ping Yee.
Fred Drake [Tue, 18 Dec 2001 16:31:44 +0000 (16:31 +0000)]
Add documentation for the pydoc module; contributed by Ka-Ping Yee.
This closes SF patch #494622.

23 years agoAdd documentation for the help() built-in; contributed by Ka-Ping Yee.
Fred Drake [Tue, 18 Dec 2001 16:31:08 +0000 (16:31 +0000)]
Add documentation for the help() built-in; contributed by Ka-Ping Yee.
This is part of SF patch #494622.

23 years agoMerge in Ping's changes to the cgitb documentation, and add a version
Fred Drake [Tue, 18 Dec 2001 15:51:55 +0000 (15:51 +0000)]
Merge in Ping's changes to the cgitb documentation, and add a version
annotation as well.
This closes SF patch #494582.

23 years agoSmall change to allow for generation of QuickTime module for Windows.
Jack Jansen [Tue, 18 Dec 2001 15:48:28 +0000 (15:48 +0000)]
Small change to allow for generation of QuickTime module for Windows.

23 years agoUpdated to Universal Headers 3.4
Jack Jansen [Tue, 18 Dec 2001 15:39:38 +0000 (15:39 +0000)]
Updated to Universal Headers 3.4

23 years agoAdded missing docstring
Just van Rossum [Tue, 18 Dec 2001 12:53:47 +0000 (12:53 +0000)]
Added missing docstring

23 years agoAdded support for tab controls and initial (incomplete) support
Just van Rossum [Tue, 18 Dec 2001 12:47:47 +0000 (12:47 +0000)]
Added support for tab controls and initial (incomplete) support
for DataBrowser controls.

23 years agoPatch #494553 by Donovan Preston: initial implementation
Just van Rossum [Tue, 18 Dec 2001 12:35:57 +0000 (12:35 +0000)]
Patch #494553 by Donovan Preston: initial implementation
for GetEventParameter().

23 years agoinitxxsubtype(): Add a comment to make the magic clearer; I doubt it's
Tim Peters [Mon, 17 Dec 2001 18:26:19 +0000 (18:26 +0000)]
initxxsubtype():  Add a comment to make the magic clearer; I doubt it's
obvious to anyone except PyType_Ready's author <0.9 wink>.

23 years agoUse PyType_Ready() for initialization of the ob_type field of our
Guido van Rossum [Mon, 17 Dec 2001 17:25:53 +0000 (17:25 +0000)]
Use PyType_Ready() for initialization of the ob_type field of our
types (the tp_base field must be initialized prior to that call).

23 years agoUpdate comments about mpz, pointing to gmpy and mxNumber rather than
Guido van Rossum [Mon, 17 Dec 2001 17:24:43 +0000 (17:24 +0000)]
Update comments about mpz, pointing to gmpy and mxNumber rather than
to the non-existing pympz (did that ever exist?).

23 years ago- PyType_Ready(): Initialize the ob_type field to &PyType_Type if it's
Guido van Rossum [Mon, 17 Dec 2001 17:14:22 +0000 (17:14 +0000)]
- PyType_Ready(): Initialize the ob_type field to &PyType_Type if it's
  NULL, so that you can call PyType_Ready() to initialize a type that
  is to be separately compiled with C on Windows.

inherit_special():  Add a long comment explaining that you have to set
tp_new if your base class is PyBaseObject_Type.

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