>> """ simple pylint example """
>> def afunc(value_with_long_name):
>>     """ a doc string """
>>     value_with_long_name = 3
>>     i_want_to_mask_this_warning = value_with_long_name +
>> value_with_long_name # pylint: disable=W0612
>>     iwant_to_see_this_warning = 7
>>     print value_with_long_name
>>

[...but this then throws up a C0301: line too long message...]

surely Occam's Razor suggests that the simplest solution
is just to have multiple disables at the end of the line:

     i_want_to_mask_this_warning = value_with_long_name +
value_with_long_name # pylint: disable=W0612,C0301

OK, so it's not elegant, but easier than rewriting pylint

D


_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to