8000 BUG: Using start/step as keywords only has incorrect behaviour · Issue #17764 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
BUG: Using start/step as keywords only has incorrect behaviour #17764
Closed
@piratla1

Description

@piratla1

Did version 1.18.5 break numpy.arange??

import numpy as np
print(np.__version__)
arr3 = np.arange(start=5)
print(arr3)
arr4 = np.arange(stop=8)
print(arr4)

1.18.5
[0 1 2 3 4]
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-18-11be2fcdeb56> in <module>
      3 arr3 = np.arange(start=5)
      4 print(arr3)
----> 5 arr4 = np.arange(stop=8)
      6 print(arr4)

TypeError: arange() missing required argument 'start' (pos 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0