Skip to Main Content
InterSystems Ideas
We love hearing from our users. Tell us what you want to see next and upvote ideas from the community.
* Bugs and troubleshooting should as usual go through InterSystems support.
Status Future consideration
Categories InterSystems IRIS
Created by Evgeny Shvarov
Created on Oct 3, 2022

Embedded Python: Add a built-in variable to represent class

Currently coding an embedded python method in ObjectScript class when I want to call a classmethod of the same class I need to use the construction:

iris.cls(__name__).ClassMethod()

Would it be possible to add a built-in variable, e.g. cself, that could be used to refer to classmethods? E.g.:

cself.Classmethod()

this will be more readable, convenient, less typing.

  • ADMIN RESPONSE
    Jun 9, 2023

    Thank you for submitting the idea. The status has been changed to "Future consideration".

    Stay tuned!