[issue33493] dataclasses: allow keyword-only arguments

2020-04-01 Thread Chris Barker
Chris Barker added the comment: This does not actually appear to be a Duplicate of #33129. That one was asking to add **kwargs (I think) to the __init__. And was discussed and I think rejected on gitHub: https://github.com/python/cpython/pull/19206 But this calls for having keyword-only

[issue33493] dataclasses: allow keyword-only arguments

2018-05-16 Thread Eric V. Smith
Eric V. Smith added the comment: Duplicate of #33129. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Add kwarg-only option to dataclass ___ Python tracker

[issue33493] dataclasses: allow keyword-only arguments

2018-05-14 Thread Eric V. Smith
New submission from Eric V. Smith : I've had several requests for keyword-only arguments. This is a placeholder to remind me to work on it. I have not decided if it's a good idea or not. I propose adding a keyword_only argument to field(), defaulting to False. I'm thinking