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,
--- 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
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 +=
--- 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
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
--- 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
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,
--- 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
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
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
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
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"?
>>
>
--- "[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
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
14 matches
Mail list logo