Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4414893
By: weepdoo
Hy,
I've seen something else with PyLint.
If you use 'gettext' in your application (even in a module in fact) it's
recommended
to do something like:
import gettext
gettext.install('myapplication')
If you do so, the function '_' is place in '__builtin__' so you can call it
from every where.
The odd thing is that because you call Pylint on every python file, you will
have on each line you call for translation something like:
ID: E0602: Undefined variable '_'
But it's defined...
I know it's not really simple, because, the only way to handle this case, it's
to run only instance of Pylint on the application, but if you do so, the
performance
will be completely ugly.
The 'other' way, is to compeltely ignore E0602... but I think it's really useful
to know if the variable we use is really defined or not :P
The solution might be on Pylint side, I'm going to see how to handle this.
If you have any idea...
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users