In the book D. Bizley "Python. Detailed reference "there is a judgment:
The fact that all objects in Python are first-class objects is often underestimated by novice programmers, whereas this allows you to write very compact and flexible programs. For example, suppose there is a text string, such as “GOOG, 100,490.10”, and you need to turn it into a list of fields, completing the necessary type conversions along the way. The following is a clever way to implement such a conversion: a list of types is created (which are also first-class objects) and several simple list processing operations are performed:
>>> line = "GOOG,100,490.10" >>> field_types = [str, int, float] >>> raw_fields = line.split(',') >>> fields = [ty(val) for ty,val in zip(field_types,raw_fields)] >>> fields ['GOOG', 100, 490.10000000000002]
Are there any other useful "for beginner" examples of using this feature of the Python language?
And it seems that it is more like a source of puzzling mistakes.