On Sat, Mar 12, 2016 at 5:24 PM, Veek. M <vek.m1...@gmail.com> wrote: >> Also, what's this bit: >> self.default = default if default else type() > But type() just gives me: > TypeError: type() takes 1 or 3 arguments > on py2,3
Check out the context of the original line of code and see what it's doing. It isn't the same as "type()" in a bare context. ChrisA' -- https://mail.python.org/mailman/listinfo/python-list