[tor-bugs] #15635 [Stem]: Support multiple parameters for get_info()
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed Apr 8 08:37:07 UTC 2015
#15635: Support multiple parameters for get_info()
---------------------------+---------------------
Reporter: sambuddhabasu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Stem | Version:
Keywords: controller | Actual Points:
Parent ID: | Points:
---------------------------+---------------------
Presently get_info() method takes only one parameter. If the user wants
multiple GETINFO queries, they have to call the get_info() method multiple
times like,
get_info('traffic/read')
get_info('traffic/written')
It will be better if the user can just call a get_info_map() method with
multiple parameters which will return a dictionary/mapping of all the
results. This can be something like,
ret_val = get_info_map('traffic/read', 'traffic/written')
and then ret_val!['traffic/read'] and ret_val!['traffic/written'] can be
used to retrieve the expected values
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/15635>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list