Re: Is this mistake in utils.functional?

2020-02-06 Thread Tim Graham
The code is equivalent to: res = self.func(instance) instance.__dict__['self.name'] = self.func(instance) (except that self.func(instance) isn't called twice like it would be in this version) On Thursday, February 6, 2020 at 7:39:47 AM UTC-5, Akira Furude wrote: > > Currently I'm working on my

Is this mistake in utils.functional?

2020-02-06 Thread Akira Furude
Currently I'm working on my website, and has debugging it for a while. Using breakpoint() function I found bug/mistake/missed error in *django/utils/functional.py **cached_property.__get__(), line 48*. That line contains this: res = instance.__dict__[self.name] = self.func *(instance)*. May be I d