Jack Jansen [Thu, 29 Mar 2001 13:53:19 +0000 (13:53 +0000)]
On OSX always copy PythonCore. It turns out an orphaned alias in /Library/CFMSupport (happens when you remove python and aliased pythoncore) wreaks havoc with the system.
Jack Jansen [Thu, 29 Mar 2001 13:52:16 +0000 (13:52 +0000)]
Changed some of the dialogs to be a little clearer.
Tim Peters [Thu, 29 Mar 2001 04:36:09 +0000 (04:36 +0000)]
Whitespace normalization.
Tim Peters [Thu, 29 Mar 2001 03:34:43 +0000 (03:34 +0000)]
Initialize new save_warnings_filters data member in ModifiedInterpreter.__init__.
Was getting mystery
ModifiedInterpreter instance has no attribute 'save_warnings_filters'
errors at odd times (for sure in a fresh IDLE, fresh file, then Run Script).
Fred Drake [Wed, 28 Mar 2001 21:15:41 +0000 (21:15 +0000)]
Added example use of weak references, contributed by Tim Peters.
Fred Drake [Wed, 28 Mar 2001 21:14:32 +0000 (21:14 +0000)]
Added documentation for PyObject_IsInstance() and PyObject_IsSubclass().
Jack Jansen [Wed, 28 Mar 2001 20:33:24 +0000 (20:33 +0000)]
Don't show finder-delay-warning on OSX. Untested.
Fred Drake [Wed, 28 Mar 2001 16:55:53 +0000 (16:55 +0000)]
Typo: "ariables" --> "variables"
This fixes SF bug #411118.
Fred Drake [Wed, 28 Mar 2001 16:51:20 +0000 (16:51 +0000)]
Fix a number of small issues; this closes SF bug #411063.
Guido van Rossum [Wed, 28 Mar 2001 01:14:56 +0000 (01:14 +0000)]
Based on info from Jens@digicool.com, add 'darwin1' to the list of
BSD-style OS'es. Makes sense, really.
Jack Jansen [Tue, 27 Mar 2001 21:38:55 +0000 (21:38 +0000)]
Updated for 2.1b2 distribution.
Martin v. Löwis [Tue, 27 Mar 2001 21:38:15 +0000 (21:38 +0000)]
Arghh. Fix typo.
Jack Jansen [Tue, 27 Mar 2001 21:37:06 +0000 (21:37 +0000)]
Added a note about BBPy.lm.
Jack Jansen [Tue, 27 Mar 2001 21:34:31 +0000 (21:34 +0000)]
Added a note about the new (since 2.0) OSA architecture.
Jack Jansen [Tue, 27 Mar 2001 21:32:34 +0000 (21:32 +0000)]
Oops, ISO translation was off. Fixed.
Guido van Rossum [Tue, 27 Mar 2001 17:04:37 +0000 (17:04 +0000)]
Add Robin Thomas (author of the slice() comparability hack).
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.
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.
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.
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.
Guido van Rossum [Mon, 26 Mar 2001 17:41:35 +0000 (17:41 +0000)]
Turn SyntasWarning into SyntaxError for all code entered
interactively.
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.
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.
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.
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.
Andrew M. Kuchling [Mon, 26 Mar 2001 13:34:53 +0000 (13:34 +0000)]
Note missing explanation
Jack Jansen [Mon, 26 Mar 2001 08:37:28 +0000 (08:37 +0000)]
Fixed some access paths.
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.
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).
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...)
cvs2svn [Fri, 23 Mar 2001 20:24:07 +0000 (20:24 +0000)]
This commit was manufactured by cvs2svn to create tag 'r21b2'.
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.
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.
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().
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.
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.
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.
Fred Drake [Fri, 23 Mar 2001 17:51:37 +0000 (17:51 +0000)]
Update Mac OS X platform notes.
This closes SF bug #406191.
Fred Drake [Fri, 23 Mar 2001 17:42:09 +0000 (17:42 +0000)]
Strengthen the constraints on calling PyObject_GC_Fini().
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.
Fred Drake [Fri, 23 Mar 2001 17:34:02 +0000 (17:34 +0000)]
call_sys_exitfunc(): Remove unused variable f.
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)
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.
Fred Drake [Fri, 23 Mar 2001 17:09:02 +0000 (17:09 +0000)]
Remove the annoying __version__ definitions.
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".
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".
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.
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".
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.
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.
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!
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.
Fred Drake [Fri, 23 Mar 2001 16:21:15 +0000 (16:21 +0000)]
Include the futures appendix.
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.
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.
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
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.
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__).
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.
Jeremy Hylton [Fri, 23 Mar 2001 14:34:06 +0000 (14:34 +0000)]
Note that assignments to __debug__ are illegal
Jeremy Hylton [Fri, 23 Mar 2001 14:18:27 +0000 (14:18 +0000)]
News items for my recent checkins
Ka-Ping Yee [Fri, 23 Mar 2001 14:10:39 +0000 (14:10 +0000)]
Script for starting pydoc with a GUI in Windows.
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.
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.
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.
Ka-Ping Yee [Fri, 23 Mar 2001 13:35:45 +0000 (13:35 +0000)]
Small formatting improvements.
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.
Fred Drake [Fri, 23 Mar 2001 12:12:05 +0000 (12:12 +0000)]
Bump version number.
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).
Ka-Ping Yee [Fri, 23 Mar 2001 05:22:49 +0000 (05:22 +0000)]
Provide a StopTokenizing exception for conveniently exiting the loop.
Ka-Ping Yee [Fri, 23 Mar 2001 05:22:12 +0000 (05:22 +0000)]
Explain the difference between NL and NEWLINE.
Ka-Ping Yee [Fri, 23 Mar 2001 05:17:41 +0000 (05:17 +0000)]
Give a slightly better explanation of excepthook.
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.
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.
Fred Drake [Fri, 23 Mar 2001 04:36:02 +0000 (04:36 +0000)]
Update to the most recent weakref changes.
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.
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.
Fred Drake [Fri, 23 Mar 2001 04:19:27 +0000 (04:19 +0000)]
Add support for weak references to the function and method types.
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.
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!)
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
Tim Peters [Fri, 23 Mar 2001 03:43:35 +0000 (03:43 +0000)]
Add Jeremy's compiler to the Windows install.
Andrew M. Kuchling [Fri, 23 Mar 2001 03:29:08 +0000 (03:29 +0000)]
Add section for PEP 241
Add PyUnit and 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__.
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.
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...
Jeremy Hylton [Thu, 22 Mar 2001 23:32:22 +0000 (23:32 +0000)]
First cut at a high-level symbol table interface
Fredrik Lundh [Thu, 22 Mar 2001 23:29:04 +0000 (23:29 +0000)]
SRE 2.1b2: forgot to update one output file (sorry, Fred!)
Jeremy Hylton [Thu, 22 Mar 2001 23:10:44 +0000 (23:10 +0000)]
add DEF_BOUND constant
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".)
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".
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.
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().]
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).
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.
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.
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.)
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.
Fred Drake [Thu, 22 Mar 2001 17:01:43 +0000 (17:01 +0000)]
Bump the version number.
Fred Drake [Thu, 22 Mar 2001 17:00:05 +0000 (17:00 +0000)]
Update to the current state of the universe.