<div dir="auto"><div>So does NumPy and sckit-learn use the trailing underscore convention. Albeit, sklearn uses it for (almost) all the model attributes, not just those it thinks might clash.<br><br><div class="gmail_quote"><div dir="ltr">On Mon, May 14, 2018, 2:12 PM Terry Reedy <<a href="mailto:tjreedy@udel.edu">tjreedy@udel.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 5/14/2018 10:02 AM, Clint Hepner wrote:<br>
> <br>
>> On 2018 May 14 , at 6:47 a, Daniel Moisset <<a href="mailto:dmoisset@machinalis.com" target="_blank" rel="noreferrer">dmoisset@machinalis.com</a>> wrote:<br>
>><br>
>> Following up some of the discussions about the problems of adding keywords and Guido's proposal of making tokenization context-dependent, I wanted to propose an alternate way to go around the problem.<br>
> <br>
> My main objection to what follows is that it doesn't seem to offer any benefit over the current practice of appending an underscore (_) to a keyword to make it a valid identifier.<br>
<br>
Tkinter uses this convention for a few option names that clash.<br>
<br>
-- <br>
Terry Jan Reedy<br>
<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank" rel="noreferrer">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer noreferrer" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</blockquote></div></div></div>