pypy / pypy / module / __builtin__ / app_inspect.py

Author Commit Message Labels Comments Date
Armin Rigo avatarArmin Rigo
Intermediate check-in
Branches
kill-geninterp
Benjamin Peterson avatarBenjamin Peterson
fix __dir__ on old-style classes
Benjamin Peterson avatarBenjamin Peterson
lookup __dir__ correctly
Benjamin Peterson avatarBenjamin Peterson
__dir__() on anything should override the default behavior
Amaury Forgeot d'Arc avatarAmaury Forgeot d'Arc
issue686 (nekto0n) Fix dir() on objects with a broken __getattribute__
Armin Rigo avatarArmin Rigo
(fijal, arigo)
Armin Rigo avatarArmin Rigo
(fijal, arigo)
Amaury Forgeot d'Arc avatarAmaury Forgeot d'Arc
dir() is supposed to fail on broken modules with invalid __dict__
Branches
fast-forward
Armin Rigo avatarArmin Rigo
Move hasattr() to interp-level. It's not really longer (it's shorter
Alexander Schremmer avatarAlexander 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 avatarArmin Rigo
hasattr() must raise TypeError if the 2nd arg is not a string or
Armin Rigo avatarArmin Rigo
Eat almost all exceptions in hasattr(), not just AttributeError.
Armin Rigo avatarArmin Rigo
Added docstrings to __builtin__ functions.
Armin Rigo avatarArmin Rigo
Another corner case and fix for CPython's test_builtin.
Armin Rigo avatarArmin Rigo
Testing, quick fix.
Armin Rigo avatarArmin Rigo
No need to import __builtin__; it's our current builtins here.
holger krekel avatarholger krekel
issue51 testing
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.