Burton Samograd wrote:
> bruno at modulix <[EMAIL PROTECTED]> writes:
(snip)
>>*But* is it necessary to have the main() in the same file that defines
>>a_fun and b_fun ? It's quite common (and not only in Python) to use a
>>distinct file for the main(). So you can easily solve your problem by
>>splitting fun.py into fun.py and main.py:
>
>
> ah yes, that might be a good idea. I'm just hacking together a
> prototype right now and I'm thinking in C'isms still,
Yeps. Python is easy to get started with, but when it comes to idioms,
it's definitively not C.
(snip)
>
>>> Does python have the idea of a 'weak'
>>>reference
>>
>>Yes, but that's something totally different.
>
>
> Care to describe?
This is in the fine manual. Look for weakref.
Enjoy
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list