how to reference custom codec in a package?
Skip Montanaro
skip at pobox.com
Mon Nov 10 17:29:19 EST 2003
I wrote a simple codec which strips accents from latin-1 characters (e.g.,
maps 'é' to 'e'). If it lives in a package how do I refer to it? For
example, what should this statement look like
x = unicode(x, "latin1").encode("latscii")
if latscii.py lives in the spambayes package? This seems to work:
x = unicode(x, "latin1").encode("spambayes.latscii")
but is that the right way to do it?
Thx,
Skip
More information about the Python-list
mailing list