Message49357
| Author |
collinwinter |
| Recipients |
| Date |
2006年01月21日.15:33:54 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
Logged In: YES
user_id=1344176
I'm not sure a full-blown caveat on `is` is a good idea,
unless this particular issue impacts areas beyond
{class,instance}methods (the only two places I've see it).
However, tacking a note to `is`, something like "you may
notice unusal behaviour in certain combinations of `is` and
class- and instancemethods; see their docs for more info",
would probably be a good idea.
I tried to make the original doc patch as specific as
possible because it's a tricky problem. There's a good
explanation for the following behaviour, but until someone
expalins it to you, you're probably going to think it's a bug.
"""
>>> id(MyClass.class_method) == id(MyClass.class_method)
True
>>> MyClass.class_method is MyClass.class_method
False
""" |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 15:45:25 | admin | link | issue1410739 messages |
| 2007年08月23日 15:45:25 | admin | create |
|