Python
Python copied to clipboard
Python connection stalling on argparse
I am using Lighttable v0.6.2. If I try to evaluate (Ctrl-Shift-Enter) the following code snippet, Lighttable stalls under Python v3.3.3.
!/usr/bin/python
import argparse
parser = argparse.ArgumentParser() parser.add_argument( "-n","--nodes", help ="number of host nodes", type = int, default = 20 ) parser.add_argument( "-s", "--server", help ="address", type = str, default= "http://localhost" ) args = parser.parse_args() server=args.server n_hosts = args.nodes