Package lemon :: Package external :: Package Cheetah :: Package Utils :: Package optik :: Module option :: Class Option
[show private | hide private]
[frames | no frames]

Class Option


Instance attributes:
  _short_opts : [string]
  _long_opts : [string]

  action : string
  type : string
  dest : string
  default : any
  nargs : int
  const : any
  callback : function
  callback_args : (any*)
  callback_kwargs : { string : any }
  help : string
  metavar : string

Method Summary
  __init__(self, *opts, **attrs)
  __str__(self)
  check_value(self, opt, value)
  process(self, opt, value, values, parser)
  take_action(self, action, dest, opt, value, values, parser)
  takes_value(self)

Class Variable Summary
tuple ACTIONS = ('store', 'store_const', 'store_true', 'store_...
list ATTRS = ['action', 'type', 'dest', 'default', 'nargs', '...
list CHECK_METHODS = [<function _check_action at 0x012FF930>,...
tuple STORE_ACTIONS = ('store', 'store_const', 'store_true', '...
dict TYPE_CHECKER = {'int': <function check_builtin at 0x012F...
tuple TYPED_ACTIONS = ('store', 'append', 'callback')
tuple TYPES = ('string', 'int', 'long', 'float', 'complex')

Class Variable Details

ACTIONS

Type:
tuple
Value:
('store',
 'store_const',
 'store_true',
 'store_false',
 'append',
 'count',
 'callback',
 'help',
...                                                                    

ATTRS

Type:
list
Value:
['action',
 'type',
 'dest',
 'default',
 'nargs',
 'const',
 'callback',
 'callback_args',
...                                                                    

CHECK_METHODS

Type:
list
Value:
[<function _check_action at 0x012FF930>,
 <function _check_type at 0x012FF970>,
 <function _check_dest at 0x012FF9B0>,
 <function _check_const at 0x012FF9F0>,
 <function _check_nargs at 0x012FFA30>,
 <function _check_callback at 0x012FFA70>]                             

STORE_ACTIONS

Type:
tuple
Value:
('store', 'store_const', 'store_true', 'store_false', 'append', 'count\
')                                                                     

TYPE_CHECKER

Type:
dict
Value:
{'complex': <function check_builtin at 0x012FF770>,
 'float': <function check_builtin at 0x012FF770>,
 'int': <function check_builtin at 0x012FF770>,
 'long': <function check_builtin at 0x012FF770>}                       

TYPED_ACTIONS

Type:
tuple
Value:
('store', 'append', 'callback')                                        

TYPES

Type:
tuple
Value:
('string', 'int', 'long', 'float', 'complex')                          

Generated by Epydoc 2.0 on Mon Nov 10 15:08:06 2003 http://epydoc.sf.net