LightTable / Python

Python language plugin for Light Table
MIT License
98 stars 51 forks source link

Python connection stalling on argparse #12

Open andreoli opened 10 years ago

andreoli commented 10 years ago

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