Owlready
Search
everywhere
only in this topic
Advanced Search
TypeError when using sort on result from search
Classic
List
Threaded
♦
♦
Locked
2 messages
fiveop
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
TypeError when using sort on result from search
result = world.search(...)
result.sort()
leads to 'TypeError: must use keyword argument for key function'. This can be fixed by chaning
return self.sort(key, reverse)
to
return self.sort(key=key, reverse=reverse)
in _LazyListMixin#sort
Jiba
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: TypeError when using sort on result from search
Administrator
Hi,
Thank you for reporting and fixing this problem.
I integrated your fix in the devlopment version.
Jiba
Free forum by Nabble
Edit this page