[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Objects object.c,2.106,2.107
Greg Stein
gstein@lyra.org
Wed, 17 Jan 2001 13:45:44 -0800
On Wed, Jan 17, 2001 at 01:27:04PM -0800, Guido van Rossum wrote:
> Update of /cvsroot/python/python/dist/src/Objects
> In directory usw-pr-cvs1:/tmp/cvs-serv14991
>
> Modified Files:
> object.c
> Log Message:
> Deal properly (?) with comparing recursive datastructures.
>...
> - Change the in-progress code to use static variables instead of
> globals (both the nesting level and the key for the thread dict were
> globals but have no reason to be globals; the key can even be a
> function-static variable in get_inprogress_dict()).
The "compare_nesting" variable is a bit troublesome long-term -- it will
cause threading issues in a free-threaded implementation. The solution is to
put the value into the thread-state.
[ not sure if it matters right now, but just bringing it up ]
Cheers,
-g
--
Greg Stein, http://www.lyra.org/