| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
|
|
| |
localtime()/gmtime() insists on delivering them, + associated doc
changes.
Redid the docs for datetimtez.astimezone().
|
| |
|
|
|
|
| |
(backport candidate?)
|
|
|
|
|
|
|
| |
The range of u=random() is [0,1), so log(u) and 1/x can fail.
Fix by setting u=1-random() or by reselecting for a usable value.
Will backport.
|
| |
|
|
|
|
| |
Check whether self is NULL in mainloop.
|
|
|
|
|
|
| |
cases, plus even tougher tests of that. This implementation follows
the correctness proof very closely, and should also be quicker (yes,
I wrote the proof before the code, and the code proves the proof <wink>).
|
| |
|
|
|
|
|
|
|
| |
It was once available so that faster generators could be substituted. Now,
that is less necessary and preferrably done via subclassing.
Also, clarified and shortened the comments for sample().
|
|
|
|
| |
platform-specific verbiage lives.
|
|
|
|
| |
supported version.
|
|
|
|
|
| |
bsddb module build note to reflect the inclusion of bsddb3 and the demotion
of the old bsddb module.
|
|
|
|
| |
Clarify the operation of locals().
|
|
|
|
| |
Minor fixes to markup, spelling, parameter names, and abbreviations.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
M Bindings.py
M EditorWindow.py
M PyShell.py
M config-keys.def
M configHandler.py
M help.txt
1. Annotate the shell window with last restart boundary upon restart.
2. Provide a shell menu entry and hot key (F6) to jump to the last
restart boundary.
3. Add a new shell menu feature to restart the shell.
4. Update the help menu to add these features.
5. Update the help menu to put text in same order as the menus.
6. Correct a capitalization inconsistency on the Edit menu: Expand Word
7. Rename the "Debug" menu to be "Shell": it's doing more now.
8. Rearrange the "Shell" menu to make the StackViewer entries adjacent.
9. Add a get_geometry method to EditorWindow, which may be of use in
making window positions persisent.
10. Make <ctrl-v> the "Classic Windows" paste key.
11. Restore decorum on the Help menu by removing "Advice". As Guido said,
things will never be the same. Thanks, David!
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Refactor code in PyCFunction_Call giving a modest (tiny) speed boost,
a slight improvement in semantics (now detects invalid flag combinations),
and (arguably) improved clarity (making it blindingly clear which flag
combinations are allowed). All this comes at a cost of a few lines of
code duplication.
* Folded test for METH_KEYWORDS into the switch/case.
* Deferred testing for an empty dictionary until when and where needed.
* Make a similar deferral for filling the "size" variable.
* Inverted the dictionary test so that the common case falls though
instead of making a jump.
|
|
|
|
| |
macro definitions for older Python releases.
|
|
|
|
|
| |
the desired compromise behavior during the "problem hour" when DST ends
cheaply (but I haven't yet implemented that).
|
|
|
|
| |
Provide .string attribute and __unicode for Tcl_Objs.
|
| |
|
|
|
|
| |
of Guido's later Local.py (from the datetime sandbox).
|
| |
|
| |
|
|
|
|
|
| |
is done afterwards anyway, so what the list comp does
can be done in the loop.
|
|
|
|
| |
file content ends up in the correct dict.
|
| |
|
|
|
|
|
| |
This fixes a bug reported as http://www.python.org/sf/661630,
which was introduced in the patch http://www.python.org/sf/554192.
|
| |
|
|
|
|
|
|
|
| |
Also added realpath = abspath for os2emx, similar to windows/mac
which also don't really implement realpath.
Backport candidate, I think?
|
| |
|
| |
|
|
|
|
|
|
|
| |
Also added realpath = abspath for os2emx, similar to windows/mac
which also don't really implement realpath.
Backport candidate, I think?
|
|
|
|
| |
Mention difference between 2.2.2 and 2.3 True and False
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Add two sections to this manual about package meta-data and about
registering packages
|
|
|
|
| |
Add the 'register' distutils command
|
|
|
|
| |
Add 'classifiers' keyword to DistributionMetadata
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Lesson learned: kids should not be allowed to use API's starting
with an underscore :-/
zipimport in 2.3a1 is even more broken than I thought: I attemped
to _PyString_Resize a string created by PyString_FromStringAndSize,
which fails for strings with length 0 or 1 since the latter returns
an interned string in those cases. This would cause a SystemError
with empty source files (and no matching pyc) in the zip archive.
I rewrote the offending code to simply allocate a new buffer and
avoid _PyString_Resize altogether.
Added a test that would've caught the problem.
|
| |
|
| |
|
|
|
|
|
| |
Simplify code and speed access by using PyArg_UnpackTuple, METH_O and
METH_NOARGS in three modules that can benefit from it.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
because the test file, msg_26.txt which has \r\n line endings, was
getting munged by cvs, which knows to do line ending conversions for
text files. But we want \r\n to be preserved on all platforms, so we
cvs admin'd the file to be -kb (binary), which means we have to open
the file in binary mode to preserve these line ends. Hopefully this
will be the end of the thrashing on this issue (but probably not).
Test passes on *nix now, and Tim confirms it passes on Windows. We'll
leave it to Jack to test MacOS.
|