Re: [Python-ideas] add a time decorator to timeit.py

On 7 Oct 2018 20:39, "Michael Selik" mike@selik.org wrote:
Isn't there some rule about noticing an undocumented feature, like, whoever pours the last cup of coffee needs to brew a fresh pot? :-)
Most of the credit belongs, I think, to the original poster. His statement, that Python wasn't very Pythonic here, really drew attention to the empty coffee pot.

So someone ought to submit a PR that adds (brief) documentation for this, with reference to this thread.
On Sun, Oct 7, 2018 at 12:50 PM Jonathan Fine jfine2358@gmail.com wrote:
On 7 Oct 2018 20:39, "Michael Selik" mike@selik.org wrote:
Isn't there some rule about noticing an undocumented feature, like, whoever pours the last cup of coffee needs to brew a fresh pot? :-)
Most of the credit belongs, I think, to the original poster. His statement, that Python wasn't very Pythonic here, really drew attention to the empty coffee pot.
-- Jonathan
Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/

On 7 Oct 2018, at 22:44, Guido van Rossum guido@python.org wrote:
So someone ought to submit a PR that adds (brief) documentation for this, with reference to this thread.
I was trying to write this documentation when I noticed that the docs already mention this! "The stmt and setup parameters can also take objects that are callable without arguments." Maybe we should reword this? Obviously many people here have looked at the docs and not spotted it.
I'll post a PR with lambda examples under "Basic Examples", I think this should make people take notice of this feature.
/ Anders
participants (3)
-
Anders Hovmöller
-
Guido van Rossum
-
Jonathan Fine