homepage

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 facundobatista
Recipients facundobatista, theller
Date 2008年04月02日.15:06:07
SpamBayes Score 0.08399657
Marked as misclassified No
Message-id <1207148769.76.0.759041191465.issue2534@psf.upfronthosting.co.za>
In-reply-to
Content
I find similar speedups:
isinstance(42, int) -2%
isinstance(42, type) 45%
isinstance(object, type) -1%
isinstance(object, int) 42%
isinstance(float, int) 44%
(both negative ones are actually lower than original, but so low that it
could be considered timing glitches)
However, also I have an error in the test_exceptions.py suite:
facundo@pomcat:~/devel/reps/python/trunk$ ./python
Lib/test/test_exceptions.py
testAttributes (__main__.ExceptionTests) ... ok
testInfiniteRecursion (__main__.ExceptionTests) ... FAIL
testKeywordArgs (__main__.ExceptionTests) ... ok
testRaising (__main__.ExceptionTests) ... ok
testReload (__main__.ExceptionTests) ... ok
testSettingException (__main__.ExceptionTests) ... ok
testSlicing (__main__.ExceptionTests) ... ok
testSyntaxErrorMessage (__main__.ExceptionTests) ... ok
testUnicodeStrUsage (__main__.ExceptionTests) ... ok
test_WindowsError (__main__.ExceptionTests) ... ok
======================================================================
FAIL: testInfiniteRecursion (__main__.ExceptionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "Lib/test/test_exceptions.py", line 336, in testInfiniteRecursion
 self.assertRaises(RuntimeError, g)
AssertionError: RuntimeError not raised
----------------------------------------------------------------------
Ran 10 tests in 0.031s
FAILED (failures=1)
Traceback (most recent call last):
 File "Lib/test/test_exceptions.py", line 351, in <module>
 test_main()
 File "Lib/test/test_exceptions.py", line 348, in test_main
 run_unittest(ExceptionTests)
 File "/home/facundo/devel/reps/python/trunk/Lib/test/test_support.py",
line 577, in run_unittest
 _run_suite(suite)
 File "/home/facundo/devel/reps/python/trunk/Lib/test/test_support.py",
line 560, in _run_suite
 raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
 File "Lib/test/test_exceptions.py", line 336, in testInfiniteRecursion
 self.assertRaises(RuntimeError, g)
AssertionError: RuntimeError not raised
History
Date User Action Args
2008年04月02日 15:06:09facundobatistasetspambayes_score: 0.0839966 -> 0.08399657
recipients: + facundobatista, theller
2008年04月02日 15:06:09facundobatistasetspambayes_score: 0.0839966 -> 0.0839966
messageid: <1207148769.76.0.759041191465.issue2534@psf.upfronthosting.co.za>
2008年04月02日 15:06:09facundobatistalinkissue2534 messages
2008年04月02日 15:06:08facundobatistacreate

AltStyle によって変換されたページ (->オリジナル) /