Author Alexander.Belopolsky
Recipients Alexander.Belopolsky, belopolsky, docs@python, shaq, techtonik
Date 2011-09-12.20:50:37
SpamBayes Score 2.55255e-10
Marked as misclassified No
Message-id <CAP7h-xbLK5k1kaDieCnKXBqBt+saC_FRkp+iWYKuHxoqkNVgRg@mail.gmail.com>
In-reply-to <1315859760.15.0.48359823309.issue8822@psf.upfronthosting.co.za>
Content
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.
History
Date User Action Args
2011-09-12 20:50:38Alexander.Belopolskysetrecipients: + Alexander.Belopolsky, belopolsky, techtonik, docs@python, shaq
2011-09-12 20:50:37Alexander.Belopolskylinkissue8822 messages
2011-09-12 20:50:37Alexander.Belopolskycreate