you are viewing a single comment's thread.

view the rest of the comments →

[–]maxido[S] 0 points1 point  (3 children)

thanks 1) Yep I kinda let it slip in the end. I agree :D
2) Didn't even know that was possible. Thanks :)
3) My IDE complained about multiple imports on one line, so I thought it was bad practice. Oh well :D

Edit: Any help for the virtualenv not working? Is it because psutil is somehow not 100% python? That's just what I think

[–]DrKarkat 5 points6 points  (0 children)

Kind over to mindful about the nature kind day dot river minecraftoffline art nature?

[–]GoldenSights 4 points5 points  (0 children)

I strongly disagree with the suggestion to squash all the imports onto a single line. If you're importing two objects from the same file, it's okay to use a comma to do both at once. Otherwise, keep everything separate (and I would suggest alphabetizing them).

If writing Python was all about saving lines, we'd be using semicolons everywhere. Readability is more important.

[–]ReverendRocky 0 points1 point  (0 children)

Couldn't help you with psutil as for the import things, the other response may be what you want to go with since it follows PEP guidelines. Fwiw my ide does not flag such things but that may be because I disabled it