.txt")
>>> stream = codecs.getreader('utf-8')(f)
>>> c = stream.read(1)
The 'stream' works on unicode characters so 'c' is a unicode instance,
i.e. a whole textual character.
- Matt
--
__
/ \__ Matt Goodall, Pollenation Internet
', 'color': 'blue'}
>
> print """\
> Section %(secnum)s
> Elements of type %(type)s should be coloured %(color)s
> """ % results
Don't forget that you may need to escape the application's data for
inclusion in HTML:
Jay Parlar wrote:
> I was hoping to get some c.l.p. opinions on O'Reilly's new Twisted book.
I think it's a good book to get. I know a fair amount about Twisted but
it still made for interesting reading.
Tommi Virtanen (aka tv) posted a great review of the book shortly after
it was published.
remove the PSYCOPG_DEBUG from
setup.cfg in the version you already have and reinstall.
Hope this helps.
- Matt
--
__
/ \__ Matt Goodall, Pollenation Internet Ltd
\__/ \w: http://www.pollenation.net
__/ \__/e: [EMAIL PROTECTED]
/ \__/ \t: +44 (0)113 2252500
\__/
essed by another
thread then you need a dbapi module that supports threadsafety level 2 -
"threads may share the module and connections".
- Matt
--
__
/ \__ Matt Goodall, Pollenation Internet Ltd
\__/ \w: http://www.pollenation.net
__/ \__/e:
emplating system that allows the Python developer to annotate
XHTML templates using **valid XML**, i.e. no "for x in y" loops, no "if
foo" conditionals, no "i = 0" variable setting, no expression
evaluations, etc.
The lovely thing about Nevow is that it encourages good se