[Python-ideas] Suggestion: Clear screen command for the REPL

João Matos jcrmatos at gmail.com
Tue Sep 20 03:04:25 EDT 2016


Hello,

You are correct.
Thanks for the explanation.

Best regards,

JM


terça-feira, 20 de Setembro de 2016 às 02:56:57 UTC+1, Steven D'Aprano 
escreveu:

> On Mon, Sep 19, 2016 at 01:35:53PM -0700, João Matos wrote: 
> > Hello, 
> > 
> > I don't see why creating a clear command would interfere with 
> dict.clear() 
> > which is a function/method. 
>
> For the same reason that you can't have a method called foo.while or 
> foo.if or foo.raise. If clear is a "command" (a statement) it would need 
> to be a keyword, like while, if and raise. 
>
>
> -- 
> Steve 
> _______________________________________________ 
> Python-ideas mailing list 
> Python... at python.org <javascript:> 
> 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/20160920/0f6ffaa6/attachment-0001.html>


More information about the Python-ideas mailing list