Message71399
Turns out that the NULL return value can signal an error that manifests
itself as SyntaxError("encoding problem: with BOM") thanks to the lack
of tok->filename being set in Parser/tokenizer.c:fp_setreadl() which is
called by check_coding_spec() and assumes that since tok->encoding was
never set (because fp_setreadl() returned an error value) that it had
something to do with the BOM.
The only reason this was found is because my bootstrapping of importlib
into Py3K, at some point, triggers a PyErr_Occurred() which finally
notices the error. |
|
Date |
User |
Action |
Args |
2008-08-19 01:44:32 | brett.cannon | set | recipients:
+ brett.cannon, christian.heimes |
2008-08-19 01:44:32 | brett.cannon | set | messageid: <1219110272.34.0.183498241034.issue3594@psf.upfronthosting.co.za> |
2008-08-19 01:44:30 | brett.cannon | link | issue3594 messages |
2008-08-19 01:44:29 | brett.cannon | create | |
|