A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-April/003239.html below:

[Python-Dev] str() for interpreter output

[Python-Dev] str() for interpreter output [Python-Dev] str() for interpreter outputGordon McMillan gmcm@hypernet.com
Fri, 7 Apr 2000 16:12:29 -0400
Ka-Ping Yee wrote:

> repr() must be unambiguous, because the interpreter must help people
> learn by example.

Speaking of which:

>>> class A:
...  def m(self):
...   pass
...
>>> a = A()
>>> a.m
<method A.m of A instance at 7f9b10>
>>> m = a.m
>>> m
<method A.m of A instance at 7f9b10>
>>> m is a.m
0
>>>

ambiguated-ly y'rs

- Gordon



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4