➜

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.

作者 Zeroth
收信人 Zeroth
日期 2008-06-05.21:03:48
SpamBayes Score 0.20888199
Marked as misclassified 否
Message-id <1212699830.74.0.302463788027.issue3043@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2008-06-05 21:03:51Zeroth修改spambayes_score: 0.208882 -> 0.20888199
recipients: + Zeroth
2008-06-05 21:03:50Zeroth修改spambayes_score: 0.208882 -> 0.208882
messageid: <1212699830.74.0.302463788027.issue3043@psf.upfronthosting.co.za>
2008-06-05 21:03:49Zeroth链接issue3043 messages
2008-06-05 21:03:48Zeroth创建