Message166010
| Author |
pitrou |
| Recipients |
docs@python, pitrou, sbt |
| Date |
2012年07月21日.10:59:29 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1342868258.3492.7.camel@localhost.localdomain> |
| In-reply-to |
<1342868302.42.0.824683171539.issue15412@psf.upfronthosting.co.za> |
| Content |
> I had assumed that since dead weakrefs were unhashable you couldn't
> safely use them as keys in a dict. (Presumably removal of a no longer
> hashable key from a dict is O(n)?)
They are unhashable if you didn't hash them alive. Otherwise they retain
their old hash value (which is quite useful :-)). |
|