[Python-Dev] Path PEP -- a couple of typos.

2006-02-04 Thread Scott David Daniels
ext >lib_dir = "/lib" >libs = glob.glob(os.path.join(lib_dir, "*s.o")) >==> >lib_dir = Path("/lib") >libs = lib_dir.files("*.so") Probably that should be: ... libs = glob.g

Re: [Python-Dev] math.areclose ...?

2006-02-05 Thread Scott David Daniels
ative_tolerance. As to the equation itself, wouldn't a symmetric version be somewhat better? def nearby(x, y, rel_tol=1.e-5, abs_tol=1.e-8): return abs(x - y) < abs_tol + rel_tol * (abs(x) + abs(y)) This avoids areclose(0, 1e-8) != areclose(1e-8, 0), for example. --Scott David

Re: [Python-Dev] math.areclose ...?

2006-02-08 Thread Scott David Daniels
difference <= max(abs(x), abs(y)) * relative_tol) I use <=, since "zero-tolerance" should pass equal values. --Scott David Daniels [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python

[Python-Dev] Re: PEP 587 (Python Initialization Configuration) updated to be future proof again

2019-10-08 Thread David Cuthbert via Python-Dev
This is too-little, too-late (I was offline this past week), but for those who enjoy digging through historical archives, the Tcl folks had an interesting stubs mechanism that was *supposed* to solve the versioning issue (although I suspect it hasn’t actually done much in that regard) in additio

[Python-Dev] Re: PEP proposal to limit various aspects of a Python program to one million.

2019-12-04 Thread David Cuthbert via Python-Dev
Oddly, I did not get Mark's original e-mail, but am seeing replies here. Piggybacking off of James' email here... On 03/12/2019 16:15, Mark Shannon wrote: > Hi Everyone, > > I am proposing a new PEP, still in draft form, to impose a limit of one > million on various aspects

[Python-Dev] Re: Should set objects maintain insertion order too?

2019-12-16 Thread David Cuthbert via Python-Dev
On Mon 12/16/19, 9:59 AM, "David Mertz" mailto:me...@gnosis.cx>> wrote: Admittedly, I was only lukewarm about making an insertion-order guarantee for dictionaries too. But for sets I feel more strongly opposed. Although it seems unlikely now, if some improved implementation

<    17   18   19   20   21   22