summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-12-22 03:43:39 +0000
committerTim Peters <tim.peters@gmail.com>2002-12-22 03:43:39 +0000
commit855fe88b241a512d21b7c716fcae88331ae50a98 (patch)
tree1f8a5d88c5c76d4701bd80d28178e5e7384a2868 /Python/compile.c
parent18091540db294eb4566129a9b8bacb85a676a205 (diff)
downloadcpython-git-855fe88b241a512d21b7c716fcae88331ae50a98.tar.gz
Implemented a Wiki suggestion:
{timetz,datetimetz}.{utcoffset,dst}() now return a timedelta (or None) instead of an int (or None). tzinfo.{utcoffset,dst)() can now return a timedelta (or an int, or None). Curiously, this was much easier to do in the C implementation than in the Python implementation (which lives in the Zope3 code tree) -- the C code already had lots of hair to extract C ints from offset objects, and used C ints internally.
Diffstat (limited to 'Python/compile.c')
0 files changed, 0 insertions, 0 deletions