Re: [Python-Dev] unicode Exception messages in py2.7

2013年11月14日 13:04:52 -0800

2013年11月14日 Chris Barker <[email protected]>:
> So a proposal:
>
> Use 'replace" mode for the encoding to the default, and at least the
> user would see SOMETHING of the message. In a common case, it would be
> a lot of ascii, and in the worse case it would be a lot of question
> marks -- still better than a totally blank message.
>
> Another option would be to use the str(repr(the_message)) so the user
> would get the escaped version. Though I think that would be more ugly.
Unfortunately both of these things change behavior so cannot be
changed in Python 2.7.
>
> What am I missing? This seems so obvious, and easy to do (though maybe
> it's buried in the C implementation of Exceptions)
-- 
Regards,
Benjamin
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to