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
Tim Peters
ea8f2bf9ca
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 ...).
2000-12-13 01:02:46 +00:00
Fred Drake
8152d32375
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.
2000-12-12 23:20:45 +00:00
Barry Warsaw
c140131995
Change the file's indentation from tabs to 4 spaces per level.
2000-12-12 23:16:51 +00:00
Barry Warsaw
c7ed0e3c13
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.
2000-12-12 23:12:23 +00:00
Fred Drake
132dce2246
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.
2000-12-12 23:11:42 +00:00
Jack Jansen
63596aeb33
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.
2000-12-12 22:42:30 +00:00
Jack Jansen
d49056cd90
The ".pth" code knew about the layout of Python trees on unix and
...
windows, but not on the mac. Fixed.
2000-12-12 22:39:04 +00:00
Jack Jansen
fd0226b327
Use c2pstr() in stead of Pstring() to convert C-strings to
...
Pascal-strings. Safer, because Pstring converts in-place and the
pathname may be reused later for error messages.
2000-12-12 22:36:57 +00:00
Jack Jansen
27489d4c8c
Optionally weed out duplicate prototypes for the same function (which
...
happens because the scanner ignores preprocessor #ifs).
2000-12-12 22:24:35 +00:00
Jack Jansen
c1a4a04792
Adapted to new standard for initmodule() routine: don't call
...
Py_FatalError on errors.
2000-12-12 22:22:59 +00:00
Jack Jansen
7e0c0050a8
Various new standard types.
2000-12-12 22:21:39 +00:00