]> granicus.if.org Git - python/log
python
24 years agoCompletely revamped BeOS notes, by Donn Cave (SF patch 411834).
Guido van Rossum [Tue, 10 Apr 2001 21:51:29 +0000 (21:51 +0000)]
Completely revamped BeOS notes, by Donn Cave (SF patch 411834).

24 years agoThis is for BeOS users who want to build all the modules. It's
Guido van Rossum [Tue, 10 Apr 2001 21:50:09 +0000 (21:50 +0000)]
This is for BeOS users who want to build all the modules. It's
modified from setup.py version "1.37" to support BeOS build.

Contributed by Donn Cave (SF patch 411830).

24 years agoThe lower() and tkraise() methods were calling the Canvas widget
Guido van Rossum [Tue, 10 Apr 2001 21:13:06 +0000 (21:13 +0000)]
The lower() and tkraise() methods were calling the Canvas widget
wrongly.  Fixed this.

This closes SF bug #412682.

24 years agoTypo: "BuildApple" --> "BuildApplet"
Fred Drake [Tue, 10 Apr 2001 20:32:16 +0000 (20:32 +0000)]
Typo:  "BuildApple" --> "BuildApplet"

Added reference to the webbrowser module from the nsremote description.

24 years agoBump version numbers for upcoming release candidate.
Fred Drake [Tue, 10 Apr 2001 20:19:25 +0000 (20:19 +0000)]
Bump version numbers for upcoming release candidate.

24 years agoUpdate the XML conversion specification.
Fred Drake [Tue, 10 Apr 2001 19:59:31 +0000 (19:59 +0000)]
Update the XML conversion specification.

24 years agoRemove the mapping() function from the documentation.
Fred Drake [Tue, 10 Apr 2001 19:57:58 +0000 (19:57 +0000)]
Remove the mapping() function from the documentation.

Add a description of the ReferenceError exception.

24 years agoAdd note that difflib was added in Python 2.1.
Fred Drake [Tue, 10 Apr 2001 19:56:09 +0000 (19:56 +0000)]
Add note that difflib was added in Python 2.1.

24 years agoInclude py_curses.h *after* defining _XOPEN_SOURCE_EXTENDED.
Guido van Rossum [Tue, 10 Apr 2001 19:53:37 +0000 (19:53 +0000)]
Include py_curses.h *after* defining _XOPEN_SOURCE_EXTENDED.

Michael Hudson suggested this fox for the Tru64 problem (SF bug
232597).  It looks reasonable, it works on Tru64, and it doesn't beak
anything on Linux, so I say go for it.

24 years agomapping(): Remove this function since it does not add anything to the API.
Fred Drake [Tue, 10 Apr 2001 19:11:23 +0000 (19:11 +0000)]
mapping():  Remove this function since it does not add anything to the API.

24 years agoUse the WeakKeyDictionary and WeakValueDictionary classes directly
Fred Drake [Tue, 10 Apr 2001 19:09:35 +0000 (19:09 +0000)]
Use the WeakKeyDictionary and WeakValueDictionary classes directly
instead of using the mapping() function.

24 years agoSince bdist_wininst.py contains the installer executable, it had to be
Thomas Heller [Tue, 10 Apr 2001 18:57:07 +0000 (18:57 +0000)]
Since bdist_wininst.py contains the installer executable, it had to be
rebuild.

24 years agoNormalize tabs to spaces.
Fred Drake [Tue, 10 Apr 2001 18:49:09 +0000 (18:49 +0000)]
Normalize tabs to spaces.

Update the attribution for the "Curses Programming with Python" How-To.

Change the way the reference to the Demo/curses/ directory is marked up.

24 years agoAdd reference to the DDJ article discussing a similar algorithm.
Fred Drake [Tue, 10 Apr 2001 18:41:16 +0000 (18:41 +0000)]
Add reference to the DDJ article discussing a similar algorithm.

24 years agoAdd corresponding support for the alltt environment to the HTML generator.
Fred Drake [Tue, 10 Apr 2001 17:13:39 +0000 (17:13 +0000)]
Add corresponding support for the alltt environment to the HTML generator.

24 years agoImport the alltt package and wrap that environment in a similar way to
Fred Drake [Tue, 10 Apr 2001 15:53:06 +0000 (15:53 +0000)]
Import the alltt package and wrap that environment in a similar way to
the way we handle verbatim, so that it picks up the same indentation and
minipage behavior.

24 years agoFix two unqualified except: clauses.
Guido van Rossum [Tue, 10 Apr 2001 15:44:33 +0000 (15:44 +0000)]
Fix two unqualified except: clauses.

This came out of SF bug #411881.

24 years agoFix an unqualified except:.
Guido van Rossum [Tue, 10 Apr 2001 15:42:02 +0000 (15:42 +0000)]
Fix an unqualified except:.

This came out of SF bug #411881.

24 years agoTry an except: after an import into "except ImportError".
Guido van Rossum [Tue, 10 Apr 2001 15:37:12 +0000 (15:37 +0000)]
Try an except: after an import into "except ImportError".

This came out of SF bug #411881.

Note that there's another unqualified except: still.

24 years agoAdd documentation for getmoduleinfo() and getmodulename().
Fred Drake [Tue, 10 Apr 2001 15:12:34 +0000 (15:12 +0000)]
Add documentation for getmoduleinfo() and getmodulename().

24 years agoSome other tests, when failing, don't always remove their TESTFN file.
Guido van Rossum [Tue, 10 Apr 2001 15:01:20 +0000 (15:01 +0000)]
Some other tests, when failing, don't always remove their TESTFN file.
Try to do it for them, so our mkdir() operation doesn't fail.

24 years agoWhen doing the quick test to see whether large files are supported,
Guido van Rossum [Tue, 10 Apr 2001 14:50:51 +0000 (14:50 +0000)]
When doing the quick test to see whether large files are supported,
catch IOError as well as OverflowError.  I found that on Tru64 Unix
this was raised; probably because the OS (or libc) doesn't support
large files but the architecture is 64 bits!

24 years agoWhen zlib can't be imported, zipfile raises RuntimeError, which causes
Guido van Rossum [Tue, 10 Apr 2001 14:46:39 +0000 (14:46 +0000)]
When zlib can't be imported, zipfile raises RuntimeError, which causes
the test to be marked as failing rather than skipped.  Add an explicit
"import zlib" to prevent this.

24 years agoFix typo in instantiation of ErrorDuringImport.
Ka-Ping Yee [Tue, 10 Apr 2001 12:22:01 +0000 (12:22 +0000)]
Fix typo in instantiation of ErrorDuringImport.

24 years agoFix synopsis() so it can handle binary module files.
Ka-Ping Yee [Tue, 10 Apr 2001 11:46:02 +0000 (11:46 +0000)]
Fix synopsis() so it can handle binary module files.
Avoid ever using popen on Windows, since it's broken there.
Factor out the business of getting the summary line into splitdoc().
Use the modulename() routine in inspect.
Show all members of modules and classes rather than filtering on leading '_'.
Small typo and formtating fixes.
Don't show warnings when running "pydoc -k".

24 years agoAdd getmodulename() and getmoduleinfo() routines to inspect filenames.
Ka-Ping Yee [Tue, 10 Apr 2001 11:43:00 +0000 (11:43 +0000)]
Add getmodulename() and getmoduleinfo() routines to inspect filenames.

24 years agoIn the typeset versions, the legal notices had grown past the one-page
Fred Drake [Tue, 10 Apr 2001 05:26:29 +0000 (05:26 +0000)]
In the typeset versions, the legal notices had grown past the one-page
size.  This constrains them to fit in one page again.

24 years agotest_pickle works on sizeof(long)==8 boxes again.
Tim Peters [Tue, 10 Apr 2001 05:02:52 +0000 (05:02 +0000)]
test_pickle works on sizeof(long)==8 boxes again.
pickle.py
    The code implicitly assumed that all ints fit in 4 bytes, causing all
    sorts of mischief (from nonsense results to corrupted pickles).
    Repaired that.
marshal.c
    The int marshaling code assumed that right shifts of signed longs
    sign-extend.  Repaired that.

24 years agoAck -- this module mixes tabs and spaces, and what appears to be a mix
Tim Peters [Tue, 10 Apr 2001 04:35:28 +0000 (04:35 +0000)]
Ack -- this module mixes tabs and spaces, and what appears to be a mix
of 2-space and 4-space indents.  Whatever, when I saw the checkin diff it
was clear that what my editor thinks a tab means didn't match this module's
belief.  Removed all the tabs from the lines I added and changed, left
everything else alone.

24 years agoOn a sizeof(long)==8 machine, ints in range(2**31, 2**32) were getting
Tim Peters [Tue, 10 Apr 2001 04:22:00 +0000 (04:22 +0000)]
On a sizeof(long)==8 machine, ints in range(2**31, 2**32) were getting
pickled into the signed(!) 4-byte BININT format, so were getting unpickled
again as negative ints.  Repaired that.
Added some minimal docs at the top about what I've learned about the pickle
format codes (little of which was obvious from staring at the code,
although that's partly because all the size-related bugs greatly obscured
the true intent of the code).
Happy side effect:  because save_int() needed to grow a *proper* range
check in order to fix this bug, it can now use the more-efficient BININT1,
BININT2 and BININT formats when the long's value is small enough to fit
in a signed 4-byte int (before this, on a sizeof(long)==8 box it always
used the general INT format for negative ints).
test_cpickle works again on sizeof(long)==8 machines.  test_pickle is
still busted big-time.

24 years agoTest full range of native ints. This exposes two more binary pickle
Tim Peters [Tue, 10 Apr 2001 03:41:41 +0000 (03:41 +0000)]
Test full range of native ints.  This exposes two more binary pickle
bugs on sizeof(long)==8 machines.  pickle.py has no idea what it's
doing with very large ints, and variously gets things right by accident,
computes nonsense, or generates corrupt pickles.  cPickle fails on
cases 2**31 <= i < 2**32:  since it *thinks* those are 4-byte ints
(the "high 4 bytes" are all zeroes), it stores them in the (signed!) BININT
format, so they get unpickled as negative values.

24 years agoCorrect the header over the string of licenses -- it's "PYTHON", not
Guido van Rossum [Tue, 10 Apr 2001 03:37:31 +0000 (03:37 +0000)]
Correct the header over the string of licenses -- it's "PYTHON", not
"Python 1.6.1".

24 years agoAppend the revision number for each file to the output.
Guido van Rossum [Tue, 10 Apr 2001 03:31:27 +0000 (03:31 +0000)]
Append the revision number for each file to the output.

(Yes, this is a new feature right before the 2.1 release.  No, I can't
imagine this would seriously break anybody's code.  In fact, most
users of this script are probably *happy* to see this addition.)

24 years agoMechanical fiddling for easier reading: every "if" test was enclosed in
Tim Peters [Tue, 10 Apr 2001 02:48:53 +0000 (02:48 +0000)]
Mechanical fiddling for easier reading:  every "if" test was enclosed in
parens, but no "while" test.  Removed the former.

24 years agoCritical fix: if cPickle on a sizeof(long)==8 box is used to read a
Tim Peters [Tue, 10 Apr 2001 01:54:42 +0000 (01:54 +0000)]
Critical fix:  if cPickle on a sizeof(long)==8 box is used to read a
binary pickle, and the latter contains a pickle of a negative Python
int i written on a sizeof(long)==4 box (and whether by cPickle or
pickle.py), it's read incorrectly as i + 2**32.  The patch repairs that,
and allows test_cpickle.py (to which I added a relevant test case earlier
today) to work again on sizeof(long)==8 boxes.
There's another (at least one) sizeof(long)==8 binary pickle bug, but in
pickle.py instead.  That bug is still there, and test_pickle.py doesn't
catch it yet (try pickling and unpickling, e.g., 1 << 46).

24 years agoMake on Alpha Tru64 5.1 (as installed on the SF compile farm) doesn't
Guido van Rossum [Mon, 9 Apr 2001 22:23:22 +0000 (22:23 +0000)]
Make on Alpha Tru64 5.1 (as installed on the SF compile farm) doesn't
think that a command starting with '#' is a comment, so move the one
comment in such a position (in the rule for building $(LIBRARY)) to a
harmless position.

24 years agoAdd globals to list of names returned by get_names().
Jeremy Hylton [Mon, 9 Apr 2001 20:11:59 +0000 (20:11 +0000)]
Add globals to list of names returned by get_names().
Fix func arg processing to handle args in tuples.
In test code, skip names beginning with '.'.

24 years agoPickles have a number of storage formats for various sizes and kinds of
Tim Peters [Mon, 9 Apr 2001 20:07:05 +0000 (20:07 +0000)]
Pickles have a number of storage formats for various sizes and kinds of
integers, but the std tests don't exercise most of them.  Repair that.

CAUTION:  I expect this to fail on boxes with sizeof(long)==8, in the
part of test_cpickle (but not test_pickle) trying to do a binary mode
(not text mode) load of the embedded BINDATA pickle string.  Once that
hypothesized failure is confirmed, I'll fix cPickle.c.

24 years agoMichael Hudson <mwh21@cam.ac.uk>:
Fred Drake [Mon, 9 Apr 2001 19:32:52 +0000 (19:32 +0000)]
Michael Hudson <mwh21@cam.ac.uk>:
Update the docstrings to no longer refer to the obsolete TERMIOS
module.

This is a partial acceptance of SF patch #413419.

24 years agoNo functional change -- just added whitespace in places so I could follow
Tim Peters [Mon, 9 Apr 2001 17:16:31 +0000 (17:16 +0000)]
No functional change -- just added whitespace in places so I could follow
the logic better.  Will be adding some additional tests later today.

24 years agoWarn when assigning to __debug__ instead of raising an error.
Jeremy Hylton [Mon, 9 Apr 2001 16:07:59 +0000 (16:07 +0000)]
Warn when assigning to __debug__ instead of raising an error.

24 years agoFix typo in example (\b should be \n in string literal).
Fred Drake [Mon, 9 Apr 2001 15:57:06 +0000 (15:57 +0000)]
Fix typo in example (\b should be \n in string literal).

This closes SF bug #414279.

24 years agoFix a number of bugs and omissions in the AddressList documentation, most
Fred Drake [Mon, 9 Apr 2001 15:42:56 +0000 (15:42 +0000)]
Fix a number of bugs and omissions in the AddressList documentation, most
noted by Steve Holden.

This closes SF bug #413876.

24 years ago* Remove exc_info() kludge -- it actually messed up the Jython output
Steve Purcell [Mon, 9 Apr 2001 15:37:31 +0000 (15:37 +0000)]
* Remove exc_info() kludge -- it actually messed up the Jython output
* Fixed TestLoader.loadTestsFromName() for nested packages
* Corrected the command-line usage summary

24 years agoFixing Itamar's name, as per his request.
Moshe Zadka [Mon, 9 Apr 2001 15:23:46 +0000 (15:23 +0000)]
Fixing Itamar's name, as per his request.

24 years agofixing 408085 - redirect from https becomes http
Moshe Zadka [Mon, 9 Apr 2001 14:54:21 +0000 (14:54 +0000)]
fixing 408085 - redirect from https becomes http
Even though relative redirects are illegal, they are common
urllib treated every relative redirect as though it was to http,
even if the original was https://
As long as we're compensating for server bugs, might as well do
it properly.

24 years agoAdd two arguments to Scope constructor, module scope and class name
Jeremy Hylton [Mon, 9 Apr 2001 13:57:32 +0000 (13:57 +0000)]
Add two arguments to Scope constructor, module scope and class name
Add mangling support
Add get_children() and add_child() methods to Scope
Skip nodes when If test is a false constant
Add test code that checks results against symtable module

24 years agoAdd preliminary module symbol table constructor
Jeremy Hylton [Mon, 9 Apr 2001 04:35:35 +0000 (04:35 +0000)]
Add preliminary module symbol table constructor

24 years agoremove global decl about unused variable
Jeremy Hylton [Mon, 9 Apr 2001 04:31:50 +0000 (04:31 +0000)]
remove global decl about unused variable

24 years agoAdd support for future statements
Jeremy Hylton [Mon, 9 Apr 2001 04:28:48 +0000 (04:28 +0000)]
Add support for future statements

24 years agoFix "import as" (has always skipping the as name)
Jeremy Hylton [Mon, 9 Apr 2001 04:27:12 +0000 (04:27 +0000)]
Fix "import as" (has always skipping the as name)
Fix com_NEWLINE() so that is accepts arguments, which occurs for lines like:
    stmt; # note trailing semicolon
Add XXX about checking for assignment to list comps

24 years agotypo
Jeremy Hylton [Mon, 9 Apr 2001 04:23:55 +0000 (04:23 +0000)]
typo

24 years agoRepair portability of sign extension when reading signed ints on boxes
Tim Peters [Sun, 8 Apr 2001 23:39:38 +0000 (23:39 +0000)]
Repair portability of sign extension when reading signed ints on boxes
where sizeof(long)==8.  This *was* broken on boxes where signed right
shifts didn't sign-extend, but not elsewhere.  Unfortunately, apart
from the Cray T3E I don't know of such a box, and Guido has so far
refused to buy me any Cray machines for home Python testing <wink>.

More immediately interesting would be if someone could please test
this on *any* sizeof(long)==8 box, to make sure I didn't break it.

24 years agoMake it clear that a bdb subclass must implement do_clear().
Guido van Rossum [Sun, 8 Apr 2001 15:05:16 +0000 (15:05 +0000)]
Make it clear that a bdb subclass must implement do_clear().

This was found by Neal Norwitz's PyChecker.

24 years agoWhitespace normalization.
Tim Peters [Sun, 8 Apr 2001 07:44:07 +0000 (07:44 +0000)]
Whitespace normalization.

24 years agoFix from the Madusa mailing list:
Tim Peters [Sun, 8 Apr 2001 07:23:44 +0000 (07:23 +0000)]
Fix from the Madusa mailing list:
    http://groups.yahoo.com/group/medusa/message/333

It's clear that Medusa should not be checking for an empty buffer
via "buf is ''".  The patch merely changes "is" to "==".  However,
there's a mystery here all the same:  Python attempts to store null
strings uniquely, so it's unclear why "buf is ''" ever returned
false when buf actually was empty.  *Some* string operations produce
non-unique null strings, e.g.

>>> "abc"*0 is "abc"*0
0
>>>

but they're rare, and I don't see any such operations in asynchat.

24 years agoRemove useless imports, as reported by PyChecker.
Tim Peters [Sun, 8 Apr 2001 00:43:13 +0000 (00:43 +0000)]
Remove useless imports, as reported by PyChecker.

24 years agoGet rid of useless string import, as reported by Neal Norwitz's PyChecker.py
Tim Peters [Sun, 8 Apr 2001 00:38:42 +0000 (00:38 +0000)]
Get rid of useless string import, as reported by Neal Norwitz's PyChecker.py
on c.l.py.

24 years agoSF patch #413552 - Premature decref on object
Tim Peters [Sat, 7 Apr 2001 20:34:48 +0000 (20:34 +0000)]
SF patch #413552 - Premature decref on object
Jeffery Collins pointed out that filterstring decrefs a character object
before it's done using it.  This works by accident today because another
module always happens to have an active reference too at the time.  The
accident doesn't work after his Pippy modifications, and since it *is*
an accident even in the mainline Python, it should work by design there too.
The patch accomplishes that.

24 years agoCorrect the documentation for getreadbufferproc and getwritebufferproc.
Greg Stein [Sat, 7 Apr 2001 16:14:49 +0000 (16:14 +0000)]
Correct the documentation for getreadbufferproc and getwritebufferproc.

Fixes bug #233308 from Travis Oliphant.

24 years agoAdd an uninstall method to the ImportManager.
Greg Stein [Sat, 7 Apr 2001 16:05:24 +0000 (16:05 +0000)]
Add an uninstall method to the ImportManager.

This is the accepted portion of patch #402498.

24 years agoFinally merged morefindertools into findertools.
Jack Jansen [Sat, 7 Apr 2001 12:53:45 +0000 (12:53 +0000)]
Finally merged morefindertools into findertools.

24 years agoAdd entry for unittest documentation.
Fred Drake [Sat, 7 Apr 2001 05:42:14 +0000 (05:42 +0000)]
Add entry for unittest documentation.

24 years agoStart of documentation for the unittest module. Some of this comes from
Fred Drake [Sat, 7 Apr 2001 05:41:39 +0000 (05:41 +0000)]
Start of documentation for the unittest module.  Some of this comes from
Steve Purcell's documentation, and a lot of it is written based on
using PyUnit and reading the implementation.

There is more to come, but I want to get this check in before I have a
disk crash or anything else bad happens.

24 years agoSince Guido fiddled Cookie.py to work with doctest, it's a Good Thing to
Tim Peters [Fri, 6 Apr 2001 21:20:58 +0000 (21:20 +0000)]
Since Guido fiddled Cookie.py to work with doctest, it's a Good Thing to
have the std test suite exercise the Cookie doctests too.

24 years agoSince this module already uses doctest-style examples, I figured I'd
Guido van Rossum [Fri, 6 Apr 2001 19:39:11 +0000 (19:39 +0000)]
Since this module already uses doctest-style examples, I figured I'd
add a self-test using doctest.  Results:

- The docstring needs to be a raw string because it uses \"...\".

- The oreo example was broken: the Set-Cookie output doesn't add
  quotes around "doublestuff".

- I had to change the example that prints the class of a Cookie.Cookie
  instance to avoid incorporating an arbitrary object address in the
  test output.

Pretty good score for both doctest and the doc string, I'd say!

24 years agoRemove lines for asynchat & asyncore, as they've now got their own test.
Tim Peters [Fri, 6 Apr 2001 18:59:17 +0000 (18:59 +0000)]
Remove lines for asynchat & asyncore, as they've now got their own test.

24 years agoAfter testing the test on Unix, several improvements:
Guido van Rossum [Fri, 6 Apr 2001 16:43:49 +0000 (16:43 +0000)]
After testing the test on Unix, several improvements:

- Use push() instead of send(), and make these calls in main().

- Sleep a second to give the server thread time to initialize itself.

24 years agoAdd test for asynchat. This also tests asyncore.
Guido van Rossum [Fri, 6 Apr 2001 16:32:22 +0000 (16:32 +0000)]
Add test for asynchat.  This also tests asyncore.

24 years agoMake the docstring a raw string, for pydoc.
Guido van Rossum [Fri, 6 Apr 2001 15:30:33 +0000 (15:30 +0000)]
Make the docstring a raw string, for pydoc.
(How many opre of these will we need? :-( )

24 years agoAdded a note about Help and ctb missing in carbon.
Jack Jansen [Fri, 6 Apr 2001 09:02:43 +0000 (09:02 +0000)]
Added a note about Help and ctb missing in carbon.

24 years agoVersion 1.2 by Christopher Stern.
Jack Jansen [Fri, 6 Apr 2001 08:34:55 +0000 (08:34 +0000)]
Version 1.2 by Christopher Stern.

24 years agoFix the fix (my error -- hasty pasty).
Tim Peters [Thu, 5 Apr 2001 22:38:32 +0000 (22:38 +0000)]
Fix the fix (my error -- hasty pasty).

24 years agoOne-liner critical fix from Jim Fulton: Eric's string-method crusade
Tim Peters [Thu, 5 Apr 2001 22:26:23 +0000 (22:26 +0000)]
One-liner critical fix from Jim Fulton:  Eric's string-method crusade
got the order backwards in a line (for .find()).

24 years agoChange {\em ...} to \emph{...} for consistency with the rest of the Python
Fred Drake [Thu, 5 Apr 2001 18:31:27 +0000 (18:31 +0000)]
Change {\em ...} to \emph{...} for consistency with the rest of the Python
documentation.

24 years agoAdd some information about what to expect of the DocumentType's
Fred Drake [Thu, 5 Apr 2001 18:30:04 +0000 (18:30 +0000)]
Add some information about what to expect of the DocumentType's
.internalSubset attribute based on a clarification from the www-dom
list.

24 years agoEffectively revert the previous change: leave the new #include in, but
Fred Drake [Thu, 5 Apr 2001 18:26:31 +0000 (18:26 +0000)]
Effectively revert the previous change:  leave the new #include in, but
comment it out with an explanation.  This makes it easier for someone
who wants the additional symbols to try re-enabling it for their platform.

24 years agoAdded more link attributes based on additonal information from Chris
Fred Drake [Thu, 5 Apr 2001 18:14:50 +0000 (18:14 +0000)]
Added more link attributes based on additonal information from Chris
McCafferty <christopher.mccafferty@csg.ch>, and a bit of experimentation
with Navigator 4.7.

HTML-as-deployed is evil!

24 years agoBug #412086, reported by Peter Wilson: The _curses module doesn't
Andrew M. Kuchling [Thu, 5 Apr 2001 16:08:41 +0000 (16:08 +0000)]
Bug #412086, reported by Peter Wilson: The _curses module doesn't
    define COLORS or COLOR_PAIRS until after start_color() is called,
    but they were never added to the curses module.  Fixed by adding
    a wrapper around start_color(), similar to the wrapper around initscr().

24 years agoPatch #413912 from Steve Majewski: Add .m to the list of extensions
Andrew M. Kuchling [Thu, 5 Apr 2001 15:46:48 +0000 (15:46 +0000)]
Patch #413912 from Steve Majewski: Add .m to the list of extensions
    in order to support Objective-C.

24 years agoMention pydoc in the man page
Andrew M. Kuchling [Thu, 5 Apr 2001 14:50:40 +0000 (14:50 +0000)]
Mention pydoc in the man page

24 years agoCorrected default value of the DocumentType.internalSubset attribute based
Fred Drake [Thu, 5 Apr 2001 14:41:30 +0000 (14:41 +0000)]
Corrected default value of the DocumentType.internalSubset attribute based
on a clarification sent to the www-dom list.

24 years agoAdd an #include of sys/ioctl.h to pick up a lot of the constants supported
Fred Drake [Wed, 4 Apr 2001 21:19:26 +0000 (21:19 +0000)]
Add an #include of sys/ioctl.h to pick up a lot of the constants supported
in the previous patch.

This closes (again!) SF patch #410267.

24 years agoSf bug [ #412214 ] ZipFile constructor leaves files open.
Tim Peters [Wed, 4 Apr 2001 18:56:49 +0000 (18:56 +0000)]
Sf bug [ #412214 ] ZipFile constructor leaves files open.
This applies the patch Fred Drake created to fix it.
I'm checking it in since I had to apply the patch anyway in order
to test its behavior on Windows.

24 years agoSF patch [ #413750 ] Cygwin entry for README file, from Jason Tishler.
Tim Peters [Wed, 4 Apr 2001 18:35:19 +0000 (18:35 +0000)]
SF patch [ #413750 ] Cygwin entry for README file, from Jason Tishler.

24 years agoA number of improvements based on a discussion with Chris McCafferty
Fred Drake [Wed, 4 Apr 2001 17:47:25 +0000 (17:47 +0000)]
A number of improvements based on a discussion with Chris McCafferty
<christopher.mccafferty@csg.ch>:

Add javascript: and telnet: to the types of URLs we ignore.

Add support for several additional URL-valued attributes on the BODY,
FRAME, IFRAME, LINK, OBJECT, and SCRIPT elements.

24 years agoCharacterData methods: Update self.length on changes instead of extended
Fred Drake [Wed, 4 Apr 2001 15:15:18 +0000 (15:15 +0000)]
CharacterData methods:  Update self.length on changes instead of extended
    the __getattr__() handler.

Text.splitText():  Update the length and nodeValue attributes.

24 years agoAdd support for the CharacterData methods, CDATASection.
Fred Drake [Wed, 4 Apr 2001 14:09:46 +0000 (14:09 +0000)]
Add support for the CharacterData methods, CDATASection.

24 years agoDocument PySequence_Size(), and describe PySequence_Length() as simply an
Fred Drake [Wed, 4 Apr 2001 01:25:17 +0000 (01:25 +0000)]
Document PySequence_Size(), and describe PySequence_Length() as simply an
alternate name for the same function.

24 years agoDisable fused-add-mul instructions. They give a nonstandard result for some things...
Jack Jansen [Tue, 3 Apr 2001 21:56:12 +0000 (21:56 +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 agoMake reference to the Library Reference in the "What Now?" chapter a
Fred Drake [Tue, 3 Apr 2001 17:41:56 +0000 (17:41 +0000)]
Make reference to the Library Reference in the "What Now?" chapter a
hyperlink.

Fix two English usage errors caught by Jan Wells:  Changed "subsequence"
to "sub-sequence" in two places, and avoid improper use of "hopefully" in
the first paragraph of the "What Now?" chapter.

24 years agoIf the frontmost window is not a Tk window exit the event handling code early. This...
Jack Jansen [Tue, 3 Apr 2001 14:36:35 +0000 (14:36 +0000)]
If the frontmost window is not a Tk window exit the event handling code early. This fixes that using Tk once used to disable cmd-. processing. It may also influence Tk/IDE interaction, I'm not sure.

24 years agoSF bug [#410708] Condition.wait() and KeyboardInterrupt.
Tim Peters [Mon, 2 Apr 2001 20:15:57 +0000 (20:15 +0000)]
SF bug [#410708] Condition.wait() and KeyboardInterrupt.
http://sourceforge.net/tracker/?func=detail&aid=410708&group_id=5470&atid=105470
Added try/finally around Condition.wait() guts, so that the lock state gets
restored at the end no matter what happens.

24 years agoApplying SF patch #412553 by Christopher Lee: fix linuxaudiodev
Guido van Rossum [Mon, 2 Apr 2001 17:59:02 +0000 (17:59 +0000)]
Applying SF patch #412553 by Christopher Lee: fix linuxaudiodev
handling of EAGAIN.

This may or may not fix the problem for me (Mandrake 7.2 on a Dell
Optiplex GX110 desktop): I can't hear the output, but it does pass the
test now.  It doesn't fix the problem for Fred (Mandrake 7.2 on a Dell
Inspiron 7500 which has the Maestro sound drivers).  Fred suspects
that it's the kernel version in combination with the driver.

24 years agoInitialize Attr.value with empty string in createAttribute*, as per DOM
Martin v. Löwis [Sat, 31 Mar 2001 16:30:40 +0000 (16:30 +0000)]
Initialize Attr.value with empty string in createAttribute*, as per DOM
spec. Closes bug #412036.
Also reindent toprettyxml.

24 years agoRemove the backed-out version requirement
Andrew M. Kuchling [Sat, 31 Mar 2001 02:42:42 +0000 (02:42 +0000)]
Remove the backed-out version requirement

24 years agoBack out the requirement to supply a version number
Andrew M. Kuchling [Sat, 31 Mar 2001 02:41:01 +0000 (02:41 +0000)]
Back out the requirement to supply a version number

24 years agoFixes a fatal bug when the module has computed alternatives containing %s.
Eric S. Raymond [Sat, 31 Mar 2001 01:50:52 +0000 (01:50 +0000)]
Fixes a fatal bug when the module has computed alternatives containing %s.

24 years ago"install -d" does not work on BSDI systems even though autoconf thinks
Neil Schemenauer [Sat, 31 Mar 2001 00:01:55 +0000 (00:01 +0000)]
"install -d" does not work on BSDI systems even though autoconf thinks
install works on that system.   Use "install-sh" on BSDI.

24 years agoAllow the <author/> element to appear before a paragraph without being
Fred Drake [Thu, 29 Mar 2001 23:31:22 +0000 (23:31 +0000)]
Allow the <author/> element to appear before a paragraph without being
made a part of the paragraph.