On Thu, Nov 5, 2009 at 8:15 PM, Terry Reedy firstname.lastname@example.org wrote:
A Python interpreter has one encoding for floats, ints, and strings. sys.float_info and sys.int_info give details about the first two.
(Instead of changing bytes,)
This suggests a sys.string_info that contains information about the default string representation --including whether the internal encoding is UCS2 or UCS4 or something else.
That should at least make it possible to give better diagnostic messages.