I'm currently doing tutorial for django-rest-framework.
I've noticed something weird in it, I'm not sure if it is specific for Django or whole Python. Please look at code below:
linenos = self.linenos and 'table' or False
It looks like shortened version of conditional instruction, but what is name of that operation? I can't find any specific information about it.
lineos is a boolean variable.