[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



Hello,

Something I have been thinking about:
Rect and Surface classes have their own copy methods. Why do they have that when there is a module called copy in the standard lib that can handle copy (with help)? The rect copy method was added in pygame 1.9 so it is fairly recent.

http://pygame.org/docs/ref/rect.html#pygame.Rect.copy
https://docs.python.org/2/library/copy.html

Thanks for any insights!
/Victor