osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

newb question about @property


On 05/10/2017 14:13, Steve D'Aprano wrote:
> On Thu, 5 Oct 2017 10:51 pm, bartc wrote:
> 
>> Am I allowed to say that it all seems a bit of a mess?
> 
> 
> You may or may not be pleased to learn that there's a push to create a "record
> like" or "struct like" datatype for Python 3.7 or 3.8, tentatively called
> a "Data Class" for now.
....
> https://www.python.org/dev/peps/pep-0557/

Yeah, maybe (looks a bit over-ambitious to me; why is it necessary to 
have typed fields? Or to do relative compares?)

But it reminds me a bit of the xkcd cartoon about the 14 competing 
standards becoming 15...

-- 
bartc