Re: [Python-ideas] [Brainstorm] Testing with Documented ABCs

2018-11-27 Thread Marko Ristin-Kaufmann
Hi Abe, I've been pulling a lot of ideas from the recent discussion on design by > contract (DBC), the elegance and drawbacks > of doctests > , and the amazing talk >

[Python-ideas] [Brainstorm] Testing with Documented ABCs

2018-11-27 Thread Abe Dillon
I've been pulling a lot of ideas from the recent discussion on design by contract (DBC), the elegance and drawbacks of doctests , and the amazing talk given by

Re: [Python-ideas] Make None a subclass of int [alternative to iNaN]

2018-11-27 Thread Abe Dillon
I'm -1 on this idea. None is and should remain domain-independent. Specific domains may require additional special values like "NaN", "+/-inf", etc. for floating point math, in which case it makes more sense to define a domain-specific special value than compromise the independence of None. Doing s

Re: [Python-ideas] __len__() for map()

2018-11-27 Thread Terry Reedy
On 11/26/2018 4:29 PM, Kale Kundert wrote: I just ran into the following behavior, and found it surprising: >>> len(map(float, [1,2,3])) TypeError: object of type 'map' has no len() I understand that map() could be given an infinite sequence and therefore might not always have a length. The