- 01 Jan, 2003 17 commits
-
-
Tim Peters authored
suggestion from Guido, along with a formal correctness proof of the trickiest bit. The intricacy of the proof reveals how delicate this is, but also how robust the conclusion: correctness doesn't rely on dst() returning +- one hour (not all real time zones do!), it only relies on: 1. That dst() returns a (any) non-zero value if and only if daylight time is in effect. and 2. That the tzinfo subclass implements a consistent notion of time zone. The meaning of "consistent" was a hidden assumption, which is now an explicit requirement in the docs. Alas, it's an unverifiable (by the datetime implementation) requirement, but so it goes.
-
Skip Montanaro authored
-
Skip Montanaro authored
-
Skip Montanaro authored
-
Skip Montanaro authored
-
Skip Montanaro authored
-
Skip Montanaro authored
compiler flags which are necessary to get a clean compile. The former is for user-specified optimizer, debug, trace fiddling. See patch 640843. Add /sw/lib and /sw/include to setup.py search paths on Darwin to take advantage of fink goodies. Add scriptsinstall target to Makefile to install certain scripts from Tools/scripts directory.
-
Neal Norwitz authored
functions are here. Suggested by Skip.
-
Neal Norwitz authored
to 'properly configure the slave terminal' See SF patch # 656590 for the details.
-
Guido van Rossum authored
extension. Could use some work, but already very useful.
-
Martin v. Löwis authored
-
Fred Drake authored
apply to the trunk.
-
Tim Peters authored
find a more elegant algorithm (OTOH, the hairy new implementation allows user-written tzinfo classes to be elegant, so it's a big win even if astimezone() remains hairy). Darn! I've only got 10 minutes left to get falling-down drunk! I suppose I'll have to smoke crack instead now.
-
Tim Peters authored
understood now: it can't work. Added comments explaining why (it's "the usual"-- unrepresentable hours in local time --but in a slightly different guise).
-
Tim Peters authored
I leave to Fred to sort out.
-
Kurt B. Kaiser authored
-
Kurt B. Kaiser authored
from its source directory. Generalize the "workaround" (though the latter seems a reasonable solution?) to handle this.
-
- 31 Dec, 2002 23 commits
-
-
Kurt B. Kaiser authored
-
Neal Norwitz authored
-
Jason Tishler authored
The attached patch enables Cygwin Python to build cleanly against the latest Cygwin Tcl/Tk which is based on Tcl/Tk 8.3. It also prevents building against the real X headers, if installed.
-
Fred Drake authored
-
Guido van Rossum authored
Plug the leak that Tim just reported.
-
Barry Warsaw authored
-
Andrew M. Kuchling authored
-
Fred Drake authored
- more style consistency crud
-
Jeremy Hylton authored
Remove broken code in visitDict(). I assume the code was trying to add set lineno events for each line of a dict constructor, but I think it was using the wrong object (node instead of k or v).
-
Tony Lownds authored
-
Barry Warsaw authored
BerkeleyDB version dependent.
-
Neal Norwitz authored
-
Jeremy Hylton authored
A variety of changes from Michael Hudson to get the compiler working with 2.3. The primary change is the handling of SET_LINENO: # The set_lineno() function and the explicit emit() calls for # SET_LINENO below are only used to generate the line number table. # As of Python 2.3, the interpreter does not have a SET_LINENO # instruction. pyassem treats SET_LINENO opcodes as a special case. A few other small changes: - Remove unused code from pycodegen and pyassem. - Fix error handling in parsermodule. When PyParser_SimplerParseString() fails, it sets an exception with detailed info. The parsermodule was clobbering that exception and replacing it was a generic "could not parse string" exception. Keep the original exception.
-
Fred Drake authored
-
Kurt B. Kaiser authored
-
Martin v. Löwis authored
-
Kurt B. Kaiser authored
-
Kurt B. Kaiser authored
-
Guido van Rossum authored
-
Tim Peters authored
an idea from Guido. This restores that the datetime implementation never passes a datetime d to a tzinfo method unless d.tzinfo is the tzinfo instance whose method is being called. That in turn allows enormous simplifications in user-written tzinfo classes (see the Python sandbox US.py and EU.py for fully fleshed-out examples). d.astimezone(tz) also raises ValueError now if d lands in the one hour of the year that can't be expressed in tz (this can happen iff tz models both standard and daylight time). That it used to return a nonsense result always ate at me, and it turned out that it seemed impossible to force a consistent nonsense result under the new implementation (which doesn't know anything about how tzinfo classes implement their methods -- it can only infer properties indirectly). Guido doesn't like this -- expect it to change. New tests of conversion between adjacent DST-aware timezones don't pass yet, and are commented out. Running the datetime tests in a loop under a debug build leaks 9 references per test run, but I don't believe the datetime code is the cause (it didn't leak the last time I changed the C code, and the leak is the same if I disable all the tests that invoke the only function that changed here). I'll pursue that next.
-
Martin v. Löwis authored
-
Raymond Hettinger authored
-
Fred Drake authored
now derive from InterpolationError, which is not raised directly (only subclasses get raised). This matches what the docs already said.
-