| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
{timetz,datetimetz}.{uctcoffset,dst} do return timedelta (or None).
|
|
|
|
| |
Remove space between \end {verbatim}
|
|
|
|
| |
timetz.
|
|
|
|
|
| |
docs, and moved its section to the end (before the "C API" section,
which latter doesn't really belong in the Library manual).
|
|
|
|
| |
be fixed.
|
|
|
|
| |
and is mostly readable.
|
|
|
|
| |
verbatim environment does not bollux page breaking.
|
| |
|
| |
|
| |
|
|
|
|
| |
(Fred, don't bother to add to lib.tex or to proofread this yet.)
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
[ 643835 ] Set Next Statement for Python debuggers
with a few tweaks by me: adding an unsigned or two, mentioning that
not all jumps are allowed in the doc for pdb, adding a NEWS item and
a note to whatsnew, and AuCTeX doing something cosmetic to libpdb.tex.
|
| |
|
|
|
|
|
|
|
|
| |
Try to clear up confusion about the current globals being copied
into a globals dict passed to eval(). This wording (more or less)
was suggested in bug report. It should probably be made clearer.
Backport candidate.
|
|
|
|
|
|
|
|
| |
Added doc for functions new to 2.2: classmethod property staticmethod super
Taken from docstrings. Could use review.
Hope there wasn't a reason why these shouldn't have been added.
Backport candidate.
|
|
|
|
|
|
|
| |
Tested w/valgrind, all paths except the return on PyInt_AsLong() failure
I think I got all of these right.
Backport candidate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[#521782] unreliable file.read() error handling
* Objects/fileobject.c
(file_read): Clear errors before leaving the loop in all situations,
and also check if some data was read before exiting the loop with an
EWOULDBLOCK exception.
* Doc/lib/libstdtypes.tex
* Objects/fileobject.c
Document that sometimes a read() operation can return less data than
what the user asked, if running in non-blocking mode.
* Misc/NEWS
Document the fix.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[#448679] Left to right
* Python/compile.c
(com_dictmaker): Reordered evaluation of dictionaries to follow strict
LTR evaluation.
* Lib/compiler/pycodegen.py
(CodeGenerator.visitDict): Reordered evaluation of dictionaries to
follow strict LTR evaluation.
* Doc/ref/ref5.tex
Documented the general LTR evaluation order idea.
* Misc/NEWS
Documented change in evaluation order of dictionaries.
|
| |
|
| |
|
|
|
|
|
| |
Replaced British spelling of 'behaviour' with 'behavior'.
Noted the new optional argument in math.log(x [,base]).
|
| |
|
|
|
|
|
| |
Fix markup errors
Rewrite a sentence
|
| |
|
|
|
|
|
|
|
|
|
|
| |
People are already using it, so these docs are certainly better than
no docs at all. Markup is mostly missing and the layout is probably
ugly, but this can be fixed later.
Question: there are references to MS docs for the CSIDL_... constants
and the IShellLink interface. Are these pointers sufficient, or should
the MS docs reworded and repeated here?
|
|
|
|
|
|
|
|
|
|
|
| |
supported as the second argument. This has the same meaning as
for isinstance(), i.e. issubclass(X, (A, B)) is equivalent
to issubclass(X, A) or issubclass(X, B). Compared to isinstance(),
this patch does not search the tuple recursively for classes, i.e.
any entry in the tuple that is not a class, will result in a
TypeError.
This closes SF patch #649608.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch allows ZipFile.writestr() to be called with
an archive file name instead of a ZipInfo instance:
z = ZipFile("myarchive.zip", "w")
z.writestr("foo/baz/file.ext", data)
z.close()
I found the old writestr() method very inconvenient
for simple (but common) things.
If called with a file name instead of a ZipInfo
instance, the date_time is set to the current date/time,
which makes sense to me for anonymous data.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
this can result in significantly smaller files. All classes as well as the
open function now accept an optional binary parameter, which defaults to
False for backward compatibility. Added a small test suite, updated the
libref documentation (including documenting the exported classes and fixing
a few other nits) and added a note about the change to Misc/NEWS.
|
| |
|
|
|
|
| |
Closes SF 643227.
|
|
|
|
| |
Bugfix candidate.
|
| |
|
| |
|
|
|
|
|
|
|
| |
may be a tuple. This closes SF patch
http://www.python.org/sf/649095
Backport to release22-maint will follow.
|
|
|
|
| |
but can lead to mysterious problems in real applications.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|