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

config.Field fset and the like at creation #115

Closed
Jaymon opened this issue Aug 19, 2020 · 1 comment
Closed

config.Field fset and the like at creation #115

Jaymon opened this issue Aug 19, 2020 · 1 comment
Labels

Comments

@Jaymon
Copy link
Owner

Jaymon commented Aug 19, 2020

I think I should support both fset=... and fsetter=... syntax, right now just fset=... works.

so these would be equivalent:

foo = Field(str, True, fset=lambda self, v: v.upper())
foo = Field(str, True, fsetter=lambda self, v: v.upper())

This would need to apply to all the things (eg, fset, fget, and iget)

@Jaymon Jaymon added the wontfix label Dec 18, 2020
@Jaymon
Copy link
Owner Author

Jaymon commented Dec 18, 2020

I'm going to keep it similar to the property interface and with the new ways to customize the fields I don't think this is needed.

@Jaymon Jaymon closed this as completed Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant