Variable objects should have a sensible __repr__
Bug #194031 reported by
Kevin McDermott
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Storm |
Confirmed
|
Low
|
Unassigned |
Bug Description
From the logs for Landscape...
TimeoutError: 'SELECT memory_
memory_
memory_info WHERE memory_
memory_
memory_
0x2ac733ad3690>, <storm.
0x2aaaad072450>, <storm.
0x2ac733ad33d0>]
It would have been more useful to know that the IntVariable and DateTimeVariables were.
To post a comment you must log in.
The main problem I see with your branch as it stands is the use of Variable.get().
If the variable is set to a lazy value your repr() implementations will emit resolve-lazy-value, which will run an SQL query to resolve the value and modify the variable's internal state. As the repr() method is mainly used in debugging, it would be good to avoid this.