[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.
> 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.
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):
2. Perl arrays
@one_two_three = (1, 2, 3)
foreach $x (@one_two_three)
I think this is also an example for "Readability counts"...
Btw, in case it was not obvious 1 is beautiful and 2 is ugly :)
> BangPypers mailing list
> BangPypers at python.org
More information about the BangPypers