hynek / characteristic

Please use attrs instead!
https://attrs.readthedocs.io/
MIT License
84 stars 19 forks source link

Have an option for allowing positional arguments. #24

Open tomprince opened 9 years ago

tomprince commented 9 years ago

This is particular useful for classes with a single attribute. See for example

https://github.com/radix/effect/blob/0.1a11/effect/__init__.py#L242-249

hynek commented 9 years ago

I was thinking about something like that. A positional only without popping args off which would allow for faster constructors (but no cooperation with an own __init__?).

tomprince commented 9 years ago

I don't care about speed, simply usage.