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 Arfrever, abarnert, adlaiff6, amaury.forgeotdarc, belopolsky, benjamin.peterson, christian.heimes, eric.araujo, eric.smith, eric.snow, ethan.furman, georg.brandl, giampaolo.rodola, gjb1002, jackdied, lemburg, rhettinger, salty-horse, santoso.wijaya, skrah, sunfinite, terry.reedy, vstinner
Date 2014-04-29.05:23:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398748993.18.0.958578410534.issue1820@psf.upfronthosting.co.za>
In-reply-to
Content
> Is accessing _fields a common operation?

Not common at all -- it is used for introspection.

That said, there is nearly zero savings from generating the tuple upon look-up.  I would say that using a PyGetSetDef is a false optimization.
History
Date User Action Args
2014-04-29 05:23:13rhettingersetrecipients: + rhettinger, lemburg, georg.brandl, terry.reedy, amaury.forgeotdarc, gjb1002, belopolsky, salty-horse, vstinner, jackdied, eric.smith, giampaolo.rodola, christian.heimes, benjamin.peterson, adlaiff6, eric.araujo, Arfrever, skrah, santoso.wijaya, ethan.furman, eric.snow, sunfinite, abarnert
2014-04-29 05:23:13rhettingersetmessageid: <1398748993.18.0.958578410534.issue1820@psf.upfronthosting.co.za>
2014-04-29 05:23:13rhettingerlinkissue1820 messages
2014-04-29 05:23:12rhettingercreate