I look at code samples at various sites and I often see variables (or I don’t understand what it is) with the _ character like this. For example: _f or with two __. I do not know Google for what keyword. Code example:
def run_once(f): """ >>> @run_once ... def foo(n): return n + 1 >>> foo(7) 8 >>> foo(0) 8 """ def _f(*args, **kwargs): if not hasattr(_f, "_retval"): _f._retval = f(*args, **kwargs) return _f._retval return _f if __name__ == "__main__": import doctest doctest.testmod()
help('_')works. - jfs