¡@

Home 

python Programming Glossary: base.__slots__

Inspect python class attributes

http://stackoverflow.com/questions/4241171/inspect-python-class-attributes

elif hasattr base '__slots__' if hasattr base base.__slots__ 0 # We're dealing with a non string sequence or one char string.. with a non string sequence or one char string for item in base.__slots__ attrs item getattr base item else # We're dealing with a single.. We're dealing with a single identifier as a string attrs base.__slots__ getattr base base.__slots__ for key in boring del attrs 'key'..