Opened 7 years ago

Last modified 7 years ago

#29382 closed Uncategorized

don't call objects with __call__ instantly — at Version 3

Reported by: alex Owned by: nobody
Component: Template system Version: 1.11
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by alex)

Some objects are callable but have sub-attributes.
In my case the wtforms Label object.
I cannot access Label.text because Label is callable and the resulting str object has not the attribute text.
Please evaluate first the object fully and then check if object is callable. Elsewise the behaviour is inconsistent and confusing.

Sorry for the changes

Change History (3)

comment:1 by alex, 7 years ago

Description: modified (diff)

comment:2 by alex, 7 years ago

Description: modified (diff)

comment:3 by alex, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top