Source

pypy / pypy / module / __builtin__ / app_inspect.py

Author Commit Message Labels Comments Date
Armin Rigo
Intermediate check-in
Branches
kill-geninterp
Benjamin Peterson
fix __dir__ on old-style classes
Benjamin Peterson
lookup __dir__ correctly
Benjamin Peterson
__dir__() on anything should override the default behavior
Amaury Forgeot d'Arc
issue686 (nekto0n) Fix dir() on objects with a broken __getattribute__
Armin Rigo
(fijal, arigo)
Armin Rigo
(fijal, arigo)
Amaury Forgeot d'Arc
dir() is supposed to fail on broken modules with invalid __dict__
Branches
fast-forward
Armin Rigo
Move hasattr() to interp-level. It's not really longer (it's shorter
Alexander Schremmer
Rewrote isinstance and issubclass in RPython, gives 25% speed boost. Things to check: why is it still 10 times slower than CPython? How do the space method isinstance etc. relate to this code?
Armin Rigo
hasattr() must raise TypeError if the 2nd arg is not a string or
Armin Rigo
Eat almost all exceptions in hasattr(), not just AttributeError.
Armin Rigo
Added docstrings to __builtin__ functions.
Armin Rigo
Another corner case and fix for CPython's test_builtin.
Armin Rigo
Testing, quick fix.
Armin Rigo
No need to import __builtin__; it's our current builtins here.
holger krekel
issue51 testing