Re: importlib2
Nick Coghlan <[email protected]> Thu, 29 May 2014 00:41:54 +1000
| Newsgroups | gmane.comp.python.import |
|---|---|
| Message-ID | <CADiSq7cWE3cZAAo0rB91c3i1zsUPgfL+Wr3tVzH-VFy9X91+bw@mail.gmail.com> |
On 29 May 2014 00:19, Eric Snow <[email protected]> wrote: > On Wed, May 28, 2014 at 7:44 AM, Brett Cannon <[email protected]> wrote: >> You'll have to refresh my memory because there were a lot of ideas tossed >> out at PyCon: why an importer and not some custom rules for pylint? E.g. I >> can see requiring that either ``from __future__ import unicode_literals`` or >> every string literal being marked with u or b being a rule, but I don't see >> the exact benefit of that over an importer (I realize that a per-file thing >> is desired, but tooling for that should be possible as well). > > To be honest, I don't remember exactly. Maybe a linter would be > sufficient, though I could swear there was some reason it wasn't. > I'll consider that. IIRC, it came out of one of our conversation with Steve Dower, and it was more a matter of "do both" rather than one or the other. The other advantage of the runtime model was being able to turn on -3 warnings. Cheers, Nick. -- Nick Coghlan | [email protected] | Brisbane, Australia