Re: [Python-Dev] Every Release Can Be a Mini "Python 4000", Within Reason (was (name := expression) doesn't fit the narrative of PEP 20)

2018-04-29 Thread Eitan Adler
On 29 April 2018 at 01:34, Jeff Allen  wrote:
> On 27/04/2018 08:38, Greg Ewing wrote:

> I speculate this all goes back to some pre-iteration version of FORmula
> TRANslation, where to its inventors '=' was definition and these really were
> "statements" in the normal sense of stating a truth.

https://www.hillelwayne.com/post/equals-as-assignment/


-- 
Eitan Adler
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Changes to configure.ac, auto-detection and related build issues

2018-05-14 Thread Eitan Adler
Hi all,

Hope this is an appropriate list to send this message to; if not,
please redirect me.

I am working on updating, fixing, or otherwise changing python's
configure.ac. This work is complex, lacks dedicated unit tests, and is
easy to miss corner cases. As these changes make it into master I'll
be watching the various build bots and be on the look out for related
failures. That said, I will miss things. Please feel free to tag me in
related PRs or bugs or emails over the next few weeks.

Thanks

-- 
Eitan Adler
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Changes to configure.ac, auto-detection and related build issues

2018-05-14 Thread Eitan Adler
On Monday, 14 May 2018, Victor Stinner  wrote:

> Hi Eitan,
>
> 2018-05-15 0:01 GMT-04:00 Eitan Adler :
> > I am working on updating, fixing, or otherwise changing python's
> > configure.ac. This work is complex, (...)
>
> Is your work public? Is there an open issue on bugs.python.org or an
> open pull request?


I'm opening bugs and PRs as I Go. Some examples are:

https://github.com/python/cpython/commit/98929b545e86e7c7296c912d8f34e8e8d3fd6439
https://github.com/python/cpython/pull/6845
https://github.com/python/cpython/pull/6848
https://github.com/python/cpython/pull/6849
https://bugs.python.org/issue33485

And so on


>
> If not, would you mind to at least describe the changes that you plan to
> do?
>
> > Please feel free to tag me in
> > related PRs or bugs or emails over the next few weeks.
>
> Hopefully, we only rarely need to modify configure.ac


I'm primarily worried about breaking arcane platforms I don't have direct
access to.

>
>

Victor
>


-- 
Sent from my Turing Machine
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Changes to configure.ac, auto-detection and related build issues

2018-05-15 Thread Eitan Adler
On 15 May 2018 at 05:54, Ned Deily  wrote:
> On May 15, 2018, at 01:58, Eitan Adler  wrote:
>> On Monday, 14 May 2018, Victor Stinner  wrote:
>> Hi Eitan,
>>
>> 2018-05-15 0:01 GMT-04:00 Eitan Adler :
>> > I am working on updating, fixing, or otherwise changing python's
>> > configure.ac. This work is complex, (...)
>>
>> Is your work public? Is there an open issue on bugs.python.org or an
>> open pull request?
>>
>> I'm opening bugs and PRs as I Go. Some examples are:
>>
>> https://github.com/python/cpython/commit/98929b545e86e7c7296c912d8f34e8e8d3fd6439
>> https://github.com/python/cpython/pull/6845
>> https://github.com/python/cpython/pull/6848
>> https://github.com/python/cpython/pull/6849
>> https://bugs.python.org/issue33485
>>
>> And so on
>>
>>
>> If not, would you mind to at least describe the changes that you plan to do?
>>
>> > Please feel free to tag me in
>> > related PRs or bugs or emails over the next few weeks.
>>
>> Hopefully, we only rarely need to modify configure.ac
>>
>> I'm primarily worried about breaking arcane platforms I don't have direct 
>> access to.
>
>
> Hi, Eitan!
>
> As you recognize, it is always a bit dangerous to modify configure.ac and 
> friends as we do support so many platforms and configuration and downstream 
> users try combinations that we don't claim to test or support.  So, we try to 
> be conservative about making changes there and do so only with good reason.
>
> So far, it's somewhat difficult for me to understand what you are trying to 
> accomplish with the changes you've noted so far other than various cosmetic 
> cleanups.

This all started when I found a bug in the C code of python. I wanted
to submit a PR and test my change, but found that it was painful to
compile Python on many platforms. In particular I needed to use
"clang" but configure.ac was looking for a compiler called "gcc
-pthread". As I started to fix this, I realized there is a lot of
unneeded complexity in configure.ac and am now trying to clean that
up.

>   It is also difficult to properly review a bunch of small PRs that modify 
> the same configuration files and especially without an overall tracking issue.

I wanted to keep the reviews small to be reviewable, revertable, and
bisectable. Is there a nicer way of handling that? Maybe a single
large review with a series of small commits?

> For most of this to move forward, I think you should create or adapt at least 
> one b.p.o issue to describe what changes you are suggesting and why and how 
> they apply to our various platforms and then consolidate PRs under that PR.  
> Don't be surprised if the PRs don't get much attention right away as we're 
> busy at the moment trying to get 3.7.0 out the door.

Understood. There are lot of PRs and a lot of work. I've been pretty
happy with the traction so far.

>  And it would be best to avoid including generated files (like configure vs 
> configure.ac) in new PRs as that will only add to the likelihood of merge 
> conflicts and review complexity.

I've gotten three different pieces of advice about this:
(a) always include them, so its easier to review
(b) never include, so its easier to review and and avoid merge conflicts
(c) only include if your tool version matches what was used originally

I don't care much but its clear there isn't agreement.

-- 
Eitan Adler
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Failing tests on master (asyncio, multiprocessing)

2018-05-19 Thread Eitan Adler
On 19 May 2018 at 02:05, Christian Heimes  wrote:
> Hi,
>
> several of my PRs as well as local tests have started failing recently.
> On my local Fedora 27 machine, four sendfile related tests of
> test_asyncio's BaseLoopSockSendfileTests suite are failing reproducible.
>

https://bugs.python.org/issue33531 ?



-- 
Eitan Adler
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com