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


Groups > comp.lang.python > #25718 > unrolled thread

PyPy, is it a 1:1 replacement for CPython?

Started bySimon Cropper <simoncropper@fossworkflowguides.com>
First post2012-07-21 13:35 +1000
Last post2012-07-21 03:59 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  PyPy, is it a 1:1 replacement for CPython? Simon Cropper <simoncropper@fossworkflowguides.com> - 2012-07-21 13:35 +1000
    Re: PyPy, is it a 1:1 replacement for CPython? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-21 03:59 +0000

#25718 — PyPy, is it a 1:1 replacement for CPython?

FromSimon Cropper <simoncropper@fossworkflowguides.com>
Date2012-07-21 13:35 +1000
SubjectPyPy, is it a 1:1 replacement for CPython?
Message-ID<mailman.2359.1342841726.4697.python-list@python.org>
Hi,

Can you use PyPy as a direct replacement for the normal python or is it 
a specialized compiler that can only work with libraries that are 
manipulated to operate within its constraints (if it has any).

Are there any issues with using PyPy? For example, if programs are 
created under PyPy are they subtle different from normal code that would 
make the program incompatible with the normal compiler?

-- 
Cheers Simon

    Simon Cropper - Open Content Creator

    Free and Open Source Software Workflow Guides
    ------------------------------------------------------------
    Introduction               http://www.fossworkflowguides.com
    GIS Packages           http://www.fossworkflowguides.com/gis
    bash / Python    http://www.fossworkflowguides.com/scripting

[toc] | [next] | [standalone]


#25724

FromSteven D'Aprano <steve+comp.lang.python@pearwood.info>
Date2012-07-21 03:59 +0000
Message-ID<500a2933$0$29978$c3e8da3$5496439d@news.astraweb.com>
In reply to#25718
On Sat, 21 Jul 2012 13:35:21 +1000, Simon Cropper wrote:

> Hi,
> 
> Can you use PyPy as a direct replacement for the normal python or is it
> a specialized compiler that can only work with libraries that are
> manipulated to operate within its constraints (if it has any).

PyPy should work perfectly with pure-Python software. I don't know if it 
is compatible with extension libraries written in C or Fortran.


> Are there any issues with using PyPy? For example, if programs are
> created under PyPy are they subtle different from normal code that would
> make the program incompatible with the normal compiler?

I don't expect so. There may be special PyPy functions that other 
Python's won't have, but I don't know of any. If you stick to standard 
library and language features as described in the normal Python docs, you 
should be fine.


-- 
Steven

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web