Issue1299032
Created on 2005-09-22.19:15:38 by leouserz, last changed 2005-09-22.19:15:38 by leouserz.
History | |||
---|---|---|---|
Date | User | Action | Args |
2005-09-22 19:15:38 | leouserz | create |
Created on 2005-09-22.19:15:38 by leouserz, last changed 2005-09-22.19:15:38 by leouserz.
Messages | |||
---|---|---|---|
msg1041 (view) | Author: Deleted User leouserz (leouserz) | Date: 2005-09-22.19:15:38 | |
ok, this one has bit me more than once so I guess Im sticking this up for notification. Here is a python session: Microsoft(R) Windows 98 Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.getenv( "CAT", default="MOO" ) 'MOO' >>> here is a jython session: Jython 2.2a1 on java1.5.0_02 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> import os >>> os.getenv( "CAT", default="MOO" ) Traceback (innermost last): File "<console>", line 1, in ? TypeError: __getitem__() got an unexpected keyword argument 'default' >>> ----------- I keep on running into code that uses the form expressed in the python version, so this has turned into a fairly regular irritent. thanks! leouserz |
History | |||
---|---|---|---|
Date | User | Action | Args |
2005-09-22 19:15:38 | leouserz | create |
Supported by Python Software Foundation,
Powered by Roundup