Message1041
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 |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:25 | admin | link | issue1299032 messages |
2008-02-20 17:17:25 | admin | create | |
|