Colorbleed / fusionless

Python in Black Magic Design's Fusion that sucks less.
Other
15 stars 3 forks source link

Deciding on Python code style #3

Closed BigRoy closed 8 years ago

BigRoy commented 9 years ago

The fusionscript packages tries to wrap all of Fusion's coding functionality in a more Pythonic manner. With that in mind I've been wrapping the methods and classes in the PEP08 code style, even though Fusion uses UpperCamelCase functions.

I just wanted to check here if anyone has anything against rewriting it so it's more Pythonic and stepping away from how Fusion does it internally. Or would we rather stick with Fusion's code style even though it's far from good-looking in terms of Python code?

Example

Fusion


class Comp(object):
    def GetAttrs(self):
        pass

More Pythonic


class Comp(object):
    def get_attrs(self):
        pass
mottosso commented 9 years ago

+1 for PEP08

ftouvet commented 9 years ago

+1 too

BigRoy commented 8 years ago

Cool, sticking to that. Closing this.