newbie: comparing mutually recursive lists

Andrew Hutcheson hutch at psn.net
Wed Sep 29 10:30:13 EDT 1999


If I create a pair of mutually recursive lists like

	a,b=[],[]
	a.append(b)
	b.append(a)

and try to compare them I get a segmentation fault.  I'm using the
version of Python that comes with Debian 2.1 (Python 1.5.1 (#1, Dec 17
1998, 20:58:15)  [GCC 2.7.2.3] on linux2 ).  Does anyone know if this
problem has been fixed?  Failing that, can anyone suggest a workaround?

-andy

/**

 Andrew Hutcheson
 31 Coburn Rd.
 Weston MA 02493

 781.891.8046
 hutch at psn.net

+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++ 
        -- (Terry Pratchett, Hogfather)

**/




More information about the Python-list mailing list