Skip to content

Instantly share code, notes, and snippets.

@mahmoud
Created August 30, 2018 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahmoud/5596cc521b7257e407e7cf00850867e7 to your computer and use it in GitHub Desktop.
Save mahmoud/5596cc521b7257e407e7cf00850867e7 to your computer and use it in GitHub Desktop.
>>> z.gi_frame
<frame object at 0x7f21213b7548>
>>> z.__dict__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'generator' object has no attribute '__dict__'
>>> z.__slots__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'generator' object has no attribute '__slots__'
>>> type(z).__slots__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: type object 'generator' has no attribute '__slots__'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment