[Python-ideas] parser in stdlib

Adam Atlas adam at atlas.st
Fri May 11 00:47:01 CEST 2007


On 10 May 2007, at 18.39, Aaron Brady wrote:
> There is, but I want access to it.
>>>> import parser
>>>> parser.__file__
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> AttributeError: 'module' object has no attribute '__file__'

That's because it's a builtin module, written in C. It's Python/ 
parsermodule.c in the source distributions.

What exactly are you suggesting should be possible? Are you trying to  
programmatically change the parser?




More information about the Python-ideas mailing list