[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #15635 [Stem]: Support multiple parameters for get_info()
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs