[issue43134] (list have item) instate (item in list)

2021-02-14 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue43134] (list have item) instate (item in list)

2021-02-14 Thread Masoud Azizi
Masoud Azizi added the comment: Linus makes the Linux kernel without expecting benefits. USA start a war against German and Japan in ww2 without expecting benefits. Some times we should not think about benefits, just we will do it, if its the right thing. A child never will not born for benefi

[issue43134] (list have item) instate (item in list)

2021-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: @Masoud: There's a significant cost to introducing new syntax into Python; there need to be really significant benefits to justify that cost. In this case, the benefits are slight, and nowhere near the threshold needed to justify introducing a new keyword in

[issue43134] (list have item) instate (item in list)

2021-02-07 Thread Masoud Azizi
Change by Masoud Azizi : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue43134] (list have item) instate (item in list)

2021-02-07 Thread Masoud Azizi
Masoud Azizi added the comment: powerful languages always reduces multi-lines to one line. like python than make it ease to say a,b=1,3 and now we shroud have a command to say that i want to search in some one that i know him but still i did not know what i want to search I'm waiting to get t

[issue43134] (list have item) instate (item in list)

2021-02-07 Thread Masoud Azizi
Masoud Azizi added the comment: English is a powerful language too. In English we have just one way to say someone have something too. there is one way to say that are you have this or not cuz of that: in this one line simple code we check the search keyword after all 10 inputs print([input()

[issue43134] (list have item) instate (item in list)

2021-02-05 Thread Irit Katriel
Irit Katriel added the comment: I agree with Dennis' comments. New syntax should make the language more powerful, not reduce 2 lines to a 1-liner. -- nosy: +iritkatriel resolution: -> rejected stage: -> resolved status: open -> closed ___ Python

[issue43134] (list have item) instate (item in list)

2021-02-05 Thread Dennis Sweeney
Dennis Sweeney added the comment: You could express this as: a = [input() for i in range(10)] x = input() print(x in a) This is more clear IMO, because if you want to have something happen before something else, it's clearest to put them on separate lines, one after the other. I also don't

[issue43134] (list have item) instate (item in list)

2021-02-05 Thread Masoud Azizi
New submission from Masoud Azizi : Please append a code to reverse check?like that? print([input() for i in'_'*10] have input()) Instade of: print(input() in [input() for i in'_'*10] ) i want to check that: is last input in the inputs or not! -- messages: 386522 nosy: mablue priorit