homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients georg.brandl, loewis, maxenced, r.david.murray
Date 2009年04月24日.15:00:03
SpamBayes Score 6.35853e-10
Marked as misclassified No
Message-id <1240585206.06.0.971852352377.issue5831@psf.upfronthosting.co.za>
In-reply-to
Content
The Timer function is a simple wrapper for creating an instance of the
_Timer class.
The Timer class was proposed in Issue428326 by Itamar and applied
by Martin in r22972. In the original patch the class was exposed as
Timer. Martin's commit introduced the Timer function and _Timer class
name. The documentation provided by Itamar was not updated to match.
The change would appear to intentionally make it difficult to create
Timer subclasses.
The Timer function/class was added in 2001 and there are no complaints
that Thread can't be subclassed in the tracker. So perhaps a doc patch
is appropriate...but that would leave Timer with a name that is not PEP
8 compliant.
I think I'd prefer deleting the function and naming the class Timer,
so that it has a PEP 8 compliant name. It seems unlikely that any user
code would depend on Timer being a function.
Martin, do you have any memory of why you made Timer a function? Was it
just that it would be pretty pointless to subclass it?
History
Date User Action Args
2009年04月24日 15:00:06r.david.murraysetrecipients: + r.david.murray, loewis, georg.brandl, maxenced
2009年04月24日 15:00:06r.david.murraysetmessageid: <1240585206.06.0.971852352377.issue5831@psf.upfronthosting.co.za>
2009年04月24日 15:00:04r.david.murraylinkissue5831 messages
2009年04月24日 15:00:03r.david.murraycreate

AltStyle によって変換されたページ (->オリジナル) /