Author nahco314
Recipients nahco314
Date 2021-09-14.04:56:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631595400.46.0.316069984941.issue45191@roundup.psfhosted.org>
In-reply-to
Content
I think that the emphasis of the errors caused by some of these equivalent expressions is wrong or inconsistent.
expr1: 1 .bit_length("aaa")
expr2: 1 \
    .bit_length("aaa")
expr3: 1 \
    .bit_length(*["aaa"])

Below is the __traceback__.tb_lineno of the error given when running each version of the expression. (kubuntu20.0.4, CPython (pyenv))
The line number and location shown in the error message also correspond to this.

in 3.6.14, 3,7,11
expr1: 0
expr2: 1
expr3: 1

in 3.8.11, 3.9.6
expr1: 0
expr2: 0
expr3: 0

in 3.10.0rc1, 3.11-dev(3.11.0a0)
expr1: 0
expr2: 1
expr3: 0

I think the results in 3.6.14 and 3.7.11 are correct.
History
Date User Action Args
2021-09-14 04:56:40nahco314setrecipients: + nahco314
2021-09-14 04:56:40nahco314setmessageid: <1631595400.46.0.316069984941.issue45191@roundup.psfhosted.org>
2021-09-14 04:56:40nahco314linkissue45191 messages
2021-09-14 04:56:40nahco314create