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 ethan.furman
Recipients barry, eli.bendersky, ethan.furman, ezio.melotti, martin.panter, python-dev, r.david.murray, rhettinger, serhiy.storchaka, veky
Date 2016-09-07.19:36:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473276962.58.0.622052687946.issue23591@psf.upfronthosting.co.za>
In-reply-to
Content
> For me, it is an issue. But you probably already know that.
>(http://bugs.python.org/issue26988#msg273125) (That's "the other thread".)

Ah, thanks.  I had forgotten about that one.

For what it's worth, I largely agree with you there.

> Try to explain: how exactly is that different than wanting "file.close"
> to close the file, or "quit" to quit the REPL?

Enum is already full of magic:
- class is iterable
- class is indexable
- member attributes are instances of class
- members are all created when class is created
- etc.

Flag, especially, needs a way to specify "give me a working value" even when the user doesn't care what that value is (as your, um, interesting examples have shown ;).

Whatever we choose as the placeholder (since it has been decided that no placeholder is too magical) will still have magic involved, so I don't want parenthesis there disguising that.

I'd also be happy with _member_ instead of _auto_ -- maybe that makes even more sense.

> And I surely hope we're not going in that direction [dropping parens from function calls].

No, we're not.
History
Date User Action Args
2016-09-07 19:36:02ethan.furmansetrecipients: + ethan.furman, barry, rhettinger, ezio.melotti, r.david.murray, eli.bendersky, python-dev, martin.panter, serhiy.storchaka, veky
2016-09-07 19:36:02ethan.furmansetmessageid: <1473276962.58.0.622052687946.issue23591@psf.upfronthosting.co.za>
2016-09-07 19:36:02ethan.furmanlinkissue23591 messages
2016-09-07 19:36:02ethan.furmancreate