Re: [Python-ideas] New function to add into the "random" module

2017-02-02 Thread Paul Moore
On 2 February 2017 at 12:01, wrote: > P.P.S.: The function is tested, it’s working 😊 > First of all, thanks for your suggestion, and for taking the time to help improve Python. As noted, random.uniform probably does what you want, so we don't really need this function. But in case it's of inter

Re: [Python-ideas] New function to add into the "random" module

2017-02-02 Thread Franklin? Lee
On Thu, Feb 2, 2017 at 7:01 AM, wrote: > from random import * > > > > def randfloat(x , y , maxfloatpt=None): > > if x > y: > > x , y = y , x > > lenx = len(str(x)) > > leny = len(str(y)) > > intx = int(x) > > inty = int(y) > > bigger = max(lenx,leny) > > if ma

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

2017-02-02 Thread Cory Benfield
> On 2 Feb 2017, at 11:17, Paul Moore wrote: > > One thing that wasn't clear to me was the backward compatibility > implications. Will the existing ssl module and its API be retained, or > will it be modified/deprecated? Will Windows/OSX distributions of > Python ultimately stop shipping with Op

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

2017-02-02 Thread Cory Benfield
> On 2 Feb 2017, at 11:03, Robert Collins wrote: > > Nice. What's needed to move this forward? In the short term, for the PEP, nothing more than review and sanity checking. Antione has kindly provided some detailed review on GitHub (thanks Antoine!), and the more of that we get the better. On

Re: [Python-ideas] OS related file operations (copy, move, delete, rename...) should be placed into one module

2017-02-02 Thread George Fischhof
2017-01-12 20:11 GMT+01:00 Todd : > On Thu, Jan 12, 2017 at 11:17 AM, Chris Barker - NOAA Federal < > chris.bar...@noaa.gov> wrote: > >> I agree that this has been a bit of a wart for a long time. >> >> While the old “let’s treat strings as paths” modules are split up like >> you said, pathlib can

Re: [Python-ideas] New function to add into the "random" module

2017-02-02 Thread Daniel Moisset
Hi Terry, the functionality you have provided is already covered by the random.uniform function On 2 February 2017 at 12:01, wrote: > Hi, my name is Terry, and I’d like to propose a small function that could > be added into the Python’s “random” module. > > > > This function is for generating a

[Python-ideas] New function to add into the "random" module

2017-02-02 Thread himchanterry
Hi, my name is Terry, and I’d like to propose a small function that could be added into the Python’s “random” module. This function is for generating a random float/decimal number. I would like to know if there’s such function that does the same thing, if there is, please point out to me. If no

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

2017-02-02 Thread Paul Moore
On 2 February 2017 at 10:38, Cory Benfield wrote: > This PEP would define a standard TLS interface in the form of a collection of > abstract base classes. This interface would allow Python implementations and > third-party libraries to provide bindings to TLS libraries other than OpenSSL > that ca

[Python-ideas] Unified TLS API for Python

2017-02-02 Thread Cory Benfield
All, A recent change in the Fastly policy has led the distutils-sig to discover that there is a very real risk of many macOS installations of Python being entirely unable to access PyPI using pip, due to the fact that they are linked against the ancient system OpenSSL (see [1]). This problem ul

Re: [Python-ideas] [docs] https://docs.python.org/fr/ ?

2017-02-02 Thread INADA Naoki
>> Does hosting on Read the Docs makes any of this easier/harder? > > RTD models translations as separate projects, so it should make it > easier: > http://docs.readthedocs.io/en/latest/localization.html#project-with-multiple-translations > > Most importantly, because they're separate projects, ea