Thomas Wouters
b0dbeef1c4
Allow the process of reading back what we wrote to a pty to transform
...
linefeeds into carriagereturn-linefeeds (which is apparently what IRIX
does.) Also add some comments, an extra test and reorganize it a bit.
2001-03-22 14:50:24 +00:00
Guido van Rossum
053ae3502c
Add some news for 2.1b2. I'd still like someone else to add news
...
about these packages:
- distutils
- xml
2001-03-22 14:17:21 +00:00
Guido van Rossum
d76f0f7a04
Added Gordon McMillan. He should've been in there ages ago. Thanks
...
Moshe for noticing!
2001-03-22 13:43:25 +00:00
Guido van Rossum
d42124cb09
Change co.detach() to co.back() call.
2001-03-22 13:36:39 +00:00
Guido van Rossum
27f9b84684
Add more complete reference. Change a co.back() call to co.tran() --
...
that's all that's needed.
2001-03-22 13:36:11 +00:00
Steve Purcell
5ddd1a8dcb
Updated to latest PyUnit version (1.31 in PyUnit CVS); test_support.py
...
changed accordingly.
2001-03-22 08:45:36 +00:00
Jeremy Hylton
2e2cded1b5
Set the line number correctly for a nested function with an exec or
...
import *. Mark the offending stmt rather than the function def line.
2001-03-22 03:57:58 +00:00
Jeremy Hylton
280e6bd742
Make error messages clearer for illegal combinations of nested
...
functions and import */exec.
2001-03-22 03:51:05 +00:00
Andrew M. Kuchling
6e9c0baa65
Remove redundant import
2001-03-22 03:50:09 +00:00
Andrew M. Kuchling
ac20f773f3
Back out conversion to string methods; the Distutils is intended to work
...
with 1.5.2
2001-03-22 03:48:31 +00:00
Andrew M. Kuchling
a7f225d88a
Call the write_pkg_info method
2001-03-22 03:10:05 +00:00
Andrew M. Kuchling
a7210ed272
Add 'platforms' and 'keywords' attributes to the DistributionMetadata class,
...
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.
2001-03-22 03:06:52 +00:00
Andrew M. Kuchling
df66df0a28
Patch #407434 : add rfc822_escape utility function
2001-03-22 03:03:41 +00:00
Jeremy Hylton
bc32024769
Extend support for from __future__ import nested_scopes
...
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.
2001-03-22 02:47:58 +00:00
Jeremy Hylton
061d106a0f
If a code object is compiled with nested scopes, define the CO_NESTED flag.
...
Add PyEval_GetNestedScopes() which returns a non-zero value if the
code for the current interpreter frame has CO_NESTED defined.
2001-03-22 02:32:48 +00:00
Guido van Rossum
f6e47ad4bd
Check that f.keys() == [] right after creation -- this prevents bugs
...
like the one I just fixed to come back and haunt us.
2001-03-22 00:40:23 +00:00
Neil Schemenauer
4edbc2a54f
Add CONFIG_ARGS Makefile variable (saves the arguments passed
...
to configure).
2001-03-22 00:34:03 +00:00
Neil Schemenauer
64b1b686d1
- Remove WITH makefile variable. Its not used for anything.
...
- 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.
2001-03-22 00:32:32 +00:00
Guido van Rossum
ec24c1bc32
Don't raise MemoryError in keys() when the database is empty.
...
This fixes SF bug #410146 (python 2.1b shelve is broken).
2001-03-22 00:19:22 +00:00
Tim Peters
24a4191160
Changed doctest to run tests in alphabetic order of name.
...
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).
2001-03-21 23:07:59 +00:00
Fred Drake
c392b570db
Integrated an expanded version of some text from Neil Schemenauer about
...
supporting cyclic garbage collection. (This is not all of it, but I'm
taking a break!)
Also fixed some markup nits.
2001-03-21 22:15:01 +00:00
Jeremy Hylton
09ccc3a22a
Test that traceback module works with SyntaxErrors with or without carets.
2001-03-21 20:33:04 +00:00
Jeremy Hylton
ed9d0ba482
Do not print caret when offset is None.
2001-03-21 20:29:18 +00:00
Tim Peters
6783070ebf
Make PyDict_Next safe to use for loops that merely modify the values
...
associated with existing dict keys.
This is a variant of part of Michael Hudson's patch #409864 "lazy fix for
Pings bizarre scoping crash".
2001-03-21 19:23:56 +00:00
Guido van Rossum
66b0e9c2a7
Use PyObject_IsInstance() to check whether the first argument to an
...
unbound method is of the right type. Hopefully this solves SF patch
#409355 (Meta-class inheritance problem); I have no easy way to test.
2001-03-21 19:17:22 +00:00
Jeremy Hylton
69e9e8bd51
Reformat and edit docstrings to follow modern conventions. Single
...
line summary followed by blank line and description.
2001-03-21 19:09:31 +00:00
Jeremy Hylton
ded4bd776f
Update PyNode_CompileSymtable() to understand future statements
2001-03-21 19:01:33 +00:00
Guido van Rossum
823649d544
Move the code implementing isinstance() and issubclass() to new C
...
APIs, PyObject_IsInstance() and PyObject_IsSubclass() -- both
returning an int, or -1 for errors.
2001-03-21 18:40:58 +00:00
Fred Drake
91751143eb
Add test cases for the fnmatch module.
2001-03-21 18:29:25 +00:00
Fred Drake
cd1b1dd6d2
Just import sys at the top instead of inside lots of functions.
...
Add some helpers for supporting PyUNIT-based unit testing.
2001-03-21 18:26:33 +00:00
Fred Drake
02538200b3
The unittest module from PyUNIT, by Steve Purcell.
2001-03-21 18:09:46 +00:00
Fred Drake
46d9fda008
Donovan Baarda <abo@users.sourceforge.net>:
...
Patch to make "\" in a character group work properly.
This closes SF bug #409651 .
2001-03-21 18:05:48 +00:00
Moshe Zadka
22710823fb
Fixed a bunch of Tabnanny errors
2001-03-21 17:24:49 +00:00
Jeremy Hylton
5c7a2513ec
Add tests for recent changes:
...
- global stmt in class does not affect free vars in methods
- locals() works with free and cell vars
2001-03-21 16:44:39 +00:00
Jeremy Hylton
220ae7c0bf
Fix PyFrame_FastToLocals() and counterpart to deal with cells and
...
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.
2001-03-21 16:43:47 +00:00
Martin v. Löwis
bec1958d97
Use proper compiler flags on UnixWare.
...
Closes bug #231439 .
2001-03-21 15:57:54 +00:00
Guido van Rossum
f74c9dc870
Add newline to end of file.
2001-03-21 14:18:12 +00:00
Martin v. Löwis
be0e7f4262
Document tix directory.
2001-03-21 11:47:55 +00:00
Martin v. Löwis
0411f6f135
Add section on 2.1b2.
...
Report the addition of the Tix module.
2001-03-21 08:01:39 +00:00
Martin v. Löwis
b1d196927a
Remove Tix detection from Tkinter part; lib-tk/Tix attempts to load Tix
...
by requiring it. Also remove commentary from Setup.dist about commenting
in and out stuff.
2001-03-21 07:44:53 +00:00
Martin v. Löwis
b21cb5fa7d
Patch #410231 : Add the Python Tix library.
2001-03-21 07:42:07 +00:00
Martin v. Löwis
2c91c815d4
Patch #409504 : Fix regex problems, consider \-continuation lines in Makefile
...
and Setup.
2001-03-21 06:58:25 +00:00
Tim Peters
55f826cd6a
Update Windows installer for 2.1b2.
2001-03-21 06:09:14 +00:00
Tim Peters
eba5130e4f
Addrf simple test that import is case-sensitive.
2001-03-21 03:58:16 +00:00
Jack Jansen
9de05f4157
Started on 2.1b2 release notes. Cleaned out alfa notes, etc.
2001-03-20 23:30:38 +00:00
Jack Jansen
875b51dff9
Added dummy _tkinter module for Carbon, which explains that Tkinter isnt supported under Carbon.
2001-03-20 23:30:06 +00:00
Jack Jansen
aabdb0d5bf
Dummy _tkinter module for Carbon, which explains that Tkinter isnt supported under Carbon.
2001-03-20 23:29:41 +00:00
Fred Drake
4e6d09e369
Moved the description of the tzparse module to the "Obsolete" section
...
and note that it fails when the TZ environment variable is not set.
This closes SF bug #409683 .
2001-03-20 23:13:53 +00:00
Jack Jansen
4df3c5284f
Case-checking was broken on the Macintosh. Fixed.
2001-03-20 23:09:54 +00:00
Jack Jansen
fddef433d1
Got module to work under Carbon. Also disabled a few more bits of cfm68k support.
2001-03-20 21:55:51 +00:00