2 ms·
If you're not storing that somewhere, but rather typing it, I find you're often better off by being a little more forgiving, eg: $ grep -r "if __name__ == ._
by e12e 14y ago
If you're not storing that somewhere, but rather typing it, I find you're often better off by being a little more forgiving, eg:
$ grep -r "if __name__ == .__main__." /path/to/lib
or even:
$ grep -Er 'if\W__name__\W==\W.__main__.'