From 0409c4f249ace5cc10bd41cdbbf9a2c099460fcc Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 20 Oct 2003 06:59:53 +0000 Subject: [PATCH] Added an example. --- plugins/Python.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/plugins/Python.py b/plugins/Python.py index cb553884d..dc94ef6e2 100644 --- a/plugins/Python.py +++ b/plugins/Python.py @@ -68,7 +68,18 @@ def configure(onStart, afterConnect, advanced): onStart.append('load Python') example = utils.wrapLines(""" -Add an example IRC session using this module here. + @list Python + jemfinch: pydoc, zen + @zen + jemfinch: Complex is better than complicated. + @zen + jemfinch: Beautiful is better than ugly. + @pydoc list.reverse + jemfinch: L.reverse() -- reverse *IN PLACE* + @pydoc socket.socket + jemfinch: socket([family[, type[, proto]]]) -> socket object. Open a socket of the given type. The family argument specifies the address family; it defaults to AF_INET. The type argument specifies whether this is a stream (SOCK_STREAM, this is the default) or datagram (SOCK_DGRAM) socket. The protocol argument defaults to 0, specifying the default protocol. Keyword arguments (4 more messages) + @pydoc list + jemfinch: list() -> new list list(sequence) -> new list initialized from sequence's items """) class Python(callbacks.Privmsg):