Re: [Python-Dev] PEP 590 discussion

2019-04-14 Thread Mark Shannon
Hi, Petr On 10/04/2019 5:25 pm, Petr Viktorin wrote: Hello! I've had time for a more thorough reading of PEP 590 and the reference implementation. Thank you for the work! Overall, I like PEP 590's direction. I'd now describe the fundamental difference between PEP 580 and PEP 590 as: - PEP 580

[Python-Dev] PEP 580 and PEP 590 comparison.

2019-04-14 Thread Mark Shannon
Hi Petr, Thanks for spending time on this. I think the comparison of the two PEPs falls into two broad categories, performance and capability. I'll address capability first. Let's try a thought experiment. Consider PEP 580. It uses the old `tp_print` slot as an offset to mark the location o

[Python-Dev] Fixing the ctypes implementation of the PEP3118 buffer interface

2019-04-14 Thread Eric Wieser
I've recently been adding better support to Numpy 1.16 for interoperability with ctypes. In doing so, I came across two bugs in the implementation of the PEP3118 buffer interface within ctypes, affecting `Structure`s and arrays. Rather than repeating the issue summaries here, I've linked their tra

Re: [Python-Dev] Fixing the ctypes implementation of the PEP3118 buffer interface

2019-04-14 Thread Terry Reedy
On 4/14/2019 2:54 AM, Eric Wieser wrote: I've recently been adding better support to Numpy 1.16 for interoperability with ctypes. In doing so, I came across two bugs in the implementation of the PEP3118 buffer interface within ctypes, affecting `Structure`s and arrays. Rather than repeating the

Re: [Python-Dev] checking "errno" for math operaton is safe to determine the error status?

2019-04-14 Thread Xin, Peixing
VxWorks RTOS with 3rd party math lib. Thanks, Peixing -Original Message- From: Python-Dev [mailto:python-dev-bounces+peixing.xin=windriver@python.org] On Behalf Of Greg Ewing Sent: Friday, April 12, 2019 1:45 PM To: python-dev@python.org Subject: Re: [Python-Dev] checking "errno" f