Skip Montanaro
c7ba0c4c24
added description of StringTypes object
2001-09-29 13:49:41 +00:00
Fred Drake
583061a10f
Fix up whitespace in <args> elements; reduce sequences of consecutive
...
whitespace characters to a single space.
Small changes elsewhere, mostly to clean up the code a little.
2001-09-29 05:05:25 +00:00
Fred Drake
2b05ca3454
Minor markup improvement.
2001-09-29 05:01:59 +00:00
Fred Drake
d157237d51
For Python 2.2, do not use __getattr__(), only use computed properties.
...
This is probably a little bit faster, but mostly is just cleaner code.
The old-style support is still used for Python versions < 2.2 so this
source file can be shared with PyXML.
2001-09-29 04:58:32 +00:00
Fred Drake
787fd8cdeb
_dispatch(): Do no re-define the resolve_dotted_atttribute() function
...
every time this gets called; move it out as a global helper function.
Simplify the call to the _dispatch() method of the registered instance.
2001-09-29 04:54:33 +00:00
Tim Peters
599db7de63
The list.sort() docs require a function that returns -1, 0 or +1. That's
...
never been true, and in particular implies cmp() can't be used(!). Get
closer to the truth.
2001-09-29 01:08:19 +00:00
Guido van Rossum
84675acb49
The changes to ternary_op could cause a core dump. Fix this, and
...
rewrite the code a bit to avoid calling the same slot more than once.
2001-09-29 01:05:03 +00:00
Guido van Rossum
bb29b9c952
Clarify the warning about the relative dates of Setup.dist and Setup;
...
Jeremy had seen the warning but not realized what he should do about
it. Add the hint "Usually, copying Setup.dist to Setup will work."
2001-09-29 00:42:19 +00:00
Guido van Rossum
751c4c864c
Add a few ``__dynamic__ = 0'' lines in classes that need to preserve
...
staticness when __dynamic__ = 1 becomes the default:
- Some classes which are used to test the difference between static
and dynamic.
- Subclasses of complex: complex uses old-style numbers and the slot
wrappers used by dynamic classes only support new-style numbers.
(Ideally, the complex type should be fixed, but that looks like a
labor-intensive job.)
2001-09-29 00:40:25 +00:00
Guido van Rossum
4bb1e36eec
It's a fact: for binary operators, *under certain circumstances*,
...
__rop__ now takes precendence over __op__. Those circumstances are:
- Both arguments are new-style classes
- Both arguments are new-style numbers
- Their implementation slots for tp_op differ
- Their types differ
- The right argument's type is a subtype of the left argument's type
Also did this for the ternary operator (pow) -- only the binary case
is dealt with properly though, since __rpow__ is not supported anyway.
2001-09-28 23:49:48 +00:00
Guido van Rossum
9bea3abf0d
Ouch. The wrapper for __rpow__ was the same as for __pow__, resulting
...
in bizarre outcomes. Test forthcoming.
2001-09-28 22:58:52 +00:00
Fred Drake
7988e0249c
Move XML-RPC-related docs to the "Internet Protocols" chapter.
...
Add entry for the SimpleXMLRPCServer module.
2001-09-28 22:03:40 +00:00
Fred Drake
06c61b14fe
Add entry for the SimpleXMLRPCServer module.
2001-09-28 22:02:49 +00:00
Fred Drake
e486e0d066
Preliminary documentation for the SimpleXMLRPCServer module.
2001-09-28 22:02:21 +00:00
Tim Peters
abf925f6bf
Post-release fiddling (prep for 2.2b1).
2001-09-28 21:53:42 +00:00
Andrew M. Kuchling
d4707e3b62
Minor additions and rewrites.
...
Bump version number.
2001-09-28 20:46:46 +00:00
Fred Drake
946f7b1b24
Update the xml.dom.minidom tests to cover the DOM-compliant parts of the
...
NodeList interface.
2001-09-28 20:31:50 +00:00
Andrew M. Kuchling
76d62b4e79
Install the new compiler and email packages
2001-09-28 20:29:15 +00:00
Fred Drake
575712eaca
Tighten up the new NodeList implementation.
...
Clean up a little; do not create an alias that is only used once, or store
attributes with constant values in an instance.
2001-09-28 20:25:45 +00:00
Fred Drake
88a56857f6
Remove an infelicitous space.
2001-09-28 20:16:30 +00:00
Tim Peters
9390cc15da
regrtest's -g option stopped working, during the changes to improve
...
error-reporting for the classic compare-expected-output tests.
Curiously, the bug consisted of not simplifying the logic enough!
2001-09-28 20:14:46 +00:00
Fred Drake
b2ad1c8b4d
Reflect recent refinements of the regression testing framework.
2001-09-28 20:05:25 +00:00
Guido van Rossum
e296cedef9
Be more rigorous about making pathnames absolute, to address SF bug
...
#424002 .
Refactor init_path_from_argv0() and rename to copy_absolute(); add
absolutize() which does the same in-place.
Clean up whitespace (leading tabs -> spaces, delete trailing
spaces/tabs).
2001-09-28 20:00:29 +00:00
Fred Drake
746fe0fae5
Clean up circular references in the Weak*Dictionary classes; this avoids
...
depending on the cycle detector code in the library implementation.
This is a *slightly* different patch than SF patch #417795 , but takes
the same approach. (This version avoids calling the __len__() method of
the dict in the remove() functions.)
This closes SF patch #417795 .
2001-09-28 19:01:26 +00:00
Guido van Rossum
43b9a086bf
Reorder Still To Do items (highest priority on top), add one.
2001-09-28 18:19:21 +00:00
Guido van Rossum
8b9def3aac
Add complex to the dispatch tables, to avoid going through the whole
...
rigmarole of __reduce__.
2001-09-28 18:16:13 +00:00
Guido van Rossum
6cef6d5d62
Changes to copy() and deepcopy() in copy.py to support __reduce__ as a
...
fallback for objects that are neither supported by our dispatch table
nor have a __copy__ or __deepcopy__ method.
Changes to _reduce() in copy_reg.py to support reducing objects that
don't have a __dict__ -- copy.copy(complex()) now invokes _reduce().
Add tests for copy.copy() and copy.deepcopy() to test_regrtest.py.
2001-09-28 18:13:29 +00:00
Fred Drake
19405a4a2a
Removed files no longer needed.
2001-09-28 17:22:35 +00:00
Barry Warsaw
3c1b4a40dc
PY_RELEASE_SERIAL => 4
...
PY_VERSION => "2.2a4+"
2001-09-28 17:15:23 +00:00
Fred Drake
3c171d1b9f
Convert to string methods.
...
For the real document element, make sure the prolog is migrated into
the document element so it isn't left stranded.
Make fixup_trailing_whitespace() whitespace do what was really intended.
Add the *desc environments used in the C API manual to the list of
things that can exist at the paragraph level so they don't get wrapped
in <para>...</para>.
2001-09-28 17:14:35 +00:00
Barry Warsaw
647d5e8f4a
Fixed a minor typo.
2001-09-28 17:01:02 +00:00
Fred Drake
3c10c68c0e
Use consistent version annotations instead of something ad hoc.
2001-09-28 16:57:16 +00:00
Fred Drake
0f9bfd3dda
Convert most uses of the string module to string methods.
...
(string.join() lives!)
2001-09-28 16:26:13 +00:00
Fred Drake
bbf7a407e8
Added note about non-support of UNC paths on Windows.
...
This fixes SF bug #465447 .
2001-09-28 16:14:18 +00:00
Fred Drake
b387860c70
State that encode() and encodestring() append a newline to the input data
...
if it does not already end with a newline.
This fixes SF bug #463330 .
2001-09-28 16:01:46 +00:00
Guido van Rossum
ce608b02a6
Fix SF bug 419062: building pbs on AIX 4.3.2
...
Apply patch from "china@thewrittenword.com" to put the correct
location for ld_so_aix in BLDSHARED.
2001-09-28 15:59:38 +00:00
Barry Warsaw
86fbaf8e67
Merged changes from 22a4 branch.
2001-09-28 15:26:12 +00:00
Fred Drake
3ac6a09eed
For Python 2.2 and newer, actually support the full NodeList interface by
...
subclassing list to add the length and item() attributes.
2001-09-28 04:33:06 +00:00
Guido van Rossum
2ed6bf87c9
Merge branch changes (coercion, rich comparisons) into trunk.
2001-09-27 20:30:07 +00:00
Fred Drake
33f4d6d1db
Add entries for the email and compiler packages.
2001-09-27 20:11:07 +00:00
Fred Drake
90e687863b
Markup adjustments.
2001-09-27 20:09:39 +00:00
Fred Drake
d443d8cc00
Added dependencies for the compiler and email packages.
...
(Migrate to branch, along with new files compiler.tex and asttable.tex.)
2001-09-27 20:08:20 +00:00
Fred Drake
e2f9917f9f
Migrate the compiler documentation from the Tools/compiler/doc/ directory.
...
Changes made to make it work in the new location.
2001-09-27 20:06:07 +00:00
Fred Drake
876389e5d8
Do not distinguish \refmodule from \module in the generated output;
...
whether or not a link will be generated will depend on the link database.
Add a couple of explanatory comments for one of the stranger constructs
(giving input an empty name).
2001-09-27 17:01:59 +00:00
Fred Drake
9213b7a961
Re-write <ulink> elements as described in the conversion spec.
2001-09-27 16:52:22 +00:00
Fred Drake
5a28bfbbc7
Change the sense of a test in how the profiler interprets exception events.
...
This should fix a bug in how time is allocated during exception propogation
(esp. in the presence of finally clauses).
2001-09-27 16:28:42 +00:00
Tim Peters
30bff63958
Bump Windows build numbers for 2.2a4; installer changes were done earlier.
2001-09-27 16:28:15 +00:00
Fred Drake
baacc08ead
Turn \input, \include, and \verbatiminput into XInclude elements instead
...
of something ad-hoc.
2001-09-27 15:49:23 +00:00
Marc-André Lemburg
bf99017bbb
Added note about new StringIO/cStringIO feature.
2001-09-27 14:17:33 +00:00
Fred Drake
b6fa78930e
Add support for some more markup that had slipped in.
...
Fixed a typo in a comment.
2001-09-27 04:18:39 +00:00