CARVIEW |
Select Language
HTTP/2 200
date: Mon, 28 Jul 2025 04:57:22 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/DynamoDS/Dynamo.git
etag: W/"8d009ce96bfad7ad5931ff571c333d9c"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=GCmgGU%2BZ6RlDkxU3QjLqJlD8QDsi0KbJPpjGuQOi%2Fiww74hejDV9cYhIIGByG%2FHMWWn5j6GnNt4AAHExSuQQsgeq5OCjDdDBV6207100wpRI5W81%2FmZl5kTY4ThCEGTR790JtE5pC4htL3UzHF5gmwfmThLeRVX7OTtCOQZxnFcaSJp4t1RnU3JjgXlrcj%2BlhvgSeOISAA0u8DD5sdFrTfvt5PoBRPbs56c%2B84ylFrdt57yjQVto8e%2FH%2BjOU9wJ6kYgXzUUBIc66P%2FtV7SJ2mA%3D%3D--VYJqjeib9jhn3Y1X--IIW3fyg%2Bkl5IQnFnY5VZeg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1985723316.1753678641; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 04:57:21 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 04:57:21 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CD2C:3C6DB4:A7E426:E08DAB:68870331
Convert Python iterable to IList and IEnumerable (#10879) · DynamoDS/Dynamo@11f953b · GitHub
Copy file name to clipboardExpand all lines: src/Libraries/DSCPython/Encoders/ListEncodeDecoder.cs
Copy file name to clipboardExpand all lines: test/Engine/FFITarget/DummyCollection.cs
Copy file name to clipboardExpand all lines: test/Libraries/DynamoPythonTests/PythonEvalTestsWithLibraries.cs
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 658
Commit 11f953b
authored
Convert Python iterable to IList and IEnumerable (#10879)
Adds support to convert any Python iterable to an IList or IEnumerable
in the context of a function call using the CPython engine. The decoder
now checks if the PyObject returned is iterable instead of a sequence,
which is supported by the function we are using in Python.NET. Also,
IEnumerable, both generic and non-generic, is declared as a target type
to allow more conversion scenarios.
This should now allow converting dictionary view types, set and
frozenset to IList. It should also allow these and any other types that
are iterable (list, tuple, dictionary) to be converted to IEnumerable.1 parent b33821c commit 11f953bCopy full SHA for 11f953b
File tree
Expand file treeCollapse file tree
3 files changed
+98
-12
lines changedFilter options
- src/Libraries/DSCPython/Encoders
- test
- Engine/FFITarget
- Libraries/DynamoPythonTests
Expand file treeCollapse file tree
3 files changed
+98
-12
lines changedsrc/Libraries/DSCPython/Encoders/ListEncodeDecoder.cs
Copy file name to clipboardExpand all lines: src/Libraries/DSCPython/Encoders/ListEncodeDecoder.cs+3-2Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
| 15 | + | |
15 | 16 |
| |
16 | 17 |
| |
17 | 18 |
| |
| |||
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
33 |
| - | |
| 34 | + | |
34 | 35 |
| |
35 | 36 |
| |
36 | 37 |
| |
|
test/Engine/FFITarget/DummyCollection.cs
Copy file name to clipboardExpand all lines: test/Engine/FFITarget/DummyCollection.cs+5Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 |
| |
16 | 21 |
| |
17 | 22 |
| |
|
test/Libraries/DynamoPythonTests/PythonEvalTestsWithLibraries.cs
Copy file name to clipboardExpand all lines: test/Libraries/DynamoPythonTests/PythonEvalTestsWithLibraries.cs+90-10Lines changed: 90 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
| 55 | + | |
| 56 | + | |
55 | 57 |
| |
56 | 58 |
| |
57 | 59 |
| |
| |||
66 | 68 |
| |
67 | 69 |
| |
68 | 70 |
| |
69 |
| - | |
| 71 | + | |
70 | 72 |
| |
71 | 73 |
| |
72 | 74 |
| |
73 | 75 |
| |
74 | 76 |
| |
75 | 77 |
| |
76 | 78 |
| |
77 |
| - | |
| 79 | + | |
78 | 80 |
| |
79 | 81 |
| |
80 |
| - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
81 | 90 |
| |
82 | 91 |
| |
83 |
| - | |
| 92 | + | |
| 93 | + | |
84 | 94 |
| |
85 | 95 |
| |
86 | 96 |
| |
| |||
182 | 192 |
| |
183 | 193 |
| |
184 | 194 |
| |
185 |
| - | |
186 |
| - | |
| 195 | + | |
| 196 | + | |
187 | 197 |
| |
188 | 198 |
| |
189 | 199 |
| |
| |||
196 | 206 |
| |
197 | 207 |
| |
198 | 208 |
| |
199 |
| - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
200 | 213 |
| |
201 | 214 |
| |
202 |
| - | |
| 215 | + | |
203 | 216 |
| |
204 | 217 |
| |
| 218 | + | |
205 | 219 |
| |
206 | 220 |
| |
207 |
| - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
208 | 287 |
| |
209 |
| - | |
| 288 | + | |
| 289 | + | |
210 | 290 |
| |
211 | 291 |
| |
212 | 292 |
| |
|
You can’t perform that action at this time.
0 commit comments