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/2001-January/011798.html below:

Type-converting functions, esp. unicode() vs. unistr()

[Python-Dev] Re: Type-converting functions, esp. unicode() vs. unistr()Ka-Ping Yee ping@lfw.org
Thu, 18 Jan 2001 02:16:42 -0800 (PST)
On Thu, 18 Jan 2001, Ka-Ping Yee wrote:
>     str() looks for __str__

Oops.  I forgot that

      str() looks for __str__, then tries __repr__

So, presumably,

      unicode() should look for __unicode__, then __str__, then __repr__


-- ?!ng




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