[Python-projects] Problem and Fix for PyQt4 and pylint

Derek Harland derek at chocolate-fish.com
Wed Jul 29 23:34:12 CEST 2009


Hi Sylvain

* Am returning a newer patch to you for raw_building.py --- problem  
here is that __name__ doesn't even exist so this patch just replaces  
constructs like
	member.__name__ or localname
with
	getattr(member, '__name__', None) or localname

to ensure that both blanks and missing get mapped to localname.

* Just to note also, your patch seemed to be against an older version  
of raw_building.py than I have (comes from the 0.19 release).
* I'll be folding these patches into the macports project ... would  
you be so kind as to let me know when a new release comes along that  
no longer needs them?

Derek.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-raw_building.py
Type: text/x-python-script
Size: 2787 bytes
Desc: not available
URL: <http://lists.logilab.org/pipermail/python-projects/attachments/20090730/c71a9709/attachment.bin>
-------------- next part --------------



On 29/07/2009, at 11:46 PM, Sylvain Th?nault wrote:

> On 29 juillet 16:30, Derek Harland wrote:
>> Hi Sylvain
>>
>> * First up, I should point out that I think pylint is a great tool
>> ... I use it in combination with flymake in emacs to give me
>> realtime error checking which is very helpful.
>> * I have already posted the suggested fix to the PyQt mailing list,
>> along with the note of a bus error
>> * On the bus error I have more information but will post that  
>> separately
>> * As request, attached is an example simple PyQt app.  Here is what
>> the unpatched pylint output appears as
>
> thanks. Attached is another patch that should do the trick nicely.
> Could you apply it and  tell me if it works well in your environement?
>
> -- 
> Sylvain Th?nault                               LOGILAB, Paris (France)
> Formations Python, Debian, M?th. Agiles: http://www.logilab.fr/formations
> D?veloppement logiciel sur mesure:       http://www.logilab.fr/ 
> services
> CubicWeb, the semantic web framework:    http://www.cubicweb.org
>
> <astng.diff>



More information about the Python-Projects mailing list