On 4/24/07, Ketan Joshi <[EMAIL PROTECTED]> wrote:
> If so, why isn't this function defined as:
>
> def copy(self):
> import copy
> return copy.copy(self)
The if-case in your code makes sure that the property __class__ is of
UserDict-inheritance. I believe it's there in case of multiple
c
Hello All,
I am very new to Python scripting. I have just started learning about Python.
I have a question regarding UserDict class.
UserDict class has a copy function which is defined as follows:
def copy(self):
if self.__class__ is UserDict:
return UserDict(self.data)
import co