Do not use constructors in default arguments

Something like __init__(self, classes=Classes(), …) causes Python to
create a single Classes instance that gets used as default argument
subsequently. If something changes the variable then referenced by
classes, subsequent calls to the default constructor will cause the
changed object to be referenced.

Signed-off-by: martin f. krafft <madduck@madduck.net>
1 file changed