Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I tell which Python interpreter I'm using?

Tags:

python

I am using Python 2.5.2. How can I tell whether it is CPython or IronPython or Jython?

Another question: how can I use a DLL developed in VB.NET in my project?

like image 1000
user46646 Avatar asked Nov 28 '22 00:11

user46646


2 Answers

import platform    
platform.python_implementation()

The above one provide the type of interpreter you use .

like image 136
Venkat Krish Avatar answered Dec 08 '22 07:12

Venkat Krish


If you downloaded it as the default thing from python.org, it's CPython. That's the “normal” version of Python, the one you get when you use the command “python”, and the one you'll have unless you specifically went looking for the projects targeting Java/CIL.

And it's CPython because neither of the other projects have reached version number 2.5.2.

How can i use a dll developed in VB.NET in to my project?

From CPython, using Python-for-.NET(*) and clr.AddReference.

(*: actually a bit of a misnomer, as with CPython in control it is more like .NET-for-Python.)

like image 30
bobince Avatar answered Dec 08 '22 06:12

bobince