]> granicus.if.org Git - python/log
python
24 years agoWhen the regression test is run in verbose mode, make the PyUNIT-based
Fred Drake [Fri, 23 Mar 2001 04:21:17 +0000 (04:21 +0000)]
When the regression test is run in verbose mode, make the PyUNIT-based
tests a little noisier, providing more progress information.

24 years agoAdd support for weak references to the function and method types.
Fred Drake [Fri, 23 Mar 2001 04:19:27 +0000 (04:19 +0000)]
Add support for weak references to the function and method types.

24 years agoAdd the necessary field for weak reference support to the function and
Fred Drake [Fri, 23 Mar 2001 04:17:58 +0000 (04:17 +0000)]
Add the necessary field for weak reference support to the function and
method types.

24 years agoFix memory leak with SyntaxError. (The DECREF was originally hidden
Guido van Rossum [Fri, 23 Mar 2001 04:01:07 +0000 (04:01 +0000)]
Fix memory leak with SyntaxError.  (The DECREF was originally hidden
inside a piece of code that was deemed reduntant; the DECREF was
unfortunately *not* redundant!)

24 years agoAdd a paragraph about obmalloc turning up bugs in extension modules
Andrew M. Kuchling [Fri, 23 Mar 2001 03:52:46 +0000 (03:52 +0000)]
Add a paragraph about obmalloc turning up bugs in extension modules
Mention the new ports

24 years agoAdd Jeremy's compiler to the Windows install.
Tim Peters [Fri, 23 Mar 2001 03:43:35 +0000 (03:43 +0000)]
Add Jeremy's compiler to the Windows install.

24 years agoAdd section for PEP 241
Andrew M. Kuchling [Fri, 23 Mar 2001 03:29:08 +0000 (03:29 +0000)]
Add section for PEP 241
Add PyUnit and sys.excepthook

24 years agoAdd sys.excepthook.
Ka-Ping Yee [Fri, 23 Mar 2001 02:46:52 +0000 (02:46 +0000)]
Add sys.excepthook.
Update docstring and library reference section on 'sys' module.
New API PyErr_Display, just for displaying errors, called by excepthook.
Uncaught exceptions now call sys.excepthook; if that fails, we fall back
    to calling PyErr_Display directly.
Also comes with sys.__excepthook__ and sys.__displayhook__.

24 years agoFixes for various issues reported and discovered since Python 9:
Ka-Ping Yee [Fri, 23 Mar 2001 00:12:53 +0000 (00:12 +0000)]
Fixes for various issues reported and discovered since Python 9:
Factor description of import errors into DocImportError.__str__.
Add "docother" and "fail" methods to Doc class.
Factor formatting of constants into "docother".
Increase max string repr limit to 100 characters.
Factor page generation into HTMLDoc.page.
Handle aliasing of names (objects appearing under an attribute
    name different from their intrinsic __name__) by passing the
    attribute name into each doc* method.
Handle methods at top level of modules (e.g. in random).
Try to do reloading efficiently.

Important fixes still to do:
    Module reloading is broken by the unfortunate property that
        failed imports leave an incomplete module in sys.  Still
        need to think of a good solution.
    Can't document modules in the current directory, due to the
        other unfortunate property that sys.path gets '.' when
        you run 'python' but it gets the script directory when
        you run a script.  Need to ponder to find a solution.
    The synopsis() routine does not work on .so modules.
    Aliases cause duplicate copies of documentation to appear.
        This is easy to fix, just more work.
    Classes appear as their intrinsic name, not their attribute name,
        in the class hierarchy.  This should be fixed.
    Inherited methods should be listed in class descriptions.

24 years agoSRE 2.1b2: increase the chances that the sre test works on other
Fredrik Lundh [Thu, 22 Mar 2001 23:48:28 +0000 (23:48 +0000)]
SRE 2.1b2: increase the chances that the sre test works on other
machines...

24 years agoFirst cut at a high-level symbol table interface
Jeremy Hylton [Thu, 22 Mar 2001 23:32:22 +0000 (23:32 +0000)]
First cut at a high-level symbol table interface

24 years agoSRE 2.1b2: forgot to update one output file (sorry, Fred!)
Fredrik Lundh [Thu, 22 Mar 2001 23:29:04 +0000 (23:29 +0000)]
SRE 2.1b2: forgot to update one output file (sorry, Fred!)

24 years agoadd DEF_BOUND constant
Jeremy Hylton [Thu, 22 Mar 2001 23:10:44 +0000 (23:10 +0000)]
add DEF_BOUND constant

24 years agoStrip \r as trailing whitespace as part of soft line endings.
Guido van Rossum [Thu, 22 Mar 2001 22:30:21 +0000 (22:30 +0000)]
Strip \r as trailing whitespace as part of soft line endings.

Inspired by SF patch #408597 (Walter Dörwald): quopri, soft line
breaks and CRLF.  (I changed (" ", "\t", "\r") into " \t\r".)

24 years agoUpdate the Tix version (long overdue :-).
Guido van Rossum [Thu, 22 Mar 2001 22:18:55 +0000 (22:18 +0000)]
Update the Tix version (long overdue :-).

This is SF patch # #409044, by Internet Discovery: "Update tcl/tk/tix
versions".

24 years agoAdd a wrapper function for ssl() on Windows. Inspired by SF patch
Guido van Rossum [Thu, 22 Mar 2001 22:12:17 +0000 (22:12 +0000)]
Add a wrapper function for ssl() on Windows.  Inspired by SF patch
# 409287, ssl fix when using _socketobject, by Robin Dunn.

I took the opportunity to improve the way it deals with reload(socket)
for the socket function as well.

24 years agoThis is SF patch #405952, by Anthony Baxter:
Guido van Rossum [Thu, 22 Mar 2001 21:59:20 +0000 (21:59 +0000)]
This is SF patch #405952, by Anthony Baxter:
cmd.py uses raw_input(); eats SIGCLD:

  I discovered a rather nasty side effect of the standard cmd.py
  library today. If it's sitting inside raw_input(), any SIGCLDs that
  get sent to your application get silently eaten and ignored. I'm
  assuming that this is something that readline is thoughtfully doing
  for me.

  This patch adds an instance attr that allows the user to select to
  not use raw_input(), but instead use sys.stdin.readline()

[Changed slightly to catch EOFError only for raw_input().]

24 years agoA small change to the C API for weakly-referencable types: Such types
Fred Drake [Thu, 22 Mar 2001 18:26:47 +0000 (18:26 +0000)]
A small change to the C API for weakly-referencable types:  Such types
must now initialize the extra field used by the weak-ref machinery to
NULL themselves, to avoid having to require PyObject_INIT() to check
if the type supports weak references and do it there.  This causes less
work to be done for all objects (the type object does not need to be
consulted to check for the Py_TPFLAGS_HAVE_WEAKREFS bit).

24 years agoInform the cycle-detector that the a weakref object no longer needs to be
Fred Drake [Thu, 22 Mar 2001 18:05:30 +0000 (18:05 +0000)]
Inform the cycle-detector that the a weakref object no longer needs to be
tracked as soon as it is clear; this can decrease the number of roots for
the cycle detector sooner rather than later in applications which hold on
to weak references beyond the time of the invalidation.

24 years agoMake cPickle use the recently-added PyInstance_NewRaw() API to create
Fred Drake [Thu, 22 Mar 2001 17:52:17 +0000 (17:52 +0000)]
Make cPickle use the recently-added PyInstance_NewRaw() API to create
instance objects without calling the constructor.  This is the same as
the new.instance() function.

24 years agoMake this IDLE version 0.8. (We have to skip 0.7 because that was a
Guido van Rossum [Thu, 22 Mar 2001 17:37:52 +0000 (17:37 +0000)]
Make this IDLE version 0.8.  (We have to skip 0.7 because that was a
CNRI release in a corner of the basement of a government building on a
planet circling Aldebaran.)

24 years agoDon't use __debug__ as if it were some module global. Use DEBUG
Guido van Rossum [Thu, 22 Mar 2001 17:27:13 +0000 (17:27 +0000)]
Don't use __debug__ as if it were some module global.  Use DEBUG
instead.

24 years agoBump the version number.
Fred Drake [Thu, 22 Mar 2001 17:01:43 +0000 (17:01 +0000)]
Bump the version number.

24 years agoUpdate to the current state of the universe.
Fred Drake [Thu, 22 Mar 2001 17:00:05 +0000 (17:00 +0000)]
Update to the current state of the universe.

24 years agoBe more clear about the specific rules for supporting the cyclic GC in an
Fred Drake [Thu, 22 Mar 2001 16:30:17 +0000 (16:30 +0000)]
Be more clear about the specific rules for supporting the cyclic GC in an
extension object.  Also included an example showing exactly what needs to
be done and nothing else.

This closes SF bug #228591.

24 years agoFix typo in history.
Thomas Wouters [Thu, 22 Mar 2001 16:03:53 +0000 (16:03 +0000)]
Fix typo in history.

24 years agoSRE 2.1b1: don't do unicode tests under 1.5.2, or on unicode
Fredrik Lundh [Thu, 22 Mar 2001 15:51:28 +0000 (15:51 +0000)]
SRE 2.1b1: don't do unicode tests under 1.5.2, or on unicode
strings/patterns.

24 years agosre 2.1b2 update:
Fredrik Lundh [Thu, 22 Mar 2001 15:50:10 +0000 (15:50 +0000)]
sre 2.1b2 update:

- take locale into account for word boundary anchors (#410271)
- restored 2.0's *? behaviour (#233283, #408936 and others)
- speed up re.sub/re.subn

24 years agoAdded news items for the Distutils
Andrew M. Kuchling [Thu, 22 Mar 2001 15:42:08 +0000 (15:42 +0000)]
Added news items for the Distutils

24 years agoUpdated history. Incorporated 1.6.1 license.
Guido van Rossum [Thu, 22 Mar 2001 15:41:06 +0000 (15:41 +0000)]
Updated history.  Incorporated 1.6.1 license.

24 years agoSynchronize with 1.6 of PyXML:
Martin v. Löwis [Thu, 22 Mar 2001 15:34:02 +0000 (15:34 +0000)]
Synchronize with 1.6 of PyXML:
Retrieve relevant information at construction time, as it may be lost
when the exception is printed.

24 years agoUse the get_contact*() accessors instead of get_maintainer*()
Andrew M. Kuchling [Thu, 22 Mar 2001 15:32:23 +0000 (15:32 +0000)]
Use the get_contact*() accessors instead of get_maintainer*()

24 years agoSet copyright to PSF. Don't bother with 2000.
Guido van Rossum [Thu, 22 Mar 2001 15:29:37 +0000 (15:29 +0000)]
Set copyright to PSF.  Don't bother with 2000.

24 years agoAllow the process of reading back what we wrote to a pty to transform
Thomas Wouters [Thu, 22 Mar 2001 14:50:24 +0000 (14:50 +0000)]
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.

24 years agoAdd some news for 2.1b2. I'd still like someone else to add news
Guido van Rossum [Thu, 22 Mar 2001 14:17:21 +0000 (14:17 +0000)]
Add some news for 2.1b2.  I'd still like someone else to add news
about these packages:

- distutils

- xml

24 years agoAdded Gordon McMillan. He should've been in there ages ago. Thanks
Guido van Rossum [Thu, 22 Mar 2001 13:43:25 +0000 (13:43 +0000)]
Added Gordon McMillan.  He should've been in there ages ago.  Thanks
Moshe for noticing!

24 years agoChange co.detach() to co.back() call.
Guido van Rossum [Thu, 22 Mar 2001 13:36:39 +0000 (13:36 +0000)]
Change co.detach() to co.back() call.

24 years agoAdd more complete reference. Change a co.back() call to co.tran() --
Guido van Rossum [Thu, 22 Mar 2001 13:36:11 +0000 (13:36 +0000)]
Add more complete reference.  Change a co.back() call to co.tran() --
that's all that's needed.

24 years agoUpdated to latest PyUnit version (1.31 in PyUnit CVS); test_support.py
Steve Purcell [Thu, 22 Mar 2001 08:45:36 +0000 (08:45 +0000)]
Updated to latest PyUnit version (1.31 in PyUnit CVS); test_support.py
changed accordingly.

24 years agoSet the line number correctly for a nested function with an exec or
Jeremy Hylton [Thu, 22 Mar 2001 03:57:58 +0000 (03:57 +0000)]
Set the line number correctly for a nested function with an exec or
import *.  Mark the offending stmt rather than the function def line.

24 years agoMake error messages clearer for illegal combinations of nested
Jeremy Hylton [Thu, 22 Mar 2001 03:51:05 +0000 (03:51 +0000)]
Make error messages clearer for illegal combinations of nested
functions and import */exec.

24 years agoRemove redundant import
Andrew M. Kuchling [Thu, 22 Mar 2001 03:50:09 +0000 (03:50 +0000)]
Remove redundant import

24 years agoBack out conversion to string methods; the Distutils is intended to work
Andrew M. Kuchling [Thu, 22 Mar 2001 03:48:31 +0000 (03:48 +0000)]
Back out conversion to string methods; the Distutils is intended to work
   with 1.5.2

24 years agoCall the write_pkg_info method
Andrew M. Kuchling [Thu, 22 Mar 2001 03:10:05 +0000 (03:10 +0000)]
Call the write_pkg_info method

24 years agoAdd 'platforms' and 'keywords' attributes to the DistributionMetadata class,
Andrew M. Kuchling [Thu, 22 Mar 2001 03:06:52 +0000 (03:06 +0000)]
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.

24 years agoPatch #407434: add rfc822_escape utility function
Andrew M. Kuchling [Thu, 22 Mar 2001 03:03:41 +0000 (03:03 +0000)]
Patch #407434: add rfc822_escape utility function

24 years agoExtend support for from __future__ import nested_scopes
Jeremy Hylton [Thu, 22 Mar 2001 02:47:58 +0000 (02:47 +0000)]
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.

24 years agoIf a code object is compiled with nested scopes, define the CO_NESTED flag.
Jeremy Hylton [Thu, 22 Mar 2001 02:32:48 +0000 (02:32 +0000)]
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.

24 years agoCheck that f.keys() == [] right after creation -- this prevents bugs
Guido van Rossum [Thu, 22 Mar 2001 00:40:23 +0000 (00:40 +0000)]
Check that f.keys() == [] right after creation -- this prevents bugs
like the one I just fixed to come back and haunt us.

24 years agoAdd CONFIG_ARGS Makefile variable (saves the arguments passed
Neil Schemenauer [Thu, 22 Mar 2001 00:34:03 +0000 (00:34 +0000)]
Add CONFIG_ARGS Makefile variable (saves the arguments passed
to configure).

24 years ago- Remove WITH makefile variable. Its not used for anything.
Neil Schemenauer [Thu, 22 Mar 2001 00:32:32 +0000 (00:32 +0000)]
- 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.

24 years agoDon't raise MemoryError in keys() when the database is empty.
Guido van Rossum [Thu, 22 Mar 2001 00:19:22 +0000 (00:19 +0000)]
Don't raise MemoryError in keys() when the database is empty.

This fixes SF bug #410146 (python 2.1b shelve is broken).

24 years agoChanged doctest to run tests in alphabetic order of name.
Tim Peters [Wed, 21 Mar 2001 23:07:59 +0000 (23:07 +0000)]
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).

24 years agoIntegrated an expanded version of some text from Neil Schemenauer about
Fred Drake [Wed, 21 Mar 2001 22:15:01 +0000 (22:15 +0000)]
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.

24 years agoTest that traceback module works with SyntaxErrors with or without carets.
Jeremy Hylton [Wed, 21 Mar 2001 20:33:04 +0000 (20:33 +0000)]
Test that traceback module works with SyntaxErrors with or without carets.

24 years agoDo not print caret when offset is None.
Jeremy Hylton [Wed, 21 Mar 2001 20:29:18 +0000 (20:29 +0000)]
Do not print caret when offset is None.

24 years agoMake PyDict_Next safe to use for loops that merely modify the values
Tim Peters [Wed, 21 Mar 2001 19:23:56 +0000 (19:23 +0000)]
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".

24 years agoUse PyObject_IsInstance() to check whether the first argument to an
Guido van Rossum [Wed, 21 Mar 2001 19:17:22 +0000 (19:17 +0000)]
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.

24 years agoReformat and edit docstrings to follow modern conventions. Single
Jeremy Hylton [Wed, 21 Mar 2001 19:09:31 +0000 (19:09 +0000)]
Reformat and edit docstrings to follow modern conventions.  Single
line summary followed by blank line and description.

24 years agoUpdate PyNode_CompileSymtable() to understand future statements
Jeremy Hylton [Wed, 21 Mar 2001 19:01:33 +0000 (19:01 +0000)]
Update PyNode_CompileSymtable() to understand future statements

24 years agoMove the code implementing isinstance() and issubclass() to new C
Guido van Rossum [Wed, 21 Mar 2001 18:40:58 +0000 (18:40 +0000)]
Move the code implementing isinstance() and issubclass() to new C
APIs, PyObject_IsInstance() and PyObject_IsSubclass() -- both
returning an int, or -1 for errors.

24 years agoAdd test cases for the fnmatch module.
Fred Drake [Wed, 21 Mar 2001 18:29:25 +0000 (18:29 +0000)]
Add test cases for the fnmatch module.

24 years agoJust import sys at the top instead of inside lots of functions.
Fred Drake [Wed, 21 Mar 2001 18:26:33 +0000 (18:26 +0000)]
Just import sys at the top instead of inside lots of functions.

Add some helpers for supporting PyUNIT-based unit testing.

24 years agoThe unittest module from PyUNIT, by Steve Purcell.
Fred Drake [Wed, 21 Mar 2001 18:09:46 +0000 (18:09 +0000)]
The unittest module from PyUNIT, by Steve Purcell.

24 years agoDonovan Baarda <abo@users.sourceforge.net>:
Fred Drake [Wed, 21 Mar 2001 18:05:48 +0000 (18:05 +0000)]
Donovan Baarda <abo@users.sourceforge.net>:
Patch to make "\" in a character group work properly.

This closes SF bug #409651.

24 years agoFixed a bunch of Tabnanny errors
Moshe Zadka [Wed, 21 Mar 2001 17:24:49 +0000 (17:24 +0000)]
Fixed a bunch of Tabnanny errors

24 years agoAdd tests for recent changes:
Jeremy Hylton [Wed, 21 Mar 2001 16:44:39 +0000 (16:44 +0000)]
Add tests for recent changes:
- global stmt in class does not affect free vars in methods
- locals() works with free and cell vars

24 years agoFix PyFrame_FastToLocals() and counterpart to deal with cells and
Jeremy Hylton [Wed, 21 Mar 2001 16:43:47 +0000 (16:43 +0000)]
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.

24 years agoUse proper compiler flags on UnixWare.
Martin v. Löwis [Wed, 21 Mar 2001 15:57:54 +0000 (15:57 +0000)]
Use proper compiler flags on UnixWare.
Closes bug #231439.

24 years agoAdd newline to end of file.
Guido van Rossum [Wed, 21 Mar 2001 14:18:12 +0000 (14:18 +0000)]
Add newline to end of file.

24 years agoDocument tix directory.
Martin v. Löwis [Wed, 21 Mar 2001 11:47:55 +0000 (11:47 +0000)]
Document tix directory.

24 years agoAdd section on 2.1b2.
Martin v. Löwis [Wed, 21 Mar 2001 08:01:39 +0000 (08:01 +0000)]
Add section on 2.1b2.
Report the addition of the Tix module.

24 years agoRemove Tix detection from Tkinter part; lib-tk/Tix attempts to load Tix
Martin v. Löwis [Wed, 21 Mar 2001 07:44:53 +0000 (07:44 +0000)]
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.

24 years agoPatch #410231: Add the Python Tix library.
Martin v. Löwis [Wed, 21 Mar 2001 07:42:07 +0000 (07:42 +0000)]
Patch #410231: Add the Python Tix library.

24 years agoPatch #409504: Fix regex problems, consider \-continuation lines in Makefile
Martin v. Löwis [Wed, 21 Mar 2001 06:58:25 +0000 (06:58 +0000)]
Patch #409504: Fix regex problems, consider \-continuation lines in Makefile
and Setup.

24 years agoUpdate Windows installer for 2.1b2.
Tim Peters [Wed, 21 Mar 2001 06:09:14 +0000 (06:09 +0000)]
Update Windows installer for 2.1b2.

24 years agoAddrf simple test that import is case-sensitive.
Tim Peters [Wed, 21 Mar 2001 03:58:16 +0000 (03:58 +0000)]
Addrf simple test that import is case-sensitive.

24 years agoStarted on 2.1b2 release notes. Cleaned out alfa notes, etc.
Jack Jansen [Tue, 20 Mar 2001 23:30:38 +0000 (23:30 +0000)]
Started on 2.1b2 release notes. Cleaned out alfa notes, etc.

24 years agoAdded dummy _tkinter module for Carbon, which explains that Tkinter isnt supported...
Jack Jansen [Tue, 20 Mar 2001 23:30:06 +0000 (23:30 +0000)]
Added dummy _tkinter module for Carbon, which explains that Tkinter isnt supported under Carbon.

24 years agoDummy _tkinter module for Carbon, which explains that Tkinter isnt supported under...
Jack Jansen [Tue, 20 Mar 2001 23:29:41 +0000 (23:29 +0000)]
Dummy _tkinter module for Carbon, which explains that Tkinter isnt supported under Carbon.

24 years agoMoved the description of the tzparse module to the "Obsolete" section
Fred Drake [Tue, 20 Mar 2001 23:13:53 +0000 (23:13 +0000)]
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.

24 years agoCase-checking was broken on the Macintosh. Fixed.
Jack Jansen [Tue, 20 Mar 2001 23:09:54 +0000 (23:09 +0000)]
Case-checking was broken on the Macintosh. Fixed.

24 years agoGot module to work under Carbon. Also disabled a few more bits of cfm68k support.
Jack Jansen [Tue, 20 Mar 2001 21:55:51 +0000 (21:55 +0000)]
Got module to work under Carbon. Also disabled a few more bits of cfm68k support.

24 years agoAdded riscos modules to modules that don't have to be included.
Jack Jansen [Tue, 20 Mar 2001 21:55:07 +0000 (21:55 +0000)]
Added riscos modules to modules that don't have to be included.

24 years agoLawrence Hudson, SF #401702: Modify co_filename in frozen programs
Guido van Rossum [Tue, 20 Mar 2001 20:43:34 +0000 (20:43 +0000)]
Lawrence Hudson, SF #401702: Modify co_filename in frozen programs

  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

24 years agoBump version to 2.1b2.
Guido van Rossum [Tue, 20 Mar 2001 19:57:10 +0000 (19:57 +0000)]
Bump version to 2.1b2.

24 years agoAdd a deprecation warning to this module.
Guido van Rossum [Tue, 20 Mar 2001 18:36:48 +0000 (18:36 +0000)]
Add a deprecation warning to this module.

Importing it typically fails anyway (no TZ variable defined), so this
is no great loss.

24 years agoBug #409419: delete seek() and tell() methods, so callers can use getattr()
Andrew M. Kuchling [Tue, 20 Mar 2001 15:51:14 +0000 (15:51 +0000)]
Bug #409419: delete seek() and tell() methods, so callers can use getattr()
    to check for them (instead of calling them and then ignoring an
    IOError)

24 years ago* Fixing the password-proxy bug
Moshe Zadka [Tue, 20 Mar 2001 13:14:28 +0000 (13:14 +0000)]
* Fixing the password-proxy bug
* Not sending content-type and content-length twice

24 years agoGet rid of --with-check-import-case. (Jason Tishler, SF #409924)
Guido van Rossum [Tue, 20 Mar 2001 13:09:14 +0000 (13:09 +0000)]
Get rid of --with-check-import-case.  (Jason Tishler, SF #409924)

24 years agoSF patch #408326 by Robin Thomas: slice objects comparable, not
Guido van Rossum [Tue, 20 Mar 2001 12:41:34 +0000 (12:41 +0000)]
SF patch #408326 by Robin Thomas: slice objects comparable, not
hashable

This patch changes the behavior of slice objects in the following
manner:

- Slice objects are now comparable with other slice objects as though
they were logically tuples of (start,stop,step). The tuple is not
created in the comparison function, but the comparison behavior is
logically equivalent.

- Slice objects are not hashable. With the above change to being
comparable, slice objects now cannot be used as keys in dictionaries.

[I've edited the patch for style.  Note that this fixes the problem
that dict[i:j] seemed to work but was meaningless.  --GvR]

24 years agoSF patch 407758, "timemodule patches for Cygwin", from Norman Vine.
Tim Peters [Tue, 20 Mar 2001 03:26:49 +0000 (03:26 +0000)]
SF patch 407758, "timemodule patches for Cygwin", from Norman Vine.
http://sourceforge.net/tracker/?func=detail&aid=407758&group_id=5470&atid=305470

24 years agoFixup handling of free variables in methods when the class scope also
Jeremy Hylton [Tue, 20 Mar 2001 00:25:43 +0000 (00:25 +0000)]
Fixup handling of free variables in methods when the class scope also
has a binding for the name.  The fix is in two places:

  - in symtable_update_free_vars, ignore a global stmt in a class scope
  - in symtable_load_symbols, add extra handling for names that are
    defined at class scope and free in a method

Closes SF bug 407800

24 years agoAdd test for a list comprehension that is nested in the left-hand part
Jeremy Hylton [Mon, 19 Mar 2001 20:42:11 +0000 (20:42 +0000)]
Add test for a list comprehension that is nested in the left-hand part
of another list comp.  This caused crashes reported as SF bugs 409230
and 407800.

Note that the new tests are in a function so that the name lookup code
isn't affected by how many *other* list comprehensions are in the same
scope.

24 years agoFix crashes in nested list comprehensions
Jeremy Hylton [Mon, 19 Mar 2001 20:38:06 +0000 (20:38 +0000)]
Fix crashes in nested list comprehensions
SF bugs 409230 and 407800

Also remove bogus list comp code from symtable_assign().

24 years agoWhen building the installer, prompt for the location of the system directory
Tim Peters [Mon, 19 Mar 2001 19:19:45 +0000 (19:19 +0000)]
When building the installer, prompt for the location of the system directory
on the current machine.  Wise doesn't seem to know this itself, and it
varies across Windows flavors.

24 years agoAdd a whole lot of stuff to __all__.
Guido van Rossum [Mon, 19 Mar 2001 13:40:44 +0000 (13:40 +0000)]
Add a whole lot of stuff to __all__.

(Excluding the logging stuff, which doesn't lend itself to use via
"from cgi import *" -- it manipulates globals.)

24 years agoMarkup nit: For the Python documents, we use \empt instead of \textit.
Fred Drake [Mon, 19 Mar 2001 04:19:56 +0000 (04:19 +0000)]
Markup nit:  For the Python documents, we use \empt instead of \textit.

24 years agoRepair test_doctest's expected-output file (Guido added some new output).
Tim Peters [Sun, 18 Mar 2001 20:14:25 +0000 (20:14 +0000)]
Repair test_doctest's expected-output file (Guido added some new output).

24 years agoadd errorTab to __all__ on win*
Skip Montanaro [Sun, 18 Mar 2001 19:53:21 +0000 (19:53 +0000)]
add errorTab to __all__ on win*
closes bug #406642