$HOSTNAME not in os.environ?

2006-09-01 Thread slinkp
Can anybody explain this one? [EMAIL PROTECTED] ~ $ python Python 2.4.3 (#1, Jul 27 2006, 13:07:44) [GCC 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.environ['HOSTNAME'] Traceback (most rece

Re: $HOSTNAME not in os.environ?

2006-09-01 Thread slinkp
Grant Edwards wrote: > On 2006-09-01, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Can anybody explain this one? > > print os.getenv('HOSTNAME') > > None > > > [EMAIL PROTECTED] ~ $ echo $HOSTNAME > > kermit > > Perhaps the HOSTNAME variable isn't exported? Aha. Right you are. Thank

Python 2 releases after 2.6

2007-09-11 Thread slinkp
This seems to be a bit of a FAQ (at least among worried Zope developers :-) ... What are the plans for Python 2 releases after Python 2.6 / Python 3 are released? First, in the 2006 State of Python, Guido said: """ # 2.7: likely; may contain some 3.0 backports # 2.9 is as far as we'll go (runni