summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add more complete reference. Change a co.back() call to co.tran() --Guido van Rossum2001-03-221-1/+2
| | | | that's all that's needed.
* Updated to latest PyUnit version (1.31 in PyUnit CVS); test_support.pySteve Purcell2001-03-222-256/+244
| | | | changed accordingly.
* Set the line number correctly for a nested function with an exec orJeremy Hylton2001-03-222-2/+6
| | | | import *. Mark the offending stmt rather than the function def line.
* Make error messages clearer for illegal combinations of nestedJeremy Hylton2001-03-221-15/+36
| | | | functions and import */exec.
* Remove redundant importAndrew M. Kuchling2001-03-221-1/+1
|
* Back out conversion to string methods; the Distutils is intended to workAndrew M. Kuchling2001-03-224-13/+13
| | | | with 1.5.2
* Call the write_pkg_info methodAndrew M. Kuchling2001-03-221-2/+2
|
* Add 'platforms' and 'keywords' attributes to the DistributionMetadata class,Andrew M. Kuchling2001-03-221-5/+70
| | | | | | | | along with options to print them. Add a finalize_options() method to Distribution to do final processing on the platform and keyword attributes Add DistributionMetadata.write_pkg_info() method to write a PKG-INFO file into the release tree.
* Patch #407434: add rfc822_escape utility functionAndrew M. Kuchling2001-03-221-0/+10
|
* Extend support for from __future__ import nested_scopesJeremy Hylton2001-03-225-19/+133
| | | | | | | | | | | | | | | | | | | If a module has a future statement enabling nested scopes, they are also enable for the exec statement and the functions compile() and execfile() if they occur in the module. If Python is run with the -i option, which enters interactive mode after executing a script, and the script it runs enables nested scopes, they are also enabled in interactive mode. XXX The use of -i with -c "from __future__ import nested_scopes" is not supported. What's the point? To support these changes, many function variants have been added to pythonrun.c. All the variants names end with Flags and they take an extra PyCompilerFlags * argument. It is possible that this complexity will be eliminated in a future version of the interpreter in which nested scopes are not optional.
* If a code object is compiled with nested scopes, define the CO_NESTED flag.Jeremy Hylton2001-03-224-1/+13
| | | | | Add PyEval_GetNestedScopes() which returns a non-zero value if the code for the current interpreter frame has CO_NESTED defined.
* Check that f.keys() == [] right after creation -- this prevents bugsGuido van Rossum2001-03-223-3/+6
| | | | like the one I just fixed to come back and haunt us.
* Add CONFIG_ARGS Makefile variable (saves the arguments passedNeil Schemenauer2001-03-222-344/+353
| | | | to configure).
* - Remove WITH makefile variable. Its not used for anything.Neil Schemenauer2001-03-221-13/+4
| | | | | | - Add CONFIG_ARGS variable and use it to re-run configure rather than using config.status. This prevents an infinite loop if configure dies while re-configuring.
* Don't raise MemoryError in keys() when the database is empty.Guido van Rossum2001-03-221-1/+1
| | | | This fixes SF bug #410146 (python 2.1b shelve is broken).
* Changed doctest to run tests in alphabetic order of name.Tim Peters2001-03-213-98/+108
| | | | | | This makes verbose-mode output easier to dig thru, and removes an accidental dependence on the order of dict.items() (made visible by recent changes to dictobject.c).
* Integrated an expanded version of some text from Neil Schemenauer aboutFred Drake2001-03-211-3/+85
| | | | | | | supporting cyclic garbage collection. (This is not all of it, but I'm taking a break!) Also fixed some markup nits.
* Test that traceback module works with SyntaxErrors with or without carets.Jeremy Hylton2001-03-213-0/+43
|
* Do not print caret when offset is None.Jeremy Hylton2001-03-211-7/+8
|
* Make PyDict_Next safe to use for loops that merely modify the valuesTim Peters2001-03-211-8/+32
| | | | | | associated with existing dict keys. This is a variant of part of Michael Hudson's patch #409864 "lazy fix for Pings bizarre scoping crash".
* Use PyObject_IsInstance() to check whether the first argument to anGuido van Rossum2001-03-211-13/+19
| | | | | unbound method is of the right type. Hopefully this solves SF patch #409355 (Meta-class inheritance problem); I have no easy way to test.
* Reformat and edit docstrings to follow modern conventions. SingleJeremy Hylton2001-03-211-50/+68
| | | | line summary followed by blank line and description.
* Update PyNode_CompileSymtable() to understand future statementsJeremy Hylton2001-03-211-9/+15
|
* Move the code implementing isinstance() and issubclass() to new CGuido van Rossum2001-03-213-96/+125
| | | | | APIs, PyObject_IsInstance() and PyObject_IsSubclass() -- both returning an int, or -1 for errors.
* Add test cases for the fnmatch module.Fred Drake2001-03-212-0/+43
|
* Just import sys at the top instead of inside lots of functions.Fred Drake2001-03-211-3/+35
| | | | Add some helpers for supporting PyUNIT-based unit testing.
* The unittest module from PyUNIT, by Steve Purcell.Fred Drake2001-03-211-0/+689
|
* Donovan Baarda <abo@users.sourceforge.net>:Fred Drake2001-03-211-9/+5
| | | | | | Patch to make "\" in a character group work properly. This closes SF bug #409651.
* Fixed a bunch of Tabnanny errorsMoshe Zadka2001-03-211-590/+590
|
* Add tests for recent changes:Jeremy Hylton2001-03-212-0/+32
| | | | | - global stmt in class does not affect free vars in methods - locals() works with free and cell vars
* Fix PyFrame_FastToLocals() and counterpart to deal with cells andJeremy Hylton2001-03-213-75/+182
| | | | | | | | | | | | | | frees. Note there doesn't seem to be any way to test LocalsToFast(), because the instructions that trigger it are illegal in nested scopes with free variables. Fix allocation strategy for cells that are also formal parameters. Instead of emitting LOAD_FAST / STORE_DEREF pairs for each parameter, have the argument handling code in eval_code2() do the right thing. A side-effect of this change is that cell variables that are also arguments are listed at the front of co_cellvars in the order they appear in the argument list.
* Use proper compiler flags on UnixWare.Martin v. Löwis2001-03-212-203/+225
| | | | Closes bug #231439.
* Add newline to end of file.Guido van Rossum2001-03-211-1/+1
|
* Document tix directory.Martin v. Löwis2001-03-211-0/+2
|
* Add section on 2.1b2.Martin v. Löwis2001-03-211-0/+11
| | | | Report the addition of the Tix module.
* Remove Tix detection from Tkinter part; lib-tk/Tix attempts to load TixMartin v. Löwis2001-03-211-15/+1
| | | | | by requiring it. Also remove commentary from Setup.dist about commenting in and out stuff.
* Patch #410231: Add the Python Tix library.Martin v. Löwis2001-03-2138-0/+3794
|
* Patch #409504: Fix regex problems, consider \-continuation lines in MakefileMartin v. Löwis2001-03-212-2/+15
| | | | and Setup.
* Update Windows installer for 2.1b2.Tim Peters2001-03-213-4/+6
|
* Addrf simple test that import is case-sensitive.Tim Peters2001-03-211-1/+10
|
* Started on 2.1b2 release notes. Cleaned out alfa notes, etc.Jack Jansen2001-03-201-20/+11
|
* Added dummy _tkinter module for Carbon, which explains that Tkinter isnt ↵Jack Jansen2001-03-201-1/+1
| | | | supported under Carbon.
* Dummy _tkinter module for Carbon, which explains that Tkinter isnt supported ↵Jack Jansen2001-03-203-0/+29
| | | | under Carbon.
* Moved the description of the tzparse module to the "Obsolete" sectionFred Drake2001-03-201-4/+5
| | | | | | and note that it fails when the TZ environment variable is not set. This closes SF bug #409683.
* Case-checking was broken on the Macintosh. Fixed.Jack Jansen2001-03-201-3/+2
|
* Got module to work under Carbon. Also disabled a few more bits of cfm68k ↵Jack Jansen2001-03-201-12/+21
| | | | support.
* Added riscos modules to modules that don't have to be included.Jack Jansen2001-03-201-1/+3
|
* Lawrence Hudson, SF #401702: Modify co_filename in frozen programsGuido van Rossum2001-03-202-3/+42
| | | | | | | | | | | | | | | This patch was developed primarily to reduce the size of the frozen binary. It is particularly useful when freezing for 'small' platforms, such as Palm OS, where you really want to save that last miserable byte. A limitation of this patch is that it does not provide any feedback about the replacements being made. As the path matching is case-sensitive this may lead to unexpected behaviour for DOS and Windows people, eg > freeze.py -r C:\Python\Lib\=py\ goats.py should probably be: > freeze.py -r c:\python\lib\=py\ goats.py
* Bump version to 2.1b2.Guido van Rossum2001-03-201-3/+3
|
* Add a deprecation warning to this module.Guido van Rossum2001-03-201-0/+5
| | | | | Importing it typically fails anyway (no TZ variable defined), so this is no great loss.