P
Paddy
After quite enjoying participating in the group in 2007, I'd like to
wish you all a Merry Xmas.
- Paddy.
wish you all a Merry Xmas.
- Paddy.
After quite enjoying participating in the group in 2007, I'd like to
wish you all a Merry Xmas.
- Paddy.
.... int(message, 36)After quite enjoying participating in the group in 2007, I'd like to
wish you all a Merry Xmas.
- Paddy.
Shouldn't that be 0Xmas?>>> msg = ['Merry', '0Xmas']
>>> for message in msg:
After quite enjoying participating in the group in 2007, I'd like to
wish you all a Merry Xmas.
Bah, humbug
And if you're not a Christian it would be Type Error bug.
Anyway, happy New Years as well to all in the group.
Not at all: if you inherit from any of the many pagan (that is, non-
Christian) religions that celebrated midwinter festivals, or the old
Roman Saturnalia festival that Christianity itself inherited Christmas
from, you shouldn't raise an exception.
Alternatively, you can delegate to any object that understands about
holidays, parties, celebrations and gift-giving.
watch_fireworks()
try:
champagne
except NameError:
champagne = any_fizzy_alcoholic_drink_will_do()
champagne.drink()
shout("Happy New Years!!!")
for person in adults_nearby:
if (person.is_appropriate_sex and person.is_pretty):
Zentrader said:And if you're not a Christian it would be Type Error bug. Anyway,
happy New Years as well to all in the group.
Followers of Shushla celebrate the new year at the time of the spring
equinox.
This has been the cause of bloody wars between the Northern and
Southern sects, as She was born in Equador.
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?
On Dec 26, 9:43 pm, Steven D'Aprano
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?
Gabriel said:En Thu, 27 Dec 2007 02:32:54 -0300, (e-mail address removed)
The default is_appropriate_sex implementation just happens to call
is_opposite_sex, but this is an implementation detail and you should not
rely on that, even more so if you didn't create that particular person
instance.
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.
I wish you were taking the mickey, but I suspect you're not...
Got any more information? Googling doesn't come up with anything that
looks promising.
Then again, some instances define it as
person.is_appropriate_sex = True
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.