From: Alex the Jython User <report@bu...> - 2012-06-06 15:42:18
New submission from Alex the Jython User <adorsk@...>:
The 'attrgetter' method in the 'operator' library does not appear to function as expected.
Environment: jython2.7a2, w/ OpenJDK-6 on Ubuntu 12.04
Test: try running the code below:
f = Foo()
f.bar = Bar()
f.bar.bat = 5
from operator import attrgetter
The result is this error:
Traceback (most recent call last):
File "t.py", line 13, in <module>
AttributeError: 'Foo' object has no attribute 'bar.bat'
This specifically causes problems when used with SqlAlchemy 0.7.7, as per this thread:
PS: I'm just getting into Jython, looks like a very cool tool, and potentially very useful as well.
title: attrgetter not working
Jython tracker <report@...>
Get latest updates about Open Source Projects, Conferences and News.