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 Ideas Contest
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
    May 9, 2025

    Thank you for submitting an idea for the Ideas contest. The status changed to "Ideas Contest".

    Please answer the experts' clarifying questions, if any, during the contest and voting period.