Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [Ens] >  [Util] >  [PyByRef]
Private  Storage   

class Ens.Util.PyByRef extends %Library.RegisteredObject

Helper to return additional values from Embedded Python methods to ObjectScript methods Instead of a ByRef argument An instance of Ens.Util.PyByRef is created

	set status=##class(Ens.Util.PyByRef).%New()
Within the Python method set the property "Value" to for example a status code
	status.value=iris.cls("%SYSTEM.Status").ERROR(5001,"Some Error")
In the calling code, retrieve the content from "Value" property.
	if $$$ISERR(status.value) ...

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
1


Summary

Properties
value

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject


Properties

• property value as %RawString;


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.