Re: Python limericks (was Re: Text-to-speech)

2005-03-24 Thread smitty_one_each
Michael Spencer wrote: > How about a category for executable limericks? > > Here's one to get the ball rolling: > > > # voice only the alphanumeric tokens > > from itertools import repeat > for feet in [3,3,2,2,3]: > print " ".join("DA-DA-DUM" > for dummy in [None] > for foot in repeat("

Re: Python limericks (was Re: Text-to-speech)

2005-03-23 Thread Richie Hindle
[Michael] > from itertools import repeat > for feet in [3,3,2,2,3]: > print " ".join("DA-DA-DUM" > for dummy in [None] > for foot in repeat("metric", feet)) Spectacular! +1 QOTW -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Python limericks (was Re: Text-to-speech)

2005-03-23 Thread David Fraser
Michael Spencer wrote: How about a category for executable limericks? That was my thought too... for programmer in search_of("elegance"): if programmer.needs("an experience"): print "whitespace counts much" if Van_Rossum is Dutch: print "Dictators are made by benevolence" And an att

Re: Python limericks (was Re: Text-to-speech)

2005-03-22 Thread Bengt Richter
On Tue, 22 Mar 2005 03:42:05 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: [...] >A fan of Monty and all was Guido, >which inluenced much of what he'd do. ... Oy. Re-reading => DAPR (Day After Posting Remorse) ;-/ Oh well. Regards, Bengt Richter -- http://mail.python.org/mailman/listinfo/python-l

Re: Python limericks (was Re: Text-to-speech)

2005-03-22 Thread Peter Hansen
Michael Spencer wrote: How about a category for executable limericks? Here's one to get the ball rolling: # voice only the alphanumeric tokens from itertools import repeat for feet in [3,3,2,2,3]: print " ".join("DA-DA-DUM" for dummy in [None] for foot in repeat("metric", feet)) Brilliant!

Re: Python limericks (was Re: Text-to-speech)

2005-03-22 Thread Michael Spencer
How about a category for executable limericks? Here's one to get the ball rolling: # voice only the alphanumeric tokens from itertools import repeat for feet in [3,3,2,2,3]: print " ".join("DA-DA-DUM" for dummy in [None] for foot in repeat("metric", feet)) Michael P.S. I know 'three' doesn

Re: Python limericks (was Re: Text-to-speech)

2005-03-21 Thread Bengt Richter
On Mon, 21 Mar 2005 15:39:45 +1100, Tim Churches <[EMAIL PROTECTED]> wrote: >Steve Holden wrote: >> Tim Churches wrote: >>> There once was a language called Python... >>> >>> (which is pretty close to having three anapaestic left feet) >>> >>> or more promisingly, rhyme-wise, but metrically rather

Re: Python limericks (was Re: Text-to-speech)

2005-03-21 Thread Peter Hansen
Paul Rubin wrote: Scott David Daniels <[EMAIL PROTECTED]> writes: A mathematician, prophetic, invented a language, herpetic. decidedly brilliant, syntacticly elegant, syntactically elegant, with features intelligent Made ideas far less hypothetic. Made writing new code copasetic. W

Re: Python limericks (was Re: Text-to-speech)

2005-03-21 Thread Paul Rubin
Scott David Daniels <[EMAIL PROTECTED]> writes: >A mathematician, prophetic, >invented a language, herpetic. > decidedly brilliant, > syntacticly elegant, syntactically elegant, with features intelligent >Made ideas far less hypothetic. Made writing new code copasetic. --

Re: Python limericks (was Re: Text-to-speech)

2005-03-21 Thread Scott David Daniels
Tim Churches wrote: ... My first attempt (which does not scan properly): A Dutch mathematician most prophetic, Did invent a language, name herpetic. With design quite intelligent, And syntax mostly elegant, Big ideas could be made non-hypothetic. To improve the scan: A mathematician, propheti

Python limericks (was Re: Text-to-speech)

2005-03-20 Thread Brian van den Broek
Steve Holden said unto the world upon 2005-03-20 16:18: Since it's PyCon week, I will offer a prize of $100 to the best (in my opinion) limerick about Python posted to this list (with a Cc: to [EMAIL PROTECTED]) before midday on Friday. The prize money will be my own, so there are no other rule

Python limericks (was Re: Text-to-speech)

2005-03-20 Thread Tim Churches
Steve Holden wrote: > Tim Churches wrote: >> There once was a language called Python... >> >> (which is pretty close to having three anapaestic left feet) >> >> or more promisingly, rhyme-wise, but metrically rather worse : >> >> There once was a mathematician named van Rossum... >> >> Tim C >> > O