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
- MRP
This question has been flagged
1
Reply
1988
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 up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
5
Sep 25
|
25679 | ||
|
|
3
Aug 25
|
3946 | ||
|
|
1
May 25
|
3853 | ||
|
|
1
Apr 25
|
4661 | ||
|
|
1
Apr 25
|
5482 |