Skip to content
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

Affix string without parameters still overwrites Affix constructor's default values #51

Open
aaaaalbert opened this issue Jun 11, 2014 · 0 comments

Comments

@aaaaalbert
Copy link
Contributor

I'm writing an Affix component that should have its optional_args set to some default values. When I build the stack from an Affix string with no arguments like so,

server_affix_object = AffixStackInterface("(MakeMeHearAffix)")

then MakeMeHearAffix's constructor is called with an empty list for the optional_args, thus overwriting my default values. Clearly, I can work around this and set the defaults to be active if [] is passed in place of proper optional arguments, but I would prefer that the familiar Pythonic way Just Worked (TM).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant