[Python-3000] Abilities / Interfaces

Phillip J. Eby pje at telecommunity.com
Sun Nov 26 23:01:48 CET 2006


At 04:52 PM 11/26/2006 -0500, Jim Jewett wrote:
>On 11/22/06, Phillip J. Eby <pje at telecommunity.com> wrote:
> > At 08:36 AM 11/22/2006 -0500, Benji York wrote:
> > >It seems to me that not all interfaces coincide with
> > >something the object can _do_.  ...
>
> > Aren't these also *operations* being performed?
>
>ISafeForThreading may boil down to certain operations not being
>dangerous, but I don't think the operations are the primary meaning.

I don't see how you can specify that something is thread-safe without 
explicit reference to what *operations* are thread-safe, and in what 
way.  Indeed, it's the *operations* that one wishes to confirm are 
thread-safe; a data structure in and of itself has no "thread safety" per se.



More information about the Python-3000 mailing list