Re: [Python-projects] [PATCH] logilab-astng: add support for Python 2.7 dict comprehensions and set comprehensions

2010-10-11 Thread Emile Anclin
On Saturday 09 October 2010 22:10:07 Daniel Harding wrote: > Emile Anclin wrote: > > On Friday 01 October 2010 20:15:32 Daniel Harding wrote: > >> Currently if pylint is run under Python 2.7 to check a file > >> containing dictionary comprehensions or set comprehensions, it > >> results in an exce

Re: [Python-projects] [PATCH] logilab-astng: add support for Python 2.7 dict comprehensions and set comprehensions

2010-10-11 Thread Daniel Harding
Daniel Harding wrote: Thanks for taking my changes so quickly! However, I realized today that they weren't completely correct. Dict comprehensions and set comprehensions should create their own scope, just like generator expressions. I didn't account for this in my changes, so I have attached

Re: [Python-projects] Pylint warns about name when assigning class to constant

2010-10-11 Thread Sylvain Thénault
On 11 octobre 09:59, Stefan Parviainen wrote: > Hi all, Hi, > I have a situation where in a module I have a function that creates classes > like this (obviously the real deal is more complicated than this) > > def foo_maker(x): > class _Foo: > def bar(self): print x > return _Foo > >