[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] pyrcc: "-name" does not do anything
From:       Anonymous Maarten <anonymous.maarten () gmail ! com>
Date:       2017-07-25 9:37:23
Message-ID: CAHwqoGrxWq6TYcicjg-sh8CzEXa88cD-V39pRS+d7o67cfJcEw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On 25 July 2017 at 10:36, Florian Bruhin <me@the-compiler.org> wrote:

> On Tue, Jul 25, 2017 at 09:32:15AM +0100, Phil Thompson wrote:
> > If the problem is complaints from a linter then that's the linter's
> > problem as importing a module but doing nothing else with it is
> > perfectly reasonable IMHO.
>
> FWIW linters are usually configurable - e.g. for pylint, putting
> something like this in .pylintrc helps:
>
>     [master]
>     ignore=resources.py
>
> While I do respect your opinion, I think having side effects by doing
imports is not very pythonic.
Googling for 'python import side effect' returns some discussions.

But I can happily live with/work around the current situation :)

Thanks for your time and support.

[Attachment #5 (text/html)]

<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 25 July \
2017 at 10:36, Florian Bruhin <span dir="ltr">&lt;<a \
href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><span class="">On Tue, Jul 25, 2017 at 09:32:15AM +0100, \
Phil Thompson wrote:<br> &gt; If the problem is complaints from a linter then \
that&#39;s the linter&#39;s<br> &gt; problem as importing a module but doing nothing \
else with it is<br> &gt; perfectly reasonable IMHO.<br>
<br>
</span>FWIW linters are usually configurable - e.g. for pylint, putting<br>
something like this in .pylintrc helps:<br>
<br>
      [master]<br>
      ignore=resources.py<br><br></blockquote><div>While I do respect your opinion, I \
think having side effects by doing imports is not very pythonic.</div><div>Googling \
for &#39;python import side effect&#39; returns some \
discussions.</div><div><br></div><div>But I can happily live with/work around the \
current situation :)</div><div><br></div><div>Thanks for your time and support.  \
</div></div><br></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic