About None value not stored to _ in interactive mode
Discussions on Python.org
About None value not stored to _ in interactive mode
None (as an expression value) is ignored in REPL. Not displayed (I knew that and it’s documented - everything OK here), but also not stored to the _ variable. I didn’t know and didn’t expect it. I tried to find some explanation and now I think it is not documented well. Did I overlook something or do you also think the documentation is incomplete in this regard? >>> 1 1 >>> _ 1 >>> 2 2 >>> _ 2 >>> None >>> _ 2 >>> The only related documentation on docs.python.org I could find are these two pi...
0 comments
No comments yet.