Re: Bragging about Python

2007-06-08 Thread Richard Jones
Steve Howell wrote: > --- Szabolcs Nagy <[EMAIL PROTECTED]> wrote: >> >> actually i don't like when a tutorial uses over >> complicated cute names >> if the context is obvious (fibonacci) then we don't >> need to add >> 'parent_rabbits' and such identifiers > > I still prefer the use of "rabbits,

Re: Bragging about Python (8 queens)

2007-06-08 Thread Steve Howell
--- Paul McGuire <[EMAIL PROTECTED]> wrote: > > > > So I'm throwing down the gauntlet--can somebody > write > > a short program (maybe 10 to 20 lines) where you > solve > > a problem more simply than a similar > > non-generator-using solution would solve it? > Maybe > > something like Eight Queen

Re: Bragging about Python

2007-06-08 Thread Paul McGuire
On Jun 7, 6:15 pm, Steve Howell <[EMAIL PROTECTED]> wrote: > Programs like this were posted on this thread: > > > > > > >def fib(): > >generation, parent_rabbits, baby_rabbits = 1, > > 1, 1 > >while True: > >yield generation, baby_rabbits > >generation +=

Re: Bragging about Python

2007-06-08 Thread Steve Howell
--- Szabolcs Nagy <[EMAIL PROTECTED]> wrote: > > the title of a program shouldn't be part of the code > (or it should at > least start with #) > sorry i'm too lazy now to fix it, but imho it needs > nicer layout to be > used as 'bragging about pyth

Re: Bragging about Python

2007-06-07 Thread Szabolcs Nagy
e missing there. > > > > "It's a Wiki." ;) > > > > Yes indeed. Please feel free to add to the page, or > make your own fork. See link above. the title of a program shouldn't be part of the code (or it should at least start with #) sorry i'm too la

Re: Bragging about Python

2007-06-07 Thread Steve Howell
--- Georg Brandl <[EMAIL PROTECTED]> wrote: > >> > >> 15 small programs here: > >> > >> http://wiki.python.org/moin/SimplePrograms > >> > > > > IMHO a few python goodies are missing there. > > "It's a Wiki." ;) > Yes indeed. Please feel free to add to the page, or make your own fork. See l

Re: Bragging about Python

2007-06-07 Thread Steve Howell
Programs like this were posted on this thread: >def fib(): >generation, parent_rabbits, baby_rabbits = 1, > 1, 1 >while True: >yield generation, baby_rabbits >generation += 1 >parent_rabbits, baby_rabbits = \ > baby_rabbits,

Re: Bragging about Python

2007-06-07 Thread Steve Howell
--- Szabolcs Nagy <[EMAIL PROTECTED]> wrote: > > actually i don't like when a tutorial uses over > complicated cute names > if the context is obvious (fibonacci) then we don't > need to add > 'parent_rabbits' and such identifiers I still prefer the use of "rabbits," but I don't mind if people ch

Re: Bragging about Python

2007-06-07 Thread Szabolcs Nagy
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > Mathias Panzenboeck <[EMAIL PROTECTED]> wrote: >def fib(): >generation, parent_rabbits, baby_rabbits = 1, 1, 1 >while True: >yield generation, baby_rabbits >generation += 1 >parent_rab

Re: Bragging about Python

2007-06-07 Thread Georg Brandl
Mathias Panzenboeck schrieb: > Steve Howell schrieb: >> --- "[EMAIL PROTECTED]" >> <[EMAIL PROTECTED]> wrote: >> >>> Is there a resource somewhere on the net that can be >>> used to quickly >>> and effectively show Python's strengths to >>> non-Python programmers? >>> Small examples that will make

Re: Bragging about Python

2007-06-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mathias Panzenboeck <[EMAIL PROTECTED]> wrote: >Steve Howell schrieb: >> --- "[EMAIL PROTECTED]" >> <[EMAIL PROTECTED]> wrote: >> >>> Is there a resource somewhere on the net that can be >>> used to quickly >>> and effectively show Python's strengths to >>> non-Pyt

Re: Bragging about Python

2007-06-07 Thread Mathias Panzenboeck
Steve Howell schrieb: > --- "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> wrote: > >> Is there a resource somewhere on the net that can be >> used to quickly >> and effectively show Python's strengths to >> non-Python programmers? >> Small examples that will make them go "Wow, that >> _is_ neat"? >> >

Re: Bragging about Python

2007-06-07 Thread Steve Howell
--- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Is there a resource somewhere on the net that can be > used to quickly > and effectively show Python's strengths to > non-Python programmers? > Small examples that will make them go "Wow, that > _is_ neat"? > 15 small programs here: http://w

Bragging about Python

2007-06-07 Thread [EMAIL PROTECTED]
Is there a resource somewhere on the net that can be used to quickly and effectively show Python's strengths to non-Python programmers? Small examples that will make them go "Wow, that _is_ neat"? -- http://mail.python.org/mailman/listinfo/python-list