Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95136
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2015-08-07 11:16 -0700 |
| References | <55c4ea68$0$1667$c3e8da3$5496439d@news.astraweb.com> |
| Message-ID | <de88daa1-5724-4e0e-ba6c-45647aed271e@googlegroups.com> (permalink) |
| Subject | Re: Which Python implementation am I using? |
| From | Ned Batchelder <ned@nedbatchelder.com> |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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