A bug in the datetime module documentation

Hi there, I found what seems to be an error in the python 2.7.2 docs for "datetime" module: http://docs.python.org/library/datetime.html?highlight=datetime#tzinfo-objec... In the documentation for method tzinfo.dst(self, dt) there are two code samples (under "most implementations of dst() will probably look like one of these two"). In these code samples the method is defined as "def dst(self):", but it should be "def dst(self, dt)". -- Dan Shved danshved@gmail.com

Hello Daniil, thanks for your email. On Sun, Oct 30, 2011 at 12:59, Daniil Shved <danshved@gmail.com> wrote:
Hi there,
I found what seems to be an error in the python 2.7.2 docs for "datetime" module:
http://docs.python.org/library/datetime.html?highlight=datetime#tzinfo-objec...
In the documentation for method tzinfo.dst(self, dt) there are two code samples (under "most implementations of dst() will probably look like one of these two"). In these code samples the method is defined as "def dst(self):", but it should be "def dst(self, dt)".
I've just fixed it. Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi
participants (2)
-
Daniil Shved
-
Sandro Tosi