This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iter
Recipients fdrake, iter, ned.deily, r.david.murray, serhiy.storchaka, terry.reedy
Date 2018-06-07.14:38:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528382312.07.0.592728768989.issue33274@psf.upfronthosting.co.za>
In-reply-to
Content
I feel a little bit like I wandered into a card game whose rules I didn't understand. I'm just a lay, mortal user. I've been writing Python for 15 years, first time I saw an opportunity to contribute back. I saw what looked to me like a bug that's been in the code for 18 years, and I saw that it was a simple fix. You want a News entry? I'm happy to write a news entry. You want a full stop at the end? I'm happy to make that commit. You want me to write something in the doc? I'm happy to do that. What you do with my contribution is your call. I don't make the rules, like I said, I don't even understand them so well.


When I first found this bug, I saw it as a very low-risk fix in terms of API change. It seems less likely that someone somewhere has code that depends on this function that always returning None. Python makes a very hard distinction between statements and expressions, and like you're saying, the Pythonic assumption is that a mutator is a statement whose return value one doesn't check. If this function returned a value, but the value were different from the spec, it would be a higher-risk change.


As a side note, I'm a 2.7 user, so would benefit from backporting this fix.


All this said, you're the maintainer, I'm the user, you don't have to justify your decisions to me. If you decide against backporting, I encourage you to update the documentation in earlier versions to state explicitly that this one mutator in the module diverges from the standard which the module otherwise implements faithfully.
History
Date User Action Args
2018-06-07 14:38:32itersetrecipients: + iter, fdrake, terry.reedy, ned.deily, r.david.murray, serhiy.storchaka
2018-06-07 14:38:32itersetmessageid: <1528382312.07.0.592728768989.issue33274@psf.upfronthosting.co.za>
2018-06-07 14:38:32iterlinkissue33274 messages
2018-06-07 14:38:31itercreate