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 ntoronto
Recipients amaury.forgeotdarc, christian.heimes, georg.brandl, ntoronto, rhettinger
Date 2008-01-23.18:12:25
SpamBayes Score 0.019280938
Marked as misclassified No
Message-id <1201111946.63.0.349641391369.issue1568@psf.upfronthosting.co.za>
In-reply-to
Content
There's nothing it tests that standard unit tests don't, so it shouldn't
stick around as a unit test. I used it to time different types of
attribute lookups and left it in as an optimization aid.

The main test groups are '.' access, successful hasattr (returns True),
and failing hasattr (returns False). For each group it prints a header
and then four test cases for each test class: metaclass attribute access
(class.__class__), class attribute access (class.__init__), class
attribute access via an instance (class().__class__), and instance
attribute access (class().__init__). The test classes include a few
built-ins and the classes of a made-up deep hierarchy.

The main thing to notice is that, when you run this using the patched
source, every number is no larger than when you run it using the trunk,
and most are smaller.
History
Date User Action Args
2008-01-23 18:12:26ntorontosetspambayes_score: 0.0192809 -> 0.019280938
recipients: + ntoronto, georg.brandl, rhettinger, amaury.forgeotdarc, christian.heimes
2008-01-23 18:12:26ntorontosetspambayes_score: 0.0192809 -> 0.0192809
messageid: <1201111946.63.0.349641391369.issue1568@psf.upfronthosting.co.za>
2008-01-23 18:12:25ntorontolinkissue1568 messages
2008-01-23 18:12:25ntorontocreate