Skip to content

TypeError: can't create 'module' instances #9757

Discussion options

You must be logged in to vote

You can do dir(utime) and it shows the fact that it is a class and all it's methods.

dir just shows members, that alone doesn't prove it's a class. I don't know what platform you're on, but don't you get

>>> import utime
>>> utime
<module 'utime'>

?

As opposed to for example

>>> list
<class 'list'>

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jimmo
Comment options

Comment options

You must be logged in to vote
2 replies
@klaasbrant
Comment options

@stinos
Comment options

Answer selected by klaasbrant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants