It seems to me that in 1.0b2 there's an inconsistency between _c_htmltext and _py_htmltext when using the mod (%) operator to format in a long integer. Namely, the _py_htmltext version handles it, while _c_htmltext does not. Sample program: from quixote.html import htmltext h = htmltext("test %d") print h % 12300000000000000000L This will throw a TypeError with _c_htmltext (int argument required); _py_htmltext prints it just fine. Adam