4 ms·
Decorators, context managers, list comprehensions, multiple assignments, keyword arguments are all gratuitous. Should we remove them?
by typon 8y ago
Decorators, context managers, list comprehensions, multiple assignments, keyword arguments are all gratuitous. Should we remove them?
- crististm 8y agoWhich ones are you referring to?
- typon 8y agoThese are all merely syntactic sugar that replicate functionality available in Python that would otherwise be done in a more awkward way. This PEP is doing the same thing.
- crististm 8y agoMy question is about the value of this particular patch-set not about usefulness of the PEP. "The point of this PR is just to open discuss on coding style: discuss when assignment expressions are appropriate or not." There is no new code and the author's intention seems to be more than a "let's see how it would look like" patch. (Discussing where to use new syntax on existing code is a waste of time unless the intent is to apply the changes)