[issue43130] Should this construct throw an exception?

2021-02-04 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43130] Should this construct throw an exception?

2021-02-04 Thread Tony Ladd
Tony Ladd added the comment: Dennis Thanks for the explanation. Sorry to post a fake report. Python is relentlessly logical but sometimes confusing. -- ___ Python tracker

[issue43130] Should this construct throw an exception?

2021-02-04 Thread Dennis Sweeney
Dennis Sweeney added the comment: This is the expected behavior. >From >https://docs.python.org/3/tutorial/introduction.html#first-steps-towards-programming """ In Python, like in C, any non-zero integer value is true; zero is false. The condition may also be a string or list value, in

[issue43130] Should this construct throw an exception?

2021-02-04 Thread Tony Ladd
New submission from Tony Ladd : The expression "1 and 2" evaluates to 2. Actually for most combinations of data type it returns the second object. Of course its a senseless construction (a beginning student made it) but why no exception? -- components: Interpreter Core messages: