Im using pythonnet to work with a C# dll having the following Enum (from doc):
public enum DownloadOptions {
None = 0, // Download nothing
Hardware, // Download hardware only
Software // Download software only
}
Printing "Hardware" and "software" gives me "1" and "2" while printing "None" i get syntax error. It also works fine passing "1" or "2" to the C# function requiring this enum, but "0" is not accepted.
My feeling is that the name "None" is causing trouble here as it is a reserved python keyword.
Any ideas how I can solve this?