Quantcast
Channel: OpenERP Help - Individual question feed
Viewing all articles
Browse latest Browse all 6389

why "lambda *a : ..."

$
0
0
Hi, I am newbie on OpenERP ... and Python For example in the "idea" module, I don't understand the syntax about "lambda" In idea_idea class, why the code is : _defaults = { 'state': lambda *a: 'draft', } rather than simply : _defaults = { 'state': 'draft', } ?

Viewing all articles
Browse latest Browse all 6389

Latest Images

Trending Articles



Latest Images