Re: [Python-ideas] Unified TLS API for Python

2017-02-04 Thread Christian Heimes
On 2017-02-04 19:18, Cory Benfield wrote: > >> On 3 Feb 2017, at 18:30, Steve Dower wrote: >> >> On 02Feb2017 0601, Cory Benfield wrote: >>> >>> 4. Eventually, integrating the two backends above into the standard >>> library so that it becomes possible to reduce the reliance on OpenSSL. >>> This

Re: [Python-ideas] Unified TLS API for Python

2017-02-04 Thread Cory Benfield
> On 3 Feb 2017, at 18:30, Steve Dower wrote: > > On 02Feb2017 0601, Cory Benfield wrote: >> >> 4. Eventually, integrating the two backends above into the standard >> library so that it becomes possible to reduce the reliance on OpenSSL. >> This would allow future Python implementations to ship

Re: [Python-ideas] math.nextafter

2017-02-04 Thread Steve Dower
These days, the subset of C99 supported by MSVC is "most" of it, so feel free to start off by assuming the best, at least for new features (the version we use for 2.7 obviously is not improving). Cheers, Steve Top-posted from my Windows Phone -Original Message- From: "tritium-l...@sdam

Re: [Python-ideas] math.nextafter

2017-02-04 Thread Stephan Houben
Hi all, Visual C++ 2015 supports this one: https://msdn.microsoft.com/en-us/library/h0dff77w.aspx In any case, this is easy to implement an efficient fallback in C, unlike the fma() function we discussed some time ago. To put this in a bit wider perspective: would it be useful to investigate ho

Re: [Python-ideas] math.nextafter

2017-02-04 Thread tritium-list
The presence of the function in C99’s math.h isn’t strictly useful unless it is also in the MSVC math.h. MSVC only supports a subset of C99 From: Python-ideas [mailto:python-ideas-bounces+tritium-list=sdamon@python.org] On Behalf Of Juraj Sukop Sent: Saturday, February 4, 2017 6:31 AM T

[Python-ideas] math.nextafter

2017-02-04 Thread Juraj Sukop
Hello! Function `nextafter(x, y)` returns the next representable value of `x` in the direction of `y`, and if `x` equals to `y`, `y` is returned. [1] It is useful for incrementing/decrementing floating-point number by the smallest amount possible or for testing if two numbers are closest to each