A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20120601/323c9ba3/attachment.html below:

On Thu, May 31, 2012 at 6:56 PM, Benjamin Peterson <span dir="ltr">&lt;<a href="mailto:benjamin@python.org" target="_blank">benjamin@python.org</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

2012/5/31 Nick Coghlan &lt;<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>&gt;:<br>


<div class="im">&gt; On Thu, May 31, 2012 at 8:26 PM, Mark Shannon &lt;<a href="mailto:mark@hotpy.org">mark@hotpy.org</a>&gt; wrote:<br>
&gt;&gt; Eric Snow wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The implementation for sys.implementation is going to use a new (but<br>
&gt;&gt;&gt; &quot;private&quot;) type[1]. Â It&#39;s basically equivalent to the following:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Does this really need to be written in C rather than Python?<br>
&gt;<br>
&gt; Yes, because we want to use it in the sys module. As you get lower<br>
&gt; down in the interpreter stack, implementing things in Python actually<br>
&gt; starts getting painful because of bootstrapping issues (e.g. that&#39;s<br>
&gt; why both _structseq and collections.namedtuple exist).<br>
<br>
</div>sys.implementation could be added by site or some other startup file.<br><font color="#888888"><br></font></blockquote><div> </div><div>Yes, why not do that instead of a new thing in C? I don&#39;t care about PyPy actually (since we kind of have to implement sys.implementation in python/RPython anyway, since it&#39;ll be different) but more that more code in C means more trouble usually.</div>

<div><br></div><div>Another question (might be out of topic here). What we do in PyPy to avoid bootstrapping issues (since we have quite a bit implemented in Python, rather than RPython) is to &quot;freeze&quot; the bytecode at compile time (or make time) and put it in the executable. This avoids all sort of filesystem access issues, but might be slightly too complicated.</div>

<div><br></div><div>Cheers,</div><div>fijal</div></div>



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4