[Python-ideas] Current use of addition in Python

2019-03-04 Thread Jonathan Fine
Summary: This thread is for recording current use of addition in Python. This post covers the built-in types. I'll do Counter and numpy.array in another post. Please use another thread to discuss possible possible future use of addition. BACKGROUND At present constructions such as {'a': 1} + {

Re: [Python-ideas] Current use of addition in Python

2019-03-04 Thread Rhodri James
On 04/03/2019 14:03, Jonathan Fine wrote: Summary: This thread is for recording current use of addition in Python. TL;DR. Why is this is Python Ideas? -- Rhodri James *-* Kynesim Ltd ___ Python-ideas mailing list Python-ideas@python.org https://mail

Re: [Python-ideas] Current use of addition in Python

2019-03-04 Thread Eric V. Smith
> On Mar 4, 2019, at 2:18 PM, Rhodri James wrote: > >> On 04/03/2019 14:03, Jonathan Fine wrote: >> Summary: This thread is for recording current use of addition in >> Python. > > TL;DR. Why is this is Python Ideas? Because of the current discussion of dict + dict. I think this is helping an

Re: [Python-ideas] Current use of addition in Python

2019-03-04 Thread Jonathan Fine
First, I thank Rhodri for his question, and Eric for his reply (see earlier messages in this thread). SUMMARY I record the addition properties of collections.Counter and numpy.array. Finally, some comments about len(), and a promise of more tomorrow. COUNTER Now for collections.Counter -- this is