[issue34554] Add match built-in function

2018-08-31 Thread mokhalid
mokhalid added the comment: Thanks so much, I will do it :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue34554] Add match built-in function

2018-08-31 Thread Eric Snow
Eric Snow added the comment: Thanks for the proposal. At first glance I actually kind of like the idea, though I can't offer much more feedback than that without taking some time to think it through. :) That said, proposals like this for new syntax and other new language features are best

[issue34554] Add match built-in function

2018-08-31 Thread mokhalid
Change by mokhalid : -- title: Add match built in functio -> Add match built-in function ___ Python tracker ___ ___ Python-bugs-list

[issue34554] add match built in function

2018-08-31 Thread mokhalid
mokhalid added the comment: sorry I forget to print text i mean: match([2,5,4,'Hello']): 2: print('here is 2') 6: print('here is 6') elif 'Hello': print('Hello world') 8:print('here is 8') elif 'python': print('Hello world') else: print('MoKhalid') -- ___

[issue34554] add match built in function

2018-08-31 Thread mokhalid
New submission from mokhalid : match built-in function feature request: what is the match function do? the match function is doing something like if but with quick easy syntax that even beginners can use. possible syntax: match(list or string or dictionary): condition: event here conditi