| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This gives much the same treatment to datetime.fromtimestamp(stamp, tz) as
the last batch of checkins gave to datetime.now(tz): do "the obvious"
thing with the tz argument instead of a senseless thing.
|
| |
|
|
|
|
|
|
|
| |
Removing locking are findCaller() calls as the implementation using
sys._getframe() is thread-safe.
Changes reviewed by Vinay.
|
|
|
|
| |
The test no longer produces output with \r\n in it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
checked in two days agao:
Refactoring of, and new rules for, dt.astimezone(tz).
dt must be aware now, and tz.utcoffset() and tz.dst() must not return None.
The old dt.astimezone(None) no longer works to change an aware datetime
into a naive datetime; use dt.replace(tzinfo=None) instead.
The tzinfo base class now supplies a new fromutc(self, dt) method, and
datetime.astimezone(tz) invokes tz.fromutc(). The default implementation
of fromutc() reproduces the same results as the old astimezone()
implementation, but tzinfo subclasses can override fromutc() if the
default implementation isn't strong enough to get the correct results
in all cases (for example, this may be necessary if a tzinfo subclass
models a time zone whose "standard offset" (wrt UTC) changed in some
year(s), or in some variations of double-daylight time -- the creativity
of time zone politics can't be captured in a single default implementation).
|
| |
|
| |
|
|
|
|
|
| |
Return booleans from _tkinter.getboolean.
Convert booleans to Tcl booleans in AsObj.
|
|
|
|
|
|
| |
Sebastien Keim pointed out that iterkeys and __contains__ require
their own definitions so their behavior will update when the
underlying method is subclassed.
|
|
|
|
| |
consistent with the Edit/Shell windows.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
M PyShell.py
M config-keys.def
M configHandler.py
1. Clear any un-entered characters from input line before printing the
restart boundary.
2. Restore the Debug menu: There are now both Shell and Debug menus.
3. Add Control-F6 keybinding to Restart Shell.
4. Clarify PyShell.cancel_check() comment.
5. Update doc string for Bindings.py and re-format the file slightly.
|
| |
|
| |
|
| |
|
|
|
|
| |
dialogs.
|
| |
|
|
|
|
| |
help.
|
| |
|
| |
|
|
|
|
|
|
| |
(Loewis) which uses 'SRCDIR' (if available) in package dir path.
2. Merge Python IDLE setup.py Rev 1.5 (Loewis) to allow installation
from the build directory. IDLEfork SF Patch 668998 (Loewis)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
When daylight time ends, an hour repeats on the local clock (for example,
in US Eastern, the clock jumps from 1:59 back to 1:00 again). Times in
the repeated hour are ambiguous. A tzinfo subclass that wants to play
with astimezone() needs to treat times in the repeated hour as being
standard time. astimezone() previously required that such times be
treated as daylight time. There seems no killer argument either way,
but Guido wants the standard-time version, and it does seem easier the
new way to code both American (local-time based) and European (UTC-based)
switch rules, and the astimezone() implementation is simpler.
|
|
|
|
|
| |
which had empty method and super attributes. ClassBrowser.IsExpandable()
could not handle the missing attributes. SF Bug 667787.
|
| |
|
|
|
|
| |
with additional tests for setdefault(), pop() and popitem().
|
|
|
|
|
|
| |
cases and a few methods. This increases code coverage
in Objects/unicodeobject.c from 81% to 85%.
(From SF patch #662807)
|
|
|
|
|
|
|
|
| |
port the tests to PyUnit and add many tests for error
cases. This increases code coverage in Python/bltinmodule.c
from 75% to 92%. (From SF patch #662807, with
assert_(not fcmp(x, y)) replaced with assertAlmostEqual(x, y)
where possible)
|
|
|
|
|
|
| |
the end of code blocks.
Patch contributed by Patrick O'Brien.
|
|
|
|
|
| |
From Brett Cannon. Mostly speedups via caching format string ->
compiled regexp.
|
|
|
|
|
|
|
|
| |
The Py2.3 updates to the pyclbr module return both Class and Function
objects. The IDLE ClassBrowser module only knew about Class and could
not handle objects which did not define "super".
Fixed by adding a guard.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Patch from Brett Cannon:
First, the 'y' directive now handles [00, 68] as a suffix for the
21st century while [69, 99] is treated as the suffix for the 20th
century (this is for Open Group compatibility).
strptime now returns default values that make it a valid date ...
the ability to pass in a regex object to use instead of a format
string (and the inverse ability to have strptime return a regex object)
has been removed. This is in preparation for a future patch that will
add some caching internally to get a speed boost.
|
|
|
|
|
| |
- AskFileForSave didn't work for string return values
- filterProc didn't work.
|
| |
|
|
|
|
| |
* Use Sets module to more clearly articulate a couple of tests.
|
|
|
|
|
|
|
| |
are going to replace StandardGetFile() and friends. Main differences are
that these allow you to ask for specific datatypes to be returned (FSSpec,
FSRef, string, unicode or subtypes thereof) and that they provide access
to underlying features of Navigation Services through keyword arguments.
|
|
|
|
|
|
|
|
|
|
| |
underlying DB has already been closed (and thus all of its cursors).
This fixes a potential segfault.
SF pybsddb bug id 667343
bugfix: close the DB object when raising an exception due to an error
during DB.open. This prevents an exception when closing the
environment about not all databases being closed.
SF pybsddb bug id 667340
|
|
|
|
|
|
|
|
|
| |
coredump or segmentation violation.
Sourceforge patch ID 664896:
http://sourceforge.net/tracker/index.php?func=detail&aid=664896&group_id=13900&atid=313900
The bug was reported on the pybsddb-users mailing list.
|
|
|
|
|
|
| |
M EditorWindow.py
M NEWS.txt
M TODO.txt
|
| |
|
|
|
|
|
| |
Strengthen slicing tests.
Improved variable names.
|
|
|
|
| |
Add backwards compatibility test.
|
|
|
|
| |
Added random test from bisect to augment the finite precomputed checks.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
case, the test module created is actually a sub-package of 'test', thus
the module is named 'test.areallylongpackage...' - this caused failure.
Replace the hard-coded module names with __name__ attributes, which
correctly reflects any hierarchy.
|
|
|
|
| |
so just continue testing. Fixes #668787.
|
|
|
|
| |
_strptime can now handle getting two empty strings as the timezone information.
|
|
|
|
| |
Fixes #661762, bugfix candidate.
|