I used to store information either in self as properties or in the info
dictionary and from time to time tried to sync the two. As Josh pointed out,
this was confusing, so I changed the code to use only self. I left the usage
of the info dictionary to construct the op and in __eq__ and __hash__
because at those points I don't care about the individual terms in the
dictionary and it would make the code considerably bigger to spell out all
keys in the info dictionary.
正在显示
请
注册
或者
登录
后发表评论