Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #95136

Re: Which Python implementation am I using?

X-Received by 10.13.225.206 with SMTP id k197mr7720900ywe.40.1438971372759; Fri, 07 Aug 2015 11:16:12 -0700 (PDT)
X-Received by 10.140.81.149 with SMTP id f21mr92120qgd.8.1438971372674; Fri, 07 Aug 2015 11:16:12 -0700 (PDT)
Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!enother.net!enother.net!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!z61no5774563qge.0!news-out.google.com!b31ni5651qge.0!nntp.google.com!69no4410685qgl.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Fri, 7 Aug 2015 11:16:12 -0700 (PDT)
In-Reply-To <55c4ea68$0$1667$c3e8da3$5496439d@news.astraweb.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=18.189.86.18; posting-account=Jod8CwoAAAD06WqLVFnlf8nIDonFoRWK
NNTP-Posting-Host 18.189.86.18
References <55c4ea68$0$1667$c3e8da3$5496439d@news.astraweb.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <de88daa1-5724-4e0e-ba6c-45647aed271e@googlegroups.com> (permalink)
Subject Re: Which Python implementation am I using?
From Ned Batchelder <ned@nedbatchelder.com>
Injection-Date Fri, 07 Aug 2015 18:16:12 +0000
Content-Type text/plain; charset=ISO-8859-1
X-Received-Bytes 1494
X-Received-Body-CRC 2769494290
Xref csiph.com comp.lang.python:95136

Show key headers only | View raw


On Friday, August 7, 2015 at 1:27:17 PM UTC-4, Steven D'Aprano wrote:
> Is this the best way to detect Jython and IronPython when
> python_implementation isn't available?
> 
> How about PyPy, Stackless, or others?
> 

I've been told that the canonical test for PyPy is:

    '__pypy__' in sys.builtin_module_names

This is the test that coverage.py uses.

--Ned.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Which Python implementation am I using? Steven D'Aprano <steve@pearwood.info> - 2015-08-08 03:27 +1000
  Re: Which Python implementation am I using? Ned Batchelder <ned@nedbatchelder.com> - 2015-08-07 11:16 -0700
  Re: Which Python implementation am I using? Laura Creighton <lac@openend.se> - 2015-08-08 01:03 +0200

csiph-web