Inada Naoki <songofaca...@gmail.com> added the comment:
> > Could you explain (or send me a link to) what happens when an instance method > is accessed descriptor of function object creates bound method. You can google "descriptor python". > and why this should be different from what happens when an unbound method is > accessed? No "should", just "can". `3 + 5 is 8` can be True of False by language definition, while `3 + 5 == 8` is always True. Like it, descriptor may or may not same instance by language definition. > > The `is` keyword has been very useful for me in introspection cases and that > is why I'm confused that it doesn't behave as expected here. > You're confused because you're using wrong guide; `is`. There are many cases that language spec doesn't define same instance is returned or not. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36175> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com