As the title says ,what is the meaning of 'yield' that we find in the source code of odoo 16! ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
1278
Views
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
3
Nov 24
|
2947 | ||
|
5
Nov 24
|
7457 | ||
|
2
Oct 24
|
2883 | ||
|
4
Oct 24
|
1864 | ||
|
2
Oct 24
|
4017 |