Descriptors vs Property
Chris Angelico
rosuav at gmail.com
Sat Mar 12 01:35:35 EST 2016
More information about the Python-list mailing list
Sat Mar 12 01:35:35 EST 2016
- Previous message (by thread): Descriptors vs Property
- Next message (by thread): Descriptors vs Property
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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'
- Previous message (by thread): Descriptors vs Property
- Next message (by thread): Descriptors vs Property
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list