| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
actually does. Note that the description in the Library Reference
manual is already accurate.
Bugfix candidate.
|
|
|
|
| |
order in which the tests are normally run.
|
| |
|
|
|
|
| |
to keep doing that in every test that wants to filter a warning.
|
|
|
|
|
| |
because it *is* skipped. I'm not entirely sure it should be skipped, but
figuring that out would take actual thought <wink>.
|
|
|
|
| |
resetwarnings() calls too.
|
| |
|
|
|
|
|
| |
regrtest framework. Keep the original standalone-unittest
scaffolding (i.e. suite() and __main__).
|
|
|
|
|
|
|
|
| |
double call to AddressList.getaddrlist(), and /that/ always returns an
empty list for the second and subsequent calls.
Instead, instantiate an AddressList directly, and get the parsed
addresses out of the addresslist attribute.
|
|
|
|
|
| |
Note that PyObject_Size() is a synonym for PyObject_Length().
This closes SF patch #544330 (contributed by Thomas Heller).
|
|
|
|
|
| |
This matches many other of the *desc environments, and is useful when
multiple functions share a description.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
which requires that if there are ehlo parameters returned with an ehlo
keyword (in the response to EHLO), the keyword and parameters must be
delimited by an ASCII space. Thus responses like
250-AUTH=LOGIN
should be ignored as non-conformant to the RFC (the `=' isn't allowed
in the ehlo keyword).
This is a bug fix candidate.
|
|
|
|
|
| |
Back-porting to release22-maint.
This closes SF patch #496705.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and returns None. This allows any object that supports the fileno()
method to be passed as a file descriptor, not just an integer.
posix_fchdir(): New exposed function: implements posix.fchdir(). This
closes SF feature #536796.
posix_fsync(), posix_fdatasync(): Convert to use posix_fildes() instead
of posix_int(). This also changes them from METH_VARARGS to METH_O
functions.
setup_confname_table(): Remove unused variable. Change to take a module
rather than a dict to save the resulting table into.
setup_confname_tables(): Change to take a module instead of a dict to
pass to setup_confname_table().
|
|
|
|
| |
Thanks to Thomas Heller for the sharp eye.
|
|
|
|
| |
This is part of SF feature #536796.
|
| |
|
|
|
|
| |
the Extending & Embedding manual use it.
|
|
|
|
| |
instance, otherwise make a copy.
|
|
|
|
|
|
|
| |
This moves styling to the stylesheet; the use of <dl> structures to control
style sometimes produced improper indentation of subsequent text in many
browsers when the text was already part of the <dl> structure (as in a
function or class description).
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
isn't constant, so why bother.
Folded long lines.
Whitespace normalization.
|
|
|
|
|
|
|
|
|
|
| |
Add a method zfill to str, unicode and UserString and change
Lib/string.py accordingly.
This activates the zfill version in unicodeobject.c that was
commented out and implements the same in stringobject.c. It also
adds the test for unicode support in Lib/string.py back in and
uses repr() instead() of str() (as it was before Lib/string.py 1.62)
|
| |
|
|
|
|
| |
is the same in all three cases (mostly because // calls divmod :-).
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Complex numbers implement divmod() and //, neither of which makes one
lick of sense. Unfortunately this is documented, so I'm adding a
deprecation warning now, so we can delete this silliness, oh, around
2005 or so.
Bugfix candidate (At least for 2.2.2, I think.)
|
| |
|
|
|
|
|
|
|
| |
A stupid bug in object_set_class(): didn't check for value==NULL
before checking its type.
Bugfix candidate.
|
|
|
|
|
|
| |
#543674.
Bugfix candidate.
|
|
|
|
|
|
|
| |
In DatagramRequestHandler.setup(), the wfile initialization should be
StringIO.StringIO(), not StringIO.StringIO(slf.packet).
Bugfix candidate (all the way back to Python 1.5.2 :-).
|
|
|
|
|
|
|
| |
When os.stat() for a file raises OSError, turn it into IOError per
documentation.
Bugfix candidate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The problem was that an exception can occur in the text.get() call or
in the write() call, when the text buffer contains non-ASCII
characters. This causes the previous contents of the file to be lost.
The provisional fix is to call str(self.text.get(...)) *before*
opening the file, so that if the exception occurs, we never open the
file.
Two orthogonal better solutions have to wait for policy decisions:
1. We could try to encode the data as Latin-1 or as UTF-8; but that
would require IDLE to grow a notion of file encoding which requires
more thought.
2. We could make backups before overwriting a file. This requires
more thought because it needs to be fast and cross-platform and
configurable.
|
| |
|
|
|
|
|
|
|
| |
complex_subtype_from_string(): this stopped parsing at the first 0
byte, as if that were the end of the input string.
Bugfix candidate.
|
| |
|
|
|
|
|
|
|
|
| |
Highlights: import and friends will understand any of \r, \n and \r\n
as end of line. Python file input will do the same if you use mode 'U'.
Everything can be disabled by configuring with --without-universal-newlines.
See PEP278 for details.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|