- 28 Şub, 2001 21 kayıt (commit)
-
-
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ı
-
Tim Peters yazdı
-
Tim Peters yazdı
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.
-
Fred Drake yazdı
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!
-
Fred Drake yazdı
there was an IOError opening the underlying file in ZipFile.__init__().
-
Jeremy Hylton yazdı
A user program could delete a function's func_closure, which would cause it to crash when called.
-
Jeremy Hylton yazdı
are legal at the interactive interpreter prompt. They don't do anything yet...
-
Jeremy Hylton yazdı
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.
-
Jeremy Hylton yazdı
-
Skip Montanaro yazdı
-
Skip Montanaro yazdı
-
- 27 Şub, 2001 19 kayıt (commit)
-
-
Ka-Ping Yee yazdı
-
Ka-Ping Yee yazdı
-
Jack Jansen yazdı
-
Jack Jansen yazdı
Changed SIZE resource to be carbon-compatible.
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Ka-Ping Yee yazdı
-
Ka-Ping Yee yazdı
-
Ka-Ping Yee yazdı
-
Fred Drake yazdı
for constant definitions. Add a deprecation to the TERMIOS module.
-
Fred Drake yazdı
module; that won't happen.
-
Fred Drake yazdı
based on the termios module. The only added "feature" is the deprecation warning it spits out.
-
Fred Drake yazdı
-
Fred Drake yazdı
in this module; no more need for TERMIOS.py.
-
Tim Peters yazdı
-
Andrew M. Kuchling yazdı
building under Cygwin. Makes some fixes to the dlmodule in order to compile with Cygwin.
-
Jeremy Hylton yazdı
-
Tim Peters yazdı
-
Andrew M. Kuchling yazdı
-