Bugs item #437800, was opened at 2001-07-01 18:37
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=112867&aid=437800&group_id=12867
Category: Core
>Group: Fixed in 2.1a2
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Magnus Lie Hetland (mlh)
Assigned to: Finn Bock (bckfnn)
Summary: Obscure difference from CPython
Initial Comment:
Ran the following code in both CPython and Jython (through 'import anygui'):
-- anygui.py --
impl_names = ['java']
# Will only return anygui :P
impls = [__import__('anygui.impl.%sgui' % name,
fromlist=['%sgui' % name]) for name in impl_names]
#viable_impls = [impl for impl in impls if impl.viable]
---------------
And got the following two (different) error messages:
CPython 2.1:
>>> import anygui
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/home/idi/f/mlh/python/anygui/__init__.py", line 5, in ?
fromlist=['%sgui' % name]) for name in impl_names]
TypeError: __import__() takes no keyword arguments
>>>
Jython 2.1a1:
>>> import anygui
Traceback (innermost last):
File "<console>", line 1, in ?
File "S:\python\anygui\__init__.py", line 5, in ?
TypeError: sequence subscript must be integer or slice
The CPython error message is a bit more understandable than the Jython message, IMO...
----------------------------------------------------------------------
Comment By: Finn Bock (bckfnn)
Date: 2001-07-01 21:50
Message:
Logged In: YES
user_id=4201
Fixed in __builtin__.java: 2.34;
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=112867&aid=437800&group_id=12867
|