Fred Drake
71b63ff342
pyexpat code cleanup and minor refactorings:
...
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.
2002-06-28 22:29:01 +00:00
Neil Schemenauer
c9051640f8
Fix small bug. The count of objects in all generations younger then the
...
collected one should be zeroed.
2002-06-28 19:16:04 +00:00
Mark Hammond
0d3b2fe094
Patch 574531/Bug 574570 - allow freeze on windows to use the _winreg
...
extension.
2002-06-28 01:13:02 +00:00
Jack Jansen
2bb598067a
The standard definition file is now called mwerks_shcarbon_plugin.h.
2002-06-27 22:10:19 +00:00
Jack Jansen
1892cf0312
Started on support for using standard setup.py to build at least
...
the "standard" modules. Unfinished, but shouldn't harm anything.
2002-06-27 22:09:19 +00:00
Jack Jansen
73aa1fff85
More fixes for building MacPython extension modules. It now actually succeeds
...
in building various modules.
2002-06-27 22:06:49 +00:00
Fredrik Lundh
3d9addd55a
merged with SLAB codebase (version 1.0.1)
2002-06-27 21:36:21 +00:00
Fredrik Lundh
4fb7027ec0
made the code match the comments (1.5.2 compatibility)
2002-06-27 20:08:25 +00:00
Fredrik Lundh
6f7c3431c8
Fix bug #570057 : Broken pre.subn() (and pre.sub())
...
This should be backported to the 2.2.X series (how
do I do that?)
2002-06-27 19:59:27 +00:00
Fred Drake
1add023b88
Integrate the tests for name interning from PyXML (test_pyexpat.py
...
revision 1.12 in PyXML).
2002-06-27 19:41:51 +00:00
Fred Drake
b91a36b230
Integrate the changes from PyXML's version of pyexpat.c revisions
...
1.47, 1.48, 1.49 (name interning support).
2002-06-27 19:40:48 +00:00
Fred Drake
d805fefff4
Added support for some of the more recently defined macros and
...
environments.
2002-06-27 18:38:06 +00:00
Fred Drake
2c813818c8
Clean up some markup.
2002-06-27 18:30:34 +00:00
Neal Norwitz
dcd0500664
dis.dis() also supports modules
2002-06-26 22:32:47 +00:00
Jack Jansen
c70815ac0f
Disabled non-carbon builds (for the moment still optional) and made
...
these scripts work with the new precompiled headers.
2002-06-26 22:06:08 +00:00
Neal Norwitz
80a3e0a604
Whitespace normalization (remove tabs)
2002-06-26 22:05:33 +00:00
Fred Drake
292724d989
Fix various typos reported to python-docs.
2002-06-26 21:52:26 +00:00
Fred Drake
33fd5f7e02
Fix typo reported to python-docs.
2002-06-26 21:25:15 +00:00
Jack Jansen
e0c62b4db0
Make the prototype match the declaration in the GUSI header files.
2002-06-26 20:43:24 +00:00
Jack Jansen
c5601f4839
Undefine DPRINTF before defining it, there was a conflict with some other
...
definition.
2002-06-26 20:41:30 +00:00
Jack Jansen
3a96702b2b
Undefine TRUE and FALSE before redefining them.
2002-06-26 20:40:42 +00:00
Jack Jansen
e739a0dbe9
Got rid of an extraneous semicolon.
2002-06-26 20:39:20 +00:00
Jack Jansen
027f6722c4
Changed some prototypes to match the exact definition in some faraway Apple
...
header files. If we're building with precompiled headers these are in scope.
2002-06-26 20:37:40 +00:00
Jack Jansen
440a36f3ab
In plugin projects use (by default) the new mwerks_shcarbon_pch
...
header file in stead of mwerks_carbonplugin_config.h.
2002-06-26 20:36:12 +00:00
Jack Jansen
bc5e145341
Close the project after generating it, so we don't keep a gazillion project
...
files open when we're rebuilding them all.
2002-06-26 20:35:18 +00:00
Jack Jansen
7504dfedb4
- Got rid of non-carbon builds
...
- Use precompiled headers
- Rationalize config file names.
2002-06-26 20:17:02 +00:00
Jack Jansen
4439b7c67e
Fixed a few showstoppers in the process of making MacPython use setup.py to build it's exension modules (in stead of relying on a private mechanism). It definitely doesn't work yet, but it looks promising.
2002-06-26 15:44:30 +00:00
Jack Jansen
ab5320bfd9
Fixed various MacPython-specific issues found by attempting to use the standard core setup.py for MacPython.
2002-06-26 15:42:49 +00:00
Raymond Hettinger
0a2963c797
Apply SF 562987 modernizing Cookie to subclass from dict instead of UserDict
2002-06-26 15:19:01 +00:00
Fred Drake
3a159a8d25
Suppress the variable verbose output from test.xmltests; the inclusion of
...
timing information in the output makes the determination of success bogus.
2002-06-26 15:16:16 +00:00
Jack Jansen
09c7343273
Turns out GetArgv() options can be 4-tuples too, with the last value being the default (or something like that). Cater for this.
...
Also put in a safeguard against very long help strings.
2002-06-26 15:14:48 +00:00
Jack Jansen
96cad2ea47
This module broke on the Mac (where it can't work, but distutils seems to import it anyway) because it imported pwd and grp. Moved the import to inside the routine where they're used.
2002-06-26 15:00:29 +00:00
Andrew M. Kuchling
dcdf48a5c7
Add some acks
2002-06-26 13:28:19 +00:00
Andrew M. Kuchling
d003a2a54f
Describe textwrap module
2002-06-26 13:23:55 +00:00
Raymond Hettinger
ca0383d3a3
Fix bug #573916 . Sender and recipients reversed in email example.
2002-06-26 07:51:32 +00:00
Ka-Ping Yee
711cad769a
Also look up variable names in __builtins__ if not found in globals.
...
Don't show hidden fields of exception values (names starting with '_').
2002-06-26 07:10:56 +00:00
Skip Montanaro
763805dab2
add seealso link to the bisect module
2002-06-26 05:22:08 +00:00
Skip Montanaro
09d9f86c77
add /F's PriorityQueue example
2002-06-26 05:07:28 +00:00
Kurt B. Kaiser
ffd3a4217a
Shutdown subprocess debugger and associated Proxies/Adapters when closing
...
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
2002-06-26 02:32:09 +00:00
Andrew M. Kuchling
fdc34315f7
Add a reminder
2002-06-26 00:03:05 +00:00
Andrew M. Kuchling
09d6b928e7
Add a reminder
2002-06-25 23:57:17 +00:00
Jeremy Hylton
bd23289e4d
Silence compiler warning
2002-06-25 19:26:34 +00:00
Fred Drake
867de944b4
Add convenience module to run all the XML tests.
2002-06-25 19:20:10 +00:00
Fred Drake
c5e2792ab4
Talk about interfaces rather than implementation classes where appropriate.
...
Add hyperlinks to make the documentation on the Attributes and AttributesNS
interfaces more discoverable.
Closes SF bug #484603 .
2002-06-25 17:10:50 +00:00
Fred Drake
b6aa9cbb96
Added some more links to the "See also" section.
2002-06-25 16:58:58 +00:00
Fred Drake
7bc121a4fb
When talking about interfaces, use the interface names, not the names
...
of the implementation classes. (Remove the "Impl" from two names.)
2002-06-25 16:25:01 +00:00
Raymond Hettinger
f0236d7374
Fix typo
2002-06-25 15:26:59 +00:00
Raymond Hettinger
07dc91800f
Close bug 480337: Dict used before dicts explained. Added explanation
...
and examples of the dict() constructor.
2002-06-25 15:13:18 +00:00
Raymond Hettinger
04e7e0c60f
Close bug 417930 by clarifying augmented assignment docs
2002-06-25 13:36:41 +00:00
Skip Montanaro
8345f719c8
Not sure how I forgot to check these in - thought I did all the files in one
...
fell swoop. Anyway, this just deletes a couple checks for dbm-type header
files that are now performed in setup.py. See patch 553108 for details.
2002-06-25 05:53:48 +00:00