]> granicus.if.org Git - python/log
python
25 years agoSjoerd Mullender writes:
Guido van Rossum [Thu, 24 Jun 1999 15:27:36 +0000 (15:27 +0000)]
Sjoerd Mullender writes:

Urllib makes the URL of the opened file available through the geturl
method of the returned object.  For local files, this consists of
file: plus the name of the file.  This results in an invalid URL if
the file name was relative.  This patch fixes this so that the
returned URL is just a relative URL in that case.  When the file name
is absolute, the URL returned is of the form file:///absolute/path.

[I guess that a URL of the form "file:foo.html" is illegal...  GvR]

25 years agoSmall patch by Tim Peters - it was using self.maxlist when it should
Guido van Rossum [Wed, 23 Jun 1999 23:27:05 +0000 (23:27 +0000)]
Small patch by Tim Peters - it was using self.maxlist when it should
be using self.maxdict.

25 years agoSimplified version of a patch by Chih-Hao Huang, who wrote:
Guido van Rossum [Wed, 23 Jun 1999 21:37:57 +0000 (21:37 +0000)]
Simplified version of a patch by Chih-Hao Huang, who wrote:

"""
When there are additional Setup files, specified by -e option of freeze,
checkextenstions.py assumes that *.o, *.a, -Lpath, and -Rpath are all
relative to where the Setup file is. select() inserts the path to the
Setup file to make them absolute. However, the assumption is not true.
There are cases that absolute paths are specified for them. The inserted
prefix, by select(), results in error.

The following fix check for absolute paths. The assumption is: an
absolute path begins with either '/' or '$'. In the latter case, it is
from the environmental variable. (Variables defined locally in the Setup
file have already been handled by expandvars())
"""

My version of the patch has been verified by Charles Waldman (a
colleague of Chih-Hao).

25 years agoRemoved tty module entry.
Fred Drake [Wed, 23 Jun 1999 17:31:59 +0000 (17:31 +0000)]
Removed tty module entry.

25 years agoAdd entries for tty module.
Fred Drake [Wed, 23 Jun 1999 17:29:02 +0000 (17:29 +0000)]
Add entries for tty module.

25 years agoUpdates from Moshe, again edited by me. Describe the parameters to
Fred Drake [Wed, 23 Jun 1999 17:28:01 +0000 (17:28 +0000)]
Updates from Moshe, again edited by me.  Describe the parameters to
border() using a table instead of text for ease of comprehension.

25 years agoAdded "See Also" section for termios module.
Fred Drake [Wed, 23 Jun 1999 15:12:09 +0000 (15:12 +0000)]
Added "See Also" section for termios module.

25 years agoVarious updates.
Fred Drake [Wed, 23 Jun 1999 14:56:13 +0000 (14:56 +0000)]
Various updates.

25 years agotty module documentation from Moshe, with some editing and an added
Fred Drake [Wed, 23 Jun 1999 14:30:19 +0000 (14:30 +0000)]
tty module documentation from Moshe, with some editing and an added
"See also" section.

25 years agoAdded more sections...
Fred Drake [Wed, 23 Jun 1999 13:34:22 +0000 (13:34 +0000)]
Added more sections...

25 years agoTwo more from Moshe!
Fred Drake [Wed, 23 Jun 1999 13:33:40 +0000 (13:33 +0000)]
Two more from Moshe!

25 years agoDrag manager constants.
Jack Jansen [Wed, 23 Jun 1999 09:09:46 +0000 (09:09 +0000)]
Drag manager constants.

25 years agoMake the mode parameter to open() default in the same way as for wave.open().
Fred Drake [Tue, 22 Jun 1999 21:23:23 +0000 (21:23 +0000)]
Make the mode parameter to open() default in the same way as for wave.open().

25 years agoAdded entry for the chunk module.
Fred Drake [Tue, 22 Jun 1999 18:50:06 +0000 (18:50 +0000)]
Added entry for the chunk module.

25 years agoNew section from Moshe Zadka, modified by FLD for markup, some
Fred Drake [Tue, 22 Jun 1999 18:49:20 +0000 (18:49 +0000)]
New section from Moshe Zadka, modified by FLD for markup, some
additional content.

25 years agomod from Joe Strout: when quitting, catch errors in window.close() methods and ignore...
Just van Rossum [Tue, 22 Jun 1999 18:37:35 +0000 (18:37 +0000)]
mod from Joe Strout: when quitting, catch errors in window.close() methods and ignore them. Otherwise one can never quit.

25 years agoPatch by Tim Peters:
Guido van Rossum [Tue, 22 Jun 1999 14:47:32 +0000 (14:47 +0000)]
Patch by Tim Peters:

Introduce a new builtin exception, UnboundLocalError, raised when ceval.c
tries to retrieve or delete a local name that isn't bound to a value.
Currently raises NameError, which makes this behavior a FAQ since the same
error is raised for "missing" global names too:  when the user has a global
of the same name as the unbound local, NameError makes no sense to them.
Even in the absence of shadowing, knowing whether a bogus name is local or
global is a real aid to quick understanding.

Example:

D:\src\PCbuild>type local.py
x = 42

def f():
    print x
    x = 13
    return x

f()

D:\src\PCbuild>python local.py
Traceback (innermost last):
  File "local.py", line 8, in ?
    f()
  File "local.py", line 4, in f
    print x
UnboundLocalError: x

D:\src\PCbuild>

Note that UnboundLocalError is a subclass of NameError, for compatibility
with existing class-exception code that may be trying to catch this as a
NameError.  Unfortunately, I see no way to make this wholly compatible
with -X (see comments in bltinmodule.c):  under -X, [UnboundLocalError
is an alias for NameError --GvR].

[The ceval.c patch differs slightly from the second version that Tim
submitted; I decided not to raise UnboundLocalError for DELETE_NAME,
only for DELETE_LOCAL.  DELETE_NAME is only generated at the module
level, and since at that level a NameError is raised for referencing
an undefined name, it should also be raised for deleting one.]

25 years agoPatch submitted by Toby Dickenson and approved by Mark Hammond.
Guido van Rossum [Mon, 21 Jun 1999 22:36:53 +0000 (22:36 +0000)]
Patch submitted by Toby Dickenson and approved by Mark Hammond.
Toby writes:

winmakemakefile.py tries to allow for spaces in the python install
path, by adding quotes around the appropriate filenames. It doesn't
quite get this correct; sometimes the quotes end up in the middle of
the path.

Microsoft's NMAKE version 6.0 is happy with this (!!!!)  unless there
is also a space in the name. I guess most users of freeze on windows
do not use the same path as the binary distribution.

I've tested the following changes on systems with and without a space
in the path.

25 years agoAdded some "See also" references to htmllib docs.
Fred Drake [Mon, 21 Jun 1999 21:20:56 +0000 (21:20 +0000)]
Added some "See also" references to htmllib docs.

Documented htmlentitydefs.

25 years agoAdded entry for curses module.
Fred Drake [Mon, 21 Jun 1999 21:14:30 +0000 (21:14 +0000)]
Added entry for curses module.

25 years agoAdded entries for four of Moshe's documentation sections.
Fred Drake [Mon, 21 Jun 1999 21:13:50 +0000 (21:13 +0000)]
Added entries for four of Moshe's documentation sections.

25 years agoPreliminary documentation for the curses module by Moshe Zadka, with
Fred Drake [Mon, 21 Jun 1999 21:13:09 +0000 (21:13 +0000)]
Preliminary documentation for the curses module by Moshe Zadka, with
lots of markup fixes and some English nits fixed.

Still needs real review.  Some of the function signatures used in this
module are really bad!  (Two leading optional parameters? Ugh!)

25 years agoAdd warning FreeBSD users of a problem with curses and termcap,
Guido van Rossum [Mon, 21 Jun 1999 20:51:46 +0000 (20:51 +0000)]
Add warning FreeBSD users of a problem with curses and termcap,
submitted by Klaus-Juergen Wolf.

25 years agoFix a markup error.
Fred Drake [Mon, 21 Jun 1999 18:36:09 +0000 (18:36 +0000)]
Fix a markup error.

25 years agoThree more modules documented by Moshe!
Fred Drake [Mon, 21 Jun 1999 18:25:49 +0000 (18:25 +0000)]
Three more modules documented by Moshe!

25 years agoInitial minimal test program: print information on anything dropped onto Python
Jack Jansen [Mon, 21 Jun 1999 16:19:43 +0000 (16:19 +0000)]
Initial minimal test program: print information on anything dropped onto Python
window.

25 years agoPrint something on stderr in case of exceptions in callback routines.
Jack Jansen [Mon, 21 Jun 1999 16:18:51 +0000 (16:18 +0000)]
Print something on stderr in case of exceptions in callback routines.

25 years agoDrag manager interface (completely untested, so far)
Jack Jansen [Mon, 21 Jun 1999 15:14:26 +0000 (15:14 +0000)]
Drag manager interface (completely untested, so far)

25 years agoGreg McFarlane submitted two missing Text methods: mark_next() and
Guido van Rossum [Mon, 21 Jun 1999 14:13:30 +0000 (14:13 +0000)]
Greg McFarlane submitted two missing Text methods: mark_next() and
mark_previous().

25 years agoAdded a few minor comments, mostly to discourage documentation of
Fred Drake [Fri, 18 Jun 1999 19:58:59 +0000 (19:58 +0000)]
Added a few minor comments, mostly to discourage documentation of
really old modules that may become obsolete.

25 years agoAdded paragraph about potential re-initialization of extension
Fred Drake [Fri, 18 Jun 1999 19:17:28 +0000 (19:17 +0000)]
Added paragraph about potential re-initialization of extension
modules; responding to suggestion by Robin Boerdijk
<Robin.Boerdijk@nl.origin-it.com>.

25 years agoFurther clarfication of the system-dependence of the system() return
Fred Drake [Fri, 18 Jun 1999 19:11:25 +0000 (19:11 +0000)]
Further clarfication of the system-dependence of the system() return
value, based on comments from Tim Peters.

25 years agoRelocating file to Lib/lib-old.
Fred Drake [Fri, 18 Jun 1999 17:12:36 +0000 (17:12 +0000)]
Relocating file to Lib/lib-old.

25 years agoRe-categorize the dump module as obsolete.
Fred Drake [Fri, 18 Jun 1999 17:12:15 +0000 (17:12 +0000)]
Re-categorize the dump module as obsolete.

25 years agofpformat has been documented for at least a week now!
Fred Drake [Fri, 18 Jun 1999 15:21:25 +0000 (15:21 +0000)]
fpformat has been documented for at least a week now!

25 years agoCRITICAL PATCH!
Guido van Rossum [Fri, 18 Jun 1999 14:22:24 +0000 (14:22 +0000)]
CRITICAL PATCH!

We occasionally received reports from people getting "invalid tstate"
crashes (this is a fatal error in PyThreadState_Delete()).  Finally
several people were able to reproduce it reliably and Tim Peters
discovered that there is a race condition when multiple threads are
calling this function without holding the global interpreter lock (the
function may be called without holding that).

Solved the race condition by adding a lock around the mutating uses of
interp->tstate_head.  Tim and Jonathan Giddy have run tests that make
it likely that this fixes the crashes -- although Tim hasn't heard
from the person who reported the original problem.

25 years ago# Darn! Local variable l declared but not used in abstract_issubclass().
Guido van Rossum [Thu, 17 Jun 1999 19:12:39 +0000 (19:12 +0000)]
# Darn!  Local variable l declared but not used in abstract_issubclass().

25 years agoSmall markup & usage adjustments.
Fred Drake [Thu, 17 Jun 1999 18:58:02 +0000 (18:58 +0000)]
Small markup & usage adjustments.

25 years agoWhen looking for things that might be modules, include *module.c from
Fred Drake [Thu, 17 Jun 1999 18:49:18 +0000 (18:49 +0000)]
When looking for things that might be modules, include *module.c from
the Modules/ directory.  Most of the remaining undocumented modules
seem to be living there.

25 years agoPatch suggested (and partially provided) by Lars Damerow: instead of
Guido van Rossum [Thu, 17 Jun 1999 18:41:42 +0000 (18:41 +0000)]
Patch suggested (and partially provided) by Lars Damerow: instead of
always lowercasing the option name, call a method optionxform() which
can be overridden.  Also make the regexps SECTRE and OPTRE non-private
variables so they can also be overridden.

25 years agoCorrection: the parameters of new.instance() are type-checked.
Fred Drake [Thu, 17 Jun 1999 18:15:07 +0000 (18:15 +0000)]
Correction: the parameters of new.instance() are type-checked.

Edited several of the descriptions for English usage and more
consistent style.

25 years agoUpdated version from Moshe, with a re-written warning about the
Fred Drake [Thu, 17 Jun 1999 17:40:52 +0000 (17:40 +0000)]
Updated version from Moshe, with a re-written warning about the
side-effect of cmpcache.cmp() using statcache.stat() internally.

25 years agoMinor markup nits.
Fred Drake [Thu, 17 Jun 1999 17:09:23 +0000 (17:09 +0000)]
Minor markup nits.

25 years agoSmall English usage nits.
Fred Drake [Thu, 17 Jun 1999 16:38:18 +0000 (16:38 +0000)]
Small English usage nits.

25 years agoSmall markup and English usage nits.
Fred Drake [Thu, 17 Jun 1999 16:10:39 +0000 (16:10 +0000)]
Small markup and English usage nits.

25 years agoIn collect_children(), put a try-except around os.waitpid() because it
Guido van Rossum [Thu, 17 Jun 1999 15:41:33 +0000 (15:41 +0000)]
In collect_children(), put a try-except around os.waitpid() because it
may raise an exception (when there are no children).  Reported by
Andy Dustman.

25 years agoAdd reminder that wave.open() documentation should be updated for the
Fred Drake [Thu, 17 Jun 1999 15:20:44 +0000 (15:20 +0000)]
Add reminder that wave.open() documentation should be updated for the
next Python release.

25 years agoopen(): Make the mode parameter optional; if omitted or None, use the
Fred Drake [Thu, 17 Jun 1999 15:18:47 +0000 (15:18 +0000)]
open():  Make the mode parameter optional; if omitted or None, use the
 mode attribute of the file object (if it has one), otherwise
 use 'rb'.

 The documentation should still show this as required until
 there's a new release.

25 years agoAdd entries due to additional sections from Moshe.
Fred Drake [Thu, 17 Jun 1999 15:12:50 +0000 (15:12 +0000)]
Add entries due to additional sections from Moshe.

25 years agoAdd/remove entries due to additional sections from Moshe.
Fred Drake [Thu, 17 Jun 1999 15:12:16 +0000 (15:12 +0000)]
Add/remove entries due to additional sections from Moshe.

25 years agoNew module documentation sections from Moshe Zadka <moshez@math.huji.ac.il>!
Fred Drake [Thu, 17 Jun 1999 15:11:35 +0000 (15:11 +0000)]
New module documentation sections from Moshe Zadka <moshez@math.huji.ac.il>!

25 years agoPatch by Jim Fulton (code style tweaked a bit) to support
Guido van Rossum [Wed, 16 Jun 1999 17:28:37 +0000 (17:28 +0000)]
Patch by Jim Fulton (code style tweaked a bit) to support
ExtensionClasses in isinstance() and issubclass().

  - abstract instance and class protocols are used *only* in those
    cases that would generate errors before the patch.  That is, there's
    no penalty for the normal case.

  - instance protocol: an object smells like an instance if it
    has a __class__ attribute that smells like a class.

  - class protocol: an object smells like a class if it has a
    __bases__ attribute that is a tuple with elements that
    smell like classes (although not all elements may actually get
    sniffed ;).

25 years agoSuppress warning print statements about modules not found, they are
Guido van Rossum [Wed, 16 Jun 1999 12:28:12 +0000 (12:28 +0000)]
Suppress warning print statements about modules not found, they are
confusing to end users of IDEs.

25 years agoSjoerd Mullender:
Guido van Rossum [Wed, 16 Jun 1999 12:25:34 +0000 (12:25 +0000)]
Sjoerd Mullender:

Added support for unseekable files.

(I use unqualified excepts since we don't know why the seek/tell might
fail.  In my case it was because of an AttributeError.)

25 years agoLaurence Tratt notes that the accept() call in get_request() can fail,
Guido van Rossum [Tue, 15 Jun 1999 22:25:32 +0000 (22:25 +0000)]
Laurence Tratt notes that the accept() call in get_request() can fail,
and suggests putting a try/except around the get_request() call in
handle_request().  (All in class TCPServer.)

25 years agoAdded note to __not__() description that this operation is defined
Fred Drake [Tue, 15 Jun 1999 20:56:40 +0000 (20:56 +0000)]
Added note to __not__() description that this operation is defined
only by the interpreter core and is not overridable by objects.

Based on comment from David Ascher on the list.

25 years agoAdd the test case provided by Barry Scott for his patch.
Guido van Rossum [Tue, 15 Jun 1999 18:56:46 +0000 (18:56 +0000)]
Add the test case provided by Barry Scott for his patch.

25 years agoBarry Scott writes:
Guido van Rossum [Tue, 15 Jun 1999 18:06:20 +0000 (18:06 +0000)]
Barry Scott writes:

Problem: rfc822.py in 1.5.2 final loses the quotes around
quoted local-part names.

The fix is to preserve the quotes around a local-part
name in an address.

Test:

import rfc822
a = rfc822.AddrlistClass('(Comment stuff) "Quoted
name"@somewhere.com')
a.getaddrlist()

The correct result is:

[('Comment stuff', '"Quoted name"@somewhere.com')]

25 years agoSeveral new index entries to make find this easier.
Fred Drake [Tue, 15 Jun 1999 17:30:59 +0000 (17:30 +0000)]
Several new index entries to make find this easier.

Noted that name=value is allowed in addition to name: value.

25 years agoAdded a couple of endswith test cases for bugs reported by Timbot.
Barry Warsaw [Tue, 15 Jun 1999 16:49:11 +0000 (16:49 +0000)]
Added a couple of endswith test cases for bugs reported by Timbot.

Also added a short circuit for the regression test suite since CVS
insisted on putting this file in the main branch. :(

25 years agoNew version from Jim:
Guido van Rossum [Tue, 15 Jun 1999 14:36:59 +0000 (14:36 +0000)]
New version from Jim:

- Don't call Py_FatalError() when initialization fails.

- Fix bogus use of return value from PyRun_String().

- Fix misc. compiler errors on some platforms.

25 years agoNew version from Jim: don't call Py_FatalError() when initialization fails.
Guido van Rossum [Tue, 15 Jun 1999 14:35:48 +0000 (14:35 +0000)]
New version from Jim: don't call Py_FatalError() when initialization fails.

25 years agoAdded entries for new sections from Moshe.
Fred Drake [Mon, 14 Jun 1999 19:52:10 +0000 (19:52 +0000)]
Added entries for new sections from Moshe.

25 years agoMisc. changes related to the new sections.
Fred Drake [Mon, 14 Jun 1999 19:49:50 +0000 (19:49 +0000)]
Misc. changes related to the new sections.

25 years agoNew sections from Moshe Zadka <moshez@math.huji.ac.il>.
Fred Drake [Mon, 14 Jun 1999 19:47:47 +0000 (19:47 +0000)]
New sections from Moshe Zadka <moshez@math.huji.ac.il>.
These document CGIHTTPServer, SimpleHTTPServer, and linecache.

25 years agoAdded more tests of join
Barry Warsaw [Mon, 14 Jun 1999 18:38:42 +0000 (18:38 +0000)]
Added more tests of join

25 years agoMessage.getheaders(): If there are no matching headers, return an
Fred Drake [Mon, 14 Jun 1999 15:40:23 +0000 (15:40 +0000)]
Message.getheaders():  If there are no matching headers, return an
       empty list instead of None.  (Guido's request.)

25 years agoAdd entry for the fpformat module.
Fred Drake [Fri, 11 Jun 1999 18:36:42 +0000 (18:36 +0000)]
Add entry for the fpformat module.

25 years agoDocumentation for the fpformat module by Moshe Zadka
Fred Drake [Fri, 11 Jun 1999 18:31:00 +0000 (18:31 +0000)]
Documentation for the fpformat module by Moshe Zadka
<mzadka@geocities.com>.

25 years agoAdded 'ce' to the list of "registered" values for os.name.
Fred Drake [Fri, 11 Jun 1999 18:28:37 +0000 (18:28 +0000)]
Added 'ce' to the list of "registered" values for os.name.

Make references to the posix module hyperlinks.

25 years agoAfter more discussion with Jim, change the behavior so that only a
Guido van Rossum [Fri, 11 Jun 1999 18:26:09 +0000 (18:26 +0000)]
After more discussion with Jim, change the behavior so that only a
*missing* content-type at the outer level of a POST defaults to
urlencoded.  In all other circumstances, the default is read_singe().

25 years agoTwo extra startswith tests
Barry Warsaw [Fri, 11 Jun 1999 17:51:13 +0000 (17:51 +0000)]
Two extra startswith tests

25 years agoHarness can now test object methods directly, if they aren't available
Barry Warsaw [Fri, 11 Jun 1999 17:48:07 +0000 (17:48 +0000)]
Harness can now test object methods directly, if they aren't available
in the string module.

Add a bunch of new tests for extended startswith/endswith arguments.

25 years agoTim Peters smart.patch:
Guido van Rossum [Fri, 11 Jun 1999 15:03:00 +0000 (15:03 +0000)]
Tim Peters smart.patch:

EditorWindow.py:

+ Added get_tabwidth & set_tabwidth "virtual text" methods, that get/set the
widget's view of what a tab means.

+ Moved TK_TABWIDTH_DEFAULT here from AutoIndent.

+ Renamed Mark's get_selection_index to get_selection_indices (sorry, Mark,
but the name was plain wrong <wink>).

FormatParagraph.py:  renamed use of get_selection_index.

AutoIndent.py:

+ Moved TK_TABWIDTH_DEFAULT to EditorWindow.

+ Rewrote set_indentation_params to use new VTW get/set_tabwidth methods.

+ Changed smart_backspace_event to delete whitespace back to closest
preceding virtual tab stop or real character (note that this may require
inserting characters if backspacing over a tab!).

+ Nuked almost references to the selection tag, in favor of using
get_selection_indices.  The sole exception is in set_region, for which no
"set_selection" abstraction has yet been agreed upon.

+ Had too much fun using the spiffy new features of the format-paragraph
cmd.

25 years agoLast night's scribbles:
Fred Drake [Fri, 11 Jun 1999 14:25:45 +0000 (14:25 +0000)]
Last night's scribbles:

- Revise abstract based on Guido's comments from way back.
- Point out that LaTeX is a structured system & we're using it that
  way.
- Add a small section on marking up code examples.

25 years agoMark Hammond: patch for Windows/CE.
Guido van Rossum [Fri, 11 Jun 1999 01:37:27 +0000 (01:37 +0000)]
Mark Hammond: patch for Windows/CE.

25 years agoOutput for the regression test of the new string methods.
Barry Warsaw [Thu, 10 Jun 1999 22:53:23 +0000 (22:53 +0000)]
Output for the regression test of the new string methods.

25 years agoRegression test for the new string methods.
Barry Warsaw [Thu, 10 Jun 1999 22:53:10 +0000 (22:53 +0000)]
Regression test for the new string methods.

25 years agoSome clarifications on operations for mapping types, based on comments
Fred Drake [Thu, 10 Jun 1999 22:37:34 +0000 (22:37 +0000)]
Some clarifications on operations for mapping types, based on comments
from Gerry Weiner <gerry@ucar.edu>.

25 years agoAdjust indexing for __import__(); based on comments by Stefan Franke
Fred Drake [Thu, 10 Jun 1999 22:09:20 +0000 (22:09 +0000)]
Adjust indexing for __import__(); based on comments by Stefan Franke
<sfranke@cdc-group.com>.

25 years agoImprove index entry for "import"; responding to comments by Stefan
Fred Drake [Thu, 10 Jun 1999 22:08:16 +0000 (22:08 +0000)]
Improve index entry for "import"; responding to comments by Stefan
Franke <sfranke@cdc-group.com>.

25 years agoWork around latex2html problem; reported by Gerrit Holl
Fred Drake [Thu, 10 Jun 1999 21:23:31 +0000 (21:23 +0000)]
Work around latex2html problem; reported by Gerrit Holl
<gerrit.holl@pobox.com>.

25 years agoRelocating file to Lib/lib-old.
Fred Drake [Thu, 10 Jun 1999 21:18:02 +0000 (21:18 +0000)]
Relocating file to Lib/lib-old.

25 years agoDeclare the "util" module obsolete.
Fred Drake [Thu, 10 Jun 1999 21:17:11 +0000 (21:17 +0000)]
Declare the "util" module obsolete.

25 years agoAdded a few more bugs to the doc string; reformatted existing bugs.
Guido van Rossum [Thu, 10 Jun 1999 19:05:54 +0000 (19:05 +0000)]
Added a few more bugs to the doc string; reformatted existing bugs.

25 years agoCode by Mark Hammond to format paragraphs embedded in comments.
Guido van Rossum [Thu, 10 Jun 1999 17:48:02 +0000 (17:48 +0000)]
Code by Mark Hammond to format paragraphs embedded in comments.
Read the comments (which I reformatted using the new feature :-)
for some limitations.

25 years agoAdded abstraction get_selection_index() (Mark Hammond). Also
Guido van Rossum [Thu, 10 Jun 1999 17:43:17 +0000 (17:43 +0000)]
Added abstraction get_selection_index() (Mark Hammond).  Also
reformatted some comment blocks to show off a cool feature I'm about
to check in next.

25 years agoFixed typo reported by Bennett Benson
Fred Drake [Thu, 10 Jun 1999 15:30:21 +0000 (15:30 +0000)]
Fixed typo reported by Bennett Benson
<BennettBenson@mn.mediaone.net>.

25 years agoAdapt to the new pyclbr's support of listing top-level functions. If
Guido van Rossum [Thu, 10 Jun 1999 15:19:14 +0000 (15:19 +0000)]
Adapt to the new pyclbr's support of listing top-level functions.  If
this functionality is not present (e.g. when used with a vintage
Python 1.5.2 installation) top-level functions are not listed.

(Hmm...  Any distribution of IDLE 0.5 should probably include a copy
of the new pyclbr.py!)

25 years agoAt David Ascher's request, clarify that os.system() always returns 0
Fred Drake [Thu, 10 Jun 1999 15:07:05 +0000 (15:07 +0000)]
At David Ascher's request, clarify that os.system() always returns 0
on Win95 & Win98.

25 years agoFix typo reported by Robert Kern <kernr@ncifcrf.gov>.
Fred Drake [Thu, 10 Jun 1999 15:03:07 +0000 (15:03 +0000)]
Fix typo reported by Robert Kern <kernr@ncifcrf.gov>.

25 years agoFix off-by-one error in Tim's recent change to comment_region(): the
Guido van Rossum [Thu, 10 Jun 1999 14:44:48 +0000 (14:44 +0000)]
Fix off-by-one error in Tim's recent change to comment_region(): the
list of lines returned by get_region() contains an empty line at the
end representing the start of the next line, and this shouldn't be
commented out!

25 years agoCo-production with Tim Peters, implementing a suggestion by Mark
Guido van Rossum [Thu, 10 Jun 1999 14:39:39 +0000 (14:39 +0000)]
Co-production with Tim Peters, implementing a suggestion by Mark
Hammond: record top-level functions (as Function instances, a simple
subclass of Class).  You must use the new interface readmodule_ex() to
get these, though.

25 years agoMark Hammond writes: Here is another change that allows it to work for
Guido van Rossum [Thu, 10 Jun 1999 14:20:26 +0000 (14:20 +0000)]
Mark Hammond writes: Here is another change that allows it to work for
class creation - tries to locate an __init__ function.  Also updated
the test code to reflect your new "***" change.

25 years agoMark Hammond writes: Tim's suggestion of copying the font for the
Guido van Rossum [Thu, 10 Jun 1999 14:19:46 +0000 (14:19 +0000)]
Mark Hammond writes: Tim's suggestion of copying the font for the
CallTipWindow from the text control makes sense, and actually makes
the control look better IMO.

25 years agoPatch by Jim Fulton to document the new parse_qls().
Guido van Rossum [Thu, 10 Jun 1999 03:11:41 +0000 (03:11 +0000)]
Patch by Jim Fulton to document the new parse_qls().

25 years agoAppend "..." if the appropriate flag (for varargs) in co_flags is set.
Guido van Rossum [Wed, 9 Jun 1999 20:34:57 +0000 (20:34 +0000)]
Append "..." if the appropriate flag (for varargs) in co_flags is set.
Ditto "***" for kwargs.

25 years agoFix bug discovered by Klaus-Juergen Wolf -- it runs into infinite recursion!
Guido van Rossum [Wed, 9 Jun 1999 19:07:22 +0000 (19:07 +0000)]
Fix bug discovered by Klaus-Juergen Wolf -- it runs into infinite recursion!

25 years agoFix by Sjoerd for a package related bug: If you have a non-empy
Guido van Rossum [Wed, 9 Jun 1999 15:49:09 +0000 (15:49 +0000)]
Fix by Sjoerd for a package related bug: If you have a non-empy
__init__.py it isn't read.  (Sjoerd just came up with this, so it's
not heavily tested.)

Other (yet unsolved) package problems noted by Sjoerd:

- If you have a package and a module inside that or another package
  with the same name, module caching doesn't work properly since the
  key is the base name of the module/package.
- The only entry that is returned when you readmodule a package is a
  __path__ whose value is a list which confuses certain class browsers
  that I wrote.  (Hm, this could be construed as a feature.)

25 years agoSet the max recursion limit to 5000 -- rather conservative (this uses
Guido van Rossum [Wed, 9 Jun 1999 15:36:37 +0000 (15:36 +0000)]
Set the max recursion limit to 5000 -- rather conservative (this uses
0.5 MB of the 1 MB available by default for stack on Win32 platforms).