Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

import prog

Name: Anonymous 2008-05-18 15:53


import prog

prog.name  = 'anonymous'
prog.email = 'sage'

post = '''
Hello, /prog/

This is being posted by a python program.
'''

thread = prog.newthread('Python',post)
thread.post('This is too.\n\n[b]Bold[/b]')

Name: Anonymous 2008-05-18 18:58

Here's how I would lay out my module interface:
import prog
first = prog.BBCodeDocument()
  .para("Hello, /prog/")
  .para("This is being posted by a python program.")
second = prog.BBCodeDocument()
  .para('This is too.')
  .para(bold('Bold'))
poster = prog.Anonymous(email='sage')
thread = poster.post_thread('Python', first)
poster.post_response(thread, second)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List