Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix wrong array instantiation syntax
Otherwise it throws `TypeError: Cannot convert 10 to System.Int32[]`

Documented in pythonnet/pythonnet#788 and pythonnet/pythonnet#251
  • Loading branch information
christabella authored Nov 22, 2020
commit d00c3b571a2fe84bbb0970a2a5127743098700fc
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ make it easy to create managed arrays from Python:
```python
from System import Array

myarray = Array[int](10)
myarray = Array[int](range(10))
```

Managed arrays support the standard Python sequence protocols:
Expand Down