[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 Cor

[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 <https://bugs.python.org/issue43