Why isn there a generic copying operation for objects in Python?
A. Hmm. Maybe there should be one, but it’s difficult to assign a useful meaning to copying of open files, sockets and windows, or recursive data structures. As long as you design all your classes yourself you are of course free to define a standard base class that defines an overridable copying operation for all the objects you care about. (One practical point: it would have to be a built-in function, not a standard method name, since not all built-in object types have methods; e.g.