Skip to content

Slice numbers in result events should be integers #502

@dan-distributive

Description

@dan-distributive

Issue type

Bug

How did you install PythonMonkey?

Installed from pip

OS platform and distribution

macOS sequoia 15.5

Python version (python --version)

3.12.6

PythonMonkey version (pip show pythonmonkey)

1.3.0

Bug Description

slice number is shown with a float (e.g. "sliceNumber": 10.0 ) whereas it should be an integer

Standalone code to reproduce the issue

my_job.on('result',     lambda res: print(json.dumps(res, indent=4).replace('\\n', '\n')))

Relevant log output or backtrace

{
    "job": "j47az5Gl9lc36jFm8pJnjH",
    "sliceNumber": 10.0,
    "result": 46.0
}

Additional info if applicable

What branch of PythonMonkey were you developing on? (If applicable)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions