On Sat, 17 May 2008 04:01:50 +, Ivan Illarionov wrote:
> After re-reading "Python is not Java" I finally came to conclusion that
> classmethods in Python are a very Bad Thing.
>
> I can't see any use-case of them that couldn't be re-written more clearly
> with methods of metaclass or plain
George Sakkis wrote:
If you push this logic too far, you should del every name immediately
after the last statement it is used in the scope. I would generally
find less readable some code spread with del every few lines, micro-
managing the effective scope of each name. YMMV.
Yes, but ... how
On May 16, 11:43�pm, Sanoski <[EMAIL PROTECTED]> wrote:
> I'm pretty new to programming. I've just been studying a few weeks off
> and on. I know a little, and I'm learning as I go. Programming is so
> much fun! I really wish I would have gotten into it years ago, but
> here's my question. I have a
On May 17, 12:01 am, Ivan Illarionov <[EMAIL PROTECTED]>
wrote:
> After re-reading "Python is not Java" I finally came to conclusion that
> classmethods in Python are a very Bad Thing.
>
> I can't see any use-case of them that couldn't be re-written more clearly
> with methods of metaclass or plain
En Sat, 17 May 2008 01:01:50 -0300, Ivan Illarionov
<[EMAIL PROTECTED]> escribió:
After re-reading "Python is not Java" I finally came to conclusion that
classmethods in Python are a very Bad Thing.
I can't see any use-case of them that couldn't be re-written more clearly
with methods of meta
Hi all,
I need to find the intersection of 10 different files with ids defined as
a_items, b_items and so on
common_items = a_items&b_items&c_items&\
d_items&e_items&f_items\
&g_items&h_items&i_items&j_items
i have included above line in the script
is this an right w
On May 16, 4:46 am, "甜瓜" <[EMAIL PROTECTED]> wrote:
> Howdy,
> I wonder why below does not work.
>
> a = object()
> a.b = 1# dynamic bind attribute failed...
>
> To make it correct, we have to create a new class:
> class MyClass(object): pass
> a = MyClass()
> a.b = 1 # OK
>
> Doe
On Sat, 17 May 2008 15:49:05 +1000, Beema shafreen
<[EMAIL PROTECTED]> wrote:
Hi all,
I need to find the intersection of 10 different files with ids defined as
a_items, b_items and so on
common_items = a_items&b_items&c_items&\
d_items&e_items&f_items\
&g_items&h
201 - 208 of 208 matches
Mail list logo