[Python-porting] Pylint checkers for Python 2/3 compatibility

Guido van Rossum guido at python.org
Sat Jul 26 17:31:46 CEST 2014


Is there a write-up somewhere of the strengths and weaknesses of pylint's
type checking?


On Sat, Jul 26, 2014 at 7:59 AM, Brett Cannon <bcannon at gmail.com> wrote:

>
>
> On Fri Jul 25 2014 at 5:13:47 PM Aaron Meurer <asmeurer at gmail.com> wrote:
>
>> How smart are the checkers, relative to, say, the sorts of things that
>> 2to3 looks for (or modernize or futurize)?
>>
>
> They are smarter as the checkers have more information (e.g. is this a
> method and not a function, is this a built-in and not just something named
> 'map').
>
> -Brett
>
>
>>
>> Aaron Meurer
>>
>> On Fri, Jul 25, 2014 at 1:42 PM, Brett Cannon <bcannon at gmail.com> wrote:
>> > I think I've reached beta quality for caniusepython3 3.0.0 where I have
>> > implemented custom Pylint checkers for various things that will break in
>> > Python 3 (e.g. referencing built-ins that are removed or have different
>> > semantics, etc.). The goal with the checkers is for projects to use them
>> > after running modernize(3k) or futurize on their code to prevent
>> regressing
>> > their Python 2/3 source-compatibility.
>> >
>> > The code can be found at
>> > https://github.com/brettcannon/caniusepython3/tree/pylint . Feedback is
>> > welcome before I make an official release.
>> >
>> > _______________________________________________
>> > Python-porting mailing list
>> > Python-porting at python.org
>> > https://mail.python.org/mailman/listinfo/python-porting
>> >
>>
>
> _______________________________________________
> Python-porting mailing list
> Python-porting at python.org
> https://mail.python.org/mailman/listinfo/python-porting
>
>


-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-porting/attachments/20140726/94f1d12a/attachment.html>


More information about the Python-porting mailing list