]> granicus.if.org Git - python/log
python
24 years agoDocument warn_explicit().
Guido van Rossum [Wed, 28 Feb 2001 23:34:21 +0000 (23:34 +0000)]
Document warn_explicit().

24 years agoDisable GetWindowSpareFlag and GetWindowGoAwayBox on carbon.
Jack Jansen [Wed, 28 Feb 2001 23:32:42 +0000 (23:32 +0000)]
Disable GetWindowSpareFlag and GetWindowGoAwayBox on carbon.

24 years agoupdate output to reflect exception that is now raised
Jeremy Hylton [Wed, 28 Feb 2001 23:24:22 +0000 (23:24 +0000)]
update output to reflect exception that is now raised

24 years agoPut PPC distributions back in, rearranged packages and use VISE variable magic to...
Jack Jansen [Wed, 28 Feb 2001 23:23:31 +0000 (23:23 +0000)]
Put PPC distributions back in, rearranged packages and use VISE variable magic to determine which ConfigurePythonXXX to run.

24 years agoadd DEF_BOUND
Jeremy Hylton [Wed, 28 Feb 2001 23:03:39 +0000 (23:03 +0000)]
add DEF_BOUND

24 years agoAdd entry for the inspect module.
Fred Drake [Wed, 28 Feb 2001 23:02:20 +0000 (23:02 +0000)]
Add entry for the inspect module.

24 years agoClean up some of the markup for consistency, wrap some long lines.
Fred Drake [Wed, 28 Feb 2001 23:01:38 +0000 (23:01 +0000)]
Clean up some of the markup for consistency, wrap some long lines.

24 years agoFix some rules broken by typos, others by the flattening of the makefile.
Fred Drake [Wed, 28 Feb 2001 22:59:37 +0000 (22:59 +0000)]
Fix some rules broken by typos, others by the flattening of the makefile.

24 years agoAdd warning/error handlin for problematic nested scopes cases as
Jeremy Hylton [Wed, 28 Feb 2001 22:54:51 +0000 (22:54 +0000)]
Add warning/error handlin for problematic nested scopes cases as
described in PEP 227.

symtable_check_unoptimized() warns about import * and exec with "in"
when it is used in a function that contains a nested function with
free variables.  Warnings are issued unless nested scopes are in
effect, in which case these are SyntaxErrors.

symtable_check_shadow() warns about assignments in a function scope
that shadow free variables defined in a nested scope.  This will
always generate a warning -- and will behave differently with nested
scopes than without.

Restore full checking for free vars in children, even when nested
scopes are not enabled.  This is needed to support warnings for
shadowing.

Change symtable_warn() to return an int-- the return value of
PyErr_WarnExplicit.

Sundry cleanup: Remove commented out code.  Break long lines.

24 years agoFix filter for SyntaxErrors
Jeremy Hylton [Wed, 28 Feb 2001 22:50:15 +0000 (22:50 +0000)]
Fix filter for SyntaxErrors

24 years agoFix for bug #405007: prefix subdir to scripts in order to build in
Andrew M. Kuchling [Wed, 28 Feb 2001 22:49:26 +0000 (22:49 +0000)]
Fix for bug #405007: prefix subdir to scripts in order to build in
    a subdirectory.

24 years agoAdd description of PEP235
Andrew M. Kuchling [Wed, 28 Feb 2001 22:39:15 +0000 (22:39 +0000)]
Add description of PEP235
Remove references to 2.1alpha
Update description of PEP229

24 years agoMove a comment around to where it belongs (the code had alrady been
Guido van Rossum [Wed, 28 Feb 2001 22:26:36 +0000 (22:26 +0000)]
Move a comment around to where it belongs (the code had alrady been
moved).

24 years agoCover pydoc
Andrew M. Kuchling [Wed, 28 Feb 2001 22:22:40 +0000 (22:22 +0000)]
Cover pydoc
Update reference Python version to beta1
Rip out PEP 232 section
Add placeholders for PEP 236 and 235
Fix erroneous \filename references

24 years agoDocument the object allocator
Andrew M. Kuchling [Wed, 28 Feb 2001 22:10:07 +0000 (22:10 +0000)]
Document the object allocator
Minor sentence change

24 years agoLet's have some sanity. Introduce a helper to issue a symbol table
Guido van Rossum [Wed, 28 Feb 2001 22:08:12 +0000 (22:08 +0000)]
Let's have some sanity.  Introduce a helper to issue a symbol table
warning.

24 years agoadded description of NL token
Skip Montanaro [Wed, 28 Feb 2001 22:05:41 +0000 (22:05 +0000)]
added description of NL token

24 years agoUse the new PyErr_WarnExplicit() API to issue better warnings for
Guido van Rossum [Wed, 28 Feb 2001 21:55:38 +0000 (21:55 +0000)]
Use the new PyErr_WarnExplicit() API to issue better warnings for
global after assign / use.

Note: I'm not updating the PyErr_Warn() call for import * / exec
combined with a function, because I can't trigger it with an example.
Jeremy, just follow the example of the call to PyErr_WarnExplicit()
that I *did* include.

24 years agoSyntaxError__init__(): Be a little more robust when picking apart the
Fred Drake [Wed, 28 Feb 2001 21:52:10 +0000 (21:52 +0000)]
SyntaxError__init__():  Be a little more robust when picking apart the
    location information for the SyntaxError -- do not do more than we
    need to, stopping as soon as an exception has been raised.

24 years agoMove some constant initialization from FTP.__init__() and FTP.connect()
Fred Drake [Wed, 28 Feb 2001 21:46:37 +0000 (21:46 +0000)]
Move some constant initialization from FTP.__init__() and FTP.connect()
to the class namespace.

Allow FTP.close() to be called more than once without tossing cookies.
(This seems to be a fairly common idiom for .close() methods, so let's
try to be consistent.)

24 years agoAdd PyErr_WarnExplicit(), which calls warnings.warn_explicit(), with
Guido van Rossum [Wed, 28 Feb 2001 21:46:24 +0000 (21:46 +0000)]
Add PyErr_WarnExplicit(), which calls warnings.warn_explicit(), with
explicit filename, lineno etc. arguments.

24 years agoAdd declaration for PyErr_WarnExplicit().
Guido van Rossum [Wed, 28 Feb 2001 21:44:20 +0000 (21:44 +0000)]
Add declaration for PyErr_WarnExplicit().

24 years agoAdd a new API:
Guido van Rossum [Wed, 28 Feb 2001 21:43:40 +0000 (21:43 +0000)]
Add a new API:

    warn_explicit(message, category, filename, lineno, module, registry)

The regular warn() call calculates a bunch of values and calls
warn_explicit() with these.

This will be used to issue better syntax warnings.

24 years agoMention pydoc
Andrew M. Kuchling [Wed, 28 Feb 2001 21:05:42 +0000 (21:05 +0000)]
Mention pydoc

24 years agoLeave #! lines featuring /usr/bin/env alone
Andrew M. Kuchling [Wed, 28 Feb 2001 20:59:33 +0000 (20:59 +0000)]
Leave #! lines featuring /usr/bin/env alone

24 years agoNow that Jeremy is asking about this code, it looks really bogus to me,
Fred Drake [Wed, 28 Feb 2001 20:58:04 +0000 (20:58 +0000)]
Now that Jeremy is asking about this code, it looks really bogus to me,
so let's rip it out.  The constructor for SyntaxError does the right
thing, so we do not need to do it again.

24 years agoInstall the pydoc script
Andrew M. Kuchling [Wed, 28 Feb 2001 20:56:49 +0000 (20:56 +0000)]
Install the pydoc script

24 years agoAdd script form of pydoc so that it's present in beta1. Currently
Andrew M. Kuchling [Wed, 28 Feb 2001 20:55:10 +0000 (20:55 +0000)]
Add script form of pydoc so that it's present in beta1.  Currently
    this just copies the __name__=='__main__' logic from pydoc.py.
    ?!ng can decide whether he wants to create a main() in pydoc, or rip
    it out of pydoc.py completely.

24 years agoFix for bug #404875: fix typo in setup.py
Andrew M. Kuchling [Wed, 28 Feb 2001 19:49:57 +0000 (19:49 +0000)]
Fix for bug #404875: fix typo in setup.py

24 years agoPlacate tabnanny
Andrew M. Kuchling [Wed, 28 Feb 2001 19:40:27 +0000 (19:40 +0000)]
Placate tabnanny

24 years agoDefine lots of constants for indexes into the structures for the file
Fred Drake [Wed, 28 Feb 2001 17:56:26 +0000 (17:56 +0000)]
Define lots of constants for indexes into the structures for the file
header and central directory structures, and use them as appropriate.
The point being to make it easier to tell what is getting pulled out
where; magic numbers are evil!

Change the computation of the ZipInfo.file_offset field to use the
length of the relevant "extra" field -- there are two different ones,
and the wrong one had been used.  ;-(

This closes SF tracker patch #403276, but more verbosely than the
proposed patch.

24 years agoAdd regression test for future statements. This adds eight files, but
Jeremy Hylton [Wed, 28 Feb 2001 17:48:06 +0000 (17:48 +0000)]
Add regression test for future statements.  This adds eight files, but
seven are not tests in their own right; these files are mentioned in
regrtest.

24 years agoImprove SyntaxErrors for bad future statements. Set file and location
Jeremy Hylton [Wed, 28 Feb 2001 17:47:12 +0000 (17:47 +0000)]
Improve SyntaxErrors for bad future statements.  Set file and location
for errors raised in future.c.

Move some helper functions from compile.c to errors.c and make them
API functions: PyErr_SyntaxLocation() and PyErr_ProgramText().

24 years agoSF patch 404928: Support for next Cygwin gcc (2.95.2-8)
Tim Peters [Wed, 28 Feb 2001 16:44:18 +0000 (16:44 +0000)]
SF patch 404928: Support for next Cygwin gcc (2.95.2-8)

24 years agoReset the resource file chain before calling PyMac_OpenPrefFile. I'm not sure why...
Jack Jansen [Wed, 28 Feb 2001 15:54:18 +0000 (15:54 +0000)]
Reset the resource file chain before calling PyMac_OpenPrefFile. I'm not sure why this wasn't a problem before...

24 years agoOops, need to import Res.
Jack Jansen [Wed, 28 Feb 2001 15:53:18 +0000 (15:53 +0000)]
Oops, need to import Res.

24 years agoIf we can't find our splash dialog (i.e. we're probably running from source) go into...
Jack Jansen [Wed, 28 Feb 2001 11:23:04 +0000 (11:23 +0000)]
If we can't find our splash dialog (i.e. we're probably running from source) go into interactive mode: print what we're doing and ask about carbon/classic configure.

24 years agoWhitespace normalization.
Tim Peters [Wed, 28 Feb 2001 08:26:44 +0000 (08:26 +0000)]
Whitespace normalization.

24 years agoRemoved now-unreferenced CHECK_IMPORT_CASE from Windows config.h.
Tim Peters [Wed, 28 Feb 2001 08:15:16 +0000 (08:15 +0000)]
Removed now-unreferenced CHECK_IMPORT_CASE from Windows config.h.
NOTE:  someone who understands Unix config should remove it from acconfig.h too.

24 years agoPrint the offending line of code in the traceback for SyntaxErrors
Jeremy Hylton [Wed, 28 Feb 2001 07:07:43 +0000 (07:07 +0000)]
Print the offending line of code in the traceback for SyntaxErrors
raised by the compiler.

XXX For now, text entered into the interactive intepreter is not
printed in the traceback.

Inspired by a patch from Roman Sulzhyk

compile.c:

Add helper fetch_program_text() that opens a file and reads until it
finds the specified line number.  The code is a near duplicate of
similar code in traceback.c.

Modify com_error() to pass two arguments to SyntaxError constructor,
where the second argument contains the offending text when possible.

Modify set_error_location(), now used only by the symtable pass, to
set the text attribute on existing exceptions.

pythonrun.c:

Change parse_syntax_error() to continue of the offset attribute of a
SyntaxError is None.  In this case, it sets offset to -1.

Move code from PyErr_PrintEx() into helper function
print_error_text().  In the helper, only print the caret for a
SyntaxError if offset > 0.

24 years agoAck -- my eyes are getting bleary. Typos in the comment typo repairs.
Tim Peters [Wed, 28 Feb 2001 05:57:51 +0000 (05:57 +0000)]
Ack -- my eyes are getting bleary.  Typos in the comment typo repairs.

24 years agoComment typos.
Tim Peters [Wed, 28 Feb 2001 05:56:18 +0000 (05:56 +0000)]
Comment typos.

24 years agoImplement PEP 235: Import on Case-Insensitive Platforms.
Tim Peters [Wed, 28 Feb 2001 05:34:27 +0000 (05:34 +0000)]
Implement PEP 235:  Import on Case-Insensitive Platforms.
    http://python.sourceforge.net/peps/pep-0235.html

Renamed check_case to case_ok.  Substantial code rearrangement to get
this stuff in one place in the file.  Innermost loop of find_module()
now much simpler and #ifdef-free, and I want to keep it that way (it's
bad enough that the innermost loop is itself still in an #ifdef!).

Windows semantics tested and are fine.

Jason, Cygwin *should* be fine if and only if what you did before "worked"
for case_ok.

Jack, the semantics on your flavor of Mac have definitely changed (see
the PEP), and need to be tested.  The intent is that your flavor of Mac
now work the same as everything else in the "lower left" box, including
respecting PYTHONCASEOK.

Steven, sorry, you did the most work here so far but you got screwed the
worst.  Happy to work with you on repairing it, but I don't understand
anything about all your Mac variants.  We need to add another branch (or
two, three, ...?) inside case_ok.  But we should not need to change
anything else.

24 years agoAdded regression test for SF tracker bug #403871: AttributeError in
Fred Drake [Wed, 28 Feb 2001 05:34:16 +0000 (05:34 +0000)]
Added regression test for SF tracker bug #403871:  AttributeError in
    ZipFile.__del__() when there was an IOError opening the underlying
    file in ZipFile.__init__().

    This is an odd test: since the exception is in the __del__() method,
    it is not propogated.  This test will trigger it but regrtest.py
    does not detect the failure (not sure why); we are dependent on it
    actually being noticed by a user to get a new bug report if it ever
    fails.  ;-(

    On the other hand, this makes sure that code gets exercised, so
    a failure could be noticed!

24 years agoFix SF tracker bug #403871: AttributeError in ZipFile.__del__() when
Fred Drake [Wed, 28 Feb 2001 05:29:34 +0000 (05:29 +0000)]
Fix SF tracker bug #403871:  AttributeError in ZipFile.__del__() when
    there was an IOError opening the underlying file in ZipFile.__init__().

24 years agoFix SF buf 404774 submitted by Gregory H. Ball
Jeremy Hylton [Wed, 28 Feb 2001 02:42:56 +0000 (02:42 +0000)]
Fix SF buf 404774 submitted by Gregory H. Ball

A user program could delete a function's func_closure, which would
cause it to crash when called.

24 years agoNeed to support single_input explicitly so from __future__ imports
Jeremy Hylton [Wed, 28 Feb 2001 02:26:14 +0000 (02:26 +0000)]
Need to support single_input explicitly so from __future__ imports
are legal at the interactive interpreter prompt.  They don't do
anything yet...

24 years agoPresumed correct compiler pass for future statements
Jeremy Hylton [Wed, 28 Feb 2001 01:58:08 +0000 (01:58 +0000)]
Presumed correct compiler pass for future statements
XXX still need to integrate into symtable API

compile.h: Remove ff_n_simple_stmt; obsolete.

           Add ff_found_docstring used internally to skip one and only
           one string at the beginning of a module.

compile.c: Add check for from __future__ imports to far into the file.

     In symtable_global() check for -1 returned from
   symtable_lookup(), which signifies name not defined.

   Add missing DECERF in symtable_add_def.

           Free c->c_future.

future.c:  Add special handling for multiple statements joined on a
   single line using one or more semicolons; this form can
           include an illegal future statement that would otherwise be
           hard to detect.

   Add support for detecting and skipping doc strings.

24 years agoverify that warnings are issued for bogus uses of global
Jeremy Hylton [Wed, 28 Feb 2001 01:51:01 +0000 (01:51 +0000)]
verify that warnings are issued for bogus uses of global

24 years agoadded missing element to __all__
Skip Montanaro [Wed, 28 Feb 2001 01:03:48 +0000 (01:03 +0000)]
added missing element to __all__

24 years agoadded some elements missing from __all__
Skip Montanaro [Wed, 28 Feb 2001 01:00:58 +0000 (01:00 +0000)]
added some elements missing from __all__

24 years agoMacintosh compatibility.
Ka-Ping Yee [Tue, 27 Feb 2001 23:36:29 +0000 (23:36 +0000)]
Macintosh compatibility.

24 years agoAcknowledgements.
Ka-Ping Yee [Tue, 27 Feb 2001 23:35:09 +0000 (23:35 +0000)]
Acknowledgements.

24 years agoUpdated for 2.1a3
Jack Jansen [Tue, 27 Feb 2001 23:24:07 +0000 (23:24 +0000)]
Updated for 2.1a3

24 years agoAdded Popt resource for "dont show console"
Jack Jansen [Tue, 27 Feb 2001 23:22:51 +0000 (23:22 +0000)]
Added Popt resource for "dont show console"
Changed SIZE resource to be carbon-compatible.

24 years agoVarious tweaks to make it work on MacOSX.
Jack Jansen [Tue, 27 Feb 2001 23:22:02 +0000 (23:22 +0000)]
Various tweaks to make it work on MacOSX.

24 years agoAdded future.c
Jack Jansen [Tue, 27 Feb 2001 23:19:58 +0000 (23:19 +0000)]
Added future.c

24 years agoFix $Revision$ processing so it doesn't get eaten by CVS!
Ka-Ping Yee [Tue, 27 Feb 2001 22:46:01 +0000 (22:46 +0000)]
Fix $Revision$ processing so it doesn't get eaten by CVS!

24 years agoAdd $Revision: $ tag.
Ka-Ping Yee [Tue, 27 Feb 2001 22:43:48 +0000 (22:43 +0000)]
Add $Revision: $ tag.

24 years agoAdd display of $Revision $ and credits.
Ka-Ping Yee [Tue, 27 Feb 2001 22:42:36 +0000 (22:42 +0000)]
Add display of $Revision $ and credits.

24 years agoUpdate documentation for termios module; do not refer to the TERMIOS module
Fred Drake [Tue, 27 Feb 2001 22:01:15 +0000 (22:01 +0000)]
Update documentation for termios module; do not refer to the TERMIOS module
for constant definitions.

Add a deprecation to the TERMIOS module.

24 years agoNo need to call filterwarnings() to suppress further warnings from this
Fred Drake [Tue, 27 Feb 2001 21:51:47 +0000 (21:51 +0000)]
No need to call filterwarnings() to suppress further warnings from this
module; that won't happen.

24 years agoReplace all the platform-specific TERMIOS modules with a portable version
Fred Drake [Tue, 27 Feb 2001 21:35:40 +0000 (21:35 +0000)]
Replace all the platform-specific TERMIOS modules with a portable version
based on the termios module.  The only added "feature" is the deprecation
warning it spits out.

24 years agoGet the needed constants from termios, not TERMIOS.
Fred Drake [Tue, 27 Feb 2001 21:23:31 +0000 (21:23 +0000)]
Get the needed constants from termios, not TERMIOS.

24 years agoDefine the constants needed for working with these functions directly
Fred Drake [Tue, 27 Feb 2001 21:22:39 +0000 (21:22 +0000)]
Define the constants needed for working with these functions directly
in this module; no more need for TERMIOS.py.

24 years agoBacking out nested scopes broke the Windows build. Repairing.
Tim Peters [Tue, 27 Feb 2001 21:11:46 +0000 (21:11 +0000)]
Backing out nested scopes broke the Windows build.  Repairing.

24 years agoPatch #404680: disables the nis module and enables the dl module when
Andrew M. Kuchling [Tue, 27 Feb 2001 20:54:23 +0000 (20:54 +0000)]
Patch #404680: disables the nis module and enables the dl module when
    building under Cygwin.  Makes some fixes to the dlmodule in order to
    compile with Cygwin.

24 years agoadd from __future__ import nested_scopes to strings passed to compile
Jeremy Hylton [Tue, 27 Feb 2001 20:23:58 +0000 (20:23 +0000)]
add from __future__ import nested_scopes to strings passed to compile

24 years agoTeach Windows build about new future.c.
Tim Peters [Tue, 27 Feb 2001 19:52:02 +0000 (19:52 +0000)]
Teach Windows build about new future.c.

24 years agoBug #229280: remove '/' characters from the OS name (for BSD/OS :) )
Andrew M. Kuchling [Tue, 27 Feb 2001 19:25:42 +0000 (19:25 +0000)]
Bug #229280: remove '/' characters from the OS name (for BSD/OS :) )

24 years agoPatch #403947: On Cygwin, use the Unix compiler class, and not
Andrew M. Kuchling [Tue, 27 Feb 2001 19:13:15 +0000 (19:13 +0000)]
Patch #403947: On Cygwin, use the Unix compiler class, and not
 the Cygwin-specific compiler class.

 (According to Jason Tishler, cygwinccompiler needs some work to
  handle the differences in Cygwin- and MSVC-Python. Makefile and
  config files are currently ignored by cygwinccompiler, as it was
  written to support cygwin for extensions which are intended to be
  used with the standard MSVC built Python.)

24 years agoImproved __future__ parser; still more to do
Jeremy Hylton [Tue, 27 Feb 2001 19:07:02 +0000 (19:07 +0000)]
Improved __future__ parser; still more to do

Makefile.pre.in: add target future.o

Include/compile.h: define PyFutureFeaters and PyNode_Future()
                   add c_future slot to struct compiling

Include/symtable.h: add st_future slot to struct symtable

Python/future.c: implementation of PyNode_Future()

Python/compile.c: use PyNode_Future() for nested_scopes support

Python/symtable.c: include compile.h to pick up PyFutureFeatures decl

24 years agoGustavo Niemeyer <niemeyer@conectiva.com>:
Fred Drake [Tue, 27 Feb 2001 18:56:46 +0000 (18:56 +0000)]
Gustavo Niemeyer <niemeyer@conectiva.com>:
Fixed recno support (keys are integers rather than strings).
Work around DB bug that cause stdin to be closed by rnopen() when the
DB file needed to exist but did not (no longer segfaults).

This closes SF tracker patch #403445.

Also wrapped some long lines and added whitespace around operators -- FLD.

24 years agoChange EXEEXT back to EXE in the Makefile. Other tools may depend on the name.
Neil Schemenauer [Tue, 27 Feb 2001 18:50:56 +0000 (18:50 +0000)]
Change EXEEXT back to EXE in the Makefile.  Other tools may depend on the name.
The name in configure is still EXEEXT because that's what autoconf calls it.
Also, replace a few occurrences of "python" with "$(PYTHON)".

24 years agoPatch #404275: generate a reasonable platform string for AIX
Andrew M. Kuchling [Tue, 27 Feb 2001 18:48:00 +0000 (18:48 +0000)]
Patch #404275: generate a reasonable platform string for AIX

24 years agoRemove two meaningless, module-level global statements (one of a
Jeremy Hylton [Tue, 27 Feb 2001 18:44:14 +0000 (18:44 +0000)]
Remove two meaningless, module-level global statements (one of a
non-existent variable :-).

Reflow long lines.

24 years agoPatch #403985: Add support for weak-keyed dictionaries
Martin v. Löwis [Tue, 27 Feb 2001 18:36:56 +0000 (18:36 +0000)]
Patch #403985: Add support for weak-keyed dictionaries

24 years agoremove commented-out vestiges of access statement
Jeremy Hylton [Tue, 27 Feb 2001 18:36:14 +0000 (18:36 +0000)]
remove commented-out vestiges of access statement

24 years agoconditionally include unistd.h to pick up confstr declaration. attempt to
Skip Montanaro [Tue, 27 Feb 2001 17:04:34 +0000 (17:04 +0000)]
conditionally include unistd.h to pick up confstr declaration. attempt to
squelch warning from GCC 2.95.2 on Solaris - partially addresses bug
#232787.

24 years agopydoc: text and HTML documentation generator for interactive use
Ka-Ping Yee [Tue, 27 Feb 2001 14:43:46 +0000 (14:43 +0000)]
pydoc: text and HTML documentation generator for interactive use

24 years agoinspect: a module for getting information out of live Python objects
Ka-Ping Yee [Tue, 27 Feb 2001 14:43:21 +0000 (14:43 +0000)]
inspect: a module for getting information out of live Python objects

24 years agoSetListCellIndent() argument was guessed incorrectly. Fixed.
Jack Jansen [Tue, 27 Feb 2001 13:00:36 +0000 (13:00 +0000)]
SetListCellIndent() argument was guessed incorrectly. Fixed.

24 years agoSoundex has gone.
Jack Jansen [Tue, 27 Feb 2001 12:59:49 +0000 (12:59 +0000)]
Soundex has gone.

24 years agoSoundex has gone.
Jack Jansen [Tue, 27 Feb 2001 12:48:42 +0000 (12:48 +0000)]
Soundex has gone.

24 years agoDialog and Window objects are (finally) different beasts.
Jack Jansen [Tue, 27 Feb 2001 11:05:00 +0000 (11:05 +0000)]
Dialog and Window objects are (finally) different beasts.

24 years agoUse the filename, not the pathname, in the definitions file
Jack Jansen [Tue, 27 Feb 2001 11:04:20 +0000 (11:04 +0000)]
Use the filename, not the pathname, in the definitions file
comment. This way the generated files are identical when generated on
different machines.

24 years agoFixing bug #227562 by calling URLopener.http_error_default when
Moshe Zadka [Tue, 27 Feb 2001 06:27:04 +0000 (06:27 +0000)]
Fixing bug #227562 by calling  URLopener.http_error_default when
an invalid 401 request is being handled.

24 years agoAdd warnings about undefined "global"
Jeremy Hylton [Tue, 27 Feb 2001 05:15:57 +0000 (05:15 +0000)]
Add warnings about undefined "global"
SF bug #233532

XXX Can't figure out how to write test cases that work with warnings

24 years agoAdd Vladimir Marangozov's object allocator. It is disabled by default. This
Neil Schemenauer [Tue, 27 Feb 2001 04:45:05 +0000 (04:45 +0000)]
Add Vladimir Marangozov's object allocator. It is disabled by default. This
closes SF patch #401229.

24 years agoPreliminary support for future nested scopes
Jeremy Hylton [Tue, 27 Feb 2001 04:23:34 +0000 (04:23 +0000)]
Preliminary support for future nested scopes

compile.h: #define NESTED_SCOPES_DEFAULT 0 for Python 2.1
           __future__ feature name: "nested_scopes"

symtable.h: Add st_nested_scopes slot.  Define flags to track exec and
    import star.

Lib/test/test_scope.py: requires nested scopes

compile.c: Fiddle with error messages.

    Reverse the sense of ste_optimized flag on
    PySymtableEntryObjects.  If it is true, there is an optimization
    conflict.

    Modify get_ref_type to respect st_nested_scopes flags.

    Refactor symtable_load_symbols() into several smaller functions,
    which use struct symbol_info to share variables.  In new function
    symtable_update_flags(), raise an error or warning for import * or
    bare exec that conflicts with nested scopes.  Also, modify handle
    for free variables to respect st_nested_scopes flag.

    In symtable_init() assign st_nested_scopes flag to
    NESTED_SCOPES_DEFAULT (defined in compile.h).

    Add preliminary and often incorrect implementation of
    symtable_check_future().

    Add symtable_lookup() helper for future use.

24 years agoDocument XML changes.
Martin v. Löwis [Tue, 27 Feb 2001 04:21:58 +0000 (04:21 +0000)]
Document XML changes.

24 years agoUpdates to describe function attributes.
Barry Warsaw [Tue, 27 Feb 2001 03:36:30 +0000 (03:36 +0000)]
Updates to describe function attributes.

24 years agoUpdates to the semantics of function and method attributes.
Barry Warsaw [Tue, 27 Feb 2001 03:32:35 +0000 (03:32 +0000)]
Updates to the semantics of function and method attributes.

24 years agoMention setup.py in the instructions
Andrew M. Kuchling [Tue, 27 Feb 2001 03:29:52 +0000 (03:29 +0000)]
Mention setup.py in the instructions
Add note about linuxaudiodev possibly working on BSD

24 years agoUpdate build notes to mention setup.py
Andrew M. Kuchling [Tue, 27 Feb 2001 03:24:24 +0000 (03:24 +0000)]
Update build notes to mention setup.py

24 years agoFix typo
Andrew M. Kuchling [Tue, 27 Feb 2001 03:15:00 +0000 (03:15 +0000)]
Fix typo

24 years agoAdd missing dependents of graminit.h.
Neil Schemenauer [Tue, 27 Feb 2001 02:45:36 +0000 (02:45 +0000)]
Add missing dependents of graminit.h.

24 years agoGenerate grammar source files in srcdir. Ignore the error if they cannot
Neil Schemenauer [Tue, 27 Feb 2001 02:19:16 +0000 (02:19 +0000)]
Generate grammar source files in srcdir.  Ignore the error if they cannot
be created (perhaps the source directory is read-only).

24 years agoDon't create the Include directory if building outside of the source
Neil Schemenauer [Tue, 27 Feb 2001 02:15:14 +0000 (02:15 +0000)]
Don't create the Include directory if building outside of the source
directory.  Closes SF #403930.

24 years agoMake sure ConfigParser uses .optionxform() consistently; this affects
Fred Drake [Mon, 26 Feb 2001 21:55:34 +0000 (21:55 +0000)]
Make sure ConfigParser uses .optionxform() consistently; this affects
.has_option(), .remove_option(), and .set().

This closes SF tracker #232913.