Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Sounds great but, that implies explicit import. I would like to build something plugins based stackoverflow.com/questions/932069/…. Commented May 3, 2016 at 12:15
  • 1
    If all you need from argparse is the name of the plugin to import, the subparsers mechanism may be too much. Any string argument would work. You could even collect the allowable names in a choices parameter. Commented May 3, 2016 at 16:03