Thursday, June 8, 2017

Re: Adding a attribute to a model property

On Thursday 08 June 2017 16:18:42 Bernd Wechner wrote:

 

> This works charmingly. Though I admit I don't fully understand it. The

> type "property" passed to isinstance seems to be a built in type as I

> don't import it anywhere and I can't find a definition (I use PyDev

> and it brilliantly lets me select almost anything and press F3 and

> takes me to its definition, but not for this 'property' keyword). And

> yet it's not documented here:

>

> https://docs.python.org/3.1/library/stdtypes.html

 

Nope, because it's a built-in function.

--

Melvyn Sopacua

No comments:

Post a Comment