Re: [Python-Dev] Language proposal: variable assignment in functional context

2017-06-16 Thread Shloub
2017-06-16 13:32 UTC+02:00, Robert Vanden Eynde : > Hello, I would like to propose an idea for the language but I don't know > where I can talk about it. Hi, May I suggest Python-ideas? https://mail.python.org/mailman/listinfo/python-ideas Thanks.

[Python-Dev] Language proposal: variable assignment in functional context

2017-06-16 Thread Robert Vanden Eynde
Hello, I would like to propose an idea for the language but I don't know where I can talk about it. In a nutshell, I would like to be able to write: y = (b+2 for b = a + 1) Or in list comprehension: Y = [b+2 for a in L for b = a+1] Which can already be done like this: Y = [b+2 for a in L for b

Re: [Python-Dev] New work-in-progress bisection tool for the Python test suite (in regrtest)

2017-06-16 Thread Victor Stinner
2017-06-16 19:00 GMT+02:00 Brett Cannon : > Great idea! I had thought about doing something similar to this years ago to > help diagnose when a test passes in isolation but somehow fails due to one > of the bazillion of other tests that ran previously (which can be hard to >

Re: [Python-Dev] New work-in-progress bisection tool for the Python test suite (in regrtest)

2017-06-16 Thread Brett Cannon
Great idea! I had thought about doing something similar to this years ago to help diagnose when a test passes in isolation but somehow fails due to one of the bazillion of other tests that ran previously (which can be hard to narrow down if the failure is not early on in a test run). On Fri, 16

Re: [Python-Dev] Language proposal: variable assignment in functional context

2017-06-16 Thread Robert Vanden Eynde
Thanks! Le 17 juin 2017 06:19, "Shloub" > a écrit : 2017-06-16 13:32 UTC+02:00, Robert Vanden Eynde >: > Hello, I would like to propose an idea for the language but I don't know > where

Re: [Python-Dev] Language proposal: variable assignment in functional context

2017-06-16 Thread Erik
On 16/06/17 12:32, Robert Vanden Eynde wrote: Hello, I would like to propose an idea for the language but I don't know where I can talk about it. Robert, I have replied to this on the "python-ideas" ML. Regards, E. ___ Python-Dev mailing list

Re: [Python-Dev] Language proposal: variable assignment in functional context

2017-06-16 Thread Steven D'Aprano
Welcome Robert. My response below. Follow-ups to Python-Ideas, thanks. You'll need to subscribe to see any further discussion. On Fri, Jun 16, 2017 at 11:32:19AM +, Robert Vanden Eynde wrote: > In a nutshell, I would like to be able to write: > y = (b+2 for b = a + 1) I think this is

Re: [Python-Dev] Issue #21071: change struct.Struct.format type from bytes to str

2017-06-16 Thread Nick Coghlan
On 16 June 2017 at 14:19, Serhiy Storchaka wrote: > 27.03.17 15:12, Victor Stinner пише: >> >> I would like to change struct.Struct.format type from bytes to str. I >> don't expect that anyone uses this attribute, and struct.Struct() >> constructor accepts both bytes and str.

Re: [Python-Dev] Issue #21071: change struct.Struct.format type from bytes to str

2017-06-16 Thread Victor Stinner
2017-06-16 10:40 GMT+02:00 Nick Coghlan : > As long as it's noted in the "Porting to Python 3.7" section of the > 3.7 What's New guide, this seems like a sensible change to me. Yes, the change is already documented there: https://github.com/python/cpython/pull/845/files

[Python-Dev] New work-in-progress bisection tool for the Python test suite (in regrtest)

2017-06-16 Thread Victor Stinner
Hi, Last weeks, I worked on a new tool to bisect failing tests because it's painful to bisect manually reference leaks (I remove as much code as possible until the code is small enough to be reviewable manually). See the bisect_test.py script attached to this issue:

[Python-Dev] Summary of Python tracker Issues

2017-06-16 Thread Python tracker
ACTIVITY SUMMARY (2017-06-09 - 2017-06-16) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open6034 ( -1) closed 36405 (+70) total 42439 (+69) Open issues