¡@

Home 

python Programming Glossary: simpleclass

Creating a list of objects in Python

http://stackoverflow.com/questions/348196/creating-a-list-of-objects-in-python

within a loop Thanks Bob J Here's my simplified code class SimpleClass object pass x SimpleClass # Then create an empty list simpleList.. Here's my simplified code class SimpleClass object pass x SimpleClass # Then create an empty list simpleList #Then loop through from.. from 0 to 3 adding an attribute to the instance 'x' of SimpleClass for count in range 0 4 # each iteration creates a slightly different..