Skip to content

Immediate Result and Global Result usage in Python #45

@felipemarkson

Description

@felipemarkson

Hi!

I have a question about the two ways to use DSS's APIs.

The dss_capi provides two modes of usage: Immediate Result (IR) and Global Result (GR).

These two modes are also imported on dss_python, but by default, only the Global Result is used:

https://github.com/dss-extensions/dss_python/blob/2dbc72ed875108d3f98d21cb0a488bab6b0d7f4c/dss/v7.py#L22-L24

In the same documentation of dss_capi is cited that:

It removes two arguments of the function call -- it may seem an exaggeration, but it does have an impact on Python, for example.

But, what are the differences between these two modes of usage?

When is the IR more appropriate instead of GR?

And, for the last, is there a way to create a local instance of DSS? For example, that I can instantiate inside a function and don't changes others? If not, is there a way to implement it?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions