Happy Christmas Pythoneers
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Fri Dec 28 05:03:59 EST 2007
On Thu, 27 Dec 2007 22:38:44 -0800, Aahz wrote:
> In article <pan.2007.12.27.07.47.28 at REMOVE.THIS.cybersource.com.au>,
> Steven D'Aprano <steven at REMOVE.THIS.cybersource.com.au> wrote:
>>On Wed, 26 Dec 2007 21:32:54 -0800, mensanator at aol.com wrote:
>>>
>>> Hey, my version of the person module doesn't have an is_appropriate_sex
>>> attribute, but an is_opposite_sex attribute instead. Is this a new
>>> version?
>>
>>Generally instances use:
>>
>>person.is_appropriate_sex = person.is_opposite_sex
>>
>>but some instances define it as:
>>
>>person.is_appropriate_sex = not person.is_opposite_sex
>>
>>It's an implementation detail, you shouldn't worry about it.
>
> Then again, some instances define it as
>
> person.is_appropriate_sex = True
And sometimes it's not that simple but a property and connected with the
caller's history of `champagne.drink()` calls. The `person.is_pretty`
property is most definitely linked to that call history in many instances.
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list