KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ EmbedPy question, function in python that returns more than one value. Re: EmbedPy question, function in python that returns more than one value.

  • sstantoncook

    Member
    August 13, 2021 at 12:00 am

    Hi Kumar,

    To index into a python objext you can use the syntax of a backtick character “`” to convert to q. E.g.
    variable`

    If you have a list of variable you want to index into you could alternatively write

    {x ` } each list_of_python_variables

    or
    list_of_python_variables@:`

    Depending on which syntax you prefer.

    Cheers,

    Sam