[Python-ideas] Re: list.append(x) could return x

2020-04-20 Thread gyro funch
On 4/20/2020 9:25 AM, J. Pic wrote: Hi all, Currently, list.append(x) mutates the list and returns None. It would be a little syntactic sugar to return x, for example:     something = mylist.append(Something()) What do you think ? Thanks in advance for your replies The following is not

[Python-ideas] Re: list.append(x) could return x

2020-04-20 Thread gyro funch
On 4/20/2020 11:18 AM, Christopher Barker wrote: On Mon, Apr 20, 2020 at 10:07 AM gyro funch <mailto:[email protected]>> wrote: On 4/20/2020 9:25 AM, J. Pic wrote: The following is not currently possible, but is consistent with other functions such as 'sorted&#x

Re: [Python-ideas] Moving typing out of the stdlib in Python 3.7?

2017-11-06 Thread Gyro Funch
On 11/4/2017 2:22 PM, Guido van Rossum wrote: > On Sat, Nov 4, 2017 at 7:05 AM, Nick Coghlan > > wrote: > > Perhaps typing could switch to being a bundled module, such that it > had its own version, independent of the Python standard library > version, but w