<br><br><div class="gmail_quote">On Thu, Apr 3, 2008 at 7:12 AM, Barry Warsaw &lt;<a href="mailto:barry@python.org">barry@python.org</a>&gt; 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">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</div>On Apr 3, 2008, at 8:08 AM, Christian Heimes wrote:<br>
&gt; Barry Warsaw schrieb:<br>
<div class="Ih2E3d">&gt;&gt; Plus, there are a few types in there that are difficult or impossible<br>
&gt;&gt; to get from Python.<br>
&gt;&gt;<br>
&gt;&gt; -1 unless you can find another place to stash such types.<br>
&gt;<br>
</div>&gt; ModuleType -&gt; imp.module<br>
&gt; exception related types -&gt; traceback module<br>
&gt; Function, method and code types -&gt; sys module<br>
&gt; remaining stuff -&gt; inspect</blockquote><div>+1 for removing. I agree with Guido. Types should be with their associated functionality and not in some arbitrary module.<br></div><div><br>I think the above example is good is good except for dumping all the interpreter stuff into sys. sys is already clogged with tons of low-level, interpreter specific functions. What we need is a new module: interpreter (or something). I want to move all those functions like _getframe, getrefcount, get/setrecursionlimit, etc from sys there. FrameType, CodeType... will also fit nicely in there.<br>
<br>Also, I think the ListType, DictType, and SetType should go into collections.<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>
Actually, inspect.types might be a good place to put them all.<br>
<div class="Ih2E3d"><br>
- -Barry<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.8 (Darwin)<br>
<br>
</div>iQCVAwUBR/TJo3EjvBPtnXfVAQJDygQAmoXKq99jeRB5K6O4mVyPkErrbZCi2K72<br>
Kh4mKC65UmGv+GhhUQTlO96e87xKh1p29kS/ajILGDoBfj62WVJ/ZxkEivrSN9ge<br>
Gw6PmA6HbsP/UUArreLsIOcVDeLEw9Zwfb4m/aQqycJM206DfvLwAhLerLaBYaPm<br>
qzhOIG3hS7E=<br>
=qCy8<br>
<div><div></div><div class="Wj3C7c">-----END PGP SIGNATURE-----<br>
_______________________________________________<br>
stdlib-sig mailing list<br>
<a href="mailto:stdlib-sig@python.org">stdlib-sig@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/stdlib-sig" target="_blank">http://mail.python.org/mailman/listinfo/stdlib-sig</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Cheers,<br>Benjamin Peterson