Another idea for defining the fields in records would be to create a class method that would instantiate the individual fields at instance creation rather than during class definition. This would use less memory when there are no Record objects being used. Storing each Field after it's instantiated into a List, as well as a Dict would remove the necessity for counting the Field instantiation order, since the List would hold them in their proper order. |
||
---|---|---|
.. | ||
__init__.py | ||
enums.py | ||
fields.py | ||
model.py | ||
record.py |