- 28 Şub, 2001 40 kayıt (commit)
-
-
Jack Jansen yazdı
-
Jeremy Hylton yazdı
-
Jack Jansen yazdı
Put PPC distributions back in, rearranged packages and use VISE variable magic to determine which ConfigurePythonXXX to run.
-
Jeremy Hylton yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Jeremy Hylton yazdı
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.
-
Jeremy Hylton yazdı
-
Andrew M. Kuchling yazdı
a subdirectory.
-
Andrew M. Kuchling yazdı
Remove references to 2.1alpha Update description of PEP229
-
Guido van Rossum yazdı
moved).
-
Andrew M. Kuchling yazdı
Update reference Python version to beta1 Rip out PEP 232 section Add placeholders for PEP 236 and 235 Fix erroneous \filename references
-
Andrew M. Kuchling yazdı
Minor sentence change
-
Guido van Rossum yazdı
warning.
-
Skip Montanaro yazdı
-
Guido van Rossum yazdı
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.
-
Fred Drake yazdı
location information for the SyntaxError -- do not do more than we need to, stopping as soon as an exception has been raised.
-
Fred Drake yazdı
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.)
-
Guido van Rossum yazdı
explicit filename, lineno etc. arguments.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
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.
-
Andrew M. Kuchling yazdı
-
Andrew M. Kuchling yazdı
-
Fred Drake yazdı
so let's rip it out. The constructor for SyntaxError does the right thing, so we do not need to do it again.
-
Andrew M. Kuchling yazdı
-
Andrew M. Kuchling yazdı
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.
-
Andrew M. Kuchling yazdı
-
Andrew M. Kuchling yazdı
-
Fred Drake yazdı
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.
-
Jeremy Hylton yazdı
seven are not tests in their own right; these files are mentioned in regrtest.
-
Jeremy Hylton yazdı
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().
-
Tim Peters yazdı
-
Jack Jansen yazdı
Reset the resource file chain before calling PyMac_OpenPrefFile. I'm not sure why this wasn't a problem before...
-
Jack Jansen yazdı
-
Jack Jansen yazdı
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.
-
Tim Peters yazdı
-
Tim Peters yazdı
NOTE: someone who understands Unix config should remove it from acconfig.h too.
-
Jeremy Hylton yazdı
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.
-
Tim Peters yazdı
-