Skip to content

Comment on IPython gets $1.15M fundingparent

Comments

You use it inside IPython, with a command like:

%run -n foo.py

You can't set __name__ to arbitrary values. It's either '__main__' like when running a script, or (with -n) the module name, like when performing an import.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.