-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow adding functions to parser without decorators #29
Comments
Additions: Varargs
Keywords
The first block does not require a default value to be specified. Note: This comment has been automatically migrated from Bitbucket |
Backwards Compatibility
Release 1.0 removes the Note: This comment has been automatically migrated from Bitbucket |
As DeprecationWarning is no longer loud since Python 2.7, it is required that the application developer runs the code as follows to ensure that the code is up to date:
Note: This comment has been automatically migrated from Bitbucket |
Well, the feature seems to be fully implemented and tested enough. Sure the code needs some refactoring and there are bugs yet to be found, but the issue can be closed. Note: This comment has been automatically migrated from Bitbucket |
…ompat fixes Introspection/merging of varargs and keywords is not supported yet.
New attributes can't be assigned to instancemethods after they've been declared so move the old style function detection to the 'alias' decorator which is usually used in old functions.
New attributes can't be assigned to instancemethods after they've been declared so move the old style function detection to the 'alias' decorator which is usually used in old functions.
New attributes can't be assigned to instancemethods after they've been declared so move the old style function detection to the 'arg' decorator.
New attributes can't be assigned to instancemethods after they've been declared so move the old style function detection to the 'arg' decorator.
New attributes can't be assigned to instancemethods after they've been declared so move the old style function detection to the 'alias' and 'arg' decorators.
New attributes can't be assigned to instancemethods after they've been declared so add old style function detection to the 'alias' and 'arg' decorators.
compat issue #29: handle old style arguments in objects
adds help from varargs annotations follow up of 3eecce3 and neithere#29
adds help from varargs annotations follow up of 3eecce3 and neithere#29
adds help from varargs annotations follow up of 3eecce3 and neithere#29
Current state
Functions cannot be assembled without decorators:
Functions that expect a namespace object are considered "normal" despite being a marginal case and looking unpythonic:
Desired state
Functions can be assembled without decorators:
Functions that expect a namespace object are a special case despite being "classic" from the argparse POV:
Two possible improvements which I consider "magic" and generally unnecessary and therefore prefer to omit:
expects_obj()
deco) to only have a single argument calledargs
.Note: This issue has been automatically migrated from Bitbucket
Created by @neithere on 2012-12-24 08:55:32+00:00, last updated: 2012-12-30 16:34:04+00:00
The text was updated successfully, but these errors were encountered: