Changes between Initial Version and Version 1 of Ticket #23821, comment 8
- Timestamp:
- Sep 10, 2017, 8:01:26 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23821, comment 8
initial v1 18 18 ClonableArray.__init__(self, parent, children, check=check) 19 19 }}} 20 If I'm reading the last `if` statement correctly, it makes sure that `children` as passed to `ClonableArray.__init__` is a list of elements of the correct class and with the correct parent. But then an `elif` would be correct, wouldn't it? 20 If I'm reading the last `if` statement correctly, it makes sure that `children` as passed to `ClonableArray.__init__` is a list of elements of the correct class and with the correct parent. But then an `elif` would be correct, wouldn't it? (except that we would have to initialise `children` differently in the lines before)