>>> import re >>> def hexify(match): ... return '%%%X' % ord(match.group(0))
Ah, should be '%%%02X' ...
Kent
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
>>> import re >>> def hexify(match): ... return '%%%X' % ord(match.group(0))
Ah, should be '%%%02X' ...
Kent
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor