Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:error': 0.03; 'handler': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'api': 0.11; 'jan': 0.12; 'creates': 0.14; 'handlers': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:API': 0.16; 'subject:Unicode': 0.16; 'thread,': 0.16; 'url:gmane': 0.16; 'wrote:': 0.18; 'module': 0.19; 'mechanism': 0.19; 'header:User-Agent:1': 0.23; 'error': 0.23; 'unicode': 0.24; 'question': 0.24; '(see': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; "skip:' 10": 0.31; 'too.': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'them?': 0.31; 'url:python': 0.33; 'advice': 0.35; 'problem.': 0.35; 'but': 0.35; 'url:org': 0.36; 'should': 0.36; '8bit%:86': 0.38; 'to:addr:python-list': 0.38; 'planning': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'received:173': 0.61; 'holding': 0.65; 'improvement.': 0.68; '3.4': 0.84; 'received:fios.verizon.net': 0.84; 'url:comments': 0.91; 'hand,': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: API for custom Unicode error handlers Date: Fri, 04 Oct 2013 18:44:44 -0400 References: <524ec8fe$0$29984$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1380926707 news.xs4all.nl 16011 [2001:888:2000:d::a6]:55008 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:56165 On 10/4/2013 3:35 PM, Serhiy Storchaka wrote: > 04.10.13 16:56, Steven D'Aprano =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0= =B2(=D0=BB=D0=B0): >> 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 th= em? > > 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=20 it is a problem, perhaps the registry mechanism needs improvement. On=20 the other hand, it is it built-in, it will be pre-registered. --=20 Terry Jan Reedy