I'm developing a Python project to utilize a set of existing protobuf files.

One of these files uses the following enum definition:

enum Enum
{
    None = 100;
}

That compiles to:

None = 100


In Python, but None is a reserved word in Python, so the file crashes with 
SyntaxError: 
cannot assign to None upon import.

Of course, this can be solved by changing the None in the protobuf file to 
any non-reserved word, but many rely on these protobuf files so that's an 
expensive solution.

Anything else I can do?

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/92ce6e20-83b5-4d3d-a4d6-af18762e8d16%40googlegroups.com.

Reply via email to