[issue42565] Traceback (most recent call last): File "", line 1, in NameError: name 'python' is not defined

2020-12-03 Thread Siva Krishna Giri Babu Avvaru
Change by Siva Krishna Giri Babu Avvaru : -- nosy: sivakrishnaavvaru priority: normal severity: normal status: open title: Traceback (most recent call last): File "", line 1, in NameError: name 'python' is not defined type: compile error versions: Python 3.9 ___

[issue42565] Traceback (most recent call last): File "", line 1, in NameError: name 'python' is not defined

2020-12-03 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Please attach the program to reproduce the issue along with the full traceback in the issue body. It looks like you are trying to use a variable named 'python' which is not present at the given scope during execution. -- nosy: +xtreak typ

[issue42559] random.getrandbits: Should it be explicit that it returns unsigned/non-negative integer?

2020-12-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Do you care to propose a minimal PR adding the word "unsigned"? Marking as low priority because the referenced docs are over a decade old and we've not seen a single case of someone being confused by it. -- assignee: -> rhettinger components: +Do

[issue42565] Traceback (most recent call last): File "", line 1, in NameError: name 'python' is not defined

2020-12-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: Looks like someone tried to run python inside an interactive Python shell, rather than the command line. I'm moving to pending and will eventually close unless they add a repro for some actual bug. -- nosy: +josh.r status: open -> pending __

[issue42564] "from .__init__ import ..." syntax imports a duplicate module

2020-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Other example is: >>> import sys >>> import xml >>> import xml.__init__ >>> sys.modules['xml'] >>> sys.modules['xml.__init__'] >>> sys.modules['xml'] is sys.modules['xml.__init__'] False I'm not sure we should do anything about it other than say "Don't do

[issue42563] max function reports type errors in incorrect order

2020-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is because the code of the main() function is roughly equivalent to result = next(iter) for item in iter: if item > result: result = item It can be changed to use "result < item" instead of "item > result", but it can has s

<    1   2