mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
![]() it deals correctly with some anomalous cases; according to this test suite I've fixed it right. The anomalous cases had to do with 'exception' events: these aren't generated when they would be most helpful, and the profiler has to work hard to recover the right information. The problems occur when C code (such as hasattr(), which is used as the example here) calls back into Python code and clears an exception raised by that Python code. Consider this example: def foo(): hasattr(obj, "bar") Where obj is an instance from a class like this: class C: def __getattr__(self, name): raise AttributeError The profiler sees the following sequence of events: call (foo) call (__getattr__) exception (in __getattr__) return (from foo) Previously, the profiler would assume the return event returned from __getattr__. An if statement checking for this condition and raising an exception was commented out... This version does the right thing. |
||
---|---|---|
.. | ||
test_asynchat | ||
test_atexit | ||
test_augassign | ||
test_bastion | ||
test_binascii | ||
test_builtin | ||
test_cfgparser | ||
test_cgi | ||
test_charmapcodec | ||
test_class | ||
test_coercion | ||
test_compare | ||
test_compile | ||
test_cookie | ||
test_cpickle | ||
test_exceptions | ||
test_extcall | ||
test_future | ||
test_gettext | ||
test_global | ||
test_grammar | ||
test_httplib | ||
test_linuxaudiodev | ||
test_longexp | ||
test_math | ||
test_md5 | ||
test_mimetools | ||
test_MimeWriter | ||
test_minidom | ||
test_mmap | ||
test_new | ||
test_nis | ||
test_opcodes | ||
test_openpty | ||
test_operations | ||
test_pickle | ||
test_pkg | ||
test_poll | ||
test_popen2 | ||
test_posixpath | ||
test_pow | ||
test_profile | ||
test_pty | ||
test_pwd | ||
test_pyexpat | ||
test_re | ||
test_regex | ||
test_rgbimg | ||
test_richcmp | ||
test_rotor | ||
test_sax | ||
test_scope | ||
test_signal | ||
test_socket | ||
test_string | ||
test_thread | ||
test_threadedtempfile | ||
test_tokenize | ||
test_types | ||
test_ucn | ||
test_unicode | ||
test_unicode_file | ||
test_unicodedata | ||
test_urlparse | ||
test_winreg | ||
test_winsound | ||
test_xreadline | ||
test_zlib |