| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add optional arg to string methods strip(), lstrip(), rstrip().
The optional arg specifies characters to delete.
Also for UserString.
Still to do:
- Misc/NEWS
- LaTeX docs (I did the docstrings though)
- Unicode methods, and Unicode support in the string methods.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The test function's signature should be
test(methodname, input, output, *args)
but the output argument was omitted. This caused all tests to fail,
because the expected output was passed as the initial argument to the
method call. But because of the way the test works (it compares the
results for a regular string to the results for a UserString instance
with the same value, and it's OK if both raise the same exception) the
test never failed!
I've fixed this, and also cleaned up a few warts in the verbose
output. Finally, I've made it possible to run the test stand-alone in
verbose mode by passing -v as a command line argument.
Now, the test will report failure related to zfill. That's not my
fault, that's a legitimate problem: the string_tests.py file contains
a test for the zfill() method (just added) but this method is not
implemented. The responsible party will surely fix this soon now.
|
| |
|
| |
|
|
|
|
| |
The deprecation is now listed in PEP 4.
|
|
|
|
| |
module necessarily raises.
|
| |
|
| |
|
| |
|
|
|
|
| |
This is nice for use with "make TESTOPTS='-u all' test".
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
non-us-ascii character sets in headers and bodies. Some API changes
(with DeprecationWarnings for the old APIs). Better RFC-compliant
implementations of base64 and quoted-printable.
Updated test cases. Documentation updates to follow (after I finish
writing them ;).
|
| |
|
| |
|
| |
|
|
|
|
| |
whrandom module. (The deprecation was effective in Python 2.1.)
|
| |
|
| |
|
|
|
|
|
|
|
| |
This suppresses bogus warnings about modules installed into a directory
not in sys.path.
Bugfix candidate.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
method returns something that's not a C instance, its __init__ is
not called. [SF bug #537450]
|
| |
|
|
|
|
|
|
|
|
| |
Change pickling format for bools to use a backwards compatible
encoding. This means you can pickle True or False on Python 2.3
and Python 2.2 or before will read it back as 1 or 0. The code
used for pickling bools before would create pickles that could
not be read in previous Python versions.
|
|
|
|
| |
They now raise an NotImplementedError to hint to the truth ;-)
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This change is similar to the supplied patch, but does not save the opener
when a proxy configuration is specified.
This closes SF patch #523415.
|
|
|
|
| |
We should get attributes from the right object.
|
|
|
|
|
|
|
| |
ContentHandler. While GC will eventually clean up, it can take longer than
normal for applications that create a lot of strings (or other immutables)
rather without creating many containers.
This closes SF bug #535474.
|
|
|
|
|
| |
permission from Paul Everitt). Also removed a few other references to
Digital Creations and changed the remaining ones to Zope Corporation.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PEP 285. Everything described in the PEP is here, and there is even
some documentation. I had to fix 12 unit tests; all but one of these
were printing Boolean outcomes that changed from 0/1 to False/True.
(The exception is test_unicode.py, which did a type(x) == type(y)
style comparison. I could've fixed that with a single line using
issubtype(x, type(y)), but instead chose to be explicit about those
places where a bool is expected.
Still to do: perhaps more documentation; change standard library
modules to return False/True from predicates.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
457466: popenx() argument mangling hangs python
226766: popen('python -c"...."') tends to hang
Fixes argument quoting in w9xpopen.exe for Windows 9x. w9xpopen.exe
also never attempts to display a MessageBox when not executed
interactively.
Added test_popen() test. This test currently just executes
"python -c ..." as a child process, and checks that the expected
arguments were all recieved correctly by the child process. This
test succeeds for me on Win9x, win2k and Linux, and I hope it does
for other popen supported platforms too :)
|
|
|
|
|
|
| |
broken w/ classmethods.
Bugfix candidate.
|
|
|
|
|
|
| |
that it works.
Bugfix candidate (this and the previous checkin, obviously).
|
|
|
|
| |
Partly responds to SF bug #505152.
|
|
|
|
|
|
|
| |
on how a system is configured.
This closes SF bug #497160 (which has the patch) and #460613.
Bugfix candidate.
|
| |
|
| |
|
| |
|