[ 
https://issues.apache.org/jira/browse/SYSTEMML-954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15517957#comment-15517957
 ] 

Niketan Pansare edited comment on SYSTEMML-954 at 9/24/16 12:09 AM:
--------------------------------------------------------------------

I agree with [~mboehm7]. [~sandeepn]: I ran some sanity tests on your PR and 
all cases works as expected :) 


was (Author: niketanpansare):
I agree with [~mboehm7]. [~sandeepn]: I ran some sanity tests on your PR and 
all cases works as expected :) 

```
X = range(5, 2) # range(5, 2, -2), range(1, 5), ... works as expected
# Also, range(5,1,1) throws LanguageException
str = toString(X)
print(str)
```

> 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)

Reply via email to