Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adding support for set and frozenset objects#437

Answeredbypyscripter
oleg-oleinik asked this question inQ&A
Discussion options

Hello,
Do you plan to connect python objects of type set and frozenset to p4d?
How can a Delphi program now iterate over such objects or check for the presence of specific values?
Thank you.

You must be logged in to vote

You can manipulate them using the sequence api.
For instance using VarPyth:

PySet := VarPythonEval('set("abc")');forvar memberin VarPyIterate(PySet)do  WriteLn(member);if PySet.Contains("a")then  Writeln('PySet contains "a");

Replies: 2 comments 1 reply

Comment options

You can manipulate them using the sequence api.
For instance using VarPyth:

PySet := VarPythonEval('set("abc")');forvar memberin VarPyIterate(PySet)do  WriteLn(member);if PySet.Contains("a")then  Writeln('PySet contains "a");
You must be logged in to vote
1 reply
@oleg-oleinik
Comment options

Thanks for the detailed answer.

Answer selected byoleg-oleinik
Comment options

I have turned this into an issue#438 so that the python set C-API will be added.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@oleg-oleinik@pyscripter

[8]ページ先頭

©2009-2025 Movatter.jp