all() is slow?
Chris Rebert
clp2 at rebertia.com
Tue Nov 8 20:30:48 EST 2011
On Tue, Nov 8, 2011 at 5:19 PM, Chris Angelico <rosuav at gmail.com> wrote:
> On Wed, Nov 9, 2011 at 11:44 AM, Devin Jeanpierre
> <jeanpierreda at gmail.com> wrote:
>> Clearly what we need is a modern hygienic macro system to avoid this exec mess!
>>
>> defmacro defall(name, cond):
>> def name(lst):
>> for a in lst:
>> if not cond:
>> return False
>> return True
>
> #define defall(name,cond) def name(lst): \
> for a in lst: \
> if not cond: return False \
> return True
>
> gcc -E myprog.pyi -o myprog.py
>
> There's no code you can't make more opaque using the C preprocessor.
>
> Python doesn't have inline functions? Ha! In your FACE, evil Python
> development cabal! You can't tell ME what I can't do!
>
> ChrisA
> PS. Don't try this at home. We have years of experience with bad code.
> Don't write code like this unless you have a life insurance policy
> that covers angry mobs.
Burn him! Witch! Witch! Burn him!
His code turned me into a newt!
--
Sent nailed to a coconut carried by swallow.
More information about the Python-list
mailing list