Message143939
On Mon, Sep 12, 2011 at 4:36 PM, anatoly techtonik
<report@bugs.python.org> wrote:
..
> 5. Mention the fact: By default all objects are "naive", by definition, because they don't have any
> TZ information, and there are no classes in stdlib that provide this info (tzclass implemetations)
This is simply wrong: in py3k we have the timezone class that
implements tzinfo interface.
> 6. Answer the questions: How to make non-naive object? How to detect if object of naive or aware?
I would go one step further: we should review the examples in datetime
module documentation and use aware datetime objects unless the point
of the example is to demonstrate a naive datetime. We should also
replace examples that use sample implementations of tzinfo to use the
timezone class. |
|
Date |
User |
Action |
Args |
2011-09-12 20:50:38 | Alexander.Belopolsky | set | recipients:
+ Alexander.Belopolsky, belopolsky, techtonik, docs@python, shaq |
2011-09-12 20:50:37 | Alexander.Belopolsky | link | issue8822 messages |
2011-09-12 20:50:37 | Alexander.Belopolsky | create | |
|