We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When trying to sort a list of NetLoc objects I'm getting
'<' not supported between instances of 'NetLoc' and 'NetLoc'
As I workaround I've converted it to str
self.servers = sorted(self.require('backend'), key=lambda c: str(c.address.connect))
The text was updated successfully, but these errors were encountered:
This is just to get a stable sorting, right?
Sorry, something went wrong.
Yes.
4fe0b5b
No branches or pull requests
When trying to sort a list of NetLoc objects I'm getting
'<' not supported between instances of 'NetLoc' and 'NetLoc'
As I workaround I've converted it to str
self.servers = sorted(self.require('backend'), key=lambda c: str(c.address.connect))
The text was updated successfully, but these errors were encountered: