| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Document that getatime and getmtime may return floats.
|
| |
|
| |
|
|
|
|
|
| |
convenience functions isreadable() and isrecursive() work the same way
as the convenience functions.
|
|
|
|
|
|
|
| |
Pass the right number of args to .format(). (Caught by
pychecker.)
- Protect the global namespace more carefully.
- Don't use the types module now that we don't need to.
|
|
|
|
|
| |
when expected. Only applies to the ConfigParser and SafeConfigParser
classes, not RawConfigParser.
|
|
|
|
|
|
|
|
|
| |
InterpolationError constructor, not the KeyError exception itself.
(Caught by the new InterpolationError test.)
SafeConfigParser._interpolate_some(): Pass the right number of
arguments to the InterpolationError constructor.
(Caught by pychecker.)
|
| |
|
| |
|
|
|
|
| |
- added docstring to exceptions
|
|
|
|
| |
XXX Not sure this is correct.
|
| |
|
|
|
|
|
| |
- when the thread module isn't available, subsequent attempts to import
threading should not suceed
|
| |
|
|
|
|
| |
it pass.
|
|
|
|
|
| |
tempfile.py already contained code to let it run without threads present;
for Queue.py this is considered a useful feature too.
|
|
|
|
| |
622537), with some nitpicking editorial changes.
|
|
|
|
| |
Disallow zero for days and months
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- new import hooks in import.c, exposed in the sys module
- new module called 'zipimport'
- various changes to allow bootstrapping from zip files
I hope I didn't break the Windows build (or anything else for that
matter), but then again, it's been sitting on sf long enough...
Regarding the latest discussions on python-dev: zipimport sets
pkg.__path__ as specified in PEP 273, and likewise, sys.path item such as
/path/to/Archive.zip/subdir/ are supported again.
|
|
|
|
|
|
|
| |
in MacPython-OS9 and MacPython-OSX (or the equivalent unix Python on
Mac OS X). The only items remaining in Mac/Lib are modules that are
meaningful only for MacPython-OS9 (CFM stuff, MacPython preferences
in resources, etc).
|
| |
|
|
|
|
| |
version 4.1.1 and works with up to BerkeleyDB 4.1.25.
|
|
|
|
| |
test suite tests.
|
|
|
|
|
|
|
| |
of the timetz case. A tzinfo method will always see a datetimetz arg,
or None, now. In the former case, it's still possible that it will get
a datetimetz argument belonging to a different timezone. That will get
fixed next.
|
| |
|
|
|
|
| |
with sequences.
|
|
|
|
| |
bug #648119.
|
|
|
|
|
|
| |
is passed straight through to the unicode() and ustr.encode() calls.
I think it's the best we can do to address the UnicodeErrors in badly
encoded headers such as is described in SF bug #648119.
|
|
|
|
| |
need more vetting, and it will be included in Python 2.3a1.
|
| |
|
|
|
|
|
|
| |
file, needed because some binary distros (read RPMs) don't include the
test module in their standard Python package. This eliminates an
external dependency and closes SF bug # 650441.
|
|
|
|
|
|
| |
binary distros (read RPMs) don't include the test module in their
standard Python package. This eliminates an external dependency and
closes SF bug # 650441.
|
|
|
|
|
| |
and that conversion to "timezone" None is the same as stripping the
tzinfo member.
|
|
|
|
| |
the day in an RFC 2822 date.
|
|
|
|
|
| |
and the day number in an RFC 2822 date specification. See bug
#552345.
|
|
|
|
|
| |
west of the US zones getting converted, and also by using Eastern "as if"
it were UTC (wrt Pacific), and vice versa.
|
| |
|
|
|
|
|
| |
specifically that dots are allowed in obs-phrase. This fixes parsing
of dots in realnames.
|
|
|
|
| |
RFC 2822's rules w.r.t. dots in the realname part of address fields.
|
| |
|
|
|
|
| |
The new "substr in str" feature masked the error.
|
|
|
|
|
|
|
|
| |
ignore tuple.
The line, "from _random import Random as CoreGenerator", fools the test
code which expects CoreGenerator.__name__ to be "CoreGenerator" instead
of "Random".
|
|
|
|
| |
the _random subclass for Random.
|
|
|
|
|
| |
random number generator. Altered it a bit to use the old generator
and restore the test.
|
|
|
|
|
|
|
| |
Guido has in mind an easier way for users to code this stuff, but the
only tests we have now are for fixed-offset tzinfo classes, and this
stuff is extremely delicate in the endcases (read the new test code
for why: there are holes in time <wink>).
|
|
|
|
| |
core generator for random.py.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
M PyShell.py
1. PyShell Rev 1.39, EditorWindow Rev 1.37 fix was not handling a
multiline prompt.
2. The same fix introduced a bug where hitting <enter> at a previous
prompt-only line would copy the prompt to the iomark.
3. Move the setting of sys.ps1 earlier, into PyShell.main(), to allow
this code to work before a shell is started up.
4. If cursor is on the input line in the prompt, and you hit <enter>,
process the line instead of complaining.
5. If line has no stdin range (this includes the last line before shell
restart) strip any prompt before recalling.
|
|
|
|
|
| |
Python 2.2.x backport candidate. (This bug has been around since
Python 1.6.)
|