Nick> Have you looked at what the methods we're proposing to turn into
    Nick> properties are actually doing?:

    Nick>      def getName(self):
    Nick>          assert self.__initialized, "Thread.__init__() not called"
    Nick>          return self.__name
    ...
    Nick> Checking whether or not an Event is set is hardly an expensive
    Nick> operation...

Precisely my point.  The fact that the body of the method does almost
nothing means that the cost of method lookup and function call will likely
be much greater than the actual work being done.

Skip
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to