Re: [Tutor] what is it mean--- File "", line 1

2011-03-20 Thread Andre Engels
On Mon, Mar 21, 2011 at 1:58 AM, sihong lin wrote: > Hi, > > I just write a simplest file test.py with only one line--print "hello", > when I run it in command line: > >>> python test.py > > the follow message comes out: > > File "" , line 1 > python test > > SyntaxError: invalid syntax > > but

Re: [Tutor] what is it mean--- File "", line 1

2011-03-20 Thread Corey Richardson
Hi,  I just write a simplest file test.py with only one line--print "hello", when I run it in command line: python test.py the follow message comes out: File "" , line 1  python test SyntaxError: invalid syntax but, the file can run in shell, also in the command line, I put print "hello"

[Tutor] what is it mean--- File "", line 1

2011-03-20 Thread sihong lin
Hi,  I just write a simplest file test.py with only one line--print "hello", when I run it in command line: >>> python test.py the follow message comes out: File "" , line 1  python test SyntaxError: invalid syntax but, the file can run in shell, also in the command line, I put >>> print "h

Re: [Tutor] Difference

2011-03-20 Thread Corey Richardson
-Original Message- From: ANKUR AGGARWAL To: tutor Sent: Sun, Mar 20, 2011 1:49 pm Subject: [Tutor] Difference Hey want to know whats the difference between the pygame.display.update() and pygame.display.flip() An explanation with the example would be grea. Thanks In Advance Ankur Ag

[Tutor] Difference

2011-03-20 Thread ANKUR AGGARWAL
Hey want to know whats the difference between the pygame.display.update() and pygame.display.flip() An explanation with the example would be grea. Thanks In Advance Ankur Aggarwal ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscripti

Re: [Tutor] lambda

2011-03-20 Thread Ajit Deshpande
Fantastic explanation everyone. Thanks a lot. Looking forward to using lambda going forward. ~ Ajit Deshpande On Sat, Mar 19, 2011 at 6:07 PM, Steven D'Aprano wrote: > Ajit Deshpande wrote: > >> I am trying to figure out where lambda functions can be useful. Has anyone >> used them in real worl