Re: [Cython] unsupported meta-programming-related features

2016-04-20 Thread Robert Bradshaw
On Tue, Apr 19, 2016 at 11:22 PM, Xuancong Wang wrote: > Sorry, I have a few extra steps which map all parser symbols into the > global space. > > parser = argparse.ArgumentParser(...) > parser.add_argument('-ht', '--headtail', help='add headtail', > default=False, action='store_true') > opt=pars

Re: [Cython] unsupported meta-programming-related features

2016-04-19 Thread Xuancong Wang
Sorry, I have a few extra steps which map all parser symbols into the global space. parser = argparse.ArgumentParser(...) parser.add_argument('-ht', '--headtail', help='add headtail', default=False, action='store_true') opt=parser.parse_args() globals().update(vars(opt)) xuancong On Wed, Apr 20,

Re: [Cython] unsupported meta-programming-related features

2016-04-19 Thread Stefan Behnel
Xuancong Wang schrieb am 19.04.2016 um 11:13: > Python supports meta-programming, in which a variable with name > specified in a string can be created at run-time. One built-in library > which make use of this is argparse. > > For example: > > parser.add_argument('-N', '--max_threads', help='maxi

Re: [Cython] unsupported meta-programming-related features

2016-04-19 Thread Robert Bradshaw
On Tue, Apr 19, 2016 at 2:13 AM, Xuancong Wang wrote: > Dear Cython developers, > > Python supports meta-programming, in which a variable with name > specified in a string can be created at run-time. One built-in library > which make use of this is argparse. > > For example: > > parser.add_argume

[Cython] unsupported meta-programming-related features

2016-04-19 Thread Xuancong Wang
Dear Cython developers, Python supports meta-programming, in which a variable with name specified in a string can be created at run-time. One built-in library which make use of this is argparse. For example: parser.add_argument('-N', '--max_threads', help='maximum number of concurrent decoding t