os.name

Oleg Broytmann phd at emerald.netskate.ru
Fri Jul 30 08:53:59 EDT 1999


On Fri, 30 Jul 1999, Emile van Sebille wrote:
> >>> os.environ('OS')
> Traceback (innermost last):
>   File "<pyshell#8>", line 1, in ?
>     os.environ('OS')
> AttributeError: no __call__ method defined

   os.environ is a dictionary:

>>> os.environ['OS']

> --
> 
> Emile van Sebille
> emile at fenx.com
> -------------------

Oleg.
---- 
    Oleg Broytmann        Netskate/Inter.Net.Ru        phd at emerald.netskate.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list