Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
550b5827
Commit
550b5827
authored
Dec 24, 2002
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added note about technical pickle limitation on tzinfo instances.
parent
a388b6f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Doc/lib/libdatetime.tex
Doc/lib/libdatetime.tex
+6
-1
No files found.
Doc/lib/libdatetime.tex
View file @
550b5827
...
...
@@ -755,9 +755,14 @@ The latter objects view their fields as being in local time, and the
from UTC, the name of the time zone, and DST offset, all relative to a
date or time object passed to them.
Special requirement for pickling: A tzinfo subclass must have an
\method
{__
init
__}
method that can be called with no arguments, else it
can be pickled but possibly not unpickled again. This is a technical
requirement that may be relaxed in the future.
A concrete subclass of
\class
{
tzinfo
}
may need to implement the
following methods. Exactly which methods are needed depends on the
uses made of aware
\
class
{
datetime
}
objects; if in doubt, simply
uses made of aware
\
module
{
datetime
}
objects; if in doubt, simply
implement all of them. The methods are called by a
\class
{
datetimetz
}
or
\class
{
timetz
}
object, passing itself as the argument. A
\class
{
tzinfo
}
subclass's methods should be prepared to accept a dt
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment