[Python-ideas] Change magic strings to enums

Soni L. fakedme+py at gmail.com
Wed Apr 25 19:11:49 EDT 2018



On 2018-04-25 12:05 PM, Guido van Rossum wrote:
> On Wed, Apr 25, 2018, 02:13 Jacco van Dorp <j.van.dorp at deonet.nl 
> <mailto:j.van.dorp at deonet.nl>> wrote:
>
>     ... Which is where the auto-completion comes in. ...
>
>
> Designing the language with auto-complete in mind feels wrong to me. 
> It assumes a very sophisticated IDE and may lead to lazy design 
> compromises.

You can tab-complete enums (in the REPL), but not strings.
Tab-complete is not an IDE thing, it's a CPython REPL thing. It seems 
reasonable to design for it.

Any IDE worth my time would support string autocompletion, anyway. ;)

>
> --Guido
>
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180425/e83fb457/attachment.html>


More information about the Python-ideas mailing list