Skip to Content
Menu
This question has been flagged
1 Reply
1523 Views

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

Avatar
Discard
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
Discard
Related Posts Replies Views Activity
1
Apr 25
2285
1
Apr 25
2979
1
Apr 25
675
4
Mar 25
5270
2
Feb 25
1604