[Tutor] The Order of Imports and install order of modules and other matters (XP vs W7, ...)
kent37 at tds.net
Sat Feb 13 16:06:02 CET 2010
On Fri, Feb 12, 2010 at 10:55 PM, Wayne Watson
<sierra_mtnview at sbcglobal.net> wrote:
> There seems to be something of a general consensus in ordering import
> statements. Something like standard library imports first. When using tools
> like matlablib or tkinter (maybe), must one keep an order among the relevant
I don't know if there is a general consensus but what I like to do is
standard library imports
third-party library imports
Within each group I tend to group "import x" imports before "from x
import y" imports and alphabetize by module name. I'm not strict about
> Related to this is the order in which modules are installed. Does it make a
It shouldn't matter.
> Finally, I'm in the process of moving Python code from XP to Win7. I just
> grabbed all the install files I have from XP, and executed them on W7.
> Everything seems to be working as expected, but one strange thing happened
> with scipy. It produced a warning about something like "unable to provide
> key". I continued anyway. All seems well. Was I supposed to use some W7
> version of the "XP" files? This is anomaly 1.
There doesn't seem to be a separate installer for W7 but there may be
issues, W7 is still pretty new. Also check that you are using the most
> OK, this the last one. In both XP and W7, I've found executing a program by
> use of the py file (not IDLE. Is there a name for this method?) using numpy
> that see early on in the DOS-like window (is there name for it too?) it's
> complaining (alerting me) about deprecations and some use of a numpy test.
> What's that about? This is anomaly 2.
Deprecation warnings mean the code is using some outdated
functionality that is slated to be removed. You should at least look
at them and see if it is in your code or in scipy.
> "Crime is way down. War is declining. And that's far from the good news." --
> Steven Pinker (and other sources) Why is this true, but yet the media says
> otherwise? The media knows very well how to manipulate us (see limbic,
> emotion, $$). -- WTW
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
More information about the Tutor