]> granicus.if.org Git - python/log
python
24 years agoAnother patch from Thomas Gellekum: add .overlay() and .overwrite()
Andrew M. Kuchling [Thu, 21 Dec 2000 16:22:22 +0000 (16:22 +0000)]
Another patch from Thomas Gellekum: add .overlay() and .overwrite()
    window methods

24 years agoWhoops! Two stray characters crept in to my last check-in
Andrew M. Kuchling [Wed, 20 Dec 2000 15:07:34 +0000 (15:07 +0000)]
Whoops!  Two stray characters crept in to my last check-in

24 years agoPatch #102492, fixing bug #116677:
Andrew M. Kuchling [Wed, 20 Dec 2000 14:47:24 +0000 (14:47 +0000)]
Patch #102492, fixing bug #116677:
    give minidom.py behaviour that complies with the DOM Level 1 REC,
    which says that when a node newChild is added to the tree, "if the
    newChild is already in the tree, it is first removed."

    pulldom.py is patched to use the public minidom interface instead
    of setting .parentNode itself.  Possibly this reduces pulldom's
    efficiency; someone else will have to pronounce on that.

24 years agoPatch #102955, fixing one of the warnings in bug #121479:
Andrew M. Kuchling [Wed, 20 Dec 2000 14:36:56 +0000 (14:36 +0000)]
Patch #102955, fixing one of the warnings in bug #121479:
Simplifies ord()'s logic at the cost of some code duplication, removing a
    " `ord' might be used uninitialized in this function" warning

24 years agoChange expected message for ValueError, fixing bug #126400
Andrew M. Kuchling [Wed, 20 Dec 2000 00:55:46 +0000 (00:55 +0000)]
Change expected message for ValueError, fixing bug #126400

24 years agoMake the indentation consistently use tabs instead of using spaces just
Fred Drake [Wed, 20 Dec 2000 00:55:07 +0000 (00:55 +0000)]
Make the indentation consistently use tabs instead of using spaces just
in one place.

24 years agoAdd forgotten initialization. Fixes bug #120994, "Traceback with
Andrew M. Kuchling [Wed, 20 Dec 2000 00:48:12 +0000 (00:48 +0000)]
Add forgotten initialization.  Fixes bug #120994, "Traceback with
    DISTUTILS_DEBUG set"

24 years agoPatch #102940: use only printable Unicode chars in reporting
Andrew M. Kuchling [Tue, 19 Dec 2000 22:49:06 +0000 (22:49 +0000)]
Patch #102940: use only printable Unicode chars in reporting
 incorrect % characters; characters outside the printable range are
 replaced with '?'

24 years agoRegenerated so that NewGWorld is included.
Jack Jansen [Tue, 19 Dec 2000 22:28:14 +0000 (22:28 +0000)]
Regenerated so that NewGWorld is included.

24 years agoEmulate a few more non-carbon calls in carbon and the other way around.
Jack Jansen [Tue, 19 Dec 2000 22:23:06 +0000 (22:23 +0000)]
Emulate a few more non-carbon calls in carbon and the other way around.

24 years agoAdded hash() and compare() functions. Needed because multiple WinObj's can now refer...
Jack Jansen [Tue, 19 Dec 2000 21:34:55 +0000 (21:34 +0000)]
Added hash() and compare() functions. Needed because multiple WinObj's can now refer to the same underlying WindowRef.

24 years agoBlacklisted a few constants with funny definitions (and they're not important anyway...
Jack Jansen [Tue, 19 Dec 2000 21:33:51 +0000 (21:33 +0000)]
Blacklisted a few constants with funny definitions (and they're not important anyway: backward compatible error numbers).

24 years agoPatch #102868 from cgw: fix memory leak when an EOF is encountered
Andrew M. Kuchling [Tue, 19 Dec 2000 20:59:04 +0000 (20:59 +0000)]
Patch #102868 from cgw: fix memory leak when an EOF is encountered
    using GNU libc's getline()

24 years agoAdding a warning about the regsub module. This also disables further
Guido van Rossum [Tue, 19 Dec 2000 18:25:58 +0000 (18:25 +0000)]
Adding a warning about the regsub module.  This also disables further
warnings in this same module, to prevent getting a warning about
importing regex (we *know* that it's obsolete :-).

24 years agoAdding a warning about the regex module. This is the first official
Guido van Rossum [Tue, 19 Dec 2000 18:21:39 +0000 (18:21 +0000)]
Adding a warning about the regex module.  This is the first official
use of PyErr_Warn()!  This module is a good guinea pig because it's
been obsolete since 1.5.0 was released.

24 years agoBe explicit about scheme_chars -- string.letters is locale dependent
Guido van Rossum [Tue, 19 Dec 2000 16:48:13 +0000 (16:48 +0000)]
Be explicit about scheme_chars -- string.letters is locale dependent
so we can't use it.

While I'm at it, got rid of string module use.  (Found several new
hard special cases for a hypothetical conversion tool: from string
import join, find, rfind; and a local assignment "find=string.find".)

24 years agoFix typo
Andrew M. Kuchling [Tue, 19 Dec 2000 14:09:21 +0000 (14:09 +0000)]
Fix typo

24 years agoUse binary mode to open "wave" files.
Guido van Rossum [Tue, 19 Dec 2000 06:32:57 +0000 (06:32 +0000)]
Use binary mode to open "wave" files.

24 years agoDocument the warnings module.
Guido van Rossum [Tue, 19 Dec 2000 06:01:23 +0000 (06:01 +0000)]
Document the warnings module.

24 years agoUpdated string literals description to encompass Unicode literals and the
Fred Drake [Tue, 19 Dec 2000 04:52:03 +0000 (04:52 +0000)]
Updated string literals description to encompass Unicode literals and the
additional escape sequences defined for Unicode.
This closes bug #117158.

24 years agoDocument warning categories.
Guido van Rossum [Tue, 19 Dec 2000 04:27:54 +0000 (04:27 +0000)]
Document warning categories.

24 years agoClarify __repr__ and __str__.
Guido van Rossum [Tue, 19 Dec 2000 04:18:13 +0000 (04:18 +0000)]
Clarify __repr__ and __str__.

24 years agoAdded documentation on the ErrorHandler interface.
Fred Drake [Tue, 19 Dec 2000 04:07:54 +0000 (04:07 +0000)]
Added documentation on the ErrorHandler interface.
This closes bug #126034.

24 years agoOops. The value "0 or +1" for the category argument of PyErr_Warn()
Guido van Rossum [Tue, 19 Dec 2000 03:58:11 +0000 (03:58 +0000)]
Oops.  The value "0 or +1" for the category argument of PyErr_Warn()
doesn't work.  Make it 0.  (Although it really *should* be 0 or +1 --
the refcount is incremented when it is raised as an exception, but not
otherwise.)

24 years agoDocument Pyerr_Warn().
Guido van Rossum [Tue, 19 Dec 2000 03:53:57 +0000 (03:53 +0000)]
Document Pyerr_Warn().

Add an XXX comment at the beginning expressing disappointment over the
confusing way refcount behavior of arguments is documented.

24 years agoDocument Pyerr_Warn().
Guido van Rossum [Tue, 19 Dec 2000 03:53:01 +0000 (03:53 +0000)]
Document Pyerr_Warn().

24 years agoDocument the -W option as best as I can.
Guido van Rossum [Tue, 19 Dec 2000 03:21:54 +0000 (03:21 +0000)]
Document the -W option as best as I can.

Get rid of BeOpen references.

24 years agoImprove error messages for invalid warning arguments; don't raise
Guido van Rossum [Tue, 19 Dec 2000 03:04:50 +0000 (03:04 +0000)]
Improve error messages for invalid warning arguments; don't raise
exceptions but always print a warning message.

24 years agoMake string.translate(s, table) work for Unicode s. Two things are
Guido van Rossum [Tue, 19 Dec 2000 02:39:08 +0000 (02:39 +0000)]
Make string.translate(s, table) work for Unicode s.  Two things are
required to work around restrictions on the arguments of
u.translate():

1) don't pass the deletions argument if it's empty;

2) convert table to Unicode if s is Unicode.

This fixes SF bug #124060.

24 years agoFix off-by-one error in split_substring(). Fixes SF bug #122162.
Guido van Rossum [Tue, 19 Dec 2000 02:23:19 +0000 (02:23 +0000)]
Fix off-by-one error in split_substring().  Fixes SF bug #122162.

24 years agoTest more split argument combinations:
Guido van Rossum [Tue, 19 Dec 2000 02:22:31 +0000 (02:22 +0000)]
Test more split argument combinations:
1) multi-char separator
2) multi-char separator that only occurs at last position
3) all of the above with mixed Unicode and 8-bit-string arguments

24 years agoMinimal fix for the complaints about pickling Unicode objects. (SF
Guido van Rossum [Tue, 19 Dec 2000 02:08:38 +0000 (02:08 +0000)]
Minimal fix for the complaints about pickling Unicode objects.  (SF
bugs #126161 and 123634).

The solution doesn't use the unicode-escape encoding; that has other
problems (it seems not 100% reversible).  Rather, it transforms the
input Unicode object slightly before encoding it using
raw-unicode-escape, so that the decoding will reconstruct the original
string: backslash and newline characters are translated into their
\uXXXX counterparts.

This is backwards incompatible for strings containing backslashes, but
for some of those strings, the pickling was already broken.

Note that SF bug #123634 complains specifically that cPickle fails to
unpickle the pickle for u'' (the empty Unicode string) correctly.
This was an off-by-one error in load_unicode().

XXX Ugliness: in order to do the modified raw-unicode-escape, I've
cut-and-pasted a copy of PyUnicode_EncodeRawUnicodeEscape() into this
file that also encodes '\\' and '\n'.  It might be nice to migrate
this into the Unicode implementation and give this encoding a new name
('half-raw-unicode-escape'? 'pickle-unicode-escape'?); that would help
pickle.py too.  But right now I can't be bothered with the necessary
infrastructural changes.

24 years agoTest some Unicode pickling endcases.
Guido van Rossum [Tue, 19 Dec 2000 02:01:12 +0000 (02:01 +0000)]
Test some Unicode pickling endcases.

24 years agoMinimal fix for the complaints about pickling Unicode objects. (SF
Guido van Rossum [Tue, 19 Dec 2000 01:29:00 +0000 (01:29 +0000)]
Minimal fix for the complaints about pickling Unicode objects.  (SF
bugs #126161 and 123634).

The solution doesn't use the unicode-escape encoding; that has other
problems (it seems not 100% reversible).  Rather, it transforms the
input Unicode object slightly before encoding it using
raw-unicode-escape, so that the decoding will reconstruct the original
string: backslash and newline characters are translated into their
\uXXXX counterparts.

This is backwards incompatible for strings containing backslashes, but
for some of those strings, the pickling was already broken.

24 years agoAdapted from a patch by Barry Scott, SF patch #102875 and SF bug
Guido van Rossum [Mon, 18 Dec 2000 22:23:44 +0000 (22:23 +0000)]
Adapted from a patch by Barry Scott, SF patch #102875 and SF bug
#125981: closing sockets was not thread-safe.

24 years agogdbm.open() no longer accepts garbage in the flags string. Fix the tests.
Neil Schemenauer [Mon, 18 Dec 2000 17:28:05 +0000 (17:28 +0000)]
gdbm.open() no longer accepts garbage in the flags string.  Fix the tests.

24 years agoDo not talk about "real" numbers; talk about "floats" or "floating point
Fred Drake [Mon, 18 Dec 2000 13:50:24 +0000 (13:50 +0000)]
Do not talk about "real" numbers; talk about "floats" or "floating point
numbers" instead; we have not described "reals" anywhere else in the
documentation, and this is not the place to change the story!

Reported by Keith Briggs <keith.briggs@bt.com>.

24 years agoAdd support for gdbm2 open flags ('s' and 'u'). Add module constant
Neil Schemenauer [Sun, 17 Dec 2000 07:14:13 +0000 (07:14 +0000)]
Add support for gdbm2 open flags ('s' and 'u').  Add module constant
open_flags which contains the flags supported by gdbm.  Closes patch
#102802.

24 years agoAdd returns_unicode to the __members__ list.
Fred Drake [Sat, 16 Dec 2000 01:48:29 +0000 (01:48 +0000)]
Add returns_unicode to the __members__ list.
Fix a small style consistency nit.

24 years agoDo not assume that types.UnicodeType exists; we might be running in an old
Fred Drake [Sat, 16 Dec 2000 01:45:11 +0000 (01:45 +0000)]
Do not assume that types.UnicodeType exists; we might be running in an old
version of Python.  ;-(

24 years agoUse the string module instead of string methods; this should still work
Fred Drake [Sat, 16 Dec 2000 01:43:40 +0000 (01:43 +0000)]
Use the string module instead of string methods; this should still work
with Python 1.5.2 for now.

24 years agourlretrieve() description included explanation of "data" parameter, but
Fred Drake [Fri, 15 Dec 2000 23:57:51 +0000 (23:57 +0000)]
urlretrieve() description included explanation of "data" parameter, but
did not include it in the signature.

Fixed some markup nits.

24 years agoTypo caught by /F -- thanks!
Fred Drake [Fri, 15 Dec 2000 23:56:43 +0000 (23:56 +0000)]
Typo caught by /F -- thanks!

24 years agoAdd definitions for PySys_ResetWarnOptions() and
Guido van Rossum [Fri, 15 Dec 2000 22:02:05 +0000 (22:02 +0000)]
Add definitions for PySys_ResetWarnOptions() and
PySys_AddWarnOption().

24 years agoAdd declarations for PySys_ResetWarnOptions() and
Guido van Rossum [Fri, 15 Dec 2000 22:01:39 +0000 (22:01 +0000)]
Add declarations for PySys_ResetWarnOptions() and
PySys_AddWarnOption().

24 years agoAdd the -W option.
Guido van Rossum [Fri, 15 Dec 2000 22:00:54 +0000 (22:00 +0000)]
Add the -W option.

24 years agoPython part of the warnings subsystem.
Guido van Rossum [Fri, 15 Dec 2000 21:59:53 +0000 (21:59 +0000)]
Python part of the warnings subsystem.

24 years agoAdd PyErr_Warn().
Guido van Rossum [Fri, 15 Dec 2000 21:58:52 +0000 (21:58 +0000)]
Add PyErr_Warn().

24 years agoAdd definitions for standard warning category classes (PyExc_Warning
Guido van Rossum [Fri, 15 Dec 2000 21:58:29 +0000 (21:58 +0000)]
Add definitions for standard warning category classes (PyExc_Warning
etc.).

24 years agoAdd declarations for standard warning category classes (PyExc_Warning
Guido van Rossum [Fri, 15 Dec 2000 21:57:34 +0000 (21:57 +0000)]
Add declarations for standard warning category classes (PyExc_Warning
etc.) and the PyErr_Warn() function.

24 years agoBefore calling traceback.print_exc(), call sys.stdout.flush(). This makes
Fred Drake [Fri, 15 Dec 2000 21:31:59 +0000 (21:31 +0000)]
Before calling traceback.print_exc(), call sys.stdout.flush().  This makes
it much easier to see where things went wrong.

24 years agoDOMException.__init__(): Remember to pass self to Exception.__init__().
Fred Drake [Fri, 15 Dec 2000 21:07:59 +0000 (21:07 +0000)]
DOMException.__init__():  Remember to pass self to Exception.__init__().

24 years agoComment out a debugging print statement that triggered a complaint in
Guido van Rossum [Fri, 15 Dec 2000 20:08:39 +0000 (20:08 +0000)]
Comment out a debugging print statement that triggered a complaint in
c.l.py.

24 years agoAdded documentation for random.shuffle().
Fred Drake [Fri, 15 Dec 2000 19:07:17 +0000 (19:07 +0000)]
Added documentation for random.shuffle().

24 years agoGet rid of string functions.
Guido van Rossum [Fri, 15 Dec 2000 15:49:08 +0000 (15:49 +0000)]
Get rid of string functions.

24 years agoGet rid of string functions. References to string.whitespace,
Guido van Rossum [Fri, 15 Dec 2000 15:37:48 +0000 (15:37 +0000)]
Get rid of string functions.  References to string.whitespace,
string.digits are left.

24 years agoGet rid of string functions.
Guido van Rossum [Fri, 15 Dec 2000 15:09:42 +0000 (15:09 +0000)]
Get rid of string functions.

There should really be a little tool to help with this -- it's rather
tedious and there are lots of special cases!

24 years agoGet rid of string functions, except maketrans() (which is *not*
Guido van Rossum [Fri, 15 Dec 2000 15:01:37 +0000 (15:01 +0000)]
Get rid of string functions, except maketrans() (which is *not*
obsolete!).

Fix a bug in ftpwrapper.retrfile() where somehow ftplib.error_perm was
assumed to be a string.  (The fix applies str().)

Also break some long lines and change the output from test() slightly.

24 years agoAdd test case for error message raised by bad % format character
Andrew M. Kuchling [Fri, 15 Dec 2000 13:09:06 +0000 (13:09 +0000)]
Add test case for error message raised by bad % format character
(Oh, look, it adds another little utility function for testing)

24 years ago[ Patch #102852 ] Make % error a bit more informative by indicates the
Andrew M. Kuchling [Fri, 15 Dec 2000 13:07:46 +0000 (13:07 +0000)]
[ Patch #102852 ] Make % error a bit more informative by indicates the
index at which an unknown %-escape was found

24 years agoGrant Griffin <grant.griffin@honeywell.com>:
Fred Drake [Fri, 15 Dec 2000 05:41:49 +0000 (05:41 +0000)]
Grant Griffin <grant.griffin@honeywell.com>:
Clarify that invert() is a *bitwise* operation.

24 years agoFix typo
Andrew M. Kuchling [Fri, 15 Dec 2000 01:16:43 +0000 (01:16 +0000)]
Fix typo

24 years agoDocument napms()
Andrew M. Kuchling [Fri, 15 Dec 2000 01:03:23 +0000 (01:03 +0000)]
Document napms()
Add reference to demo directory

24 years ago[Patch #102827] Fix for PR#119558, avoiding core dumps by checking for
Andrew M. Kuchling [Fri, 15 Dec 2000 00:59:32 +0000 (00:59 +0000)]
[Patch #102827] Fix for PR#119558, avoiding core dumps by checking for
malloc() returning NULL

24 years agoWrapper for napms() function, contributed by Thomas Gellekum <tg@FreeBSD.org>
Andrew M. Kuchling [Fri, 15 Dec 2000 00:44:02 +0000 (00:44 +0000)]
Wrapper for napms() function, contributed by Thomas Gellekum <tg@FreeBSD.org>

24 years agoCurses demos contributed by Thomas Gellekum <tg@FreeBSD.org>.
Andrew M. Kuchling [Fri, 15 Dec 2000 00:41:48 +0000 (00:41 +0000)]
Curses demos contributed by Thomas Gellekum <tg@FreeBSD.org>.
ncurses.py requires panel support, and therefore doesn't work yet.

24 years agoVarious tweaks. It now returns the exact same files as Matthias' tool 95% of the...
Jack Jansen [Thu, 14 Dec 2000 23:35:01 +0000 (23:35 +0000)]
Various tweaks. It now returns the exact same files as Matthias' tool 95% of the time.

24 years agoOops, interaction() returned a single value in stead of a tuple (I thought that bug...
Jack Jansen [Thu, 14 Dec 2000 23:34:15 +0000 (23:34 +0000)]
Oops, interaction() returned a single value in stead of a tuple (I thought that bug was loooong fixed??!?).

24 years agoFirst stab at a script that mimicks Matthias Neerachers tool used to build GUSI.
Jack Jansen [Thu, 14 Dec 2000 22:29:58 +0000 (22:29 +0000)]
First stab at a script that mimicks Matthias Neerachers tool used to build GUSI.

24 years agoSet autodispose only if RefCon isn't set yet on the window. This way we don't acciden...
Jack Jansen [Thu, 14 Dec 2000 22:29:00 +0000 (22:29 +0000)]
Set autodispose only if RefCon isn't set yet on the window. This way we don't accidentally dispose of windows that are actually dialogs-in-disguise.

24 years agoFix bit rot: use sock.connect((host, port)) and allow 2nd cmd line
Guido van Rossum [Thu, 14 Dec 2000 22:12:33 +0000 (22:12 +0000)]
Fix bit rot: use sock.connect((host, port)) and allow 2nd cmd line
arg.

24 years agoFor the title page, insert the package version number before the date.
Fred Drake [Thu, 14 Dec 2000 18:36:12 +0000 (18:36 +0000)]
For the title page, insert the package version number before the date.
This makes the title area more like the title are of the top-level
index, and puts the information more people are interested in first.

24 years agoUpdate the test suite to cover more ground.
Fred Drake [Thu, 14 Dec 2000 18:20:22 +0000 (18:20 +0000)]
Update the test suite to cover more ground.

This closes patch #102477.

24 years agoLots of small bug fixes and DOM API conformance improvements:
Fred Drake [Thu, 14 Dec 2000 18:16:11 +0000 (18:16 +0000)]
Lots of small bug fixes and DOM API conformance improvements:

Make Node inherit from xml.dom.Node to pick up the NodeType values
defined by the W3C recommendation.

When raising AttributeError, be sure to provide the name of the attribute
that does not exist.

Node.normalize():  Make sure we do not allow an empty text node to survive
                   as the first child; update the sibling links properly.

_getElementsByTagNameNSHelper():  Make recursive calls using the right
                                  number of parameters.

Attr.__setattr__():  Be sure to update name and nodeName at the same time
                     since they are synonyms for this node type.

AttributeList:  Renamed to NamedNodeMap (AttributeList maintained as an
                alias).  Compute the length attribute dynamically to allow
                the underlying structures to mutate.

AttributeList.item():  Call .keys() on the dictionary rather than using
                       self.keys() for performance.

AttributeList.setNamedItem(), .setNamedItemNS():
        Added methods.

Text.splitText():
        Added method.

DocumentType:
        Added implementation class.

DOMImplementation:
        Added implementation class.

Document.appendChild():  Do not allow a second document element to be added.

Document.documentElement:  Find this dynamically, so that one can be
        removed and another added.

Document.unlink():  Clear the doctype attribute.

_get_StringIO():  Only use the StringIO module; cStringIO does not support
                  Unicode.

24 years agoAdjust PullDOM to use a DOMImplementation instance to create new Document
Fred Drake [Thu, 14 Dec 2000 18:00:18 +0000 (18:00 +0000)]
Adjust PullDOM to use a DOMImplementation instance to create new Document
objects; uses minidom if one is not provided to the constructor.

parse():  Pick up the default_bufsize default value dynamically so that
          the value in the module may be (meaningfully) changed at runtime.

This (partially) closes patch #102477.

24 years agoTest for NULL returned from PyObject_NEW().
Guido van Rossum [Thu, 14 Dec 2000 15:09:46 +0000 (15:09 +0000)]
Test for NULL returned from PyObject_NEW().

24 years agoTest for NULL returned from PyObject_NEW().
Guido van Rossum [Thu, 14 Dec 2000 14:59:53 +0000 (14:59 +0000)]
Test for NULL returned from PyObject_NEW().

24 years agoUpdate information on the locking() function, added the needed constants.
Fred Drake [Thu, 14 Dec 2000 03:11:24 +0000 (03:11 +0000)]
Update information on the locking() function, added the needed constants.
(Thanks for the info, Tim!)

24 years agoAdd long-overdue docstrings to dict methods.
Tim Peters [Wed, 13 Dec 2000 23:18:45 +0000 (23:18 +0000)]
Add long-overdue docstrings to dict methods.

24 years agoFinish a sentence that was left half-written!
Fred Drake [Wed, 13 Dec 2000 22:36:02 +0000 (22:36 +0000)]
Finish a sentence that was left half-written!

24 years agoUse METH_VARARGS instead of "1" in list method table.
Tim Peters [Wed, 13 Dec 2000 22:35:46 +0000 (22:35 +0000)]
Use METH_VARARGS instead of "1" in list method table.

24 years agoWhen raising KeyError, provide the key value that failed.
Fred Drake [Wed, 13 Dec 2000 20:48:29 +0000 (20:48 +0000)]
When raising KeyError, provide the key value that failed.

24 years agoChanging allow_reuse_address's default value, and documenting it.
Moshe Zadka [Wed, 13 Dec 2000 20:39:22 +0000 (20:39 +0000)]
Changing allow_reuse_address's default value, and documenting it.

24 years agoUntabify! (Barry, this is gonna cost you a bottle of wine! ;)
Fred Drake [Wed, 13 Dec 2000 20:23:11 +0000 (20:23 +0000)]
Untabify!  (Barry, this is gonna cost you a bottle of wine! ;)

24 years agoTypo repair in comments. Fell for GregS's .popitem() poke.
Tim Peters [Wed, 13 Dec 2000 19:58:25 +0000 (19:58 +0000)]
Typo repair in comments.  Fell for GregS's .popitem() poke.

24 years agoAdded "stub" documentation for xml.dom.pulldom for Paul to fill out with
Fred Drake [Wed, 13 Dec 2000 19:34:38 +0000 (19:34 +0000)]
Added "stub" documentation for xml.dom.pulldom for Paul to fill out with
useful explanations.

24 years agoGet rid of string module and string exceptions.
Guido van Rossum [Wed, 13 Dec 2000 18:11:56 +0000 (18:11 +0000)]
Get rid of string module and string exceptions.

24 years agoAdded descriptions of the defined exceptions and their mapping to the
Fred Drake [Wed, 13 Dec 2000 17:38:02 +0000 (17:38 +0000)]
Added descriptions of the defined exceptions and their mapping to the
DOM recommendation.

24 years agoSet CXX even when --with-cxx is not specified. Closes bug 14782.
Martin v. Löwis [Wed, 13 Dec 2000 17:37:02 +0000 (17:37 +0000)]
Set CXX even when --with-cxx is not specified. Closes bug 14782.

24 years agoSet CXX even when --with-cxx is not specified. Closes bug #124782
Martin v. Löwis [Wed, 13 Dec 2000 17:37:02 +0000 (17:37 +0000)]
Set CXX even when --with-cxx is not specified. Closes bug #124782

24 years agoAdd code to DOMException to ensure it cannot be instantiated directly,
Fred Drake [Wed, 13 Dec 2000 16:35:53 +0000 (16:35 +0000)]
Add code to DOMException to ensure it cannot be instantiated directly,
since the API documentation will state specifically that the specializations
must be used by the DOM implementations.

24 years agoAdd standard DOM exception hierarchy.
Martin v. Löwis [Wed, 13 Dec 2000 14:21:07 +0000 (14:21 +0000)]
Add standard DOM exception hierarchy.

24 years agoDocument --with-cxx.
Martin v. Löwis [Wed, 13 Dec 2000 14:14:32 +0000 (14:14 +0000)]
Document --with-cxx.

24 years agoCheck in README file and one demo program
Andrew M. Kuchling [Wed, 13 Dec 2000 03:50:20 +0000 (03:50 +0000)]
Check in README file and one demo program

24 years agoBring comments up to date (e.g., they still said the table had to be
Tim Peters [Wed, 13 Dec 2000 01:02:46 +0000 (01:02 +0000)]
Bring comments up to date (e.g., they still said the table had to be
a prime size, which is in fact never true anymore ...).

24 years agoUpdate the code to better reflect recommended style:
Fred Drake [Tue, 12 Dec 2000 23:20:45 +0000 (23:20 +0000)]
Update the code to better reflect recommended style:

Use != instead of <> since <> is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.

24 years agoChange the file's indentation from tabs to 4 spaces per level.
Barry Warsaw [Tue, 12 Dec 2000 23:16:51 +0000 (23:16 +0000)]
Change the file's indentation from tabs to 4 spaces per level.

24 years agoAccept Finn Bock's patch #102208 to hardcode EINVAL to 22 when errno
Barry Warsaw [Tue, 12 Dec 2000 23:12:23 +0000 (23:12 +0000)]
Accept Finn Bock's patch #102208 to hardcode EINVAL to 22 when errno
can't be imported.  This makes StringIO.py work with Jython.

Also, get rid of the string module by converting to string methods.

Shorten some lines by using augmented assignment where appropriate.

24 years agoUpdate the code to better reflect recommended style:
Fred Drake [Tue, 12 Dec 2000 23:11:42 +0000 (23:11 +0000)]
Update the code to better reflect recommended style:

Use != instead of <> since <> is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.

24 years agoThe Mac C library (MSL from CodeWarrior 6) and I/O library (GUSI
Jack Jansen [Tue, 12 Dec 2000 22:42:30 +0000 (22:42 +0000)]
The Mac C library (MSL from CodeWarrior 6) and I/O library (GUSI
2.1.3) finally agree on when the epoch is, so the code to convert
epochs has been disabled.