[Python-ideas] Add "namereplace" error handler

Masklinn masklinn at masklinn.net
Tue Jun 11 16:40:37 CEST 2013


On 2013-06-11, at 15:32 , Victor Stinner wrote:
> 2013/6/11 Steven D'Aprano <steve at pearwood.info>:
>> +1 on namereplace. unicodenamereplace is unnecessary, since strings in
>> Python 3 are Unicode. Might as well say "stringnamereplace" :-)
> 
> Names come from the *Unicode* standard and the *unicode*data module.

"name" seems sufficiently unambiguous though, we're talking about the
replacement for any codepoint in a (unicode) string which can't be
encoded (in whatever encoding is requested), I'm not aware of other
systems which would allow *naming* all of these codepoints outside of
unicode. "namereplace" feels short, sweet and clear.


More information about the Python-ideas mailing list