Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly not support modules #18

Open
sdvillal opened this issue Aug 5, 2018 · 0 comments
Open

Explicitly not support modules #18

sdvillal opened this issue Aug 5, 2018 · 0 comments

Comments

@sdvillal
Copy link
Owner

sdvillal commented Aug 5, 2018

At the moment modules are not supported in what2id (and in general). Probably we should check first if an object is a module and if so, raise NonSupported before jumping into further trouble.

Related, this is a funny case I just run into (notice that here whatami does have a what member):

python -c 'import whatami; whatami.what2id(whatami)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/whatever/lib/python2.7/site-packages/whatami/whatutils.py", line 37, in what2id
    return obj.what().id()
TypeError: 'module' object is not callable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant