<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Rhea,<br>
    <blockquote type="cite"
      cite="mid:ADAEFA03-076F-4B1A-A636-0FC753B7B24D@gmail.com">
      <div class="SCXW171287900 BCX0"
style="font-size: 16px; margin: 0px; padding: 0px; -webkit-user-drag: none; font-family: Cambria, Cambria_MSFontService, serif; font-variant-ligatures: normal; orphans: 2; widows: 2; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
        <div class="ListContainerWrapper SCXW171287900 BCX0"
style="margin: 0px; padding: 0px; -webkit-user-drag: none; position: relative;">
          <ul class="BulletListStyle1 SCXW171287900 BCX0" role="list"
style="margin: 0px; padding: 0px; -webkit-user-drag: none; overflow: visible; cursor: text; font-family: verdana;">
            <li data-leveltext="" data-font="Symbol" data-listid="12"
data-list-defn-props="{"335552541":1,"335559684":-2,"335559685":720,"335559991":360,"469769226":"Symbol","469769242":[8226],"469777803":"left","469777804":"","469777815":"hybridMultilevel"}"
              aria-setsize="-1" data-aria-posinset="2"
              data-aria-level="1" role="listitem"
              class="OutlineElement Ltr SCXW171287900 BCX0"
style="margin: 0px 0px 0px 24px; padding: 0px; -webkit-user-drag: none; overflow: visible; cursor: text; clear: both; position: relative; direction: ltr; display: block; font-size: 12pt; font-family: Cambria, Cambria_MSFontService, serif; vertical-align: baseline;">
              <p class="Paragraph SCXW171287900 BCX0"
              paraid="1742708960"
              paraeid="{7d8da57d-0e7e-4ab8-81ed-3c7af2222f84}{91}"
style="margin: 0px; padding: 0px; -webkit-user-drag: none; overflow-wrap: break-word; white-space: pre-wrap; vertical-align: baseline; font-kerning: none;"><span
              data-contrast="none" xml:lang="EN-US"
              class="TextRun SCXW171287900 BCX0"
style="margin: 0px; padding: 0px; -webkit-user-drag: none; font-variant-ligatures: normal; font-variant-alternates: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-size: 12pt; line-height: 19px; font-family: Cambria, Cambria_EmbeddedFont, Cambria_MSFontService, serif;"
              lang="EN-US">- Proposition would be a feature that allows users to limit Python console functionality based on their needs.</span><span
              class="EOP SCXW171287900 BCX0"
data-ccp-props="{"134233117":false,"134233118":false,"201341983":1,"335551550":1,"335551620":1,"335559738":240,"335559739":240,"335559740":285}"
style="margin: 0px; padding: 0px; -webkit-user-drag: none; font-size: 12pt; line-height: 19px; font-family: Cambria, Cambria_EmbeddedFont, Cambria_MSFontService, serif;"> </span></p>
            </li>
          </ul>
        </div>
      </div>
    </blockquote>
    <p>If you have in mind to limit the set of functionality available
      in the Python console, that's not technically doable, at least
      with the CPython interpreter. All you can do is to not provide any
      access at all to the Python console. Python isn't a "safe"
      language, that is a sufficiently willing user can do arbitrary
      things, including crashing itself with just core functionality:<br>
    </p>
    <p>$ python -c "exec(type((lambda: 0).__code__)(0, 0, 0, 0, 0, 0,
      b'\x053', (), (), (), '', '', 0, b''))"<br>
      Segmentation fault (core dumped)<br>
    </p>
    <p>cf
<a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/42544487/how-can-i-cause-python-3-5-to-crash">https://stackoverflow.com/questions/42544487/how-can-i-cause-python-3-5-to-crash</a></p>
    <p>People have tried sandboxing Python many times, but under careful
      examinations, all attempts fail at some point.</p>
    <p>Even<br>
    </p>
    <span style="white-space: pre-wrap">
</span>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>