This email is broken up into multiple sections:
(1) Introduction
(2) Problem
(3) Probably Poor Solution
(4) Tangent (Utter Tomfoolery)
Introduction
Hello,
This is my first post to the list,
and I apologize for 4 reasons:
(1) I haven't been lurk
[EMAIL PROTECTED] wrote:
> Tangent (Utter Tomfoolery)
>
> More interestingly, one sees (if one squints) the distinction
> between modules,
> classes, and functions blur:
>
> >>> def new_b():
> ... print "tee hee"
> >>> a.b = new_b()
> >>>a()
> tee hee
> 3
> >>> print x
> 5
>
After
Thanks again for giving me something fun to do with my life. ;-)
--
Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/
"I disrespectfully agree." --SJM
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/ma
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Jan 31, 2007, at 10:11 AM, Aahz wrote:
> Thanks again for giving me something fun to do with my life. ;-)
Here, here!
- -Barry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
iQCVAwUBRcC0nnEjvBPtnXfVAQI2+AP/QcOBBiGI/zDreuFU2bjq0MNH
On 31/01/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Fortunately, the scopes in question are always named.
> Can't we just reference what's already there?
>
> >>> x = 10
> >>> def a():
> ... x = 3
> ... def b():
> ... a.x = 4
> ... print a.x
> ...
> ... b()
> ..
Thank you guys! Now I want something fun to do with my life again too! :-)
On 1/31/07, Barry Warsaw <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Jan 31, 2007, at 10:11 AM, Aahz wrote:
>
> > Thanks again for giving me something fun to do with my life. ;-)
>
>
aahz> Thanks again for giving me something fun to do with my life. ;-)
Not to mention a very good way to earn a living. ;-)
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
htt
"Guido van Rossum" <[EMAIL PROTECTED]> wrote:
> Thank you guys! Now I want something fun to do with my life again too! :-)
You could hand BDFL responsibilities off onto perhaps Tim, Raymond, or
Martin for a few months and try to convince Google to open an office in
Hawaii. Pick up one of those T
Barry Warsaw wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Jan 31, 2007, at 10:11 AM, Aahz wrote:
>
>> Thanks again for giving me something fun to do with my life. ;-)
>
> Here, here!
Where, where?
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Hold
On Wed, Jan 31, 2007, Steve Holden wrote:
> Barry Warsaw wrote:
>>On Jan 31, 2007, at 10:11 AM, Aahz wrote:
>>>
>>>Thanks again for giving me something fun to do with my life. ;-)
>>
>>Here, here!
>
> Where, where?
Therewolf
--
Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncra
Nick Maclaren wrote:
> Martin v. Löwis wrote:
>> It may be a bit problematic to implement, but I think a clean
>> specification is possible. If a and b are numbers, and a==b,
>> then hash(a)==hash(b).
You don't even need that much complication.
If a==b, then hash(a) == hash(b)
If you have
Perhaps this has been brought up in the past but I couldn't find it in
the archives: far too often I use the idiom dict(zip(keys,values)), or
the same with izip. How does letting dict take two positional
arguments sound ?
Pros:
- Pretty obvious semantics, no mental overhead to learn and remember i
12 matches
Mail list logo