Re: [Python-Dev] cpython: Refactor importlib to make it easier to re-implement in C.

On Thu, 23 Feb 2012 16:18:19 +0100 brett.cannon <python-checkins@python.org> wrote:
Why don't you simply use isinstance()? (bytes objects also have rpartition()) Regards Antoine.

On Thu, Feb 23, 2012 at 10:43, Antoine Pitrou <solipsis@pitrou.net> wrote:
I think I was on a interface-conformance kick at the time and didn't want to restrict to a specific type over a specific interface. But since subclasses is not exactly complicated I can change this (which will also match potential C code more with a PyUnicode_Check()).

On Thu, Feb 23, 2012 at 10:43, Antoine Pitrou <solipsis@pitrou.net> wrote:
I think I was on a interface-conformance kick at the time and didn't want to restrict to a specific type over a specific interface. But since subclasses is not exactly complicated I can change this (which will also match potential C code more with a PyUnicode_Check()).
participants (2)
-
Antoine Pitrou
-
Brett Cannon