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 rhettinger
Recipients eltoder, python-dev, rhettinger, serhiy.storchaka, vstinner
Date 2021-01-12.06:20:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610432436.98.0.923190324839.issue42903@roundup.psfhosted.org>
In-reply-to
Content
Some other thoughts:

* A zero argument function that returns a constant is unlikely to ever be used in a tight loop. That would be pointless.

* The @cache decorator is already 30% faster than calling an empty function. It's very cheap.

* We really don't want the cache logic to get into the business of trying to deduce the arity of the function being cached.  That is a can of worms that we would regret opening.
History
Date User Action Args
2021-01-12 06:20:37rhettingersetrecipients: + rhettinger, vstinner, python-dev, eltoder, serhiy.storchaka
2021-01-12 06:20:36rhettingersetmessageid: <1610432436.98.0.923190324839.issue42903@roundup.psfhosted.org>
2021-01-12 06:20:36rhettingerlinkissue42903 messages
2021-01-12 06:20:36rhettingercreate