[Python-Dev] PEP 8 and optional underscores (original) (raw)
skip at pobox.com skip at pobox.com
Thu Jun 12 17:21:05 CEST 2008
- Previous message: [Python-Dev] PEP 8 and optional underscores
- Next message: [Python-Dev] PEP 8 and optional underscores
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>> Should it be...
>>
>> 2.n : .is_alive()
>> 2.n+1 : .is_alive() (deprecated), .alive (recommended)
>> 2.n+2 : .alive
Barry> Personally, I'd go with a property .is_aliveI'm not fond of using a property for this since it can lull you into the false belief that what you are doing is less expensive than it really is (attribute access vs method call). I think this is a case where explicit is better than implicit.
Skip
- Previous message: [Python-Dev] PEP 8 and optional underscores
- Next message: [Python-Dev] PEP 8 and optional underscores
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]