<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 13, 2013 at 10:27 AM, Brett Cannon <span dir="ltr"><<a href="mailto:brett@python.org" target="_blank">brett@python.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Wed, Nov 13, 2013 at 1:05 PM, Eli Bendersky <span dir="ltr"><<a href="mailto:eliben@gmail.com" target="_blank">eliben@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Wed, Nov 13, 2013 at 6:58 AM, Brett Cannon <span dir="ltr"><<a href="mailto:brett@python.org" target="_blank">brett@python.org</a>></span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Wed, Nov 13, 2013 at 6:30 AM, Facundo Batista <span dir="ltr"><<a href="mailto:facundobatista@gmail.com" target="_blank">facundobatista@gmail.com</a>></span> wrote:<br>







<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>On Wed, Nov 13, 2013 at 4:37 AM, Maciej Fijalkowski <<a href="mailto:fijall@gmail.com" target="_blank">fijall@gmail.com</a>> wrote:<br>








<br>
>> Do you think it would be productive to create an independent Python<br>
>> compiler, designed with sandboxing in mind from the beginning?<br>
><br>
> PyPy sandbox does work FYI<br>
><br>
> It might not do exactly what you want, but it both provides a full<br>
> python and security.<br>
<br>
</div>If we have sandboxing using PyPy... what also we need to put Python<br>
running in the browser? (like javascript, you know)<br>
<br>
Thanks!<br></blockquote><div><br></div></div><div>You can try to get PNaCl to work with Python to get a Python executable that at least Chrome can run. <br></div></div></div></div></blockquote><div><br></div></div></div>



<div>Two corrections:<br>

<br></div><div>1. CPython already works with NaCl and PNaCl (there are working patches in naclports to build it)<br></div></div></div></div></blockquote><div><br></div></div><div>Anything that should be upstreamed?</div>

</div></div></div></blockquote><div><br></div><div>Yeah, it definitely could. There are two problems currently: 1) the patches are for 2.7.x and 2) they have some ugly hacks in them. But I will talk to the guy who worked on that and hopefully we'll be able to have something cleaned up for upstreaming into default/3.x<br>

<br></div><div>Anyhow, the webstore app is: <a href="https://chrome.google.com/webstore/detail/python/nodpmmidbgeganfponihbgmfcoiibffi">https://chrome.google.com/webstore/detail/python/nodpmmidbgeganfponihbgmfcoiibffi</a><br>

<br>And the code is in: <a href="https://code.google.com/p/naclports/wiki/PortList">https://code.google.com/p/naclports/wiki/PortList</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="im"><div> </div>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><div>2. It can be used outside Chrome as well, using the standalone "sel_ldr" tool that will then allow to run a sandboxed CPython .nexe from the command line<br>



</div></div></div></div></blockquote><div><br></div></div><div>Sure, but I was just thinking about the "in browser" question Facundo asked about.</div></div></div></div></blockquote><div><br></div><div>Yep, see link above for in-the-browser Python. Same can be done with PNaCl and not require the web store (this can actually be built by anyone from the NaCl SDK today).<br>

</div><div> </div><br></div><div class="gmail_quote">Eli<br></div><br></div></div>