[tor-bugs] #5047 [Obfsproxy]: Implement basic usage statistics in obfsproxy

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sat Feb 11 08:31:59 UTC 2012


#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


More information about the tor-bugs mailing list