]> granicus.if.org Git - python/log
python
24 years agoUpdated for 2.1b2 distribution.
Jack Jansen [Tue, 27 Mar 2001 21:38:55 +0000 (21:38 +0000)]
Updated for 2.1b2 distribution.

24 years agoArghh. Fix typo.
Martin v. Löwis [Tue, 27 Mar 2001 21:38:15 +0000 (21:38 +0000)]
Arghh. Fix typo.

24 years agoAdded a note about BBPy.lm.
Jack Jansen [Tue, 27 Mar 2001 21:37:06 +0000 (21:37 +0000)]
Added a note about BBPy.lm.

24 years agoAdded a note about the new (since 2.0) OSA architecture.
Jack Jansen [Tue, 27 Mar 2001 21:34:31 +0000 (21:34 +0000)]
Added a note about the new (since 2.0) OSA architecture.

24 years agoOops, ISO translation was off. Fixed.
Jack Jansen [Tue, 27 Mar 2001 21:32:34 +0000 (21:32 +0000)]
Oops, ISO translation was off. Fixed.

24 years agoAdd Robin Thomas (author of the slice() comparability hack).
Guido van Rossum [Tue, 27 Mar 2001 17:04:37 +0000 (17:04 +0000)]
Add Robin Thomas (author of the slice() comparability hack).

24 years agoUse Guido's trick for always extracting the version number from a
Martin v. Löwis [Tue, 27 Mar 2001 08:42:12 +0000 (08:42 +0000)]
Use Guido's trick for always extracting the version number from a
CVS Revision string correctly, even under -kv.

24 years agoFix some reloading problems (still more work needed).
Ka-Ping Yee [Tue, 27 Mar 2001 08:13:42 +0000 (08:13 +0000)]
Fix some reloading problems (still more work needed).
Add hyperlinks to PEPs at http://www.python.org/peps/pep-%04d.html
Remove script directory (dirname of sys.argv[0]) from sys.path.

24 years agoDisable fused-add-mul instructions. They give a nonstandard result for some things...
Jack Jansen [Mon, 26 Mar 2001 20:03:30 +0000 (20:03 +0000)]
Disable fused-add-mul instructions. They give a nonstandard result for some things that test_coercion complains about. The added performance is probably minimal for Python anyway.

24 years agoBug fix: compile() called from a nested-scopes-enable Python was not
Jeremy Hylton [Mon, 26 Mar 2001 19:53:38 +0000 (19:53 +0000)]
Bug fix: compile() called from a nested-scopes-enable Python was not
using nested scopes to compile its argument.  Pass compiler flags
through to underlying compile call.

24 years agoTurn SyntasWarning into SyntaxError for all code entered
Guido van Rossum [Mon, 26 Mar 2001 17:41:35 +0000 (17:41 +0000)]
Turn SyntasWarning into SyntaxError for all code entered
interactively.

24 years agoMichael Hudson <mwh21@cam.ac.uk>:
Fred Drake [Mon, 26 Mar 2001 17:14:02 +0000 (17:14 +0000)]
Michael Hudson <mwh21@cam.ac.uk>:
Add many more constants for some systems.

This closes SF patch #410267.

24 years agoAdd a note that the "kfm" controller supports "konqueror" as well as the
Fred Drake [Mon, 26 Mar 2001 16:17:21 +0000 (16:17 +0000)]
Add a note that the "kfm" controller supports "konqueror" as well as the
old KDE 1 "kfm" command.

24 years agoItamar Shtull-Trauring <itamar@maxnm.com>:
Fred Drake [Mon, 26 Mar 2001 15:49:24 +0000 (15:49 +0000)]
Itamar Shtull-Trauring <itamar@maxnm.com>:
Add support to zipfile to support opening an archive represented by an
open file rather than a file name.

24 years agoUpdate auto-detection for Konqueror to include KDE 2 -- the kfm command is
Fred Drake [Mon, 26 Mar 2001 15:06:15 +0000 (15:06 +0000)]
Update auto-detection for Konqueror to include KDE 2 -- the kfm command is
gone; "konqueror" is the new name, and the command-line args are different.
kfmclient has not changed, though.

24 years agoNote missing explanation
Andrew M. Kuchling [Mon, 26 Mar 2001 13:34:53 +0000 (13:34 +0000)]
Note missing explanation

24 years agoFixed some access paths.
Jack Jansen [Mon, 26 Mar 2001 08:37:28 +0000 (08:37 +0000)]
Fixed some access paths.

24 years agoFixed ref count bug. Patch #411191. Found by Walter Dörwald.
Marc-André Lemburg [Sun, 25 Mar 2001 19:16:13 +0000 (19:16 +0000)]
Fixed ref count bug. Patch #411191. Found by Walter Dörwald.

24 years agoget_version_string(): New function -- returns a Python string object that
Fred Drake [Sat, 24 Mar 2001 19:58:26 +0000 (19:58 +0000)]
get_version_string():  New function -- returns a Python string object that
    gives the CVS revision of this file even if it does not include the
    extra RCS "$Revision: " cruft.

initpyexpat():  Use get_version_string() instead of hard-coding magic
    indexes into the RCS string (which may be affected by export options).

24 years agoDocument use_rawinput. (Although now that I think more about it, a
Guido van Rossum [Sat, 24 Mar 2001 19:17:35 +0000 (19:17 +0000)]
Document use_rawinput.  (Although now that I think more about it, a
better solution would have been to factor out the raw_input() call and
make it into an overridable method.  Oh well, maybe later...)

24 years agoThis commit was manufactured by cvs2svn to create tag 'r21b2'. v2.1b2
cvs2svn [Fri, 23 Mar 2001 20:24:07 +0000 (20:24 +0000)]
This commit was manufactured by cvs2svn to create tag 'r21b2'.

24 years agomain(): Application of SF patch #405851, which allows this test to be
Barry Warsaw [Fri, 23 Mar 2001 20:24:07 +0000 (20:24 +0000)]
main(): Application of SF patch #405851, which allows this test to be
used by Jython.  The tests in this module expect C locale, so be
explicit about setting that (for CPython).  However, in Jython, there
is no C locale, so instead be explicit about setting the US locale.
Closes the patch.

24 years agopydoc changed overnight in such a way that it no longer worked from the
Tim Peters [Fri, 23 Mar 2001 20:21:29 +0000 (20:21 +0000)]
pydoc changed overnight in such a way that it no longer worked from the
Windows start-menu item.  This recovers from that.

24 years agoFix a memory leak -- there's no need to INCREF() the result of
Guido van Rossum [Fri, 23 Mar 2001 18:30:19 +0000 (18:30 +0000)]
Fix a memory leak -- there's no need to INCREF() the result of
newreadlinesobject() in xreadlines().

24 years agoIn Jython, `@' is not allowed in module names. Extend the TESTFN test
Barry Warsaw [Fri, 23 Mar 2001 18:04:02 +0000 (18:04 +0000)]
In Jython, `@' is not allowed in module names.  Extend the TESTFN test
to use "$test" when in Jython.  Closes SF patch #403668.

24 years agoFinishing touch to Ping's changes. This is a patch that Ping sent me
Guido van Rossum [Fri, 23 Mar 2001 17:54:43 +0000 (17:54 +0000)]
Finishing touch to Ping's changes.  This is a patch that Ping sent me
but apparently he had to go to school, so I am checking it in for him.

This makes PyRun_HandleSystemExit() a static instead, called
handle_system_exit(), and let it use the current exception rather than
passing in an exception.  This slightly simplifies the code.

24 years agoTwo minor changes for better Jython compatibility. Finn Bock says:
Barry Warsaw [Fri, 23 Mar 2001 17:53:49 +0000 (17:53 +0000)]
Two minor changes for better Jython compatibility.  Finn Bock says:

    Change 1: Not all 'modules' in sys.modules have a
    sensible __file__ attribute. Some of our java package
    can have the __file__ attribute set to None.

    Change 2: In jython we have the jython license file in
    <root> and the CPython license file in <root>/Lib. By
    reversing the search sequence jython will find and
    show the jython license file before the CPython file.

Closes SF patch #405853.

24 years agoUpdate Mac OS X platform notes.
Fred Drake [Fri, 23 Mar 2001 17:51:37 +0000 (17:51 +0000)]
Update Mac OS X platform notes.

This closes SF bug #406191.

24 years agoStrengthen the constraints on calling PyObject_GC_Fini().
Fred Drake [Fri, 23 Mar 2001 17:42:09 +0000 (17:42 +0000)]
Strengthen the constraints on calling PyObject_GC_Fini().

24 years agoMake socket.getservbyname test optional on socket module having that
Barry Warsaw [Fri, 23 Mar 2001 17:40:16 +0000 (17:40 +0000)]
Make socket.getservbyname test optional on socket module having that
attribute.  Jython does not have this function.

Closes SF patch #403667.

24 years agocall_sys_exitfunc(): Remove unused variable f.
Fred Drake [Fri, 23 Mar 2001 17:34:02 +0000 (17:34 +0000)]
call_sys_exitfunc():  Remove unused variable f.

24 years agoChange rfc822_escape() to ensure there's a consistent amount of whitespace
Andrew M. Kuchling [Fri, 23 Mar 2001 17:30:26 +0000 (17:30 +0000)]
Change rfc822_escape() to ensure there's a consistent amount of whitespace
   after each newline, instead of just blindly inserting a space at
   the start of each line.  (Improvement suggested by Thomas Wouters)

24 years agoAdd nested scopes spec to appendix.
Jeremy Hylton [Fri, 23 Mar 2001 17:23:50 +0000 (17:23 +0000)]
Add nested scopes spec to appendix.

Add new opcodes LOAD_CLOSURE, LOAD_DEREF, STORE_DEREF, MAKE_CLOSURE to
docs for dis module.

Add docs for new function and code members in Sec. 3 of ref manual.
They're present regardless of whether nested scopes are used.

Remove description of default argument hack from Sec. 7 of the ref
manual and refer the reader to the appendix.

24 years agoRemove the annoying __version__ definitions.
Fred Drake [Fri, 23 Mar 2001 17:09:02 +0000 (17:09 +0000)]
Remove the annoying __version__ definitions.

24 years agoLots of small changes to make this work with the Python DOM bindings
Fred Drake [Fri, 23 Mar 2001 17:01:47 +0000 (17:01 +0000)]
Lots of small changes to make this work with the Python DOM bindings
(minidom in particular); it was using PyDOM which is now obsolete.

Only write the output file on success -- this avoids updating the timestamp
on the file on failure, which confuses "make".

24 years agosetlocale(): In _locale-missing compatibility function, string
Barry Warsaw [Fri, 23 Mar 2001 17:00:07 +0000 (17:00 +0000)]
setlocale(): In _locale-missing compatibility function, string
comparison should be done with != instead of "is not".

24 years agoPick up the "encode" function from esistools instead of defining our own
Fred Drake [Fri, 23 Mar 2001 16:53:34 +0000 (16:53 +0000)]
Pick up the "encode" function from esistools instead of defining our own
(broken) version.

Remove Conversion.err_write() -- use dbgmsg() consistently.

24 years agoNo quotes around the "future" in the first use of the term "future
Fred Drake [Fri, 23 Mar 2001 16:47:11 +0000 (16:47 +0000)]
No quotes around the "future" in the first use of the term "future
statement".

24 years agoRe-write to no longer depend on an old version of PyXML. This now
Fred Drake [Fri, 23 Mar 2001 16:42:08 +0000 (16:42 +0000)]
Re-write to no longer depend on an old version of PyXML.  This now
implements a SAX XMLReader interface instead of the old Builder interface
used with PyDOM (now obsolete).

This only depends on the standard library, not PyXML.

24 years agoPick the "escape" function from the standard library instead of from PyXML.
Fred Drake [Fri, 23 Mar 2001 16:38:12 +0000 (16:38 +0000)]
Pick the "escape" function from the standard library instead of from PyXML.

24 years agoAdd conversions for more of the markup -- not all of this was around when
Fred Drake [Fri, 23 Mar 2001 16:29:06 +0000 (16:29 +0000)]
Add conversions for more of the markup -- not all of this was around when
this file was written!

24 years agoAdd entry for the futures appendix in the reference manual.
Fred Drake [Fri, 23 Mar 2001 16:23:21 +0000 (16:23 +0000)]
Add entry for the futures appendix in the reference manual.

Correct the comment at the top of the file.

24 years agoInclude the futures appendix.
Fred Drake [Fri, 23 Mar 2001 16:21:15 +0000 (16:21 +0000)]
Include the futures appendix.

24 years agoRevise the markup so that this formats and uses markup consistently with
Fred Drake [Fri, 23 Mar 2001 16:20:46 +0000 (16:20 +0000)]
Revise the markup so that this formats and uses markup consistently with
the rest of the documentation.

24 years agoSeveral changes for Jython portability. This closes SF patch
Barry Warsaw [Fri, 23 Mar 2001 16:13:30 +0000 (16:13 +0000)]
Several changes for Jython portability.  This closes SF patch
#403666.  Specifically,

In codestr, force `c' to be global.  It's unclear what the semantics
should be for a code object compiled at module scope, but bound and
run in a function.  In CPython, `c' is global (by accident?) while in
Jython, `c' is local.  The intent of the test clearly is to make `c'
global, so let's be explicit about it.

Jython also does not have a __builtins__ name in the module's
namespace, so we use a more portable alternative (though I'm not sure
why the test requires "__builtins__" in the g namespace).

Finally, skip the new.code() test if the new module doesn't have a
`code' attribute.  Jython will never have this.

24 years agoflesh out __all__
Jeremy Hylton [Fri, 23 Mar 2001 15:41:14 +0000 (15:41 +0000)]
flesh out __all__

remove debugging code in if __debug__:

add get_children() method on SymbolTable

24 years agoAllow sys.excepthook and sys.exitfunc to quietly exit with a sys.exit().
Ka-Ping Yee [Fri, 23 Mar 2001 15:36:41 +0000 (15:36 +0000)]
Allow sys.excepthook and sys.exitfunc to quietly exit with a sys.exit().
sys.exitfunc gets the last word on the exit status of the program.

24 years agoExtend isclass() to work for extension classes (by looking for __bases__).
Ka-Ping Yee [Fri, 23 Mar 2001 15:29:59 +0000 (15:29 +0000)]
Extend isclass() to work for extension classes (by looking for __bases__).

24 years agoAdd some initial text for the appendix on future statements and nested scopes.
Jeremy Hylton [Fri, 23 Mar 2001 15:29:54 +0000 (15:29 +0000)]
Add some initial text for the appendix on future statements and nested scopes.

24 years agoNote that assignments to __debug__ are illegal
Jeremy Hylton [Fri, 23 Mar 2001 14:34:06 +0000 (14:34 +0000)]
Note that assignments to __debug__ are illegal

24 years agoNews items for my recent checkins
Jeremy Hylton [Fri, 23 Mar 2001 14:18:27 +0000 (14:18 +0000)]
News items for my recent checkins

24 years agoScript for starting pydoc with a GUI in Windows.
Ka-Ping Yee [Fri, 23 Mar 2001 14:10:39 +0000 (14:10 +0000)]
Script for starting pydoc with a GUI in Windows.

24 years agoMake it illegal to assign to __debug__ as per Guido's request.
Jeremy Hylton [Fri, 23 Mar 2001 14:08:38 +0000 (14:08 +0000)]
Make it illegal to assign to __debug__ as per Guido's request.

24 years agoBrowser compatibility fixes.
Ka-Ping Yee [Fri, 23 Mar 2001 14:05:53 +0000 (14:05 +0000)]
Browser compatibility fixes.
Show methods aliased into a class from other classes.

24 years agoRevert to ver 1.22, which was the version before the nested scopes
Jeremy Hylton [Fri, 23 Mar 2001 14:05:16 +0000 (14:05 +0000)]
Revert to ver 1.22, which was the version before the nested scopes
docs were introduced.  This loses a few small changes, but Fred says
that's okay.

24 years agoSmall formatting improvements.
Ka-Ping Yee [Fri, 23 Mar 2001 13:35:45 +0000 (13:35 +0000)]
Small formatting improvements.

24 years agoShow inherited methods, with hyperlinks to the base class they came from.
Ka-Ping Yee [Fri, 23 Mar 2001 13:17:50 +0000 (13:17 +0000)]
Show inherited methods, with hyperlinks to the base class they came from.
Font adjustment to improve viewing in Windows (the default monospaced font,
    Courier New, seems to have no reasonable size in IE!)
Improve error handling.  Try very hard to distinguish between failure to
    find a module and failure during the module importing process.
Improve reloading behaviour.  (Still needs some work.)
Add '.' to sys.path when running as a script at the command-line.
Don't automatically assume '-g' based on the platform.  We'll just have
    the batch file supply -g.

24 years agoBump version number.
Fred Drake [Fri, 23 Mar 2001 12:12:05 +0000 (12:12 +0000)]
Bump version number.

24 years agoRevert the 1.8 patch, since it's implicated in nasty blowups (see Pyhon-Dev).
Tim Peters [Fri, 23 Mar 2001 06:14:28 +0000 (06:14 +0000)]
Revert the 1.8 patch, since it's implicated in nasty blowups (see Pyhon-Dev).

24 years agoProvide a StopTokenizing exception for conveniently exiting the loop.
Ka-Ping Yee [Fri, 23 Mar 2001 05:22:49 +0000 (05:22 +0000)]
Provide a StopTokenizing exception for conveniently exiting the loop.

24 years agoExplain the difference between NL and NEWLINE.
Ka-Ping Yee [Fri, 23 Mar 2001 05:22:12 +0000 (05:22 +0000)]
Explain the difference between NL and NEWLINE.

24 years agoGive a slightly better explanation of excepthook.
Ka-Ping Yee [Fri, 23 Mar 2001 05:17:41 +0000 (05:17 +0000)]
Give a slightly better explanation of excepthook.

24 years agoDon't have trace() skip the top frame; return them all.
Ka-Ping Yee [Fri, 23 Mar 2001 05:14:10 +0000 (05:14 +0000)]
Don't have trace() skip the top frame; return them all.

24 years agoWhen creating an attribute node using createAttribute() or
Fred Drake [Fri, 23 Mar 2001 04:39:24 +0000 (04:39 +0000)]
When creating an attribute node using createAttribute() or
createAttributeNS(), use the parallel setAttributeNode() or
setAttributeNodeNS() to add the node to the document -- do not assume
that setAttributeNode() will operate properly for both.

24 years agoUpdate to the most recent weakref changes.
Fred Drake [Fri, 23 Mar 2001 04:36:02 +0000 (04:36 +0000)]
Update to the most recent weakref changes.

24 years agoConvert the weakref test suite to PyUNIT, and add tests that exercise weak
Fred Drake [Fri, 23 Mar 2001 04:22:45 +0000 (04:22 +0000)]
Convert the weakref test suite to PyUNIT, and add tests that exercise weak
references on function objects and both bound and unbound methods.

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.