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 Russell.Sim
Recipients Russell.Sim, eric.araujo, ghaering, ncoghlan, petri.lehtinen, rhettinger
Date 2012-08-20.03:20:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1345432841.58.0.646224756114.issue13299@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

Here is an implementation using lru_cache to prevent regeneration of the named tuple each time.

Cheers,
Russell
History
Date User Action Args
2012-08-20 03:20:41Russell.Simsetrecipients: + Russell.Sim, rhettinger, ghaering, ncoghlan, eric.araujo, petri.lehtinen
2012-08-20 03:20:41Russell.Simsetmessageid: <1345432841.58.0.646224756114.issue13299@psf.upfronthosting.co.za>
2012-08-20 03:20:32Russell.Simlinkissue13299 messages
2012-08-20 03:20:32Russell.Simcreate