Re: Use dot notation to call a function without using parentheses

2020-12-22 Thread MRAB
On 2020-12-22 11:16, Walk More wrote: I am trying to use dot notation to call a function without using parentheses, see code section with *** I have looked into SimpleNamespace, namedTuple, dataclass... but no luck. Below is my sample code to date. Any suggestions? class MyTest: def

Re: Use dot notation to call a function without using parentheses

2020-12-22 Thread Walk More
On Tuesday, December 22, 2020 at 6:31:08 AM UTC-5, Python wrote: > Walk More wrote: > > I am trying to use dot notation to call a function without using > > parentheses, see code section with *** > > I have looked into SimpleNamespace, namedTuple, dataclass... but no l

Use dot notation to call a function without using parentheses

2020-12-22 Thread Walk More
I am trying to use dot notation to call a function without using parentheses, see code section with *** I have looked into SimpleNamespace, namedTuple, dataclass... but no luck. Below is my sample code to date. Any suggestions? class MyTest: def __init__(self): self.page1 = Page