On 03/07/2015 01:39, Jim Mooney Py3.4.3winXP wrote:
Okay, it appears the method in a class has its own ID, but all instantiations of that method have identical IDs. But what happens if we have a huge number of instantiations trying to access the identical method at the same time?
I understand that Python "just works". What do you think happens?
class MyClass: def setdata(self, data): self.data = data def getdata(self): print(self.data)
I'd say the only conflict here is writing unneeded boilerplate code in Python :)
-- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor