A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2003-January/032260.html below:

[Python-Dev] very slow compare of recursive objects

[Python-Dev] very slow compare of recursive objects [Python-Dev] very slow compare of recursive objectsTim Peters tim.one@comcast.net
Mon, 20 Jan 2003 10:59:30 -0500
[Neal Norwitz]
> What about:
>
>         >>> t = ([],)
>         >>> t[0].append(t)
>         >>> print t
>         ([([...],)],)
>         >>> print t[0][0] is t
>         True
>
> Not sure if that's a tuple containing a recursive structure or a
> recursive tuple.

It's both, as was my example too.  Note that it required mutation of a
mutable container object to create it.




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