- Notifications
You must be signed in to change notification settings - Fork750
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I use pythonnet to expose C# classes and libraries to python users, and a lot of the feedback I get sounds like "Can't this API be more pythonic and pep8?" I can sympathize with that. In my .NET code, I wouldn't want to see unusual styles coming from a library that I want to use, but my C# libraries and classes are also exposed to C# users, so I am not going to change them. Would there be an appetite for implementing within pythonnet or as some kind of plugin a pep8 adaptor, such that a C# class like this:
can be used from python like this:
Obviously, it doesn't need to transformeverything, (even without namespaces getting transformed, the above would still look more pythonic). And if it isn't possible because of collisions, maybe something should be logged somewhere and no transformation would be done. And it probably shouldn't be done by default. With all those caveats in mind, what do you all think? |
BetaWas this translation helpful?Give feedback.