A really bad idea.
Michael Hudson
mwh at python.net
Tue Nov 19 06:34:42 EST 2002
Manuel M. Garcia <mgarcia at cole-switches.com> writes:
> On Fri, 15 Nov 2002 12:50:39 -0500, Tim Peters <tim.one at comcast.net>
> wrote:
> (edit)
> >waiting-for-someone-to-ask-for-class-comprehensions-ly y'rs - tim
>
> NewClass = [WrapInsideProperty(attribute) for attribute in OldClass]
>
> would be nice.
Not quite sure what that means, but I bet you can do it with a
metaclass...
> FastClass = [ImplementAsCExtension(method) for method in SlowClass if
> UsedAlotAndRunsTooSlow(method)]
>
> would be very nice.
That one seems trickier :)
Cheers,
M.
--
It's actually a corruption of "starling". They used to be carried.
Since they weighed a full pound (hence the name), they had to be
carried by two starlings in tandem, with a line between them.
-- Alan J Rosenthal explains "Pounds Sterling" on asr
More information about the Python-list
mailing list