| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Setting the buffer_text attribute to true causes the parser to collect
character data, waiting as long as possible to report it to the Python
callback. This can save an enormous number of callbacks from C to
Python, which can be a substantial performance improvement.
buffer_text defaults to false.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The HTTPResponse class now handles 100 continue responses, instead of
choking on them. It detects them internally in the _begin() method
and ignores them. Based on a patch by Bob Kline.
This closes SF bugs 498149 and 551273.
The FakeSocket class (for SSL) is now usable with HTTP/1.1
connections. The old version of the code could not work with
persistent connections, because the makefile() implementation read
until EOF before returning. If the connection is persistent, the
server sends a response and leaves the connection open. A client that
reads until EOF will block until the server gives up on the connection
-- more than a minute in my test case.
The problem was fixed by implementing a reasonable makefile(). It
reads data only when it is needed by the layers above it. It's
implementation uses an internal buffer with a default size of 8192.
Also, rename begin() method of HTTPResponse to _begin() because it
should only be called by the HTTPConnection.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The handlers array on each parser now has the invariant that None will
never be set as a handler; it will always be NULL or a Python-level
value passed in for the specific handler.
have_handler(): Return true if there is a Python handler for a
particular event.
get_handler_name(): Return a string object giving the name of a
particular handler. This caches the string object so it doesn't
need to be created more than once.
get_parse_result(): Helper to allow the Parse() and ParseFile()
methods to share the same logic for determining the return value
or exception state.
PyUnknownEncodingHandler(), PyModule_AddIntConstant():
Made these helpers static. (The later is only defined for older
versions of Python.)
pyxml_UpdatePairedHandlers(), pyxml_SetStartElementHandler(),
pyxml_SetEndElementHandler(), pyxml_SetStartNamespaceDeclHandler(),
pyxml_SetEndNamespaceDeclHandler(), pyxml_SetStartCdataSection(),
pyxml_SetEndCdataSection(), pyxml_SetStartDoctypeDeclHandler(),
pyxml_SetEndDoctypeDeclHandler():
Removed. These are no longer needed with Expat 1.95.x.
handler_info:
Use the setter functions provided by Expat 1.95.x instead of the
pyxml_Set*Handler() functions which have been removed.
Minor code formatting changes for consistency.
Trailing whitespace removed.
|
|
|
|
| |
collected one should be zeroed.
|
|
|
|
| |
extension.
|
| |
|
|
|
|
| |
the "standard" modules. Unfinished, but shouldn't harm anything.
|
|
|
|
| |
in building various modules.
|
| |
|
| |
|
|
|
|
|
| |
This should be backported to the 2.2.X series (how
do I do that?)
|
|
|
|
| |
revision 1.12 in PyXML).
|
|
|
|
| |
1.47, 1.48, 1.49 (name interning support).
|
|
|
|
| |
environments.
|
| |
|
| |
|
|
|
|
| |
these scripts work with the new precompiled headers.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
definition.
|
| |
|
| |
|
|
|
|
| |
header files. If we're building with precompiled headers these are in scope.
|
|
|
|
| |
header file in stead of mwerks_carbonplugin_config.h.
|
|
|
|
| |
files open when we're rebuilding them all.
|
|
|
|
|
| |
- Use precompiled headers
- Rationalize config file names.
|
|
|
|
| |
build it's exension modules (in stead of relying on a private mechanism). It definitely doesn't work yet, but it looks promising.
|
|
|
|
| |
standard core setup.py for MacPython.
|
| |
|
|
|
|
| |
timing information in the output makes the determination of success bogus.
|
|
|
|
|
|
| |
the default (or something like that). Cater for this.
Also put in a safeguard against very long help strings.
|
|
|
|
| |
import it anyway) because it imported pwd and grp. Moved the import to inside the routine where they're used.
|
| |
|
| |
|
| |
|
|
|
|
| |
Don't show hidden fields of exception values (names starting with '_').
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
the Idle debugger.
M PyShell.py : Call RemoteDebugger.close_remote_debugger()
M RemoteDebugger.py: Add close_remote_debugger(); further polish code used
to start the debugger sections.
M rpc.py : Add comments on Idlefork methods register(), unregister()
comment out unused methods
M run.py : Add stop_the_debugger(); polish code
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Add hyperlinks to make the documentation on the Attributes and AttributesNS
interfaces more discoverable.
Closes SF bug #484603.
|
| |
|
|
|
|
| |
of the implementation classes. (Remove the "Impl" from two names.)
|
| |
|