[Django]-'if' v.s. `while` to a `functools.partial.func`

2πŸ‘

βœ…

It’s not about number of arguments but about the depth of how many times a callback was wrapped in another callback.

For one iteration, while is the same as if so that doesn’t really matter. However, if someone called lookup_str with callback which was itself a callback, while would still just keep on to work.

πŸ‘€Ecir Hana

0πŸ‘

πŸ‘€Wizard

Leave a comment