Dave Angel schreef op 2015-04-30 21:33:
Well, are you aware that _ has a meaning in the debugger? It holds the last value of an expression that wasn't assigned to a variable. or something like that.

Yes, I know the meaning of _ in Python's interactive mode. It's something I sometimes use for convenience, but never really rely on. To me interactive mode is for trying out simple things, not for serious stuff.

Anyway, as explained in this style guide it's better to use __ anyway instead of _:

http://docs.python-guide.org/en/latest/writing/style/#create-an-ignored-variable


--
The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom.
  -- Isaac Asimov

Roel Schroeven

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to