Re: Python limericks (was Re: Text-to-speech)
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)) Michael P.S. I know 'three' doesn't rhyme. Well, don't be so harsh on yourself. You get a weak correlation between the 'ee' in 3 and the ('eat','eet') tuple, based on assonance. Good work. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python limericks (was Re: Text-to-speech)
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 attempt at a self-replicating one that uses far too many syllables in the last line: rhymes = 'for line in [rhymes, fines]:\n ' fines = 'print line, =, `eval(line)`\n' for line in [rhymes, fines]: print line, =, `eval(line)` whine='whine=%s;print rhymes, fines, whine%%`whine`';print rhymes, fines, whine%`whine` This can actually be pronounced as a proper limerick as follows: always pronounce = as is and ; as so, don't pronounce any other punctuation, and cheat by pronouncing the first string in the last line as junk :-) rhymes is for line in rhymes fines fines is print line is eval line for line in rhymes fines print line is eval line whine is junk so print rhymes fines whine whine David -- http://mail.python.org/mailman/listinfo/python-list
Re: Python limericks (was Re: Text-to-speech)
[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)
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't rhyme. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python limericks (was Re: Text-to-speech)
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! +10 My nomination to this one for originality, perfect meter (unlike many others posted so far), and best of all for the fact that it is not only a limerick on two levels (run it for real or mentally and read the output aloud), but its topic is also self-referentially about limericks. P.S. I know 'three' doesn't rhyme. That's allowed since you're distributing this (may I presume?) under the Poetic License. ;-) -Peter -- http://mail.python.org/mailman/listinfo/python-list
Re: Python limericks (was Re: Text-to-speech)
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-list
Re: Python limericks (was Re: Text-to-speech)
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, prophetic, invented a language, herpetic. decidedly brilliant, syntacticly elegant, Made ideas far less hypothetic. --Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list
Re: Python limericks (was Re: Text-to-speech)
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. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python limericks (was Re: Text-to-speech)
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. Wow... test-driven poetry! :-) -- http://mail.python.org/mailman/listinfo/python-list
Re: Python limericks (was Re: Text-to-speech)
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 worse : There once was a mathematician named van Rossum... Tim C Of course this last suggestion clearly has the wrong meter for a good limerick. I did say it was metrically worse... Not everyone knows the ingredients of a good limerick, which led to the following (which has been around in various forms since God was a lad): There was a young man from Japan Who never quite learned how to scan. He got on quite fine Until the last line And then somehow he could never quite get the number of syllables right,or make it rhyme. This page on meta-limericks is worth a look: http://www.kith.org/logos/words/lower/l.html So, let's accept that the first line should scan correctly, that would make the following first lines acceptable: A mathematician named Guido ... The inventor of Python, called Guido ... A mathematician (van Rossum) ... Van Rossum, inventor of Python ... Hopefully that will begin to get the idea across. The Wikipaedia page on limericks is also worth reading: http://en.wikipedia.org/wiki/Limericks 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 rules. I will post my judgment when the PyCon nonsense has died down a little, but the winner will be read before the entire PyCon audience. Get to it! 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. A fan of Monty and all was Guido, which inluenced much of what he'd do. Fun was the name of the game, or if you need something to blame, aversions to perl versions, might be your diversions. But Guido did concentrate well, and managed sans line noise to spell. Suite nothings do our blocks express which doth our code transparently dress, delighting the many who view while confounding a relative few ... and rightly conferring to Guido much fame, though Guido van Rossum is only one name. There's a this to import for a hint why so many contribute a stint. The beauty, the Zen, the generous ethos attract, But it's not deniable it's a definite fact that that really's not explaining it all: It's a good bet they're having a ball ;-) Regards, Bengt Richter -- http://mail.python.org/mailman/listinfo/python-list
Python limericks (was Re: Text-to-speech)
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 Of course this last suggestion clearly has the wrong meter for a good limerick. I did say it was metrically worse... Not everyone knows the ingredients of a good limerick, which led to the following (which has been around in various forms since God was a lad): There was a young man from Japan Who never quite learned how to scan. He got on quite fine Until the last line And then somehow he could never quite get the number of syllables right,or make it rhyme. This page on meta-limericks is worth a look: http://www.kith.org/logos/words/lower/l.html So, let's accept that the first line should scan correctly, that would make the following first lines acceptable: A mathematician named Guido ... The inventor of Python, called Guido ... A mathematician (van Rossum) ... Van Rossum, inventor of Python ... Hopefully that will begin to get the idea across. The Wikipaedia page on limericks is also worth reading: http://en.wikipedia.org/wiki/Limericks 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 rules. I will post my judgment when the PyCon nonsense has died down a little, but the winner will be read before the entire PyCon audience. Get to it! 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. Tim C -- http://mail.python.org/mailman/listinfo/python-list