<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I worked up prototype implementation for dict_keys, dict_values, and dict_items<div><br></div><div>Here's an example of what the output looks like:</div><div><br></div><div><div><font class="Apple-style-span" face="Courier">>>> x = {chr(i):i for i in range(68,90)}</font></div><div><font class="Apple-style-span" face="Courier">>>> x.keys()</font></div><div><font class="Apple-style-span" face="Courier">&lt;dict_keys object 'E', 'D', 'G', ...></font></div><div><font class="Apple-style-span" face="Courier">>>> x.values()</font></div><div><font class="Apple-style-span" face="Courier">&lt;dict_values object 69, 68, 71, ...></font></div><div><font class="Apple-style-span" face="Courier">>>> x.items()</font></div><div><font class="Apple-style-span" face="Courier">&lt;dict_items object ('E', 69), ('D', 68), ('G', 71), ...></font></div><div><font class="Apple-style-span" face="Courier">>>>&nbsp;</font></div><div><br></div><div>comments?</div><div><br></div><div>Are there other objects in this family that I should look at?</div><div><br></div><div>Brad</div><div><br></div><div><html>On Apr 16, 2008, at 5:30 PM, Guido van Rossum wrote:</html><br class="Apple-interchange-newline"><blockquote type="cite"><div>No, tp_print is dead, unless I am terribly mistaken. (We didn't remove<br>the slot because that would require updating every single static type<br>initializer.)<br><br>On Wed, Apr 16, 2008 at 2:39 PM, Christian Heimes &lt;<a href="mailto:lists@cheimes.de">lists@cheimes.de</a>> wrote:<br><blockquote type="cite">Guido van Rossum schrieb:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Why only str()? Note that the interactive prompt uses repr() to display values.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Does py3k still use the tp_print slot for the interactive prompt?<br></blockquote><br>-- <br>--Guido van Rossum (home page: <a href="http://www.python.org/~guido/)">http://www.python.org/~guido/)</a><br>_______________________________________________<br>Python-Dev mailing list<br><a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>http://mail.python.org/mailman/listinfo/python-dev<br>Unsubscribe: http://mail.python.org/mailman/options/python-dev/bonelake%40gmail.com<br></div></blockquote></div><br></div></body></html>