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


Groups > comp.lang.python > #56165

Re: API for custom Unicode error handlers

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 <python-python-list@m.gmane.org>
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 <tjreedy@udel.edu>
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> <l2n6d5$dv5$1@ger.gmane.org>
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 <l2n6d5$dv5$1@ger.gmane.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.733.1380926707.18130.python-list@python.org> (permalink)
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

Show key headers only | 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