durusmail: quixote-users: htmltext formatted long int inconsistency
htmltext formatted long int inconsistency
2004-06-03
htmltext formatted long int inconsistency
Adam Preble
2004-06-03
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



reply