Skip to Content
Menu
This question has been flagged
1 Reply
1278 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
3
Nov 24
2947
5
Nov 24
7457
2
Oct 24
2883
4
Oct 24
1864
2
Oct 24
4017