These are chat archives for pybee/general

May 2018
Yap Boon Peng
May 23 13:58

@freakboy3742 So I added an attribute 'message' of type org.python.Object in types/ and I've been trying to access it in via the following code:

            JavaOpcodes.GETFIELD('org/python/types/Generator', 'message', 'Lorg/python/Object;'),

after transpiled, I get the following error:

Exception in thread "main" RuntimeError: message
        at org.python.types.Generator.__next__(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.python.types.Function.invoke(
        at org.python.types.Function.invoke(
        at python.Test.module$import(
        at python.Test.main(

Am I missing something/doing something wrong here?