Skip to Content
Menu
This question has been flagged
1 Odpoveď
1545 Zobrazenia

As the title says ,what is the meaning of 'yield' that we find in the source code of odoo 16! ?

Avatar
Zrušiť
Best Answer

Hi Yasmine,

The Yield is a keyword  in Python.Actually it is similar to a return statement used for returning values or objects in Python. But the  difference is the yield statement returns a generator object to the one who calls the function which contains yield, instead of simply returning a value.

Regards

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
apr 25
2342
1
apr 25
3035
1
apr 25
723
4
mar 25
5339
2
feb 25
1642