[Python-Dev] Relaxing Unicode error handling (original) (raw)
Martin v. Loewis martin at v.loewis.de
Tue Jan 6 23:47:16 EST 2004
- Previous message: [Python-Dev] Relaxing Unicode error handling
- Next message: [Python-Dev] Relaxing Unicode error handling
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
M.-A. Lemburg wrote:
Hmm, I would assume that application authors do have the proper permissions to use the work-around I mentioned below, that is, add sitecustomize.py to their application as top-level module and change the default encoding to use their custom codec instead.
But that would interfere with a sitecustomize.py already present on the system.
Then again, if you only change the ASCII codec, you wouldn't have to change these hard coded "strict" values.
Why not? If the argument parser invokes the default encoding, and passes "strict", then this would override the default error handling of the codec, no?
Regards, Martin
- Previous message: [Python-Dev] Relaxing Unicode error handling
- Next message: [Python-Dev] Relaxing Unicode error handling
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]