Thanks to visit codestin.com
Credit goes to github.com

Skip to content

System.Dynamic.ExpandoObject and IDynamicMetaObjectProvider support #2096

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bnuzhouwei opened this issue Jan 31, 2023 · 1 comment
Closed

Comments

@bnuzhouwei
Copy link

bnuzhouwei commented Jan 31, 2023

Dyamic object can't be used in CPython

Python.Runtime.PythonException:“'ExpandoObject' object has no attribute 'a'
using (Py.GIL())
{
    using (var scope = Py.CreateScope())
    {
        dynamic obj = new System.Dynamic.ExpandoObject();
        obj.a = "a";
        scope.Set("p", Math.Pow);
        scope.Set("obj", obj);
        scope.Eval("obj.a");
    }
}
@filmor
Copy link
Member

filmor commented Jan 31, 2023

This is not a support channel.

  1. Only report bugs (or suspected bugs) in here
  2. Search the existing issues before posting, there is already a longstanding open issue on this subject: Add support for DLR types #72
  3. If you have questions, open a Discussion in the Q&A section

@filmor filmor closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants