Jump to content
Korean Random
Sign in to follow this  
XVM-Tanker

request - py_macro

Recommended Posts

Hi,

there is a problem with "math_div" in "math.py":

 

Now it is called:

 

# Division. Деление.
@xvm.export('math.div')
def math_div(a, b):
    return a / b

 

It should be:

 

# Division. Деление.
@xvm.export('math.div')
def math_div(a, b):
    return a / float(b)

 

Is it posssible to be fixed by default?

I have to change it every time I update XVM.

 

Thx :)

Share this post


Link to post

Short link
Share on other sites

Put that modified function in a separate file, so you don't need to change it every XVM update.

Edited by konrad509

Share this post


Link to post

Short link
Share on other sites

It's possible to fix, but if you'll create pull request, it would be much easier.

Share this post


Link to post

Short link
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...