Show More
@@ -40,6 +40,9 b' def dir2(obj):' | |||
|
40 | 40 | # TypeError: dir(obj) does not return a list |
|
41 | 41 | words = set() |
|
42 | 42 | |
|
43 | if safe_hasattr(obj, '__class__'): | |
|
44 | words |= set(dir(obj.__class__)) | |
|
45 | ||
|
43 | 46 | # filter out non-string attributes which may be stuffed by dir() calls |
|
44 | 47 | # and poor coding in third-party modules |
|
45 | 48 |
General Comments 0
You need to be logged in to leave comments.
Login now