[Python-Dev] pychecker warnings in Lib/encodings (original) (raw)
Neal Norwitz nnorwitz at gmail.com
Thu Jun 15 07:51:27 CEST 2006
- Previous message: [Python-Dev] pychecker warnings in Lib/encodings
- Next message: [Python-Dev] Moving PEP 343 to Final
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 6/13/06, Walter Dörwald <walter at livinglogic.de> wrote:
> IIUC (and I probably don't), mbcs is on windows only. But should I be > able to import encodings.mbcs on Linux or is this expected? > >>>> import encodings.mbcs > Traceback (most recent call last): > File "", line 1, in > File "Lib/encodings/mbcs.py", line 14, in > class Codec(codecs.Codec): > File "Lib/encodings/mbcs.py", line 18, in Codec > encode = codecs.mbcsencode > AttributeError: 'module' object has no attribute 'mbcsencode' mbcsencode() is compiled conditionally in Modules/codecsmodule.c with "#if defined(MSWINDOWS) && defined(HAVEUSABLEWCHART)". Should encodings/mbcs.py be made unimportable on non-Windows?
That's what I was thinking. It makes sense to this non-unicode, non-windows luser. :-)
n
- Previous message: [Python-Dev] pychecker warnings in Lib/encodings
- Next message: [Python-Dev] Moving PEP 343 to Final
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]