[Python-ideas] Add "htmlcharrefreplace" error handler

Steven D'Aprano steve at pearwood.info
Fri Jun 14 17:32:40 CEST 2013


On 14/06/13 22:39, Amaury Forgeot d'Arc wrote:
> 2013/6/14 Antoine Pitrou <solipsis at pitrou.net>
>
>> Making registration manual would indeed be a better fit for the
>> intended use cases, IMO. I don't think such a specialized function
>> belongs to the built-in set of error handlers.
>>
>
> By the way, why is it necessary to register?
> Since an error handler is defined by its callback function,
> we could allow functions for the "errors" parameter.

In another post, I wrote:

"There's unlikely to be much in the way of bike-shedding about either functionality or syntax."


I spoke too soon :-(



-- 
Steven


More information about the Python-ideas mailing list