Jack Jansen [Thu, 19 Oct 2000 20:32:35 +0000 (20:32 +0000)]
Use MacOS.OutputSeen() on menuselections: it treats a menu selection in the same way as input to stdin (i.e. as an ack of the output that went before). This makes the CGI tools work nicely for Quit.
Jack Jansen [Thu, 19 Oct 2000 20:31:51 +0000 (20:31 +0000)]
Use MacOS.OutputSeen() on menuselections. Removed KeepConsole code again. This solution is better: it treats a menu selection in the same way as input to stdin (i.e. as an ack of the output that went before).
Fred Drake [Thu, 19 Oct 2000 05:36:10 +0000 (05:36 +0000)]
Revise the capitalization policy of \versionchanged explanation; the
explanation must now be capitalized. This is more consistent with the
\see* explanation fields.
Added a lot of material to the "LaTeX Primer" section.
Fred Drake [Wed, 18 Oct 2000 17:43:06 +0000 (17:43 +0000)]
Make all the \seemodule explanations consistent: start with a capitalized
letter and end with proper punctuation. "Documenting Python" will be
updated accordingly so that this will be editorial policy for the Python
documentation.
Tim Peters [Mon, 16 Oct 2000 17:35:13 +0000 (17:35 +0000)]
Test for math.* exceptional behavior only in verbose mode, so that the
oddball platforms (where, e.g., math.exp(+huge) still fails to raise
OverflowError) don't fail the std test suite when run normally.
Barry Warsaw [Mon, 16 Oct 2000 15:47:50 +0000 (15:47 +0000)]
find(): Application of (slightly modified) SF patch #101928 by Ulf
Betlehem, verified by Peter Funk. Fixes preservation of language
search order lost due to use of dictionary keys instead of a list.
Closes SF bug #116964.
Tim Peters [Sat, 14 Oct 2000 07:35:15 +0000 (07:35 +0000)]
Prep the Windows installer for 2.0 final:
+ Bump the build number.
+ Changed app name in installer dialogs.
+ Fiddled dialogs to repair grammar and get rid of anachronisms (e.g.,
"ProgMan" and "Program Manager" haven't made sense since Windows 3.1!).
Fred Drake [Sat, 14 Oct 2000 05:49:30 +0000 (05:49 +0000)]
For PyErr_Format(), note that the exception parameter can be a string or
class, but not an instance (since an instance will be created using the
formatted message string as the constructor parameter).
Fred Drake [Sat, 14 Oct 2000 05:41:17 +0000 (05:41 +0000)]
Update to include all the new chapters & sections.
Convert from a howto to a manual, so we can *have* chapters!
Comment out the macconsole module documentation; Think C seems to have
disappeared.
Fred Drake [Sat, 14 Oct 2000 05:08:34 +0000 (05:08 +0000)]
Chapters on Mac Toolbox modules and other undocumented modules, ready to
be filled in with real information. Contributed by Chris Barker
<cbarker@jps.net>.
Jack Jansen [Fri, 13 Oct 2000 23:33:34 +0000 (23:33 +0000)]
If we're installing to another partition than the system partition offer to copy PythonCore in stead of aliasing it. This should fix the applet problems some people have.
Jeremy Hylton [Fri, 13 Oct 2000 21:58:13 +0000 (21:58 +0000)]
Now supports entire Python 2.0 language and still supports Python
1.5.2. The compiler generates code for the version of the interpreter
it is run under.
ast.py:
Print and Printnl add dest attr for extended print
new node AugAssign for augmented assignments
new nodes ListComp, ListCompFor, and ListCompIf for list
comprehensions
pyassem.py:
add work around for string-Unicode comparison raising UnicodeError
on comparison of two objects in code object's const table
pycodegen.py:
define VERSION, the Python major version number
get magic number using imp.get_magic() instead of hard coding
implement list comprehensions, extended print, and augmented
assignment; augmented assignment uses Delegator classes (see
doc string)
fix import and tuple unpacking for 1.5.2
transformer.py:
various changes to support new 2.0 grammar and old 1.5 grammar
add debug_tree helper than converts and symbol and token numbers
to their names
Neil Schemenauer [Fri, 13 Oct 2000 01:32:42 +0000 (01:32 +0000)]
Make the regrtest.py -l (findleaks) option considerably less obnoxious.
First, only report garbage that the GC cannot free. Second, only report
the number of objects found, not their repr(). People can dig deeper on
their own if they find a leak.
Jeremy Hylton [Thu, 12 Oct 2000 20:23:23 +0000 (20:23 +0000)]
Fix SF bug #116263: support for from .. import *
transformer.py: return '*', None from com_import_as_name
pycodegen.py: special case for name == '*'
pyassem.py: fix stack counting for IMPORT_ opcodes
Thomas Heller [Thu, 12 Oct 2000 19:31:13 +0000 (19:31 +0000)]
Recreated after installer source code changes.
This should close SF bug (patch)
http://sourceforge.net/patch/?func=detailpatch&patch_id=101844&group_id=5470
Jeremy Hylton [Thu, 12 Oct 2000 18:54:18 +0000 (18:54 +0000)]
two fixes for redirects:
- don't close the fp, since that appears to also close the socket
- join the original url with the redirect reponse to deal with
relative redirect URL
wrap two socket ops in try/except to turn them into URLErrors, so that
client code need only catch one exception.
in HTTPError.__del__ only close fp if fp is not None
style changes:
- use f(*args) instead of apply(f, args)
- use __super_init instead of super.__init__(self, ...)
Guido van Rossum [Thu, 12 Oct 2000 17:14:46 +0000 (17:14 +0000)]
Fix for Bug #116453.
Direct use of interp->result is deprecated; changing this to
Tcl_GetStringResult(interp) everywhere fixed the problem of losing the
error message with TclError exceptions, on Windows.
Fred Drake [Thu, 12 Oct 2000 17:11:38 +0000 (17:11 +0000)]
When we know the compiler is GCC, always add the -Wall and
-Wstrict-prototypes options. This will make it a lot easier to keep
warnings under control in the first place in the future.
There is one known warning at this time, caught by the -Wstrict-prototypes
option. In Modules/main.c, the declaration of getopt() without parameters
gets a complaint (rightly) that it is not a proper prototype. The lack of
a complete prototype information should be corrected when the right
portability conditions have been identified.
Guido van Rossum [Thu, 12 Oct 2000 16:45:37 +0000 (16:45 +0000)]
[ Bug #116636 ] Bug in StringIO.write()
http://sourceforge.net/bugs/?func=detailbug&bug_id=116636&group_id=5470
bobalex@rsv.ricoh.com
Bug report: If the file position is less than the end of the "file",
and a write is performed extending past then end of the file, the data
string is corrupted.
Solution: in write(), when writing past the end, properly set self.len
when newpos is > self.len.