[Python-ideas] Re: Deprecate sum of lists

2021-06-18 Thread Paul Svensson
On Fri, 18 Jun 2021, Serhiy Storchaka wrote: 18.06.21 00:22, Ben Rudiak-Gould пише: Okay, slightly off-topic, but can we *please* allow     [*chunk for chunk in list_of_lists] some day. I think it was left out because some discussion concluded it would be too confusing, which is ridiculous. I

[Python-ideas] Re: Keyword arguments self-assignment

2020-04-17 Thread Paul Svensson
On Fri, 17 Apr 2020, Alex Hall wrote: Perhaps an easier next step would be to get better data about people's opinions with a simple poll? Is there a standard way to vote on things in this but it's easy and may inform what to do next. For what it's worth, I'm a strong -1 on this whole thing, r

Re: [Python-ideas] __len__() for map()

2018-12-01 Thread Paul Svensson
On Sat, 1 Dec 2018, Steven D'Aprano wrote: On Thu, Nov 29, 2018 at 08:13:12PM -0500, Paul Svensson wrote: What's being proposed is simple, either: * len(map(f, x)) == len(x), or * both raise TypeError Simple, obvious, and problematic. Here's a map object I prepared

Re: [Python-ideas] __len__() for map()

2018-11-29 Thread Paul Svensson
On Mon, Nov 26, 2018 at 10:35 PM Kale Kundert wrote: I just ran into the following behavior, and found it surprising: len(map(float, [1,2,3])) TypeError: object of type 'map' has no len() I understand that map() could be given an infinite sequence and therefore might not always have a leng

Re: [Python-ideas] Modern language design survey for "assign and compare" statements

2018-05-18 Thread Paul Svensson
On Sat, 19 May 2018, Greg Ewing wrote: Chris Angelico wrote: The 'as' syntax has been hammered out in great detail and is no longer recommended due to its negative interactions with existing constructs. Allowing it in arbitrary expressions has been ruled out on the grounds that the difference