On Mon, Aug 25, 2008 at 3:50 PM, Gopal Ghosh <[EMAIL PROTECTED]>wrote:

> >>>python
> # supposed output of the above command.
> Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
> (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>>
> the above command is same as uname in linux but not working
> shows the following error in IDLE and run called python cli
> Traceback (most recent call last):
>  File "<pyshell#20>", line 1, in <module>
>    python
> NameError: name 'python' is not defined
> _______________________________________________
> BangPypers mailing list
> BangPypers@python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>

Hi,
'python' does not work in windows python prompt. You can use this code
instead:

>>> import sys; print '%s %s' % (sys.executable or sys.platform,
sys.version)
c:\python25\python.exe 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310
32 bit (Intel)]

Cheers
-- 
Abhinav Sarkar
Fair Isaac India

Mobile:+91-9731596137
Office: +91-8041371605

Web: http://claimid.com/abhin4v
Twitter: http://twitter.com/abhin4v
---------
The world is a book, those who do not travel read only one page.
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to