Re: [BangPypers] Python easter eggs :)

2009-02-10 Thread Rajeev Nair
hi. Iam sure many here will be aware of easter eggs in python. For starters here is one.At the prompt type import this import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than

Re: [BangPypers] Python easter eggs :)

2009-02-10 Thread Jeff Rush
Here is another... from __future__ import braces File stdin, line 1 SyntaxError: not a chance Can you find any others? ;-) -Jeff Rajeev Nair wrote: hi. Iam sure many here will be aware of easter eggs in python. For starters here is one.At the prompt type import this import

Re: [BangPypers] Python easter eggs :)

2009-02-10 Thread Anand Balachandran Pillai
import __phello__ Hello world... On Tue, Feb 10, 2009 at 6:17 PM, Jeff Rush j...@taupro.com wrote: Here is another... from __future__ import braces File stdin, line 1 SyntaxError: not a chance Can you find any others? ;-) -Jeff Rajeev Nair wrote: hi. Iam sure many here will

Re: [BangPypers] Python easter eggs :)

2009-02-10 Thread Senthil Kumaran
In Py3K, import antigravity That was Skip, who did that! :) -- Senthil On Tue, Feb 10, 2009 at 6:39 PM, Anand Balachandran Pillai abpil...@gmail.com wrote: On Tue, Feb 10, 2009 at 6:38 PM, Anand Balachandran Pillai abpil...@gmail.com wrote: import __phello__ Hello world... Apparently,

Re: [BangPypers] Python easter eggs :)

2009-02-10 Thread Roshan Mathews
On Tue, Feb 10, 2009 at 6:39 PM, Anand Balachandran Pillai abpil...@gmail.com wrote: On Tue, Feb 10, 2009 at 6:38 PM, Anand Balachandran Pillai abpil...@gmail.com wrote: import __phello__ Hello world... Apparently, happens only the first time you import it ;) import __phello__ Hello

Re: [BangPypers] Python easter eggs :)

2009-02-10 Thread Senthil Kumaran
Well, my favorite is not just import this but import this print this.s -- Senthil On Tue, Feb 10, 2009 at 6:41 PM, Senthil Kumaran orsent...@gmail.com wrote: In Py3K, import antigravity That was Skip, who did that! :) -- Senthil On Tue, Feb 10, 2009 at 6:39 PM, Anand Balachandran

Re: [BangPypers] Python easter eggs :)

2009-02-10 Thread Senthil Kumaran
On Tue, Feb 10, 2009 at 6:54 PM, Anand Balachandran Pillai abpil...@gmail.com wrote: If anyone had a doubt whether to use list comprehension in their code, they have the answer - it is right there as part of the Zen of Python ...:) Thats a good way of looking at things. :) -- -- Senthil

Re: [BangPypers] Python easter eggs :)

2009-02-10 Thread Roshan Mathews
On Tue, Feb 10, 2009 at 7:07 PM, Anand Balachandran Pillai abpil...@gmail.com wrote: import this ... love = this this is love True love is True False love is False False love is not True or False True love is not True or False; love is love