<br><br><div class="gmail_quote">On Fri, Apr 4, 2008 at 4:09 PM, Steven Bethard <<a href="mailto:steven.bethard@gmail.com">steven.bethard@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Fri, Apr 4, 2008 at 10:51 AM, Benjamin Peterson<br>
<<a href="mailto:musiccomposition@gmail.com">musiccomposition@gmail.com</a>> wrote:<br>
> PEP: XXX<br>
> Title: The interpreter module<br>
> Version: $Revision$<br>
> Last-Modified: $Date$<br>
> Author: Benjamin Peterson<br>
> Status: Draft<br>
> Type: Standards Track<br>
> Content-Type: text/x-rst<br>
> Created: 4-April-2008<br>
> Python-Version: 3.0<br>
><br>
><br>
> Abstract<br>
> ========<br>
><br>
> This PEP proposes a new low-level module for CPython-specific interpreter<br>
> functions in order to clean out the sys module and separate general Python<br>
> functionality from implementation details.<br>
><br>
><br>
> Rationale<br>
> =========<br>
><br>
> The sys module currently contains functions and data that can be put into<br>
> two<br>
> major groups:<br>
><br>
> 1. Data and functions that are available in all Python implementations and<br>
> deal<br>
> with the general running of a Python VM.<br>
><br>
> - display_hook, stdout, stdin, and stderr<br>
> - flags and warn_options<br>
> - settrace, and setprofile<br>
> - traceback, excepthook<br>
> - etc...<br>
><br>
><br>
> 2. Data and function that affect the CPython interpreter.<br>
><br>
> - get/setrecursionlimit<br>
> - get/setcheckinterval<br>
> - _getframe and _current_frame<br>
> - getrefcount<br>
> - getdlopenflags<br>
<br>
</div></div>Why getdlopenflags? That seems general to any Python implementation<br>
that opens dlls (though I believe the dl module is going away in<br>
Python 3, so it may not matter).</blockquote><div>I don't think any other implementations do open dynamic libs. Those flags don't affect the dl module; they define how Python opens C shared libs.<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Also, maybe settscdump should be moved as well? Its description says<br>
to look at "Python/ceval.c" <br></blockquote><div>Yes. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Otherwise, it looks pretty good to me.<br>
<div><div></div><div class="Wj3C7c"><br>
Steve<br>
--<br>
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a<br>
tiny blip on the distant coast of sanity.<br>
--- Bucky Katt, Get Fuzzy<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Cheers,<br>Benjamin Peterson