Hi,
I'm trying to understand the difference between these two, is h.Section() a method which returns a section object? In which case what is the h.Section class for?
Thanks in advance,
Mike
h.Section vs h.Section()
Moderator: hines
Re: h.Section vs h.Section()
to construct a hoc class instance from within python the syntax is
instance = h.ClassName(args)
So you can think of it as a method whch returns an instance of the class.
h.ClassName
returns a callable which could then be used to construct an instance. eg.
Section = h.Section
sec = Section()
instance = h.ClassName(args)
So you can think of it as a method whch returns an instance of the class.
h.ClassName
returns a callable which could then be used to construct an instance. eg.
Section = h.Section
sec = Section()