This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Zeroth
Recipients Zeroth
Date 2008-06-05.21:03:48
SpamBayes Score 0.20888199
Marked as misclassified No
Message-id <1212699830.74.0.302463788027.issue3043@psf.upfronthosting.co.za>
In-reply-to
Content
With the following code:
class Vertex:
	def __init__(self, type):
		self.type = type
		self.color=-1
		self.edges=[]
		

class Edge:
	def __init__(self, V1, V2):
		self.vertexes=[V1, V2]
		V1.edges.append(self)
		V2.edges.append(self)

Where the references are cyclic(this is for a research project into
graph algorithms), and using deepcopy, even on a tiny graph of five
vertexes and 25 edges causes deepcopy to run into the recursion limit.
At the very least, it should warn it can't copy the indicated object, as
the references are cyclic. At the very most, it should be able to handle
complex cyclic references like this properly.
History
Date User Action Args
2008-06-05 21:03:51Zerothsetspambayes_score: 0.208882 -> 0.20888199
recipients: + Zeroth
2008-06-05 21:03:50Zerothsetspambayes_score: 0.208882 -> 0.208882
messageid: <1212699830.74.0.302463788027.issue3043@psf.upfronthosting.co.za>
2008-06-05 21:03:49Zerothlinkissue3043 messages
2008-06-05 21:03:48Zerothcreate