Descriptors vs Property
Chris Angelico
rosuav at gmail.com
Sat Mar 12 01:35:35 EST 2016
On Sat, Mar 12, 2016 at 5:24 PM, Veek. M <vek.m1234 at 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'
More information about the Python-list
mailing list