]> granicus.if.org Git - python/log
python
24 years ago(py-parse-state): Teach python-mode how to scan code which follows
Barry Warsaw [Sat, 24 Feb 2001 00:09:17 +0000 (00:09 +0000)]
(py-parse-state): Teach python-mode how to scan code which follows
multi-line list comprehensions.

24 years agoShuffle premature decref; nuke unreachable code block.
Tim Peters [Fri, 23 Feb 2001 22:23:53 +0000 (22:23 +0000)]
Shuffle premature decref; nuke unreachable code block.
Fixes the "debug-build -O test_builtin.py and no test_b2.pyo" crash just
discussed on Python-Dev.

24 years agoHide the ProgressBar before raising KeyboardInterrupt. Not doing so resulted in a...
Jack Jansen [Fri, 23 Feb 2001 22:18:27 +0000 (22:18 +0000)]
Hide the ProgressBar before raising KeyboardInterrupt. Not doing so resulted in a hang on Carbon.

24 years agoTurn on the "multifinder aware" bit. This should always have been on, but was was...
Jack Jansen [Fri, 23 Feb 2001 22:13:07 +0000 (22:13 +0000)]
Turn on the "multifinder aware" bit. This should always have been on, but was was never a problem that it was off until CarbonLib 1.1 (which requires it, for some reason).

24 years agoDo not hide a failure to create a temporary file; if it fails the work
Fred Drake [Fri, 23 Feb 2001 20:04:54 +0000 (20:04 +0000)]
Do not hide a failure to create a temporary file; if it fails the work
will not have been done, and applications need to know that.  Also, do
not print a message about it; the exception is the right thing.

This closes SF bug #133717.

24 years agoMinor adjustments, including markup corrections.
Fred Drake [Fri, 23 Feb 2001 19:15:56 +0000 (19:15 +0000)]
Minor adjustments, including markup corrections.

24 years agoFix extra backslash in example.
Fred Drake [Fri, 23 Feb 2001 19:13:07 +0000 (19:13 +0000)]
Fix extra backslash in example.

24 years agoAnother name.
Fred Drake [Fri, 23 Feb 2001 19:11:45 +0000 (19:11 +0000)]
Another name.

24 years agoFix up the markup in some recently-added portions of the text.
Fred Drake [Fri, 23 Feb 2001 19:10:41 +0000 (19:10 +0000)]
Fix up the markup in some recently-added portions of the text.

24 years agoDescribe -s a little more generically.
Barry Warsaw [Fri, 23 Feb 2001 18:31:40 +0000 (18:31 +0000)]
Describe -s a little more generically.

24 years agosymtable_update_free_vars(), symtable_undo_free(),
Barry Warsaw [Fri, 23 Feb 2001 18:22:59 +0000 (18:22 +0000)]
symtable_update_free_vars(), symtable_undo_free(),
symtable_enter_scope(): Removed some unnecessary backslashes at the
end of lines.  C != Python. :)

24 years agoFix for bug 133489: compiler leaks memory
Jeremy Hylton [Fri, 23 Feb 2001 17:55:27 +0000 (17:55 +0000)]
Fix for bug 133489: compiler leaks memory

Two different but related problems:

1. PySymtable_Free() must explicitly DECREF(st->st_cur), which should
always point to the global symtable entry.  This entry is setup by the
first enter_scope() call, but there is never a corresponding
exit_scope() call.

Since each entry has a reference to scopes defined within it, the
missing DECREF caused all symtable entries to be leaked.

2. The leak here masked a separate problem with
PySymtableEntry_New().  When the requested entry was found in
st->st_symbols, the entry was returned without doing an INCREF.

And problem c) The ste_children slot was getting two copies of each
child entry, because it was populating the slot on the first and
second passes.  Now only populate on the first pass.

24 years agoPy_Main(): When compiled by Insure (i.e. __INSURE__ is defined), call
Barry Warsaw [Fri, 23 Feb 2001 16:46:39 +0000 (16:46 +0000)]
Py_Main(): When compiled by Insure (i.e. __INSURE__ is defined), call
the internal API function to release the interned strings as the very
last thing before returning status.  This aids in memory use debugging
because it eliminates a huge source of noise from the reports.  This
is never called during normal (non-debugging) use because releasing
the interned strings slows Python's shutdown and isn't necessary
anyway because the system will always reclaim the memory.

24 years ago_Py_ReleaseInternedStrings(): Private API function to decref and
Barry Warsaw [Fri, 23 Feb 2001 16:40:48 +0000 (16:40 +0000)]
_Py_ReleaseInternedStrings(): Private API function to decref and
release the interned string dictionary.  This is useful for memory
use debugging because it eliminates a huge source of noise from the
reports.  Only defined when INTERN_STRINGS is defined.

24 years agoPatch #103899: Don't compile modules configured in Setup. This seems much
Andrew M. Kuchling [Fri, 23 Feb 2001 16:32:32 +0000 (16:32 +0000)]
Patch #103899: Don't compile modules configured in Setup.  This seems much
    simpler than adding a bazillion switches, but means that the makesetup
    method probably can't ever go away completely.  Oh well...

24 years agoPatch #103937: Attempt to get the BSDDB autodetection right (or at least
Andrew M. Kuchling [Fri, 23 Feb 2001 16:27:48 +0000 (16:27 +0000)]
Patch #103937: Attempt to get the BSDDB autodetection right (or at least
    less wrong)

24 years agoCheckin updated version of patch #103933 . As Thomas says, fixes the bugs #131064...
Mark Hammond [Fri, 23 Feb 2001 11:38:38 +0000 (11:38 +0000)]
Checkin updated version of patch #103933 .  As Thomas says, fixes the bugs #131064, #129584, #127722. See the discussion in bug #131064

24 years agoPatch 103928: Correct zlib freeze settings for Win32.
Tim Peters [Fri, 23 Feb 2001 03:45:13 +0000 (03:45 +0000)]
Patch 103928: Correct zlib freeze settings for Win32.

24 years agoWork around the broken formatting of sys.ps1 prompts in running text.
Fred Drake [Thu, 22 Feb 2001 23:15:05 +0000 (23:15 +0000)]
Work around the broken formatting of sys.ps1 prompts in running text.

Move sample sessions to the left margin of the file for consistency;
formatting can adjust the margin if needed.

This closes SF bug #133213.

24 years agocd to the html/ directory to generate the global module index so the links
Fred Drake [Thu, 22 Feb 2001 23:12:37 +0000 (23:12 +0000)]
cd to the html/ directory to generate the global module index so the links
to the module sections are right.

This was also broken when converting to a flat Makefile.

24 years agoThe ACKS file is in the current directory when converted to HTML; this was
Fred Drake [Thu, 22 Feb 2001 23:06:21 +0000 (23:06 +0000)]
The ACKS file is in the current directory when converted to HTML; this was
broken when converting to a flat Makefile.  ;-(

24 years agoRemove entry for soundex module!
Fred Drake [Thu, 22 Feb 2001 23:00:20 +0000 (23:00 +0000)]
Remove entry for soundex module!

24 years ago_PyObject_Dump(): If argument is NULL, print "NULL" instead of
Barry Warsaw [Thu, 22 Feb 2001 22:39:18 +0000 (22:39 +0000)]
_PyObject_Dump(): If argument is NULL, print "NULL" instead of
crashing.

24 years agoIn try_3way_to_rich_compare(), swap the call to default_3way_compare()
Guido van Rossum [Thu, 22 Feb 2001 22:18:04 +0000 (22:18 +0000)]
In try_3way_to_rich_compare(), swap the call to default_3way_compare()
and the test for errors, so that an error in the default compare
doesn't go undetected.  This fixes SF Bug #132933 (submitted by
effbot) -- list.sort doesn't detect comparision errors.

24 years agoSequence indexes are non-negative, not natural (0 is not a natural number).
Fred Drake [Thu, 22 Feb 2001 21:28:04 +0000 (21:28 +0000)]
Sequence indexes are non-negative, not natural (0 is not a natural number).
Reported by Daniel May <mayds@ecn.purdue.edu>.

De-tabified everywhere.

24 years agoRemove documentation for the soundex module; the module is no longer
Fred Drake [Thu, 22 Feb 2001 21:25:20 +0000 (21:25 +0000)]
Remove documentation for the soundex module; the module is no longer
included with Python.

24 years agoasin micro-optimization suggested in email.
Tim Peters [Thu, 22 Feb 2001 19:51:56 +0000 (19:51 +0000)]
asin micro-optimization suggested in email.

24 years agoWindows: Remove soundex from pythoncore subproject.
Tim Peters [Thu, 22 Feb 2001 19:51:31 +0000 (19:51 +0000)]
Windows:  Remove soundex from pythoncore subproject.

24 years agoMention the removal of soundex.c
Andrew M. Kuchling [Thu, 22 Feb 2001 15:53:21 +0000 (15:53 +0000)]
Mention the removal of soundex.c

24 years agoPatch #103926: fix two warnings from Tru64's compiler
Andrew M. Kuchling [Thu, 22 Feb 2001 15:52:55 +0000 (15:52 +0000)]
Patch #103926: fix two warnings from Tru64's compiler

24 years agoRemove soundex module, as stated by GvR.
Andrew M. Kuchling [Thu, 22 Feb 2001 15:45:46 +0000 (15:45 +0000)]
Remove soundex module, as stated by GvR.
    (Fred, I'll leave the doc changes to you, because I don't know if you
     want to delete libsoundex.tex or leave it in.
     Someone else will have to tweak PC/os2vacpp/{config.c,makefile} and
     PCbuild/pythoncore.dsp, both of which refer to soundex.c)

24 years agoPatch #103885: Add dynamic registration and lookup of DOM implementations.
Martin v. Löwis [Thu, 22 Feb 2001 14:05:50 +0000 (14:05 +0000)]
Patch #103885: Add dynamic registration and lookup of DOM implementations.

24 years agoFix previous checkin, hopelessly broken as it was; reported by Detlef Lannert.
Jeremy Hylton [Thu, 22 Feb 2001 13:24:27 +0000 (13:24 +0000)]
Fix previous checkin, hopelessly broken as it was; reported by Detlef Lannert.

24 years agoAdd a line to "python -h" output about PYTHONCASEOK.
Tim Peters [Thu, 22 Feb 2001 00:39:47 +0000 (00:39 +0000)]
Add a line to "python -h" output about PYTHONCASEOK.

24 years agoRip out various module-enabling switches, made obsolete by setup.py
Andrew M. Kuchling [Wed, 21 Feb 2001 21:12:59 +0000 (21:12 +0000)]
Rip out various module-enabling switches, made obsolete by setup.py

24 years agoMove the signal module back into Setup.config.in so it can be enabled
Andrew M. Kuchling [Wed, 21 Feb 2001 21:10:14 +0000 (21:10 +0000)]
Move the signal module back into Setup.config.in so it can be enabled
   and disabled from the configure script.

24 years agoreplace exec with simple assignments
Jeremy Hylton [Wed, 21 Feb 2001 16:33:24 +0000 (16:33 +0000)]
replace exec with simple assignments

24 years agoRelease a PYC resource after reading it. No need to keep it incore.
Jack Jansen [Wed, 21 Feb 2001 15:48:19 +0000 (15:48 +0000)]
Release a PYC resource after reading it. No need to keep it incore.

24 years agoWaste 2.0 has many more options for the undo label.
Jack Jansen [Wed, 21 Feb 2001 15:45:55 +0000 (15:45 +0000)]
Waste 2.0 has many more options for the undo label.

24 years agoUse re in stead of regex, so we get rid of the annoying warning during startup.
Jack Jansen [Wed, 21 Feb 2001 13:54:31 +0000 (13:54 +0000)]
Use re in stead of regex, so we get rid of the annoying warning during startup.

24 years agoThe code to write timestamps couldn't handle negative times (and time
Jack Jansen [Wed, 21 Feb 2001 10:39:35 +0000 (10:39 +0000)]
The code to write timestamps couldn't handle negative times (and time
on the Mac is negativevalues > 0x80000000). Fixed.

24 years agoWhitespace normalization.
Tim Peters [Wed, 21 Feb 2001 07:29:48 +0000 (07:29 +0000)]
Whitespace normalization.

24 years agoBug #133297: cmath.asin is the same as cmath.asinh.
Tim Peters [Wed, 21 Feb 2001 03:22:39 +0000 (03:22 +0000)]
Bug #133297:  cmath.asin is the same as cmath.asinh.
The bug report title isn't correct, but was on the right track.
Rev 2.13 applied a patch intended to improve asinh and acosh, but the
author mistakenly replaced the body of asin with their new code for asinh.
See bug report for all the gory details.
This patch: (a) puts the "new" (as of 2.13) asinh code into the asinh
function; and, (b) repairs asin via what Abramowitz & Stegun say it should
be (which is probably the same as what 2.12 did for asin, although I got
tired of matching parentheses before being 100% sure of that -- and I don't
care!  The source of the old code is a mystery, and I *know* why I picked
the new code.).

24 years agoPatch #103544: always compile the dl and nis modules on Unix; let's see
Andrew M. Kuchling [Wed, 21 Feb 2001 02:38:24 +0000 (02:38 +0000)]
Patch #103544: always compile the dl and nis modules on Unix; let's see
    where they break.

24 years agoAdd Donovan Baarda for fixing a tortuous zlibmodule bug (but aren't they all?)
Andrew M. Kuchling [Wed, 21 Feb 2001 02:19:44 +0000 (02:19 +0000)]
Add Donovan Baarda for fixing a tortuous zlibmodule bug (but aren't they all?)

24 years agoAdd test case from bug #124981: zlib decompress of sync-flushed data
Andrew M. Kuchling [Wed, 21 Feb 2001 02:17:01 +0000 (02:17 +0000)]
Add test case from bug #124981: zlib decompress of sync-flushed data
    fails

24 years agoPatch #103373 from Donovan Baarda: This patch:
Andrew M. Kuchling [Wed, 21 Feb 2001 02:15:56 +0000 (02:15 +0000)]
Patch #103373 from Donovan Baarda: This patch:
  * fixes the zlib decompress sync flush bug as reported in bug #124981
  * avoids repeat calls to (in|de)flateEnd when destroying (de)compression
    objects
  * raises exception when allocating unused_data fails
  * fixes memory leak when allocating unused_data fails
  * raises exception when allocating decompress data fails
  * removes vestigial code from decompress flush now that decompression
    returns all available data
  * tidies code so object compress/decompress/flush routines are consistent

24 years agoPatch #103854: raises an exception if a non-Attr node is passed to
Andrew M. Kuchling [Wed, 21 Feb 2001 01:30:26 +0000 (01:30 +0000)]
Patch #103854: raises an exception if a non-Attr node is passed to
 NamedNodeMap.setNamedItem().  Martin, should I sync the PyXML tree, too,
 or do you want to do it?  (I don't know if you're wrapping the 0.6.4
 release right now.)

24 years agoAdded test for patch #103473: test an unquoted cookie value containing '='
Andrew M. Kuchling [Wed, 21 Feb 2001 01:17:54 +0000 (01:17 +0000)]
Added test for patch #103473: test an unquoted cookie value containing '='

24 years ago(py-execute-region): This one's easy... kill the temporary file's
Barry Warsaw [Tue, 20 Feb 2001 23:07:56 +0000 (23:07 +0000)]
(py-execute-region): This one's easy... kill the temporary file's
buffer after executing its contents.

24 years agoOn OSX passing NULL to NewUniversalFilterProc() does not return NULL but a crashing...
Jack Jansen [Tue, 20 Feb 2001 22:27:43 +0000 (22:27 +0000)]
On OSX passing NULL to NewUniversalFilterProc() does not return NULL but a crashing UPP. This made ModalDialog (and, hence EditPythonPrefs and EasyDialogs and many others) crash. Fixed.

24 years agoPatch #103473 from dougfort: Some sites (amazon.com for one) drop
Andrew M. Kuchling [Tue, 20 Feb 2001 22:11:24 +0000 (22:11 +0000)]
Patch #103473 from dougfort: Some sites (amazon.com for one) drop
cookies that contain '=' as part of the value. This patch modifies
Cookie.py to allow '=' as a legal character, and to make the key
search nongreedy so it stops at the first '='.

24 years agoThe code in PyImport_Import() tried to save itself a bit of work and
Guido van Rossum [Tue, 20 Feb 2001 21:43:24 +0000 (21:43 +0000)]
The code in PyImport_Import() tried to save itself a bit of work and
save the __builtin__ module in a static variable.  But this doesn't
work across Py_Finalise()/Py_Initialize()!  It also doesn't work when
using multiple interpreter states created with PyInterpreterState_New().

So I'm ripping out this small optimization.

This was probably broken since PyImport_Import() was introduced in
1997!  We really need a better test suite for multiple interpreter
states and repeatedly initializing.

This fixes the problems Barry reported in Demo/embed/loop.c.

24 years agoimport.c -> importexc.c
Barry Warsaw [Tue, 20 Feb 2001 20:54:28 +0000 (20:54 +0000)]
import.c -> importexc.c

24 years agoimport -> importexc
Barry Warsaw [Tue, 20 Feb 2001 20:54:09 +0000 (20:54 +0000)]
import -> importexc

24 years agoimport.c -> importexc.c
Barry Warsaw [Tue, 20 Feb 2001 20:53:37 +0000 (20:53 +0000)]
import.c -> importexc.c

Added `realclean' target.

24 years agoRename some constants for easier readability.
Tim Peters [Tue, 20 Feb 2001 20:36:38 +0000 (20:36 +0000)]
Rename some constants for easier readability.

24 years agoMechanical edits just so I can read it.
Tim Peters [Tue, 20 Feb 2001 20:15:19 +0000 (20:15 +0000)]
Mechanical edits just so I can read it.

24 years agoUpdated to use new Python features
Moshe Zadka [Tue, 20 Feb 2001 16:32:24 +0000 (16:32 +0000)]
Updated to use new Python features
Reindented

24 years agoFixed to use new Python features and use more commonly accepted style
Moshe Zadka [Tue, 20 Feb 2001 16:21:35 +0000 (16:21 +0000)]
Fixed to use new Python features and use more commonly accepted style
Reindented

24 years agoChanged to use the fact that str(long) doesn't produce a trailing L
Moshe Zadka [Tue, 20 Feb 2001 16:13:43 +0000 (16:13 +0000)]
Changed to use the fact that str(long) doesn't produce a trailing L
Reindented

24 years agoImprove accuracy. In the .tex file, note the new "% BUG:" comments: an
Tim Peters [Tue, 20 Feb 2001 11:24:35 +0000 (11:24 +0000)]
Improve accuracy.  In the .tex file, note the new "% BUG:" comments:  an
extra backslash is getting displayed in the generated HTML.

24 years agoAdded missing \item. See also bug 133213, about damaged HTML generated
Tim Peters [Tue, 20 Feb 2001 10:57:30 +0000 (10:57 +0000)]
Added missing \item.  See also bug 133213, about damaged HTML generated
for \code(">>>"); don't know how to fix that one.

24 years agoFlesh out PlaySound() docs enough so that SND_ALIAS isn't hopelessly confusing.
Tim Peters [Tue, 20 Feb 2001 10:02:21 +0000 (10:02 +0000)]
Flesh out PlaySound() docs enough so that SND_ALIAS isn't hopelessly confusing.
If someone knows how to turn the new table of guaranteed-registered system
sounds into a LaTeX table, be my guest.

24 years agoSF patch #103749: implicit tuple + default arg
Jeremy Hylton [Mon, 19 Feb 2001 23:53:42 +0000 (23:53 +0000)]
SF patch #103749: implicit tuple + default arg

24 years agoFix for implicit tuple + default arguments, courtesy of Michael Hudson.
Jeremy Hylton [Mon, 19 Feb 2001 23:52:49 +0000 (23:52 +0000)]
Fix for implicit tuple + default arguments, courtesy of Michael Hudson.
SF patch #103749

24 years agoConfigParser.optionxform(): Document this since it is available for
Fred Drake [Mon, 19 Feb 2001 22:37:24 +0000 (22:37 +0000)]
ConfigParser.optionxform():  Document this since it is available for
    sub-classes and application code to override.

24 years agoClean up the "docs".
Tim Peters [Mon, 19 Feb 2001 21:44:53 +0000 (21:44 +0000)]
Clean up the "docs".

24 years agoWrap a bunch of long lines.
Fred Drake [Mon, 19 Feb 2001 21:16:00 +0000 (21:16 +0000)]
Wrap a bunch of long lines.

24 years agoFix a few small typos in the docstrings.
Fred Drake [Mon, 19 Feb 2001 19:30:05 +0000 (19:30 +0000)]
Fix a few small typos in the docstrings.

get_close_matches():  Do not use %-interpolation for strings when
    concatenation is more efficient.

24 years agoMichael Hudson <mwh21@cam.ac.uk>:
Fred Drake [Mon, 19 Feb 2001 19:22:00 +0000 (19:22 +0000)]
Michael Hudson <mwh21@cam.ac.uk>:
New material on defining extension types.  Thanks!

(Small markup adjustments made, but this is mostly as received.)

24 years agoNo longer needed since the main Makefile is "flat".
Fred Drake [Mon, 19 Feb 2001 19:20:17 +0000 (19:20 +0000)]
No longer needed since the main Makefile is "flat".

24 years agoConvert to a "flat" Makefile.
Fred Drake [Mon, 19 Feb 2001 19:19:26 +0000 (19:19 +0000)]
Convert to a "flat" Makefile.

24 years agoAdd an option allowing the user to determine where the output HTML is built.
Fred Drake [Mon, 19 Feb 2001 19:18:09 +0000 (19:18 +0000)]
Add an option allowing the user to determine where the output HTML is built.
Provide a way to set the paper size by name instead of only supporting
separate options for each size.

24 years agoFix markup so this document will format.
Fred Drake [Mon, 19 Feb 2001 19:14:50 +0000 (19:14 +0000)]
Fix markup so this document will format.

24 years agoThis never saw much use, so remove it.
Fred Drake [Mon, 19 Feb 2001 19:11:12 +0000 (19:11 +0000)]
This never saw much use, so remove it.

24 years agoSF Patch # 103839 byt dougfort: Allow ';' in attributes
Guido van Rossum [Mon, 19 Feb 2001 18:39:09 +0000 (18:39 +0000)]
SF Patch # 103839 byt dougfort: Allow ';' in attributes

sgmllib does not recognize HTML attributes containing the semicolon
';' character. This may be in accordance with the HTML spec, but there
are sites that use it (excite.com) and the browsers I regularly use
(IE5, Netscape, Opera) all handle it. Doug Fort Downright Software LLC

24 years agoRevert SF patch #103655
Neil Schemenauer [Mon, 19 Feb 2001 18:18:48 +0000 (18:18 +0000)]
Revert SF patch #103655

24 years agoRevert SF patch #103655. Martin Löwis says:
Neil Schemenauer [Mon, 19 Feb 2001 18:17:33 +0000 (18:17 +0000)]
Revert SF patch #103655.  Martin Löwis says:

-shared does the following things:
- invoke the linker with -G -dy -z text (the latter only if
  -mimpure-text was not given)
- drop crt1.o from the list of objects being linked
- drop -lc from the list of libraries being linked
OTOH, -G is just passed through to the linker.

The things that -shared does are necessary: crt1.o defines _start, and
requires main, so it should not be present in a shared library.
Likewise, -z text should be used to detect position-dependent code at
compile time.

24 years agoMake the top-level index.html depend on the individual document index.html
Fred Drake [Mon, 19 Feb 2001 17:52:07 +0000 (17:52 +0000)]
Make the top-level index.html depend on the individual document index.html
files so that the date is properly updated on the front page.

24 years agoChecked in with Andrew's blessing, I leave the comments with which
Thomas Heller [Mon, 19 Feb 2001 17:48:03 +0000 (17:48 +0000)]
Checked in with Andrew's blessing, I leave the comments with which
this was posted to distutils-sig in.

Here is what I've hacked together over some spare time
at the weekend. I would appreciate feedback, as I've told
before I'm neither a great author, nor native english speaker,
nor anything else.

Mostly I've completed (and written) docs for bdist_wininst
(where I'm an experert for), also I've started some stuff
for the data_files and scripts option.

Should I continue in this way? Would others like to jump in?

24 years agoAdded entries for difflib documentation.
Fred Drake [Mon, 19 Feb 2001 16:32:40 +0000 (16:32 +0000)]
Added entries for difflib documentation.

24 years agoDocumentation for the difflib module, converted from the module docstrings.
Fred Drake [Mon, 19 Feb 2001 16:31:02 +0000 (16:31 +0000)]
Documentation for the difflib module, converted from the module docstrings.

24 years agoAdd simple section for assert, including assert w/ lambdas
Jeremy Hylton [Mon, 19 Feb 2001 15:54:52 +0000 (15:54 +0000)]
Add simple section for assert, including assert w/ lambdas

24 years agoWhen running python -O, do not include blocks defined in asserts in
Jeremy Hylton [Mon, 19 Feb 2001 15:50:51 +0000 (15:50 +0000)]
When running python -O, do not include blocks defined in asserts in
the symbol table pass.  These blocks were already ignored by the code
gen pass.  Both passes must visit the same set of blocks in the same
order.

Fixes SF buf 132820

24 years agoAdd test for syntax error on "x = 1 + 1".
Jeremy Hylton [Mon, 19 Feb 2001 15:35:26 +0000 (15:35 +0000)]
Add test for syntax error on "x = 1 + 1".
Move check_syntax() function into test_support.

24 years agofix long line
Jeremy Hylton [Mon, 19 Feb 2001 15:34:10 +0000 (15:34 +0000)]
fix long line

24 years agoTolerate ill-formed trees in symtable_assign(). Fixes SF bug 132510.
Jeremy Hylton [Mon, 19 Feb 2001 15:33:10 +0000 (15:33 +0000)]
Tolerate ill-formed trees in symtable_assign().  Fixes SF bug 132510.

24 years agoDOMException._get_code():
Fred Drake [Mon, 19 Feb 2001 14:57:02 +0000 (14:57 +0000)]
DOMException._get_code():
    New method; this is the "alternate" access to the exception code.
    (Useful for Python DOM implementations that support the accessor
    method approach to retrieving attribute values.)

24 years agoEnhancements to the bdist_wininst command:
Thomas Heller [Mon, 19 Feb 2001 09:20:30 +0000 (09:20 +0000)]
Enhancements to the bdist_wininst command:
--bitmap command line option allows to use a different bitmap file instead
of the build-in python powered logo.
--title lets you specify the text to display on the background.

The editbox in the first screen now longer is
selected (highlighted), it had the WS_TABSTOP flag.

This is the patch
http://sourceforge.net/patch/?func=detailpatch&patch_id=103687&group_id=5470
with two changes:
1. No messagebox displayed when the compilation to .pyc or .pyo files
failes, this will only confuse the user (and it will fail under certain
cases, where sys.path contains garbage).
2. A debugging print statement was removed from bdist_wininst.py.

24 years agoThis patch makes the default compiler determination more flexible
Marc-André Lemburg [Mon, 19 Feb 2001 09:20:04 +0000 (09:20 +0000)]
This patch makes the default compiler determination more flexible
and also takes the sys.platform name into account. This helps on
platforms where there are multiple possible compiler backends (the
one with which Python itself was compiled is preferred over others
in this case).

The patch uses this new technique to enable using cygwin compiler
per default for cygwin compiled Pythons.

Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.

24 years agoMore typos. libwinsound.tex typo noted by Peter Funk (thanks!).
Tim Peters [Mon, 19 Feb 2001 08:36:41 +0000 (08:36 +0000)]
More typos.  libwinsound.tex typo noted by Peter Funk (thanks!).

24 years agoRepair tab/space screwup.
Tim Peters [Mon, 19 Feb 2001 07:33:23 +0000 (07:33 +0000)]
Repair tab/space screwup.

24 years agoTake a tour of hell's seedier neighborhoods to try to make winsound.Beep()
Tim Peters [Mon, 19 Feb 2001 07:06:36 +0000 (07:06 +0000)]
Take a tour of hell's seedier neighborhoods to try to make winsound.Beep()
do something non-useless on Win9X boxes.  WinME unknown to me.  Someone with
NT/2000 make sure it still works there!

24 years agoThe usual.
Neil Schemenauer [Mon, 19 Feb 2001 04:50:49 +0000 (04:50 +0000)]
The usual.

24 years agoUse -G option for linking shared libraries on Solaris (SF patch #103656).
Neil Schemenauer [Mon, 19 Feb 2001 04:47:42 +0000 (04:47 +0000)]
Use -G option for linking shared libraries on Solaris (SF patch #103656).
Compile shared object files using -fPIC option when using GCC on Solaris (SF
patch #103865).  Closes bug #132783.  Move config.c generated by makesetup to
the Modules directory.

24 years agoFix bug in clean target (closes SF patch 103864 and bug 132879). The clobber
Neil Schemenauer [Mon, 19 Feb 2001 04:35:11 +0000 (04:35 +0000)]
Fix bug in clean target (closes SF patch 103864 and bug 132879).  The clobber
target now removes some configure files (like it did before).

24 years agoreorganized PyUnicode_DecodeUnicodeEscape a bit (in order to make it
Fredrik Lundh [Sun, 18 Feb 2001 22:13:49 +0000 (22:13 +0000)]
reorganized PyUnicode_DecodeUnicodeEscape a bit (in order to make it
less likely that bug #132817 ever appears again)

24 years agorenamed internal functions to avoid name clashes under OpenVMS
Fredrik Lundh [Sun, 18 Feb 2001 22:06:17 +0000 (22:06 +0000)]
renamed internal functions to avoid name clashes under OpenVMS
(fixes bug #132815)

24 years agodetect attempts to repeat anchors (fixes bug #130748)
Fredrik Lundh [Sun, 18 Feb 2001 21:04:48 +0000 (21:04 +0000)]
detect attempts to repeat anchors (fixes bug #130748)