code:
from Lang import PythonFrench
def taunt(insult, nationality, identity):
if PythonFrench.check(insult):
insult = PythonFrench[insult]
if PythonFrench.check(nationality):
nationality = PythonFrench[nationality]
if PythonFrench.check(identity):
identity = PythonFrench[identity]
print "%s %s %s!" % (insult, nationality, identity)
taunt('silly', 'English', 'knight')
code:
import CForumLib
class ForumThread():
def __init__(self, name):
self.internal = CForumLib.acquire('http://hatrack.com/ubb/cgi/ultimatebb.cgi?ubb=forum&f=2',name)
def bump(self, identity):
self.internal.post('*bumpety*', identity)
questionThread = ForumThread('So, who in DC wants to have the pleasure of my company in March?')
fugu13 = CForumLib.login('fugu13', 'password')
questionThread.bump(fugu13)