Commit Graph

21041 Commits

Author SHA1 Message Date
Jeremy Hylton 733c8935f9 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.
2001-12-13 19:51:56 +00:00
Jeremy Hylton 3095a4c228 Update output generated by test_scope 2001-12-13 19:47:51 +00:00
Jeremy Hylton 12ce485b48 Add helper macro to get the number of free variables for a PyCodeObject. 2001-12-13 19:47:02 +00:00
Jeremy Hylton ccae8377a3 Add test for SF bug [ #492403 ] exec() segfaults on closure's func_code 2001-12-13 19:45:04 +00:00
Tim Peters 6272dfd99f Update Windows buildno for 2.2c1.
Update 2.2c1 release data in NEWS.
2001-12-13 19:34:00 +00:00
Fred Drake 5f29319197 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.
2001-12-13 17:20:32 +00:00
Just van Rossum 0441dbff16 OSX workaround: don't crash if the extentions folder can't be found.
Not sure how to properly solve this.
2001-12-13 17:11:21 +00:00
Just van Rossum e9039b1742 build CoreGraphics under darwin 2001-12-13 13:41:36 +00:00
Just van Rossum 4f6c05857f include the proper header for Mach-O 2001-12-13 13:40:04 +00:00
Just van Rossum 663dd79861 added CoreGraphics to build list 2001-12-13 13:22:46 +00:00
Just van Rossum 11ccf3c1f0 added non-support for CoreGraphics... 2001-12-13 13:21:38 +00:00
Just van Rossum d7fdba3d4d project file for CoreGraphics 2001-12-13 13:20:00 +00:00
Just van Rossum 79e71f73e7 second CoreGraphics batch 2001-12-13 13:17:20 +00:00
Just van Rossum c97eefc3c9 first checkin for CoreGraphics 2001-12-13 13:15:28 +00:00
Just van Rossum d16199aade fixed typo in my email address 2001-12-13 12:58:09 +00:00
Just van Rossum d9c9b57e29 Don't barf when an AppleEvent was not handled. It's ok to ignore. 2001-12-13 12:57:11 +00:00
Just van Rossum 3f4651ec9c re-checkin as AppleSingle 2001-12-13 12:54:36 +00:00
Fred Drake 723293cb49 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.
2001-12-13 04:53:07 +00:00
Fred Drake a0b767625b Minor adjustments. 2001-12-13 04:25:37 +00:00
Jack Jansen dd67a8ed2c Build _CarbonEvt module on Mac OS X. Still gives a couple of warnings
but compiles OK.
2001-12-12 23:03:17 +00:00
Jack Jansen 6c3145985f Shut up gcc warning. 2001-12-12 22:51:39 +00:00
Jack Jansen 3339fc94b3 Updated for 2.2 release. 2001-12-12 22:44:59 +00:00
Just van Rossum aa6e83f2e9 added CarbonEvents 2001-12-12 22:42:37 +00:00
Just van Rossum e0b9fdca0d Updated for Universal Headers 3.4. 2001-12-12 22:40:27 +00:00
Just van Rossum 485d92e127 Support files for CarbonEvents 2001-12-12 22:39:52 +00:00
Just van Rossum cddfc8736f Added proper error checking in event callback handler 2001-12-12 21:48:00 +00:00
Jack Jansen ff3a69c4bc Ready for 2.2 distribution. 2001-12-12 21:40:38 +00:00
Just van Rossum b48f1d3f8a OSX tweak: recognize both EXTERN_API_C and EXTERN_API declarations.
Jack: I hope I didn't break anything for you!
2001-12-12 20:51:22 +00:00
Just van Rossum f8d6473782 Exposed quite a few more calls. 2001-12-12 20:48:53 +00:00
Guido van Rossum 1990943095 Fix for SF #491953 (Andrew Dalke): ScrolledText.py has TabError
Untabified.
2001-12-12 12:47:57 +00:00
Michael W. Hudson 850d3980ab Fix for
[ #429329 ] actual-parameters *arg, **kws not doc'd
2001-12-12 11:56:33 +00:00
Michael W. Hudson be5ce18e1c This is what Jason Tishler and I believe to be the state of play on Cygwin
at present.
2001-12-12 11:46:52 +00:00
Fred Drake 5f443cb550 Added the iSilo documentation to the standard target for distribution files
for "online" (as opposed to typeset) formats.
2001-12-12 06:22:43 +00:00
Fred Drake 1e7dfd3745 Wrapped a long line.
Converted to use "".startswith() to avoid slicing (& temp string creation).
2001-12-12 06:20:34 +00:00
Fred Drake 8d0645cb84 Add a note about yield requiring a __future__ directive. 2001-12-12 06:06:43 +00:00
Fred Drake 1529ef860e 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.
2001-12-12 05:40:46 +00:00
Fred Drake d077ca1e7c Very small test suite for the calendar module, mostly to check a constraint
on the return values from isleap().  Also checks firstweekday() and
setfirstweekday().
2001-12-12 05:38:08 +00:00
Guido van Rossum f0953b9dff 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. :-)
2001-12-11 22:41:24 +00:00
Fred Drake 3a8e59ebe1 Clean up a sad sentence in the yield description. 2001-12-11 21:58:35 +00:00
Just van Rossum c3baa0eff7 Fixed to the extend that it now builds in CW6, and actually works
a little.
2001-12-11 21:52:02 +00:00
Tim Peters bf72fe2650 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.
2001-12-11 21:43:14 +00:00
Fred Drake e31e9cebc0 Document generators and the yield statement, avoiding implementation details. 2001-12-11 21:10:08 +00:00
Fred Drake be6dd3083c 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.
2001-12-11 20:49:23 +00:00
Marc-André Lemburg 90294d01be 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.
2001-12-11 20:44:42 +00:00
Tim Peters 77d8a4fc91 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.
2001-12-11 20:31:34 +00:00
Tim Peters 63a3571e17 float_int_div(): For clarity, move this closer to the other float
division functions, and rename to float_floor_div.
2001-12-11 19:57:24 +00:00
Fred Drake 54e6294197 A number of small adjustments. 2001-12-11 19:40:16 +00:00
Tim Peters 017052152b Fiddle test_class so it passes with -Qnew. 2001-12-11 19:28:47 +00:00
Fred Drake 145b479508 Added discussion of protecting against screwing up the exception state in
an object's deallocator, including an example of how to do this.
2001-12-11 19:28:22 +00:00
Tim Peters e93e477215 Fiddle test_augassign so it passes under -Qnew. 2001-12-11 19:20:15 +00:00