Now here's a strange question:
I'm working with C# and Python and we're using COM for interoperability. The issue comes up when implementing an interface in C# and using it in Python, specifically, when attempting to use functions with a return value, but with no parameters. Implementing such a function in ATL C++ causes no problems, so I believe this is an issue with C#, not Python. I put the thread in CLR because it's COM interop, but if it's more appropriate in the C# forums please move it.
Anyways,
Python first attempts to Invoke something like this with an invoke type of PROPERTYGET. If this fails, it tries again with invoke type FUNC. The problem is, it doesn't fail.
What I want to know is if it's possible to stop C# from responding to a PROPERTYGET style invoke on a parameterless function by calling the function and returning its return value, and instead have it fail.