[Python-ideas] + operator on generators

Joshua Morton joshua.morton13 at gmail.com
Tue Jun 27 13:14:39 EDT 2017


Argh, you're correct. Thanks for the catch.

On Tue, Jun 27, 2017 at 10:06 AM Stephan Houben <stephanh42 at gmail.com>
wrote:

> Unfortunately this is existing syntax:
>
> a++b
> is parsed as
> a+(+b)
>
> Stephan
>
>
> Op 27 jun. 2017 6:03 p.m. schreef "Joshua Morton" <
> joshua.morton13 at gmail.com>:
>
> Just another syntactical suggestion: the binary ++ operator is used as
> concat in various contexts in various languages, and is probably less
> likely to confuse people as being either a logical or binary &.
>
> On Tue, Jun 27, 2017 at 6:53 AM Stephan Houben <stephanh42 at gmail.com>
> wrote:
>
>> > Its the applications where it *is* important that
>> > we should be looking at.
>>
>> Um, yes, but given our relative positions in this debate,
>> the onus is not really on *me* to demonstrate such an application, right?
>> That would just confuse everbody ;-)
>>
>> (FWIW, Sagemath is not mostly "numerical processing", it is mostly
>> *symbolic* calculations and involves a lot of complex algorithms and
>> datastructures, including sequences.)
>>
>> Stephan
>>
>> 2017-06-27 13:48 GMT+02:00 Steven D'Aprano <steve at pearwood.info>:
>> > On Tue, Jun 27, 2017 at 01:32:05PM +0200, Stephan Houben wrote:
>> >> Hi Steven,
>> >>
>> >> To put this into perspective, I did some greps on Sagemath,
>> >> being the largest Python project I have installed on this machine
>> >> (1955 .py files).
>> >
>> > And one which is especially focused on numerical processing, not
>> > really the sort of thing that does a much iterator chaining. That's
>> > hardly a fair test -- we know there are applications where chaining is
>> > not important at all. Its the applications where it *is* important that
>> > we should be looking at.
>> >
>> >
>> > --
>> > Steve
>> > _______________________________________________
>> > 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/
>> _______________________________________________
>> 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/20170627/f542e96f/attachment-0001.html>


More information about the Python-ideas mailing list