[Python-Dev] Re: New bug in function object hash() and comparisons

Barry A. Warsaw barry@digicool.com
2001年1月27日 12:48:33 -0500


 Me> We should definitely continue to allow functions as keys to
 Me> dictionaries, but probably just remove func_code as an input
 Me> to the function's hash.
 
But of course, func_globals won't be sufficient as a hash for
functions. Probably changing the hash to a pointer compare is the
best thing after all.
-Barry

AltStyle によって変換されたページ (->オリジナル) /