plataform dependent code

Peter Hansen peter at engcorp.com
Fri Nov 21 12:09:41 EST 2003


Zunbeltz Izaola wrote:
> 
> Rene Pijlman <reply.in.the.newsgroup at my.address.is.invalid> writes:
> [Zunbeltz Izaola wrote:]
> > >I can't find any information about this in the net.
> >
> > You've got to be kidding.
> >
> no I've googled (is it a verb? :) platform dependent python in (alson
> in complang.python ) and i haven't been pointed to the library
> referend.
> 
> I didn't search in the reference :( ,next time i'll not forgeto to

Don't feel too bad.  I remember learning about this particular piece
of Python as well, and being equally surprised.

Of course, at that point I realized the value of bringing up an 
interactive session and typing "import amodule; dir(amodule)" and
then checking out all the little goodies that it suggested were
there.  Reading the docs is one thing; actually typing the name
(e.g. sys.version_info) yourself is quite a different thing altogether:
if you type it yourself, it _might_ actually stick in your memory! :-)

-Peter




More information about the Python-list mailing list