Re: [Python-Dev] PEP 538 (review round 2): Coercing the legacy C locale to a UTF-8 based locale

2017-06-16 Thread Nick Coghlan
On 12 June 2017 at 22:05, Nick Coghlan wrote: > On 12 June 2017 at 17:47, Martin (gzlist) wrote: >> Having thought about it a bit more, my preferred option is having the >> disable be if either LC_ALL or LC_CTYPE vars are exactly 'C', then >> don't override. Otherwise (including for LANG=C), forc

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" mailto:shl...@gmail.com>> a écrit : 2017-06-16 13:32 UTC+02:00, Robert Vanden Eynde mailto:robertvandeney...@hotmail.com>>: > 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-i

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 some

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 Python

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 > narrow down if the fail

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 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 Ju

[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 wit

[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: http://bugs.python.org/issue29

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 Victor ___

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. >> >> http://bugs.pyt