Questions for eventual Python module

Manoj Kasichainula <[email protected]>
Newsgroups gmane.network.irc.irssi.devel
Message-ID <[email protected]>
I've started work on a Python module for irssi, more for educational
purposes than anything else. So far, I can load python scripts from
~/.irssi/python/ which have access to the irssi SERVER_REC. I'm only
working on it in my spare spare time, so don't expect it for a while. :)

Anyway, I have a few questions about irssi internals, which I'm still
pretty fuzzy on:

I don't have irssi-signal handling working quite yet. The main thing in
the way is that I need a good way to recognize the type of each
structure pointer (server, window, reconnect, etc.) and map it to the
python wrapper object I've written for it. I haven't quite parsed out
yet how the Perl module does this yet; what's the easiest way to go
here?

What kind of relationships (inheritance, delegation, etc.) should I try
to set up between the various irssi objects? For example, I haven't
quite figured out whether SERVERs should be considered subclasses of
SERVER_CONNECTs, vice versa, some form of containment/delegation, or
none of the above. Any advice here would be appreciated.

Thanks for your help.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.