Re: [pygame] Why does Rect and Surface have copy method when copy exist in std-lib?

2017-06-04 Thread Victor Blomqvist
Yes, I have seen that. There is a bunch of other libraries that does it as well, such as numpy.copy pandas.DataFrame.copy. The reason why I ask is that I have a library (pymunk) where I just implemented pickle support, and I now have the option to either be satisfied with copy.deepcopy which comes

Re: [pygame] Why does Rect and Surface have copy method when copy exist in std-lib?

2017-06-04 Thread Martin Kühne
What we've established so far: - copy.copy is considered an import "hurdle" - which is why many modules implement a .copy() function to - both of which basically wrap an internal .__copy__() function whose direct use appears to be discouraged At the end of the day I think you should decide what y