- 25 Ock, 2003 2 kayıt (commit)
-
-
Fred Drake yazdı
-
Kurt B. Kaiser yazdı
2. Add additional debugging statements and enhance others. 3. Clarify comments. 4. Move SocketIO.nextseq class attribute to beginning of class.
-
- 24 Ock, 2003 13 kayıt (commit)
-
-
Tim Peters yazdı
compare against "the other" argument, we raise TypeError, in order to prevent comparison from falling back to the default (and worse than useless, in this case) comparison by object address. That's fine so far as it goes, but leaves no way for another date/datetime object to make itself comparable to our objects. For example, it leaves Marc-Andre no way to teach mxDateTime dates how to compare against Python dates. Discussion on Python-Dev raised a number of impractical ideas, and the simple one implemented here: when we don't know how to compare against "the other" argument, we raise TypeError *unless* the other object has a timetuple attr. In that case, we return NotImplemented instead, and Python will give the other object a shot at handling the comparison then. Note that comparisons of time and timedelta objects still suffer the original problem, though.
-
Neil Schemenauer yazdı
-
Neil Schemenauer yazdı
Calling PyInt_AsLong() on a float truncates it which is almost never the desired behavior. This closes SF bug #660144.
-
Jeremy Hylton yazdı
add memoize() helper function to update the memo. The first element of the tuple returned by __reduce__() must be a callable. If it isn't the Unpickler will raise an error. Catch this error in the pickler and raise the error there. The memoize() helper also has a comment explaining how the memo works. So methods can't use memoize() because the write funny codes.
-
Barry Warsaw yazdı
docstring). Even if ignore_errors was true, an exception would occur if path didn't exist.
-
Barry Warsaw yazdı
-
Barry Warsaw yazdı
-
Jack Jansen yazdı
MacPython-OS9 has had an abort() function for quite a while now, so there's no reason to stall in an endless loop, just call abort() on a fatal error.
-
Jack Jansen yazdı
MacPython-OS9 specific fix: If there are non-string items on sys.path don't try to intern them. This has the theoretical problem that resource filenames on sys.path cannot be unicode objects, but in practice that shouldn't matter.
-
Tim Peters yazdı
latest bsddb release without strong cryptography).
-
Guido van Rossum yazdı
executable.
-
Jack Jansen yazdı
of getargs() and mkvalue().
-
Tim Peters yazdı
changes (and there were a lot of relevant changes!).
-
- 23 Ock, 2003 7 kayıt (commit)
-
-
Neal Norwitz yazdı
-
Tim Peters yazdı
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.
-
Tim Peters yazdı
-
Jeremy Hylton yazdı
Removing locking are findCaller() calls as the implementation using sys._getframe() is thread-safe. Changes reviewed by Vinay.
-
Jeremy Hylton yazdı
The test no longer produces output with \r\n in it.
-
Tim Peters yazdı
-
Tim Peters yazdı
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).
-
- 22 Ock, 2003 10 kayıt (commit)
-
-
Skip Montanaro yazdı
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Raymond Hettinger yazdı
-
Martin v. Löwis yazdı
Return booleans from _tkinter.getboolean. Convert booleans to Tcl booleans in AsObj.
-
Martin v. Löwis yazdı
-
Tim Peters yazdı
tzinfo.fromutc() method. The C code doesn't implement any of this yet (well, not the C code on the machine I'm using now), nor does the test suite reflect it. The Python datetime.py implementation and test suite in the sandbox do match these doc changes. The C implementation probably won't catch up before Thursday (Wednesday is a scheduled "black hole" day this week <0.4 wink>).
-
Raymond Hettinger yazdı
Sebastien Keim pointed out that iterkeys and __contains__ require their own definitions so their behavior will update when the underlying method is subclassed.
-
Kurt B. Kaiser yazdı
consistent with the Edit/Shell windows.
-
Kurt B. Kaiser yazdı
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.
-
- 21 Ock, 2003 8 kayıt (commit)
-
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Martin v. Löwis yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
it, so disable the build for now.
-
Tim Peters yazdı
tzinfo dst() should return timedelta(0) if DST is not effect, not 0.
-
Jack Jansen yazdı
dialogs.
-
Jack Jansen yazdı
-