[
https://issues.apache.org/jira/browse/SYSTEMML-954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15517292#comment-15517292
]
Matthias Boehm commented on SYSTEMML-954:
-----------------------------------------
just to be clear here: the increment default is 1.0 if FROM <= TO but -1.0 if
FROM > TO. Therefore, we need to be careful when handling this on parser level
as both FROM and TO can be variables which values are unknown during
compilation.
> PyDML's range() needs all 3 arguments
> -------------------------------------
>
> Key: SYSTEMML-954
> URL: https://issues.apache.org/jira/browse/SYSTEMML-954
> Project: SystemML
> Issue Type: Bug
> Components: PyDML
> Reporter: Sandeep Narayanaswami
> Assignee: Sandeep Narayanaswami
> Priority: Trivial
>
> PyDML's range() breaks when called with two arguments, eg. range(1, 10). This
> is at odds with the behavior of Python's range, and of DML's seq() which has
> a default value of 1.0 for the increment argument and thus does not break
> when called, eg, seq(1, 10).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)