[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-27 Thread tom.r
tom.r added the comment: That's understandable. Thanks for considering it, closing the patch. -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-27 Thread Guido van Rossum
Guido van Rossum added the comment: I'm against this. The str() and repr() of Ellipsis are 'Ellipsis' for a reason: to remind the user that this is "just" an object, not a piece of special syntax. -- ___ Python tracker

[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-27 Thread tom.r
tom.r added the comment: Yes. I wanted to change just __str__ because the string value of an Ellipsis should be, well, an ellipsis. The __repr__ representation helps distinguish between recursion and an ellipsis object, so that's fine the way it is. -- __

[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Are you aware that changing just __str__ will not change the result of repr(), so that nested Ellipsis and Ellipsis in REPL will be still represented by name? >>> print(...) ... >>> print([...]) [Ellipsis] >>> ... Ellipsis But changing also __repr__ will c

[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-26 Thread tom.r
tom.r added the comment: Frankly, because it bothered me that ``...`` evaluates to ``Ellipsis`` but that ``Ellipsis`` could never print as ``...``. -- ___ Python tracker ___

[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the PR but this seems to be backwards incompatible though I don't know if anyone depends on this and I am curious about the reason to change. Since this was added in e449af7da94 (1996) and I am not sure if this needs to be changed though

[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the rationale of this change? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Pyt

[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-26 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-26 Thread tom.r
Change by tom.r : -- keywords: +patch pull_requests: +8994 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list maili

[issue34815] Change Py_Ellipse __str__ behavior.

2018-09-26 Thread tom.r
New submission from tom.r : Added ellipsis_str function to Objects/sliceobject.c such that str(Ellipsis)=='...'. -- components: Interpreter Core files: sliceobject.c messages: 326522 nosy: photofone priority: normal severity: normal status: open title: Change Py_Ellipse __str__ behavio