summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Change EXEEXT back to EXE in the Makefile. Other tools may depend on the name.Neil Schemenauer2001-02-271-8/+8
| | | | | The name in configure is still EXEEXT because that's what autoconf calls it. Also, replace a few occurrences of "python" with "$(PYTHON)".
* Patch #404275: generate a reasonable platform string for AIXAndrew M. Kuchling2001-02-271-0/+2
|
* Remove two meaningless, module-level global statements (one of aJeremy Hylton2001-02-271-7/+9
| | | | | | non-existent variable :-). Reflow long lines.
* Patch #403985: Add support for weak-keyed dictionariesMartin v. Löwis2001-02-275-21/+158
|
* remove commented-out vestiges of access statementJeremy Hylton2001-02-271-5/+0
|
* conditionally include unistd.h to pick up confstr declaration. attempt toSkip Montanaro2001-02-271-0/+5
| | | | | squelch warning from GCC 2.95.2 on Solaris - partially addresses bug #232787.
* pydoc: text and HTML documentation generator for interactive useKa-Ping Yee2001-02-271-0/+1158
|
* inspect: a module for getting information out of live Python objectsKa-Ping Yee2001-02-274-0/+1085
|
* SetListCellIndent() argument was guessed incorrectly. Fixed.Jack Jansen2001-02-272-15/+10
|
* Soundex has gone.Jack Jansen2001-02-271-2/+0
|
* Soundex has gone.Jack Jansen2001-02-276-2/+0
|
* Dialog and Window objects are (finally) different beasts.Jack Jansen2001-02-271-2/+1
|
* Use the filename, not the pathname, in the definitions fileJack Jansen2001-02-271-1/+1
| | | | | comment. This way the generated files are identical when generated on different machines.
* Fixing bug #227562 by calling URLopener.http_error_default whenMoshe Zadka2001-02-271-12/+18
| | | | an invalid 401 request is being handled.
* Add warnings about undefined "global"Jeremy Hylton2001-02-271-0/+29
| | | | | | SF bug #233532 XXX Can't figure out how to write test cases that work with warnings
* Add Vladimir Marangozov's object allocator. It is disabled by default. ThisNeil Schemenauer2001-02-279-343/+1144
| | | | closes SF patch #401229.
* Preliminary support for future nested scopesJeremy Hylton2001-02-275-116/+281
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Document XML changes.Martin v. Löwis2001-02-271-0/+42
|
* Updates to describe function attributes.Barry Warsaw2001-02-271-4/+12
|
* Updates to the semantics of function and method attributes.Barry Warsaw2001-02-271-14/+18
|
* Mention setup.py in the instructionsAndrew M. Kuchling2001-02-271-2/+5
| | | | Add note about linuxaudiodev possibly working on BSD
* Update build notes to mention setup.pyAndrew M. Kuchling2001-02-271-22/+20
|
* Fix typoAndrew M. Kuchling2001-02-271-1/+1
|
* Add missing dependents of graminit.h.Neil Schemenauer2001-02-271-0/+2
|
* Generate grammar source files in srcdir. Ignore the error if they cannotNeil Schemenauer2001-02-271-3/+3
| | | | be created (perhaps the source directory is read-only).
* Don't create the Include directory if building outside of the sourceNeil Schemenauer2001-02-272-4/+4
| | | | directory. Closes SF #403930.
* Make sure ConfigParser uses .optionxform() consistently; this affectsFred Drake2001-02-263-0/+28
| | | | | | .has_option(), .remove_option(), and .set(). This closes SF tracker #232913.
* Add __future__.py to std library, + dull test to verify that assignmentsTim Peters2001-02-263-0/+87
| | | | therein are of the proper form.
* cleanup_helper(): Added missing "void" type for the function, updatedFred Drake2001-02-261-6/+3
| | | | comments to reflect reality.
* The return value from PyObject_ClearWeakRefs() is no longer meaningful,Fred Drake2001-02-264-9/+8
| | | | so make it void.
* instancemethod_setattro(): Raise TypeError if an attempt is made toBarry Warsaw2001-02-261-15/+2
| | | | | | set a function attribute on a method (either bound or unbound). This reverts to Python 2.0 behavior that no attributes of the method are writable, but provides a more informative error message.
* Additional tests for current, PEP described semantics:Barry Warsaw2001-02-261-3/+36
| | | | | | | | | | | | - func.__dict__ is None until the first attribute is assigned - del func.__dict__ is equivalent to func.__dict__ = None - disallowing assignment to function attribute through unbound method (it was always illegal to assign through bound method). - verifying that setting attribute explicitly on underlying function via meth.im_func is okay.
* main(): Slightly more informative error message when TokenErrorBarry Warsaw2001-02-261-1/+5
| | | | occurs. Also, continue processing.
* (py-parse-state): Teach python-mode how to scan code which followsBarry Warsaw2001-02-241-3/+11
| | | | multi-line list comprehensions.
* Shuffle premature decref; nuke unreachable code block.Tim Peters2001-02-231-9/+3
| | | | | Fixes the "debug-build -O test_builtin.py and no test_b2.pyo" crash just discussed on Python-Dev.
* Hide the ProgressBar before raising KeyboardInterrupt. Not doing so resulted ↵Jack Jansen2001-02-231-2/+8
| | | | in a hang on Carbon.
* Turn on the "multifinder aware" bit. This should always have been on, but ↵Jack Jansen2001-02-231-1/+1
| | | | was was never a problem that it was off until CarbonLib 1.1 (which requires it, for some reason).
* Do not hide a failure to create a temporary file; if it fails the workFred Drake2001-02-231-5/+1
| | | | | | | 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.
* Minor adjustments, including markup corrections.Fred Drake2001-02-231-5/+6
|
* Fix extra backslash in example.Fred Drake2001-02-231-4/+1
|
* Another name.Fred Drake2001-02-231-0/+1
|
* Fix up the markup in some recently-added portions of the text.Fred Drake2001-02-231-26/+27
|
* Describe -s a little more generically.Barry Warsaw2001-02-231-5/+6
|
* symtable_update_free_vars(), symtable_undo_free(),Barry Warsaw2001-02-231-3/+3
| | | | | symtable_enter_scope(): Removed some unnecessary backslashes at the end of lines. C != Python. :)
* Fix for bug 133489: compiler leaks memoryJeremy Hylton2001-02-232-5/+11
| | | | | | | | | | | | | | | | | | | | 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.