Re: tokenize module

2009-06-30 Thread Tim Roberts
bootkey wrote: > >Thanks for the reply. I wonder why the tokenizer classifies all >operators simply as OP, instead of the various operators listed in the >tok_name dictionary. I imagine it's just an exercise left to the reader. It's not that hard of an extension. -- Tim Roberts, [email protected]

Re: tokenize module

2009-06-28 Thread bootkey
On Jun 28, 1:46 am, Tim Roberts wrote: > Jim wrote: > >I'm trying to understand the output of the tokenize.generate_tokens() > >generator.  The token types returned seem to be more general than I'd > >expect.  For example, when fed the following line of code: > > >def func_a(): > >... > >It seems

Re: tokenize module

2009-06-28 Thread Tim Roberts
Jim wrote: >I'm trying to understand the output of the tokenize.generate_tokens() >generator. The token types returned seem to be more general than I'd >expect. For example, when fed the following line of code: > >def func_a(): >... >It seems to me that the token '(' should be identified as 'LP

Re: tokenize module after installation

2007-08-09 Thread Martin v. Löwis
> After installation my program that uses tokenize module,when I run > myprogram.exe (vgsveki.exe): > > AttributeError: 'module' object has no attribute 'untokenize' Perhaps you use the 2.4 version of tokenize.py here, which did not have untokenize. Regards, Martin -- http://mail.python.org/mai