[Tutor] Re: Env Vars

Derrick 'dman' Hudson dman@dman.ddts.net
Tue, 2 Jul 2002 18:14:10 -0500


--J2SCkAp4GZ/dPZZf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jul 02, 2002 at 06:00:07PM +0000, Kyle Babich wrote:
| How do environment variables work in python?  I couldn't seem to find
| documentation for this either.

You won't find that sort of thing in the tutorial.  The tutorial is
designed to introduce you to the core _language_ functionality.
Unlike perl but rather like C, python's core language is quite
minimal.  All the really fancy features are implemented either in the
standard library or in additional libraries that can be installed.  To
find out what is in the standard library, read the Library Reference
(also in the "Documentation" section of python.org, I don't have the
url in hand right now).  Do note that the library reference is just
that -- a library reference.  It is not a tutorial and won't cover
the python language, just the library.

In the library reference you'll find info on the 'os' module, which is
where operating system stuff (like the environment) is contained.
You'll also find the built-in functions and the operations supported
by the built-in types (eg dictionaries) documented.

HTH,
-D

--=20

Your beauty should not come from outward adornment, such as braided hair
and the wearing of gold jewelry and fine clothes.  Instead, it should be
that of your inner self, the unfading beauty of a gentle and quiet
spirit, which is of GREAT WORTH in God's sight.  For this is the way the
holy women of the past used to make themselves beautiful.
        I Peter 3:3-5
=20
http://dman.ddts.net/~dman/


--J2SCkAp4GZ/dPZZf
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj0iM8IACgkQO8l8XBKTpRTffACgk/e3hmj/8jenSQFBY5+oAR/X
wv0AmwVv2qcl/vvk2UTw7iUP98e3PWma
=7BEj
-----END PGP SIGNATURE-----

--J2SCkAp4GZ/dPZZf--