[issue13239] Remove <> operator from Grammar/Grammar

2011-11-14 Thread Éric Araujo
Éric Araujo added the comment: +# <> isn't actually a valid comparison operator in Python. It's here for the +# sake of a __future__ import described in PEP 401 If we wanted to be exact, the operator isn’t here for a __future__ import but for a feature enabled by a __future__ import. But I do

[issue13239] Remove <> operator from Grammar/Grammar

2011-11-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset a259511351d9 by Eli Bendersky in branch '3.2': Clarify the existence of the <> operator in Grammar/Grammar with a comment, for issue 13239 http://hg.python.org/cpython/rev/a259511351d9 New changeset 410115400838 by Eli Bendersky in branch 'default

[issue13239] Remove <> operator from Grammar/Grammar

2011-11-12 Thread Eli Bendersky
Eli Bendersky added the comment: Éric, do you feel strongly about the wording, or can I just go ahead and commit my version if I like it more :) ? -- ___ Python tracker ___ ___

[issue13239] Remove <> operator from Grammar/Grammar

2011-11-12 Thread Éric Araujo
Éric Araujo added the comment: +1 for a comment too. I’d even make it shorter: # don't look at <>, it's not a real operator (see PEP 401) -- ___ Python tracker ___ ___

[issue13239] Remove <> operator from Grammar/Grammar

2011-11-11 Thread Brett Cannon
Brett Cannon added the comment: I think the clarification should be enough. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue13239] Remove <> operator from Grammar/Grammar

2011-11-11 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching a patch with a clarifying comment in Grammar/Grammar. Should be enough for now? -- keywords: +patch Added file: http://bugs.python.org/file23656/issue13239.patch ___ Python tracker

[issue13239] Remove <> operator from Grammar/Grammar

2011-10-21 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13239] Remove <> operator from Grammar/Grammar

2011-10-21 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 21, 2011, at 07:33 PM, Antoine Pitrou wrote: >Antoine Pitrou added the comment: > >> OTOH, __future__ imports (even jokes) should never be removed. > >But their meaning can be altered? >(as part of another joke if you want :) Well, you have 6 months t

[issue13239] Remove <> operator from Grammar/Grammar

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > OTOH, __future__ imports (even jokes) should never be removed. But their meaning can be altered? (as part of another joke if you want :) -- nosy: +pitrou ___ Python tracker ___

[issue13239] Remove <> operator from Grammar/Grammar

2011-10-21 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 21, 2011, at 06:35 PM, Benjamin Peterson wrote: >Benjamin Peterson added the comment: > >Or perhaps we don't need joke backward compatibility? (That's nearly 3 years >old.) OTOH, __future__ imports (even jokes) should never be removed. -- __

[issue13239] Remove <> operator from Grammar/Grammar

2011-10-21 Thread Brett Cannon
Brett Cannon added the comment: On Fri, Oct 21, 2011 at 11:35, Benjamin Peterson wrote: > > Benjamin Peterson added the comment: > > Or perhaps we don't need joke backward compatibility? (That's nearly 3 years > old.) Then you tell the FLUFL that you want to take his precious operator away.

[issue13239] Remove <> operator from Grammar/Grammar

2011-10-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: Or perhaps we don't need joke backward compatibility? (That's nearly 3 years old.) -- nosy: +benjamin.peterson ___ Python tracker ___ _

[issue13239] Remove <> operator from Grammar/Grammar

2011-10-21 Thread Brett Cannon
Brett Cannon added the comment: Probably need a comment in the Grammar file so people know why an unused operator is in there. -- ___ Python tracker ___

[issue13239] Remove <> operator from Grammar/Grammar

2011-10-21 Thread Florent Xicluna
Florent Xicluna added the comment: This is PEP 401. "[Because] the != inequality operator ... was a horrible, finger pain inducing mistake, the FLUFL reinstates the <> diamond operator as the sole spelling. This change is important enough to be implemented for, and released in Python 3.1. To

[issue13239] Remove <> operator from Grammar/Grammar

2011-10-21 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +barry, brett.cannon, fdrake, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue13239] Remove <> operator from Grammar/Grammar

2011-10-21 Thread Eli Bendersky
Eli Bendersky added the comment: The relevant code in Parser/parsetok.c is: #ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD if (type == NOTEQUAL) { if (!(ps->p_flags & CO_FUTURE_BARRY_AS_BDFL) && strcmp(str, "!=")) { err_ret->error = E_SY

[issue13239] Remove <> operator from Grammar/Grammar

2011-10-21 Thread Eli Bendersky
New submission from Eli Bendersky : Operator <> was removed in Python 3, but still appears in Grammar/Grammar (and hence in Doc/reference/grammar.rst) Reported by Alexander Ivanyuta on the docs mailing list -- assignee: docs@python components: Documentation, Interpreter Core messages: