Martin v. Löwis
58af43fd76
[Patch 101634]
...
xml.sax: Fix parse and parseString not to rely on ExpatParser
Greatly simplify import logic by using __import__
saxutils: Support Unicode strings and files as parameters to
prepare_input_source
2000-09-24 21:31:06 +00:00
Fredrik Lundh
eedb5764a5
unicode database compression, step 1:
...
- use unidb compression for the unicodedata module. on Windows,
the new unidatabase module is 120k, down from nearly 600k.
2000-09-24 21:28:28 +00:00
Martin v. Löwis
2066fa023c
Find feature names in handler.
2000-09-24 21:17:39 +00:00
Lars Gustäbel
424980fd4d
Enabled EntityResolver test again now that pyexpat.c has been fixed.
2000-09-24 20:57:04 +00:00
Lars Gustäbel
3a361f4f8b
Fixed another bug.
2000-09-24 20:55:01 +00:00
Lars Gustäbel
4a30a07186
Added ExternalEntityParserCreate method (patch 101635).
2000-09-24 20:50:52 +00:00
Lars Gustäbel
bb757136b2
Improvements to doco strings.
...
Tiny bug fix to expatreader.py (endDocument was only called after errors).
2000-09-24 20:38:18 +00:00
Martin v. Löwis
33315b180b
Use findfile to locate input and output files.
2000-09-24 20:30:24 +00:00
Lars Gustäbel
e292a24589
Added EntityResolver and DTDHandler (patch 101631) with test cases.
2000-09-24 20:19:45 +00:00
Martin v. Löwis
bc1c1c98eb
Install xml/parsers, not xml/parser.
2000-09-24 19:57:18 +00:00
Martin v. Löwis
05a65d6745
If dbopen is not in libc, checking whether it is in libdb will fail if
...
db_185.h has renamed that function to __db185_open, which it does in DB 3.1.
So don't check whether the function is in -ldb.
2000-09-24 19:40:25 +00:00
Lars Gustäbel
716efea181
Added necessary test input file for test_sax.py
2000-09-24 18:57:26 +00:00
Lars Gustäbel
523b0a6ec8
Added back the InputSource class (patch 101630).
2000-09-24 18:54:49 +00:00
Lars Gustäbel
b7536d5860
Added test cases for the InputSource class.
2000-09-24 18:53:56 +00:00
Fredrik Lundh
b49f88bfc1
- Improved handling of win32 proxy settings (addresses bug #114256 ).
...
The earlier code assumed "protocol=host;protocol=host;..." or "host",
but Windows may also use "protocol=host" (just one entry), as well as
"protocol://host". This code needs some more work, so I'll leave the
bug open for now.
2000-09-24 18:51:25 +00:00
Lars Gustäbel
ab64787dca
Added test cases for the Attributes interface.
2000-09-24 18:40:52 +00:00
Lars Gustäbel
32bf12eb8a
Updated to final Attributes interface (patch 101632).
2000-09-24 18:39:23 +00:00
Lars Gustäbel
e84bf751bb
Updated to new SAX method signatures (*NS, patch 101573).
2000-09-24 18:31:37 +00:00
Lars Gustäbel
f43cf31f4a
Updated to new *NS signatures (patch 101573).
2000-09-24 18:29:24 +00:00
Guido van Rossum
1258049de0
Stupid typo in the pthread_t test
2000-09-24 16:47:19 +00:00
Fredrik Lundh
19f977ba40
- don't hang if group id is followed by whitespace (closes bug #114660 )
2000-09-24 14:46:23 +00:00
Lars Gustäbel
96753b3482
Added first start on SAX 2.0 tests.
2000-09-24 12:24:24 +00:00
Lars Gustäbel
358f4da29c
Added back missing argument to ignorableWhitespace signature.
2000-09-24 11:06:27 +00:00
Lars Gustäbel
fc643c339d
Bug fix to namespace handling in XMLGenerator (now adds declarations).
...
Bug fixes to XMLFilterBase (wrong ignorableWhitespace signature and
did not inherit set*Handler methods from XMLReader.)
2000-09-24 10:53:31 +00:00
Nicholas Riley
9a580c440c
Fixes for Python 1.6 compatibility - socket bind and connect get a
...
tuple instead two arguments.
2000-09-24 06:29:50 +00:00
Nicholas Riley
21afd01ce2
Change for Python 1.6 compatibility - UNIX's 'os' module defines
...
'spawnv' now, so we check for 'fork' first.
2000-09-24 06:28:47 +00:00
Fred Drake
1f54902e05
Conform to the Python style guide.
2000-09-24 05:21:58 +00:00
Fred Drake
ddb486745b
Conform more closely with the Python style guide.
2000-09-23 05:32:26 +00:00
Fred Drake
7be3115860
Added explanation of the use of the first program argument passed to the
...
exec*() family of functions.
2000-09-23 05:22:07 +00:00
Fred Drake
93adb6918c
Change the name of the exception from "pyexpat.error" to
...
"xml.parsers.expat.error", so it will reflect the public name of the
exception rather than the internal name.
Also change some of the initialization to use the new PyModule_Add*()
convenience functions.
2000-09-23 04:55:48 +00:00
Fred Drake
96ea196ea8
Use the public name for the Expat parser; "pyexpat" is deprecated.
2000-09-23 04:49:30 +00:00
Fred Drake
7fbc85c5c5
Rename the public interface from "pyexpat" to "xml.parsers.expat".
2000-09-23 04:47:56 +00:00
Fred Drake
003b9250e3
Add a wrapper around the pyexpat module, making the "public" name of
...
the module "xml.parsers.expat".
2000-09-23 04:44:43 +00:00
Fred Drake
c32741d1ab
Added warnings about platform vagaries to the strptime() documentation.
...
This closes SourceForge bug #115146 .
2000-09-23 04:36:14 +00:00
Tim Peters
ef14d73b7a
Fix for SF bug 110624: float literals behave inconsistently.
...
I fixed the specific complaint but left the (many) large issues untouched.
See the (very long) bug report discussion for why:
http://sourceforge.net/bugs/?func=detailbug&group_id=5470&bug_id=110624
Note that while I left the interface to the undocumented public API function
PyFloat_FromString alone, its 2nd argument is useless. From a comment block
in the code:
RED_FLAG 22-Sep-2000 tim
PyFloat_FromString's pend argument is braindead. Prior to this RED_FLAG,
1. If v was a regular string, *pend was set to point to its terminating
null byte. That's useless (the caller can find that without any
help from this function!).
2. If v was a Unicode string, or an object convertible to a character
buffer, *pend was set to point into stack trash (the auto temp
vector holding the character buffer). That was downright dangerous.
Since we can't change the interface of a public API function, pend is
still supported but now *officially* useless: if pend is not NULL,
*pend is set to NULL.
2000-09-23 03:39:17 +00:00
Fred Drake
891150bdf2
Added documentation for the new PyModule_*() convenience functions.
...
This closes SourceForge patch #101233 .
2000-09-23 03:25:42 +00:00
Fred Drake
9e2851566c
Andrew Kuchling <akuchlin@mems-exchange.org>:
...
Add three new convenience functions to the PyModule_*() family:
PyModule_AddObject(), PyModule_AddIntConstant(), PyModule_AddStringConstant().
This closes SourceForge patch #101233 .
2000-09-23 03:24:27 +00:00
Greg Ward
f84fb660cb
Split 'run()' up into 'build()', 'install()', and 'bytecompile()' (for
...
easier extensibility).
2000-09-23 01:20:19 +00:00
Greg Ward
7b87c0e1bb
Whitespace tweaks.
2000-09-23 01:10:10 +00:00
Greg Ward
9e3dc4e928
Reformat docstrings.
...
Standardize use of whitespace on function calls.
2000-09-23 00:59:34 +00:00
Jack Jansen
4a751580ca
mkcwproject now works, but for one thing: the import of the XML document as a project through AppleEvents.
2000-09-22 23:54:07 +00:00
Jack Jansen
9a8df7db6b
Test files for mkcwproject
2000-09-22 23:28:40 +00:00
Jack Jansen
07642c3689
More bits and pieces of project generation.
2000-09-22 23:26:55 +00:00
Neil Schemenauer
7760cff294
Fix some long/"l" int/"i" mismatches. Fixes bug #113779 .
2000-09-22 22:35:36 +00:00
Jack Jansen
4a5eb967b8
Keepconsole is now a 4-way option: never/errorexit/unseen output/always. Default is "unseen output". Upped the Popt version number.
2000-09-22 21:50:11 +00:00
Guido van Rossum
e126233cd9
Poke-and-hope attempt to fix Bugs #115006 and #114324 : fix the test
...
for pthread_t (to calculate its size) to work even if pthread_t is a
struct.
2000-09-22 19:41:56 +00:00
Fred Drake
d9a8dec135
Maildir.__init__(): Use the correct filter for filenames, so that this
...
class conforms to the maildir specification.
2000-09-22 18:41:50 +00:00
Fred Drake
1fa9365066
Added refcount information for the *_InPlace*() API series.
...
This closes SourceForge bug #114287 .
2000-09-22 18:19:37 +00:00
Fred Drake
c0e6c5beb2
PyNumber_Coerce() returns an int, not a PyObject *.
2000-09-22 18:17:49 +00:00
Fred Drake
3764b6b67e
Fix the way we found relevant cfuncdesc lines; PREFIX was not a regular
...
expression!
2000-09-22 17:55:32 +00:00