]> granicus.if.org Git - python/log
python
25 years agoFix a few markup nits, improve some index entries.
Fred Drake [Fri, 2 Jul 1999 14:25:37 +0000 (14:25 +0000)]
Fix a few markup nits, improve some index entries.

25 years agoNew documentation from Chris Petrilli <petrilli@amber.org>.
Fred Drake [Fri, 2 Jul 1999 14:25:03 +0000 (14:25 +0000)]
New documentation from Chris Petrilli <petrilli@amber.org>.

25 years agoFor spawn*(), point to the magic constants; some readers have a hard
Fred Drake [Fri, 2 Jul 1999 14:01:03 +0000 (14:01 +0000)]
For spawn*(), point to the magic constants; some readers have a hard
time finding the bindings.

25 years agoMilton L. Hankin reports that on Windows it is possible to have two
Guido van Rossum [Fri, 2 Jul 1999 02:54:02 +0000 (02:54 +0000)]
Milton L. Hankin reports that on Windows it is possible to have two
different values in the environ dict with the same key (although he
couldn't explain exactly how this came to be).  Since getenv() uses
the first one, Python should do too. (Some doubts about case
sensitivity, but for now this at least seems the right thing to do
regardless of platform.)

25 years agoSjoerd Mullender:
Guido van Rossum [Thu, 1 Jul 1999 23:20:56 +0000 (23:20 +0000)]
Sjoerd Mullender:

In splithost, accept empty host part in URLs.  This is required for
file URLs that can have an empty host part.  For such URLs, we should
not return the initial 2 slashes as part of the file name.

25 years agoRemoved entries for several modules which have been documented.
Fred Drake [Thu, 1 Jul 1999 20:42:57 +0000 (20:42 +0000)]
Removed entries for several modules which have been documented.

Updated comments on several remaining modules.

25 years agoDocumentation for dl module from Moshe.
Fred Drake [Thu, 1 Jul 1999 20:40:21 +0000 (20:40 +0000)]
Documentation for dl module from Moshe.

25 years agoAdded entry for dl module.
Fred Drake [Thu, 1 Jul 1999 20:39:59 +0000 (20:39 +0000)]
Added entry for dl module.

25 years agoRelocating file to Lib/lib-old.
Fred Drake [Thu, 1 Jul 1999 16:59:29 +0000 (16:59 +0000)]
Relocating file to Lib/lib-old.

25 years agoRemove extraneous "contains" -- pointed out by Daniel Barclay
Fred Drake [Thu, 1 Jul 1999 16:31:03 +0000 (16:31 +0000)]
Remove extraneous "contains" -- pointed out by Daniel Barclay
<danielb@digitalfocus.com>.

Added credit to Martin von Loewis for creating the module and
documentation.

25 years agoPer Frank Stajano's suggestion, state explicitly that the functions
Fred Drake [Thu, 1 Jul 1999 13:54:40 +0000 (13:54 +0000)]
Per Frank Stajano's suggestion, state explicitly that the functions
described in the sub-sections are directly available at the module
level.  He found this confusing.

25 years agoMake the reference to the os module in the module synopsis (for the
Fred Drake [Thu, 1 Jul 1999 13:53:32 +0000 (13:53 +0000)]
Make the reference to the os module in the module synopsis (for the
table at the front of the chapter) a hyperlink.

25 years agoDon't set type of application, it's taken care of elsewhere -- jvr
Just van Rossum [Wed, 30 Jun 1999 19:31:14 +0000 (19:31 +0000)]
Don't set type of application, it's taken care of elsewhere -- jvr

25 years agoMade several grammatical corrections based on comments from Daniel
Fred Drake [Wed, 30 Jun 1999 15:32:50 +0000 (15:32 +0000)]
Made several grammatical corrections based on comments from Daniel
Barcla <danielb@digitalfocus.com>.

Also added example of what happens when a parameter is set both
positionally and by a keyword (one of Daniels suggestions related to
that paragraph).

25 years agoFor "Matching vs. Searching", remove comment that the section is
Fred Drake [Tue, 29 Jun 1999 21:21:19 +0000 (21:21 +0000)]
For "Matching vs. Searching", remove comment that the section is
incomplete; I don't remember what else I thought I was going to put
in, but it looks o.k. to me know.

25 years agoAdded some reminders.
Fred Drake [Tue, 29 Jun 1999 18:54:03 +0000 (18:54 +0000)]
Added some reminders.

25 years agoMove the setting for secnumdepth to the document classes; make the numbering
Fred Drake [Tue, 29 Jun 1999 18:15:59 +0000 (18:15 +0000)]
Move the setting for secnumdepth to the document classes; make the numbering
for the manual class go one deeper than it previously did (\subsection
entries will now be numbered); no change for howto documents.

This makes it easier to refer precisely to smaller sections using \ref.

25 years agoAdded some minor prose before the descriptions of the data attributes
Fred Drake [Tue, 29 Jun 1999 18:13:37 +0000 (18:13 +0000)]
Added some minor prose before the descriptions of the data attributes
to make it clear that these are instance attributes, not module data.

25 years agoAdded entry for pty module.
Fred Drake [Tue, 29 Jun 1999 18:12:22 +0000 (18:12 +0000)]
Added entry for pty module.

25 years agopty documentation from Moshe; with small edits.
Fred Drake [Tue, 29 Jun 1999 18:11:22 +0000 (18:11 +0000)]
pty documentation from Moshe; with small edits.

25 years agoImprove description of the example.
Fred Drake [Tue, 29 Jun 1999 17:08:41 +0000 (17:08 +0000)]
Improve description of the example.

25 years agoUsage nit: a bunch of "nor"s should have been a single "or".
Fred Drake [Tue, 29 Jun 1999 16:02:12 +0000 (16:02 +0000)]
Usage nit: a bunch of "nor"s should have been a single "or".

Make reference to the copy_reg module a hyperlink.

25 years agoMinor wording change in section title.
Fred Drake [Tue, 29 Jun 1999 16:00:22 +0000 (16:00 +0000)]
Minor wording change in section title.

25 years agobyteswap() method: Tell *what* exception gets raised when the type
Fred Drake [Tue, 29 Jun 1999 15:58:00 +0000 (15:58 +0000)]
byteswap() method:  Tell *what* exception gets raised when the type
    cannot be byteswapped.

25 years agoRemove unnecessary comma.
Fred Drake [Tue, 29 Jun 1999 15:53:52 +0000 (15:53 +0000)]
Remove unnecessary comma.

25 years agoDefine NotANumber as a subclass of ValueError when using class-based
Fred Drake [Tue, 29 Jun 1999 15:49:35 +0000 (15:49 +0000)]
Define NotANumber as a subclass of ValueError when using class-based
exceptions.

When raising NotANumber, pass the string that failed as the exception
value.

25 years agoComment out XXX comment; this needn't appear in the formatted
Fred Drake [Tue, 29 Jun 1999 15:45:09 +0000 (15:45 +0000)]
Comment out XXX comment; this needn't appear in the formatted
versions.  XXX comments only need to be grep-able.

25 years agoAdd note about not being able to use this module with modules not
Fred Drake [Tue, 29 Jun 1999 15:43:02 +0000 (15:43 +0000)]
Add note about not being able to use this module with modules not
implemented in Python.

25 years agoMoshe: Remove extraneous "and".
Fred Drake [Tue, 29 Jun 1999 14:57:12 +0000 (14:57 +0000)]
Moshe:  Remove extraneous "and".

25 years agoAdded entries for mutex and nis modules.
Fred Drake [Sun, 27 Jun 1999 15:02:37 +0000 (15:02 +0000)]
Added entries for mutex and nis modules.

25 years agoNIS documentation from Moshe.
Fred Drake [Sun, 27 Jun 1999 15:01:08 +0000 (15:01 +0000)]
NIS documentation from Moshe.

25 years agoMutex documentation from Moshe.
Fred Drake [Sun, 27 Jun 1999 15:00:41 +0000 (15:00 +0000)]
Mutex documentation from Moshe.

25 years agoSeparate documentation of SUNAUDIODEV from sunaudiodev; this mirrors
Fred Drake [Sun, 27 Jun 1999 14:53:11 +0000 (14:53 +0000)]
Separate documentation of SUNAUDIODEV from sunaudiodev; this mirrors
similar constructs elsewhere (al/AL, gl/GL/DEVICE).

25 years agoFix some typos.
Fred Drake [Fri, 25 Jun 1999 19:13:36 +0000 (19:13 +0000)]
Fix some typos.

Add an index entry.

25 years agoAdd entries for the sched module.
Fred Drake [Fri, 25 Jun 1999 18:54:30 +0000 (18:54 +0000)]
Add entries for the sched module.

25 years agoWhile we're at it, convert to docstrings and set the indentation level
Fred Drake [Fri, 25 Jun 1999 18:53:23 +0000 (18:53 +0000)]
While we're at it, convert to docstrings and set the indentation level
to 4.

25 years agoMoshe's section on the sched module, with edits.
Fred Drake [Fri, 25 Jun 1999 18:52:44 +0000 (18:52 +0000)]
Moshe's section on the sched module, with edits.

25 years agoUpdate to Sjoerd's documentation of the chunk module, with some
Fred Drake [Fri, 25 Jun 1999 17:52:17 +0000 (17:52 +0000)]
Update to Sjoerd's documentation of the chunk module, with some
additions from Moshe's version.  Used my table for describing the
chunk format, and added some markup and index entries.

25 years agoClose debugger when closing. This may break a cycle.
Guido van Rossum [Fri, 25 Jun 1999 17:26:34 +0000 (17:26 +0000)]
Close debugger when closing.  This may break a cycle.

25 years agoBreak cycle on close.
Guido van Rossum [Fri, 25 Jun 1999 17:25:22 +0000 (17:25 +0000)]
Break cycle on close.

25 years agoDestroy the tree when closing.
Guido van Rossum [Fri, 25 Jun 1999 17:08:19 +0000 (17:08 +0000)]
Destroy the tree when closing.

25 years agoAdd destroy() method to recursively destroy a tree.
Guido van Rossum [Fri, 25 Jun 1999 17:07:57 +0000 (17:07 +0000)]
Add destroy() method to recursively destroy a tree.

25 years agoExtend _close() to break cycles.
Guido van Rossum [Fri, 25 Jun 1999 16:09:27 +0000 (16:09 +0000)]
Extend _close() to break cycles.
Break some other cycles too (and destroy the root when done).

25 years agoAdd _close() method that does the actual cleanup (close() asks the
Guido van Rossum [Fri, 25 Jun 1999 16:06:29 +0000 (16:06 +0000)]
Add _close() method that does the actual cleanup (close() asks the
user what they want first if there's unsaved stuff, and may cancel).
It closes more than before.

Add unload_extensions() method to unload all extensions; called from
_close().  It calls an extension's close() method if it has one.

25 years agoAdd close() method that breaks cycles.
Guido van Rossum [Fri, 25 Jun 1999 16:04:38 +0000 (16:04 +0000)]
Add close() method that breaks cycles.

25 years agoAdd unregister() method.
Guido van Rossum [Fri, 25 Jun 1999 16:03:19 +0000 (16:03 +0000)]
Add unregister() method.
Unregister everything at closing.
Don't call close() in __del__, rely on explicit call to close().

25 years agoAdd close() method that breaks a cycle.
Guido van Rossum [Fri, 25 Jun 1999 16:02:22 +0000 (16:02 +0000)]
Add close() method that breaks a cycle.

25 years agoBreak some cycles when the widget is destroyed.
Guido van Rossum [Fri, 25 Jun 1999 15:53:54 +0000 (15:53 +0000)]
Break some cycles when the widget is destroyed.

25 years agoPatch from Sjoerd Mullender:
Fred Drake [Fri, 25 Jun 1999 14:58:44 +0000 (14:58 +0000)]
Patch from Sjoerd Mullender:

Make argument names equal to what is used in the documentation of the
file object, since chunks are supposedly file-like.

25 years agoMikael Lyngvig writes:
Guido van Rossum [Fri, 25 Jun 1999 14:21:44 +0000 (14:21 +0000)]
Mikael Lyngvig writes:

I just noticed that the changes below also apply to cmpcache.py, which
is virtually identical to cmp.py.

25 years agoPatch by Mikael Lyngvig:
Guido van Rossum [Fri, 25 Jun 1999 14:12:50 +0000 (14:12 +0000)]
Patch by Mikael Lyngvig:

1. Fix incorrect file open mode on Win32 platforms (use "rb" instead
of "r").

2. Add shallow parameter to cmp.cmp().  If false, deep file
comparisons are made.

The module should be 100 percent backwards compatible.

25 years agoClarify the example by explicitly importing the fcntl module -- this
Guido van Rossum [Thu, 24 Jun 1999 17:58:44 +0000 (17:58 +0000)]
Clarify the example by explicitly importing the fcntl module -- this
avoid being fooled into thinking that fcntl and FCNTL are the same
thing -- they aren't!  (fcntl is the extension, FCNTL.py is h2py
output that defines all the constants).

(XXX The example is still weird -- I think there's a more portable way
to do locking now.  That's for someone else to fix...)

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.