The Python Game Book

code games. learn Python.

User Tools

Site Tools


Sidebar

Github:

en:glossary:c:class

class (python tutorial page)

very useful reading! describes scope of variables (local, nonlocal, global) in classes, iterators, generators

how to create class instance from variable

globals()[className]()

how to find out superclass names (without creating an instance)

classname.mro()

en/glossary/c/class.txt · Last modified: 2020/09/25 05:19 by horst