[Baypiggies] IRC bot framework
Mitch Patenaude
patenaude at gmail.com
Mon Dec 17 19:04:08 CET 2012
On Mon, Dec 17, 2012 at 8:46 AM, Tim Hatch <tim at timhatch.com> wrote:
> It's likely installed with only .pyo or something like that. python -c
> 'import twisted.words.protocols.irc as i; print i.__file__' to confirm
>
Nope.. I've looked at the source file directly, and it's there and has the
docstrings... you can even print them manually:
Python 2.6.8 (unknown, Nov 7 2012, 14:47:45)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from twisted.words.protocols import irc
>>> print irc.IRCClient.__doc__
Internet Relay Chat client protocol, with sprinkles.
In addition to providing an interface for an IRC client protocol,
this class also contains reasonable implementations of many common
CTCP methods.
TODO
[....]
>>> help(irc.IRCClient)
Help on class IRCClient in module twisted.words.protocols.irc:
IRCClient = <class twisted.words.protocols.irc.IRCClient>
>>> irc.__file__
'/usr/lib/python2.6/site-packages/Twisted-12.2.0-py2.6-linux-x86_64.egg/twisted/words/protocols/irc.pyc'
I think this is a bug in pydoc/help rather than in twisted.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20121217/e02a7aae/attachment.html>
More information about the Baypiggies
mailing list