[BangPypers] python command

abhinav sarkar abhinav.sarkar at gmail.com
Mon Aug 25 12:34:12 CEST 2008


On Mon, Aug 25, 2008 at 3:50 PM, Gopal Ghosh <gopalmessages at gmail.com>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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/bangpypers/attachments/20080825/35f9f2ea/attachment.htm>


More information about the BangPypers mailing list