Re: Plugin system
exarkun_at_divmod.com
Date: 10/31/04
- Next message: Bengt Richter: "Re: "number-in-base" ``oneliner''"
- Previous message: Josiah Carlson: "Re: OT: Ruby programmers use Python (was Re: ruby on rails ... python on ?)"
- In reply to: Dan Perl: "Re: Plugin system"
- Next in thread: Dan Perl: "Re: Plugin system"
- Reply: Dan Perl: "Re: Plugin system"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: python-list@python.org Date: Sun, 31 Oct 2004 19:36:40 GMT
On Sun, 31 Oct 2004 13:56:10 -0500, "Dan Perl" <danperl@rogers.com> wrote:
>
> [snip]
>
> I forgot what I'm doing in my own code. I looked at it again and found that
> I'm not using isinstance(), instead I am doing a check for
> "baseClass.Handler in hndlrCls.__bases__", which is much better, because it
> doesn't need the creation of an instance. Here is the actual code (my
> handlers are the equivalent of your plugins):
I wouldn't go as far as to say it is "much better". Using issubclass() might be, though.
Jp
- Next message: Bengt Richter: "Re: "number-in-base" ``oneliner''"
- Previous message: Josiah Carlson: "Re: OT: Ruby programmers use Python (was Re: ruby on rails ... python on ?)"
- In reply to: Dan Perl: "Re: Plugin system"
- Next in thread: Dan Perl: "Re: Plugin system"
- Reply: Dan Perl: "Re: Plugin system"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]