Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python class with optional arguments

class Optioncal_transition(object):
  def __init(self, **args):
    self.chemical = args.get('chemical')
    self.i = args.get('i')
    self.j = args.get('j', self.i)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #class #optional #arguments
ADD COMMENT
Topic
Name
9+8 =