Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #56165

Re: API for custom Unicode error handlers

From Terry Reedy <tjreedy@udel.edu>
Subject Re: API for custom Unicode error handlers
Date 2013-10-04 18:44 -0400
References <524ec8fe$0$29984$c3e8da3$5496439d@news.astraweb.com> <l2n6d5$dv5$1@ger.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.733.1380926707.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 10/4/2013 3:35 PM, Serhiy Storchaka wrote:
> 04.10.13 16:56, Steven D'Aprano написав(ла):
>> I have some custom Unicode error handlers, and I'm looking for advice on
>> the right API for dealing with them.

> I'm planning to built this error handler in 3.4 (see
> http://comments.gmane.org/gmane.comp.python.ideas/21296).

>> Should the module holding the error handlers automatically register them?
>
> This question interesting me too.

I did not respond on the p-i thread, but +1 for 'namereplace' also. Like 
others, I would prefer auto-register unless that creates a problem. If 
it is a problem, perhaps the registry mechanism needs improvement. On 
the other hand, it is it built-in, it will be pre-registered.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

API for custom Unicode error handlers Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-10-04 13:56 +0000
  Re: API for custom Unicode error handlers Chris Angelico <rosuav@gmail.com> - 2013-10-05 03:22 +1000
  Re: API for custom Unicode error handlers Ethan Furman <ethan@stoneleaf.us> - 2013-10-04 11:05 -0700
  Re: API for custom Unicode error handlers Serhiy Storchaka <storchaka@gmail.com> - 2013-10-04 22:08 +0300
  Re: API for custom Unicode error handlers Serhiy Storchaka <storchaka@gmail.com> - 2013-10-04 22:35 +0300
  Re: API for custom Unicode error handlers Terry Reedy <tjreedy@udel.edu> - 2013-10-04 18:44 -0400

csiph-web