[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #5047 [Obfsproxy]: Implement basic usage statistics in obfsproxy
#5047: Implement basic usage statistics in obfsproxy
-------------------------+--------------------------------------------------
Reporter: karsten | Owner: karsten
Type: enhancement | Status: assigned
Priority: normal | Milestone:
Component: Obfsproxy | Version:
Keywords: | Parent:
Points: | Actualpoints:
-------------------------+--------------------------------------------------
Comment(by atagar):
I'm about to head to sleep and I'll be busy most of tomorrow so a second
pass will need to wait. But for your last question concerning multi-key
sorting the sort function's key value can take a tuple which, iirc, does
what you want...
{{{
>>> foo = [(1, 'a'), (2, 'z'), (2, 'b')]
>>> foo.sort(key = lambda i: (i[0], i[1]))
>>> foo
[(1, 'a'), (2, 'b'), (2, 'z')]
}}}
Cheers! -Damian
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/5047#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs