Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > c3732731228538f6126cae930c10ad71 > files > 169

python-pyro4-4.21-3.mga4.noarch.rpm



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Running on alternative Python implementations &mdash; Pyro 4.21 documentation</title>
    
    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '4.21',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="top" title="Pyro 4.21 documentation" href="index.html" />
    <link rel="next" title="Pyrolite - client library for Java and .NET" href="pyrolite.html" />
    <link rel="prev" title="Socket server API contract" href="api/socketserver.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="pyrolite.html" title="Pyrolite - client library for Java and .NET"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="api/socketserver.html" title="Socket server API contract"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">Pyro 4.21 documentation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="running-on-alternative-python-implementations">
<h1>Running on alternative Python implementations<a class="headerlink" href="#running-on-alternative-python-implementations" title="Permalink to this headline">¶</a></h1>
<p>Pyro is written in 100% pure Python which -theoretically- enables it to be used with
any compatible Python implementation.
There are a few gotchas however.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">If possible please use the most recent version available of the Python implementation.</p>
</div>
<div class="section" id="jython">
<h2>Jython<a class="headerlink" href="#jython" title="Permalink to this headline">¶</a></h2>
<div class="sidebar">
<p class="first sidebar-title">Jython</p>
<p class="last"><a class="reference external" href="http://jython.org">Jython</a> is a Python implementation running on the Java virtual machine.</p>
</div>
<ul class="simple">
<li>You&#8217;ll need to use Jython 2.7 or newer (2.5 is no longer supported by Pyro)</li>
<li>The multiplexing server type (select/poll-based server) is not reliable on Jython.
You can only use the threadpool server type.</li>
<li>You cannot use the <tt class="docutils literal"><span class="pre">other</span></tt> parameter to the requestloop of a Threadpool server.
The workaround is to spawn a separate thread for each socket that you need to listen to.
(The name server does this for the broadcast server, if it detects that it is running on Jython)</li>
</ul>
</div>
<div class="section" id="ironpython">
<h2>IronPython<a class="headerlink" href="#ironpython" title="Permalink to this headline">¶</a></h2>
<div class="sidebar">
<p class="first sidebar-title">IronPython</p>
<p class="last"><a class="reference external" href="http://ironpython.net">IronPython</a> is a Python implementation running on the .NET virtual machine.</p>
</div>
<ul class="simple">
<li>Pyro requires the <tt class="kbd docutils literal"><span class="pre">zlib</span></tt> module, which is not included in older IronPython versions. IronPython 2.7 includes it by default.
If you need to install it manually, get it <a class="reference external" href="https://bitbucket.org/jdhardy/ironpythonzlib/downloads/">from the developer</a>.</li>
<li>IronPython cannot properly serialize exception objects, which could lead to problems when dealing with
Pyro&#8217;s enhanced tracebacks. For now, Pyro contains a workaround for this IronPython <a class="reference external" href="http://ironpython.codeplex.com/workitem/30805">bug</a>.</li>
</ul>
</div>
<div class="section" id="pypy">
<h2>Pypy<a class="headerlink" href="#pypy" title="Permalink to this headline">¶</a></h2>
<div class="sidebar">
<p class="first sidebar-title">Pypy</p>
<p class="last"><a class="reference external" href="http://pypy.org">Pypy</a> is a Python implementation written in Python itself, and it usually
is quite a lot faster than the default implementation because it has a <abbr title="Just in time">JIT</abbr>-compiler.</p>
</div>
<p>I haven&#8217;t used Pypy much let alone with Pyro, but it seems that at least the recent builds (1.9 and newer)
of Pypy work fine with Pyro.</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="index.html">
              <img class="logo" src="_static/pyro.png" alt="Logo"/>
            </a></p>
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">Running on alternative Python implementations</a><ul>
<li><a class="reference internal" href="#jython">Jython</a></li>
<li><a class="reference internal" href="#ironpython">IronPython</a></li>
<li><a class="reference internal" href="#pypy">Pypy</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="api/socketserver.html"
                        title="previous chapter">Socket server API contract</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="pyrolite.html"
                        title="next chapter">Pyrolite - client library for Java and .NET</a></p>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="pyrolite.html" title="Pyrolite - client library for Java and .NET"
             >next</a> |</li>
        <li class="right" >
          <a href="api/socketserver.html" title="Socket server API contract"
             >previous</a> |</li>
        <li><a href="index.html">Pyro 4.21 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright Irmen de Jong.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
    </div>
  </body>
</html>