summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Added character data buffering to pyexpat parser objects.Fred Drake2002-06-282-21/+251
| | | | | | | | | 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.
* Add Bob Kline of HTTP 100 fame.Jeremy Hylton2002-06-281-0/+1
|
* Fixes for two separate HTTP/1.1 bugs: 100 responses and HTTPS connections.Jeremy Hylton2002-06-281-32/+102
| | | | | | | | | | | | | | | | | | | | | | | 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.
* pyexpat code cleanup and minor refactorings:Fred Drake2002-06-281-221/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix small bug. The count of objects in all generations younger then theNeil Schemenauer2002-06-281-1/+1
| | | | collected one should be zeroed.
* Patch 574531/Bug 574570 - allow freeze on windows to use the _winregMark Hammond2002-06-281-1/+5
| | | | extension.
* The standard definition file is now called mwerks_shcarbon_plugin.h.Jack Jansen2002-06-271-1/+1
|
* Started on support for using standard setup.py to build at leastJack Jansen2002-06-271-43/+66
| | | | the "standard" modules. Unfinished, but shouldn't harm anything.
* More fixes for building MacPython extension modules. It now actually succeedsJack Jansen2002-06-271-16/+18
| | | | in building various modules.
* merged with SLAB codebase (version 1.0.1)Fredrik Lundh2002-06-271-78/+344
|
* made the code match the comments (1.5.2 compatibility)Fredrik Lundh2002-06-271-3/+3
|
* Fix bug #570057: Broken pre.subn() (and pre.sub())Fredrik Lundh2002-06-271-2/+4
| | | | | This should be backported to the 2.2.X series (how do I do that?)
* Integrate the tests for name interning from PyXML (test_pyexpat.pyFred Drake2002-06-271-0/+18
| | | | revision 1.12 in PyXML).
* Integrate the changes from PyXML's version of pyexpat.c revisionsFred Drake2002-06-271-46/+109
| | | | 1.47, 1.48, 1.49 (name interning support).
* Added support for some of the more recently defined macros andFred Drake2002-06-271-0/+14
| | | | environments.
* Clean up some markup.Fred Drake2002-06-271-5/+6
|
* dis.dis() also supports modulesNeal Norwitz2002-06-261-1/+2
|
* Disabled non-carbon builds (for the moment still optional) and madeJack Jansen2002-06-262-20/+27
| | | | these scripts work with the new precompiled headers.
* Whitespace normalization (remove tabs)Neal Norwitz2002-06-261-4/+4
|
* Fix various typos reported to python-docs.Fred Drake2002-06-261-1/+1
|
* Fix typo reported to python-docs.Fred Drake2002-06-261-1/+1
|
* Make the prototype match the declaration in the GUSI header files.Jack Jansen2002-06-261-3/+3
|
* Undefine DPRINTF before defining it, there was a conflict with some otherJack Jansen2002-06-261-0/+1
| | | | definition.
* Undefine TRUE and FALSE before redefining them.Jack Jansen2002-06-261-0/+2
|
* Got rid of an extraneous semicolon.Jack Jansen2002-06-261-1/+1
|
* Changed some prototypes to match the exact definition in some faraway AppleJack Jansen2002-06-262-4/+4
| | | | header files. If we're building with precompiled headers these are in scope.
* In plugin projects use (by default) the new mwerks_shcarbon_pchJack Jansen2002-06-261-1/+1
| | | | header file in stead of mwerks_carbonplugin_config.h.
* Close the project after generating it, so we don't keep a gazillion projectJack Jansen2002-06-261-0/+1
| | | | files open when we're rebuilding them all.
* - Got rid of non-carbon buildsJack Jansen2002-06-265-0/+0
| | | | | - Use precompiled headers - Rationalize config file names.
* Fixed a few showstoppers in the process of making MacPython use setup.py to ↵Jack Jansen2002-06-261-17/+18
| | | | build it's exension modules (in stead of relying on a private mechanism). It definitely doesn't work yet, but it looks promising.
* Fixed various MacPython-specific issues found by attempting to use the ↵Jack Jansen2002-06-262-4/+37
| | | | standard core setup.py for MacPython.
* Apply SF 562987 modernizing Cookie to subclass from dict instead of UserDictRaymond Hettinger2002-06-261-15/+11
|
* Suppress the variable verbose output from test.xmltests; the inclusion ofFred Drake2002-06-262-15/+3
| | | | timing information in the output makes the determination of success bogus.
* Turns out GetArgv() options can be 4-tuples too, with the last value being ↵Jack Jansen2002-06-261-3/+9
| | | | | | the default (or something like that). Cater for this. Also put in a safeguard against very long help strings.
* This module broke on the Mac (where it can't work, but distutils seems to ↵Jack Jansen2002-06-261-1/+2
| | | | import it anyway) because it imported pwd and grp. Moved the import to inside the routine where they're used.
* Add some acksAndrew M. Kuchling2002-06-261-1/+2
|
* Describe textwrap moduleAndrew M. Kuchling2002-06-261-2/+35
|
* Fix bug #573916. Sender and recipients reversed in email example.Raymond Hettinger2002-06-261-2/+2
|
* Also look up variable names in __builtins__ if not found in globals.Ka-Ping Yee2002-06-261-3/+15
| | | | Don't show hidden fields of exception values (names starting with '_').
* add seealso link to the bisect moduleSkip Montanaro2002-06-261-0/+4
|
* add /F's PriorityQueue exampleSkip Montanaro2002-06-261-1/+19
|
* Shutdown subprocess debugger and associated Proxies/Adapters when closingKurt B. Kaiser2002-06-264-41/+80
| | | | | | | | | | | 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 a reminderAndrew M. Kuchling2002-06-261-0/+2
|
* Add a reminderAndrew M. Kuchling2002-06-251-1/+3
|
* Silence compiler warningJeremy Hylton2002-06-251-1/+1
|
* Add convenience module to run all the XML tests.Fred Drake2002-06-252-0/+395
|
* Talk about interfaces rather than implementation classes where appropriate.Fred Drake2002-06-252-42/+60
| | | | | | Add hyperlinks to make the documentation on the Attributes and AttributesNS interfaces more discoverable. Closes SF bug #484603.
* Added some more links to the "See also" section.Fred Drake2002-06-251-0/+9
|
* When talking about interfaces, use the interface names, not the namesFred Drake2002-06-251-1/+1
| | | | of the implementation classes. (Remove the "Impl" from two names.)
* Fix typoRaymond Hettinger2002-06-251-1/+1
|