100
❘
CHAPTER 6
Using the Python standard Library
➤➤
IDLE (Integrated DeveLopment Environment): A graphical user interface to work with
Python code.
In many respects, this is a much nicer interface than the command line version
of the IronPython interpreter.
Most important, you can save your work,
which means that
you can possibly use IDLE as an alternative to Visual Studio if desired. Of course, IDLE
doesn’t know anything about working with the .NET Framework and you can’t use it to
write multi-language applications.
➤
➤
Module Docs: An HTML-formatted help file that provides complete
documentation of the
various Python Standard Library modules. Interestingly enough,
you can use this help file
with IronPython without modification because this is the documentation that IronPython’s
Standard Library is written to support. For the most part, this help
file is brief and not very
detailed, but it’s good when you need a quick reference.
➤
➤
Python (command line): An application that works precisely like the IronPython command
line. In fact, you’d be hard pressed to tell the two apart. The only reason you’d want to use
the Python command line is to test the cross-platform compatibility of a module you write.
Otherwise, you’ll want to use the IronPython command line to
ensure your code runs prop-
erly with IronPython.
➤
➤
Python Manuals: This is the detailed help file you probably wanted with IronPython, but
didn’t receive. You’ll definitely want to spend some time looking
around this help file and
discovering new things about the Python language.
Now that you have a better idea of what the Python Standard Library provides, you need to consider
how you’ll use it or whether you want to use it at all. Just how the Python Standard Library affects
your organization and you depends on your goals. For the most part, you’ll use these tools when you
want to write pure Python applications or applications that rely heavily on Python (versus the mixed
language applications found later in this book). It’s important to remember that IronPython has a lot
to offer that Python doesn’t, so you need to decide which route your organization will take before
you make a commitment to pure Python by using the Python Standard Library.
Do'stlaringiz bilan baham: