You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I look through argparse I wonder if restrictions in Python required the creation of so many formal classes. I do not know what challenges the developer came across while building argparse. If I did I might be able to better reason the use of formal classes.
If we move forward we may very well discover the same problems argparse did and end up needing specialized classes. To begin with I would focus on a single class to contain how the user wishes parsing to happen. We may need a parser class to carry out the actual parsing, but I could see a function working just as well to begin with.
As I look through argparse I wonder if restrictions in Python required the creation of so many formal classes. I do not know what challenges the developer came across while building argparse. If I did I might be able to better reason the use of formal classes.
If we move forward we may very well discover the same problems argparse did and end up needing specialized classes. To begin with I would focus on a single class to contain how the user wishes parsing to happen. We may need a parser class to carry out the actual parsing, but I could see a function working just as well to begin with.
Also, this bewest/argparse#9.
The text was updated successfully, but these errors were encountered: