Re:Say “no” to import side‐effects in Python
by Hello71 on Saturday April 05, 2014 @08:40AM
(#7536865)
perhaps your issue is having too many things installed?
[ Parent
| on HN ]
Re:Say “no” to import side‐effects in Python
by chrismorgan on Saturday April 05, 2014 @08:49AM
(#7536886)
The laptop I'm working on was decent when new, six years ago, but is now not the fastest thing on the block. It has certainly collected quite a lot of things there (mostly from system packages), but it is probably just one or two things that are spending most of the time (excluding I/O time).
It's interesting; now that I've tried running it a few more times, `help('modules')` on my Python 2.7 is getting down to six or so seconds. (On Python 3 it takes around 0.15 seconds.)
Re:Say “no” to import side‐effects in Python
by marcosdumay on Saturday April 05, 2014 @10:27AM
(#7537158)
Wow! My Pthon2 help('modules') opens a window titled "Hello from wxPython"!
Python3 behaves well, and both succeed...