[BangPypers] from __past__ import PyHistory
Anand Balachandran Pillai
abpillai at gmail.com
Wed Jan 14 11:20:26 CET 2009
On Wed, Jan 14, 2009 at 3:22 PM, Senthil Kumaran <orsenthil at gmail.com> wrote:
>> Anand Balachandran Pillai wrote:
>> Guido has started a new blog where he will
>> recount the history of Python in a series of posts.
>>
>> He has already made two posts so far.
>>
>> http://python-history.blogspot.com/
>>
>
> I just thought, if he has added " from __past__ import PyHistory"
> also. Hahaha. :-)
>
> Have you read this discussion at Stackoverflow? Gives example for
> every line in the zen of python.
>
> http://stackoverflow.com/questions/228181/zen-of-python
>
This is a good one and perhaps a good way of starting an exercise
right here. Can members reply with good, clean and lucid examples
for each of the "philosophy" in the Zen of Python ?
Here is one from me.
"Beautiful is better than Ugly"
1. Python arrays (lists)
one_two_three = [1,2,3]
for x in len(one_two_three):
print one_two_three[x]
2. Perl arrays
@one_two_three = (1, 2, 3)
foreach $x (@one_two_three)
{
print $x;
}
I think this is also an example for "Readability counts"...
Btw, in case it was not obvious 1 is beautiful and 2 is ugly :)
>
>
> --
> Senthil
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>
Regards
--
-Anand
More information about the BangPypers
mailing list