Python icon indicating copy to clipboard operation
Python copied to clipboard

Python connection stalling on argparse

Open andreoli opened this issue 11 years ago • 0 comments

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

andreoli avatar Feb 06 '14 13:02 andreoli