ActivePerl/Python: Problems accessing variables via IActiveScript::GetScriptDispatch

Mark Hammond mhammond at skippinet.com.au
Thu Feb 13 16:16:47 EST 2003


James Hugard wrote:
...
> PYTHONSCRIPT
>    - Supports retrieving and calling global procedures
>    - Supports accessing global variables (see notes)
>    - No support for accessing class objects or members (see notes)

Sounds correct.

> PythonScript returns E_NOTIMPL for both variables and class instances when
> attempting access via pDispatch->Invoke( ..., DISPATCH_PROPERTYGET, ...).
> However, calling pDispatch->Invoke( ...,
> DISPATCH_PROPERTYGET|DISPATCH_METHOD, ...) seems to work fine for variables,
> but still returns E_NOTIMPL when attempting to access an object (class
> instance) or object properties.

We can probably fix this pretty easy - feel free to mail me - ideally, 
with some sample code that demonstrates the problem.

> If unsupported, are there plans to provide this capability in future
> versions of PerlScript or PythonScript?

Well, no plans as such, but it should be quite trivial to fix for 
Python.  The whole engine is itself written in Python, so how hard can 
it be ;)

Mark.





More information about the Python-list mailing list