rfc822.Message:
Represents a single RFC 2822-compliant message.
mimetools.Message:
A derived class of rfc822.Message that knows about MIME headers and
contains some hooks for decoding encoded and multipart messages.
spade.xmpp.commands.Command_Handler_Prototype:
This is a prototype command handler, as each command uses a disco method
and execute method you can implement it any way you like, however this is
my first attempt at making a generic handler that you can hang process
stages on too.
spade.xmpp.session.Session:
The Session class instance is used for storing all session-related
info like credentials, socket/xml stream/session state flags,
roster items (in case of client type connection) etc.
spade.logic.logicTest:
### PropKB >>> kb = PropKB() >>> kb.tell(A &
B) >>> kb.tell(B >> C) >>> kb.ask(C) ## The
result {} means true, with no substitutions {} >>>
kb.ask(P) False >>> kb.retract(B) >>> kb.ask(C)
False
dict:
dict() -> new empty dictionary
dict(mapping) -> new dictionary initialized from a mapping object's
(key, value) pairs
dict(iterable) -> new dictionary initialized as if via:
d = {}
for k, v in iterable:
d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list.