Bar Harel <bzvi7...@gmail.com> added the comment:

A better example is this:

    class A(PathLike):
        def foo(self):
            """For all your foo needs"""

    class B:
        def __fspath__(self):
            pass

    issubclass(B, A) == True
    A().foo() # Yay, I Foo'd.
    B().foo() # oh barnacles, I should have stayed at home.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38878>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to