[Python-porting] Pattern help!?

Benjamin Peterson benjamin at python.org
Thu Nov 18 15:00:21 CET 2010


2010/11/18 Lennart Regebro <regebro at gmail.com>:
> I can't find a pattern that will match:
>    foo
> But not
>    bar.foo
>
> Any hints?

It's usually best to do something like "is_probably_builtin" in
lib2to3/fixer_utils.py.


-- 
Regards,
Benjamin


More information about the Python-porting mailing list