
Alexander Belopolsky <alexander.belopolsky@gmail.com> added the comment: 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. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue8822> _______________________________________