[Tutor] Good Taste Question: Using SQLite3 in Python
Roel Schroeven
roel at roelschroeven.net
Thu Apr 30 21:52:59 CEST 2015
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
More information about the Tutor
mailing list