Guido van Rossum
429b41e5ae
Add declarations for PySys_ResetWarnOptions() and
...
PySys_AddWarnOption().
2000-12-15 22:01:39 +00:00
Guido van Rossum
47f5fdc114
Add the -W option.
2000-12-15 22:00:54 +00:00
Guido van Rossum
2a862c614d
Python part of the warnings subsystem.
2000-12-15 21:59:53 +00:00
Guido van Rossum
cfd42b556b
Add PyErr_Warn().
2000-12-15 21:58:52 +00:00
Guido van Rossum
d0977cd670
Add definitions for standard warning category classes (PyExc_Warning
...
etc.).
2000-12-15 21:58:29 +00:00
Guido van Rossum
3fc30372c7
Add declarations for standard warning category classes (PyExc_Warning
...
etc.) and the PyErr_Warn() function.
2000-12-15 21:57:34 +00:00
Fred Drake
1703cf662c
Before calling traceback.print_exc(), call sys.stdout.flush(). This makes
...
it much easier to see where things went wrong.
2000-12-15 21:31:59 +00:00
Fred Drake
279aa6cabc
DOMException.__init__(): Remember to pass self to Exception.__init__().
2000-12-15 21:07:59 +00:00
Guido van Rossum
5080b33046
Comment out a debugging print statement that triggered a complaint in
...
c.l.py.
2000-12-15 20:08:39 +00:00
Fred Drake
065cba1281
Added documentation for random.shuffle().
2000-12-15 19:07:17 +00:00
Guido van Rossum
e6e03eafed
Get rid of string functions.
2000-12-15 15:49:08 +00:00
Guido van Rossum
c80f182dc4
Get rid of string functions. References to string.whitespace,
...
string.digits are left.
2000-12-15 15:37:48 +00:00
Guido van Rossum
34735a6682
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!
2000-12-15 15:09:42 +00:00
Guido van Rossum
b2493f855a
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.
2000-12-15 15:01:37 +00:00
Andrew M. Kuchling
4d192b37ec
Add test case for error message raised by bad % format character
...
(Oh, look, it adds another little utility function for testing)
2000-12-15 13:09:06 +00:00
Andrew M. Kuchling
6ca8917758
[ Patch #102852 ] Make % error a bit more informative by indicates the
...
index at which an unknown %-escape was found
2000-12-15 13:07:46 +00:00
Fred Drake
29c45a5e91
Grant Griffin <grant.griffin@honeywell.com>:
...
Clarify that invert() is a *bitwise* operation.
2000-12-15 05:41:49 +00:00
Andrew M. Kuchling
a1099be778
Fix typo
2000-12-15 01:16:43 +00:00
Andrew M. Kuchling
4fb588240f
Document napms()
...
Add reference to demo directory
2000-12-15 01:03:23 +00:00
Andrew M. Kuchling
2e09530f3f
[Patch #102827 ] Fix for PR#119558, avoiding core dumps by checking for
...
malloc() returning NULL
2000-12-15 00:59:32 +00:00
Andrew M. Kuchling
2824d7f6b1
Wrapper for napms() function, contributed by Thomas Gellekum <tg@FreeBSD.org>
2000-12-15 00:44:02 +00:00
Andrew M. Kuchling
15c3c2bdf8
Curses demos contributed by Thomas Gellekum <tg@FreeBSD.org>.
...
ncurses.py requires panel support, and therefore doesn't work yet.
2000-12-15 00:41:48 +00:00
Jack Jansen
61c64c9de0
Various tweaks. It now returns the exact same files as Matthias' tool 95% of the time.
2000-12-14 23:35:01 +00:00
Jack Jansen
f0d750803d
Oops, interaction() returned a single value in stead of a tuple (I thought that bug was loooong fixed??!?).
2000-12-14 23:34:15 +00:00
Jack Jansen
581fa78362
First stab at a script that mimicks Matthias Neerachers tool used to build GUSI.
2000-12-14 22:29:58 +00:00
Jack Jansen
80716f0e61
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.
2000-12-14 22:29:00 +00:00
Guido van Rossum
4550b00c80
Fix bit rot: use sock.connect((host, port)) and allow 2nd cmd line
...
arg.
2000-12-14 22:12:33 +00:00
Fred Drake
de77bc5468
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.
2000-12-14 18:36:12 +00:00
Fred Drake
3277da0f33
Update the test suite to cover more ground.
...
This closes patch #102477 .
2000-12-14 18:20:22 +00:00
Fred Drake
f7cf40d331
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.
2000-12-14 18:16:11 +00:00
Fred Drake
c16adce273
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 .
2000-12-14 18:00:18 +00:00
Guido van Rossum
adf5410dc4
Test for NULL returned from PyObject_NEW().
2000-12-14 15:09:46 +00:00
Guido van Rossum
9e8f4ea0aa
Test for NULL returned from PyObject_NEW().
2000-12-14 14:59:53 +00:00
Fred Drake
f0b315478b
Update information on the locking() function, added the needed constants.
...
(Thanks for the info, Tim!)
2000-12-14 03:11:24 +00:00
Tim Peters
f7f88b11e4
Add long-overdue docstrings to dict methods.
2000-12-13 23:18:45 +00:00
Fred Drake
48971198c5
Finish a sentence that was left half-written!
2000-12-13 22:36:02 +00:00
Tim Peters
0e76ab2ecc
Use METH_VARARGS instead of "1" in list method table.
2000-12-13 22:35:46 +00:00
Fred Drake
ec126dab9c
When raising KeyError, provide the key value that failed.
2000-12-13 20:48:29 +00:00
Moshe Zadka
dd802208a7
Changing allow_reuse_address's default value, and documenting it.
2000-12-13 20:39:22 +00:00
Fred Drake
a63bd1c65b
Untabify! (Barry, this is gonna cost you a bottle of wine! ;)
2000-12-13 20:23:11 +00:00
Tim Peters
f1c7c884b3
Typo repair in comments. Fell for GregS's .popitem() poke.
2000-12-13 19:58:25 +00:00
Fred Drake
24d6da3eae
Added "stub" documentation for xml.dom.pulldom for Paul to fill out with
...
useful explanations.
2000-12-13 19:34:38 +00:00
Guido van Rossum
ff87174db1
Get rid of string module and string exceptions.
2000-12-13 18:11:56 +00:00
Fred Drake
bc9c1b15cc
Added descriptions of the defined exceptions and their mapping to the
...
DOM recommendation.
2000-12-13 17:38:02 +00:00
Martin v. Löwis
22352957cb
Set CXX even when --with-cxx is not specified. Closes bug 14782.
2000-12-13 17:37:02 +00:00
Martin v. Löwis
537970fe26
Set CXX even when --with-cxx is not specified. Closes bug #124782
2000-12-13 17:37:02 +00:00
Fred Drake
5d1b5eaf55
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.
2000-12-13 16:35:53 +00:00
Martin v. Löwis
64acf1db22
Add standard DOM exception hierarchy.
2000-12-13 14:21:07 +00:00
Martin v. Löwis
2df6694eff
Document --with-cxx.
2000-12-13 14:14:32 +00:00
Andrew M. Kuchling
a3b5a5f2db
Check in README file and one demo program
2000-12-13 03:50:20 +00:00