<br><br><div class="gmail_quote">On Sun, Apr 6, 2008 at 10:56 AM, Brett Cannon <<a href="mailto:brett@python.org">brett@python.org</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 class="Ih2E3d">On Sun, Apr 6, 2008 at 2:45 PM, Benjamin Peterson<br>
<<a href="mailto:musiccomposition@gmail.com">musiccomposition@gmail.com</a>> wrote:<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>
> - argv<br>
> - byteorder<br>
> - builtin_module_names, path, and modules<br>
<br>
</div>I still think builtin_module_names should be moved. There is no<br>
guarantee other VMs have a concept of a built-in module.</blockquote><div>Done. <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>
<div class="Ih2E3d"><br>
> - copyright, hexversion, version, and version_info<br>
> - displayhook, __displayhook__<br>
> - excepthook, __excepthook__, exc_info, and exc_clear<br>
> - exec_prefix and prefix<br>
> - executable<br>
> - exit<br>
> - flags, py3kwarning, dont_write_bytecode, and warn_options<br>
> - getfilesystemencoding<br>
> - get/setprofile<br>
> - get/settrace<br>
> - getwindowsversion<br>
<br>
</div>It seems silly to have Windows-specific stuff like this in the sys<br>
module, but I don't know where else they should go.</blockquote><div>Indeed, it does. platform is the only one I can think of. <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>
<div class="Ih2E3d"><br>
> - maxint and maxunicode<br>
> - platform<br>
> - ps1 and ps2<br>
> - stdin, stderr, stdout, __stdin__, __stderr__, __stdout__<br>
> - tracebacklimit<br>
><br>
><br>
> 2. Data and functions that affect the CPython interpreter.<br>
><br>
> - get/setrecursionlimit<br>
> - get/setcheckinterval<br>
> - _getframe and _current_frame<br>
> - getrefcount<br>
> - get/setdlopenflags<br>
> - settscdumps<br>
> - api_version<br>
> - winver<br>
> - dllhandle<br>
> - float_info<br>
> - _compact_freelists<br>
> - _clear_type_cache<br>
> - subversion<br>
<br>
</div>There is some stuff missing from these lists, e.g., meta_path,<br>
path_importer_cache, path_hooks, call_tracing, etc. You should do a<br>
dir() in sys and fill in the missing attributes into the list.</blockquote><div>I will do that. I was looking at the 2.6 docs. <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>
It's looking good, though!<br>
<font color="#888888"><br>
-Brett<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Cheers,<br>Benjamin Peterson