summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Mention pydocAndrew M. Kuchling2001-02-281-0/+7
|
* Leave #! lines featuring /usr/bin/env aloneAndrew M. Kuchling2001-02-281-2/+4
|
* Now that Jeremy is asking about this code, it looks really bogus to me,Fred Drake2001-02-281-18/+0
| | | | | so let's rip it out. The constructor for SyntaxError does the right thing, so we do not need to do it again.
* Install the pydoc scriptAndrew M. Kuchling2001-02-281-1/+4
|
* Add script form of pydoc so that it's present in beta1. CurrentlyAndrew M. Kuchling2001-02-281-0/+78
| | | | | | 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.
* Fix for bug #404875: fix typo in setup.pyAndrew M. Kuchling2001-02-281-1/+1
|
* Placate tabnannyAndrew M. Kuchling2001-02-281-1/+1
|
* Define lots of constants for indexes into the structures for the fileFred Drake2001-02-281-7/+51
| | | | | | | | | | | | | 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.
* Add regression test for future statements. This adds eight files, butJeremy Hylton2001-02-2810-0/+132
| | | | | seven are not tests in their own right; these files are mentioned in regrtest.
* Improve SyntaxErrors for bad future statements. Set file and locationJeremy Hylton2001-02-284-94/+113
| | | | | | | 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().
* SF patch 404928: Support for next Cygwin gcc (2.95.2-8)Tim Peters2001-02-283-13/+4
|
* Reset the resource file chain before calling PyMac_OpenPrefFile. I'm not ↵Jack Jansen2001-02-281-0/+1
| | | | sure why this wasn't a problem before...
* Oops, need to import Res.Jack Jansen2001-02-281-1/+4
|
* If we can't find our splash dialog (i.e. we're probably running from source) ↵Jack Jansen2001-02-281-4/+25
| | | | go into interactive mode: print what we're doing and ask about carbon/classic configure.
* Whitespace normalization.Tim Peters2001-02-286-12/+11
|
* Removed now-unreferenced CHECK_IMPORT_CASE from Windows config.h.Tim Peters2001-02-281-7/+0
| | | | NOTE: someone who understands Unix config should remove it from acconfig.h too.
* Print the offending line of code in the traceback for SyntaxErrorsJeremy Hylton2001-02-282-67/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Ack -- my eyes are getting bleary. Typos in the comment typo repairs.Tim Peters2001-02-281-1/+1
|
* Comment typos.Tim Peters2001-02-281-2/+2
|
* Implement PEP 235: Import on Case-Insensitive Platforms.Tim Peters2001-02-281-138/+87
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Added regression test for SF tracker bug #403871: AttributeError inFred Drake2001-02-281-0/+19
| | | | | | | | | | | | | | 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!
* Fix SF tracker bug #403871: AttributeError in ZipFile.__del__() whenFred Drake2001-02-281-0/+2
| | | | there was an IOError opening the underlying file in ZipFile.__init__().
* Fix SF buf 404774 submitted by Gregory H. BallJeremy Hylton2001-02-281-1/+1
| | | | | A user program could delete a function's func_closure, which would cause it to crash when called.
* Need to support single_input explicitly so from __future__ importsJeremy Hylton2001-02-281-0/+8
| | | | | are legal at the interactive interpreter prompt. They don't do anything yet...
* Presumed correct compiler pass for future statementsJeremy Hylton2001-02-283-30/+129
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* verify that warnings are issued for bogus uses of globalJeremy Hylton2001-02-282-0/+44
|
* added missing element to __all__Skip Montanaro2001-02-281-1/+2
|
* added some elements missing from __all__Skip Montanaro2001-02-281-1/+2
|
* Macintosh compatibility.Ka-Ping Yee2001-02-271-1/+1
|
* Acknowledgements.Ka-Ping Yee2001-02-271-2/+3
|
* Updated for 2.1a3Jack Jansen2001-02-276-94/+112
|
* Added Popt resource for "dont show console"Jack Jansen2001-02-277-1/+1
| | | | Changed SIZE resource to be carbon-compatible.
* Various tweaks to make it work on MacOSX.Jack Jansen2001-02-271-2/+9
|
* Added future.cJack Jansen2001-02-274-0/+0
|
* Fix $Revision$ processing so it doesn't get eaten by CVS!Ka-Ping Yee2001-02-271-2/+2
|
* Add $Revision: $ tag.Ka-Ping Yee2001-02-271-1/+1
|
* Add display of $Revision $ and credits.Ka-Ping Yee2001-02-271-10/+33
|
* Update documentation for termios module; do not refer to the TERMIOS moduleFred Drake2001-02-271-30/+27
| | | | | | for constant definitions. Add a deprecation to the TERMIOS module.
* No need to call filterwarnings() to suppress further warnings from thisFred Drake2001-02-271-3/+0
| | | | module; that won't happen.
* Replace all the platform-specific TERMIOS modules with a portable versionFred Drake2001-02-2714-3873/+17
| | | | | based on the termios module. The only added "feature" is the deprecation warning it spits out.
* Get the needed constants from termios, not TERMIOS.Fred Drake2001-02-272-5/+4
|
* Define the constants needed for working with these functions directlyFred Drake2001-02-271-0/+158
| | | | in this module; no more need for TERMIOS.py.
* Backing out nested scopes broke the Windows build. Repairing.Tim Peters2001-02-271-0/+2
|
* Patch #404680: disables the nis module and enables the dl module whenAndrew M. Kuchling2001-02-273-8/+13
| | | | | building under Cygwin. Makes some fixes to the dlmodule in order to compile with Cygwin.
* add from __future__ import nested_scopes to strings passed to compileJeremy Hylton2001-02-271-6/+12
|
* Teach Windows build about new future.c.Tim Peters2001-02-271-0/+15
|
* Bug #229280: remove '/' characters from the OS name (for BSD/OS :) )Andrew M. Kuchling2001-02-271-1/+6
|
* Patch #403947: On Cygwin, use the Unix compiler class, and notAndrew M. Kuchling2001-02-271-1/+4
| | | | | | | | | | 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.)
* Improved __future__ parser; still more to doJeremy Hylton2001-02-276-46/+167
| | | | | | | | | | | | | | | 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
* Gustavo Niemeyer <niemeyer@conectiva.com>:Fred Drake2001-02-271-73/+134
| | | | | | | | | | 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.