Attention is currently required from: Hoernchen, dexter, fixeria, pespin.
1 comment:
File pySim/global_platform/__init__.py:
I would love if there was some kind of method by which an API user can see what kind of command-methods a class like this exposes. So here we have put_key, gp_version, get_status, set_status, etc. and one has to manually read through the source to find them.
One option would be to have some kind of decorator, which some other code could then use as 'tag' to detect such SCC methods. Another option would be some kind of list of SCC methods inside the class. Yet another option would be to prefix them with something like scc_ to set them apart. There might even be better options like having some kind of intermediate 'container class' like we wave in cmd2 with the AddlShellCommands.
I'm leaving it up to you to think what makes most sense.
To view, visit change 42741. To unsubscribe, or for help writing mail filters, visit settings.