| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
I modified nntplib so the body method can accept an
optional second parameter pointing to a filehandle or
filename (string). This way, really long body
articles can be stored to disk instead of kept in
memory. The way I made the modification should make
it easy to extend this functionality to other extended
return methods.
|
| |
|
| |
|
| |
|
|
|
|
| |
Decode and encode underscores for header style encoding. Fixes bug #463996.
|
| |
|
|
|
|
|
| |
it acts more like assigning to keys in locals(), i.e. modifications to
function locals aren't reflected in the locals when execfile() returns.
|
| |
|
|
|
|
|
|
| |
Replaced 3 instances of "iter() of non-sequence" with
"iteration over non-sequence".
Restored "unpack non-sequence" for stuff like "a, b = 1".
|
|
|
|
|
|
| |
Generalize PyLong_AsLongLong to accept int arguments too. The real point
is so that PyArg_ParseTuple's 'L' code does too. That code was
undocumented (AFAICT), so documented it.
|
| |
|
|
|
|
|
| |
recent user feedback: you must end the input with \n and you must use
\n, not \r\n to represent line endings.
|
| |
|
| |
|
|
|
|
|
| |
whitespace characters to a single space.
Small changes elsewhere, mostly to clean up the code a little.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
every time this gets called; move it out as a global helper function.
Simplify the call to the _dispatch() method of the registered instance.
|
|
|
|
|
| |
never been true, and in particular implies cmp() can't be used(!). Get
closer to the truth.
|
|
|
|
| |
rewrite the code a bit to avoid calling the same slot more than once.
|
|
|
|
|
| |
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."
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
__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.
|
|
|
|
| |
in bizarre outcomes. Test forthcoming.
|
|
|
|
| |
Add entry for the SimpleXMLRPCServer module.
|
| |
|
| |
|
| |
|
|
|
|
| |
Bump version number.
|
|
|
|
| |
NodeList interface.
|
| |
|
|
|
|
|
| |
Clean up a little; do not create an alias that is only used once, or store
attributes with constant values in an instance.
|
| |
|
|
|
|
|
| |
error-reporting for the classic compare-expected-output tests.
Curiously, the bug consisted of not simplifying the logic enough!
|
| |
|
|
|
|
|
|
|
|
|
|
| |
#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).
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
rigmarole of __reduce__.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
PY_VERSION => "2.2a4+"
|
|
|
|
|
|
|
|
|
|
|
| |
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>.
|
| |
|
| |
|
|
|
|
| |
(string.join() lives!)
|
|
|
|
| |
This fixes SF bug #465447.
|
|
|
|
|
| |
if it does not already end with a newline.
This fixes SF bug #463330.
|
|
|
|
|
| |
Apply patch from "china@thewrittenword.com" to put the correct
location for ld_so_aix in BLDSHARED.
|
| |
|