[Python-Dev] PEP 231, __findattr__()

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Tue, 5 Dec 2000 00:10:43 +0100


> I'm still catching up on several hundred emails over the weekend.  I
> had a sneaking suspicion that infindattr wasn't thread-safe, so I'm
> convinced this is a bug in the implementation.  One approach might be
> to store the info in the thread state object (isn't that how the
> recursive repr stop flag is stored?)

Whether this works depends on how exactly the info is stored. A single
flag won't be sufficient, since multiple objects may have __findattr__
in progress in a given thread. With a set of instances, it would work,
though.

Regards,
Martin