From d00c3b571a2fe84bbb0970a2a5127743098700fc Mon Sep 17 00:00:00 2001 From: Christabella Irwanto Date: Sun, 22 Nov 2020 11:33:45 +0000 Subject: [PATCH] Fix wrong array instantiation syntax Otherwise it throws `TypeError: Cannot convert 10 to System.Int32[]` Documented in https://github.com/pythonnet/pythonnet/issues/788 and https://github.com/pythonnet/pythonnet/issues/251 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dba1d49..4f49e80 100644 --- a/README.md +++ b/README.md @@ -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: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy