Python extending with – using super() Python 3 vs Python 2

super() (without arguments) was introduced in Python 3 (along with __class__): super() -> same as super(__class__, self) so that would be the Python 2 equivalent for new-style classes: super(CurrentClass, self) for old-style classes you can always use: class Classname(OldStyleParent): def __init__(self, *args, **kwargs): OldStyleParent.__init__(self, *args, **kwargs)

Lists in ConfigParser

I am using a combination of ConfigParser and JSON: [Foo] fibs: [1,1,2,3,5,8,13] just read it with: >>> json.loads(config.get(“Foo”,”fibs”)) [1, 1, 2, 3, 5, 8, 13] You can even break lines if your list is long (thanks @peter-smit): [Bar] files_to_check = [ “/path/to/file1”, “/path/to/file2”, “/path/to/another file with space in the name” ] Of course i could … Read more