* When a wrong number of arguments is given, we now display the name
of the python function in the exception message
* When trying to access an invalid argument, we now display the index
of that argument
Change-Id: I6d4e07f078ebf32e083b4184a33be6f2d152f8a4
This allows scripts to do "import bla" for a bla found in the
same directory, as is the behavior of the Python interpreter
running on a script.
For P726-018
Change-Id: I6a9ab2a63703bae6516e0dbcb50311821b5fa029
To build a Windows DLL we do not want a single __declspec(dllexport) as
in this case only the routines marked with this attribute will be
exported from the DLL.
For P120-046.
Change-Id: I02ca24cebe2740728bfe6584ea9bbff1e4a9c86e
for OB24-013
Add traces to help investigate python issues (list all callbacks from
python to Ada in the traces)
Change-Id: I38c7680a82a520f89f53f54ab06fe7fe3adbe25b
We now use a proper refcounted type rather than do our own refcounting.
This also ensures that a given Ada Class_Instance owns a single reference
to a python object, not one per refcount.
Part of M806-002
Change-Id: Ic8a1d0c7c483fb7b5978f9cbad0c4bbc51dcba6c
On_PyObject_Data_Destroy is used to decref the data
set in Get_User_Data: this should include Tmp allocated at line 2907.
For OB17-054
Change-Id: Ied389a2669770fb0bc179c3d6ac298ea0204bf85
* GNATCOLL.Scripts (Set_Address_Return_Value): New primitive to set a
return value as an address. Uses a proper type so that the address is
passed correctly on all platforms. The representation on the script
side is system dependent.
Implemented to pass Clang translation units from Ada to python.
Change-Id: I3ba72b06ddabf99c1b939286bce817477eb814d1
TN: OB15-005
Direct calls of Ada.Exceptions.Raise_Exception is replaced by extended
raise statement for consistency with other code.
Change-Id: I5aaba84138ef3b5527a44f43fb50f6d629d50663
Kw expected to be dictionary, so setting it to None looks like invalid.
It seems the same fix was applied in another line, where there is
comment:
-- NOT: Py_None, which is not a valid dictionary
Change-Id: I588ecde33c4dab838122e55cff191382ea1417e5
* GNATCOLL.Scripts.Python (Get_Method): Clear the exception when the
method was not found. That will allow python execution to continue
normally
Change-Id: I0fedbb99597e8c5d0e162d1d4c868312eae1bab5