Editing and Customization > Community Content

Changing GES Python's Style

(1/1)

killermonkey:
I have been toying with the thought to completely overhaul the way GES Python is presented to the end-programmer... basically we do not conform to Python's style guides in any way: http://www.python.org/dev/peps/pep-0008

In particular, our CamelCase in packages, method names, and functions is highly frowned upon in Python.

http://www.python.org/dev/peps/pep-0008/#package-and-module-names
http://www.python.org/dev/peps/pep-0008/#function-names

Clearly this change would break everything that was custom coded instantly. That is why it would be reserved for the v4.3 release.

I want to know if the modding community would like to make this change? If you guys don't particular care, then it might not happen, but I am stickler for consistency and we have none at the moment.

Proxie:
I vote yes for the change.  I can probably help out, too.

Troy:
I suppose it would be a good idea conforming to the guide.  One thing I saw though was that imports should all be on separate lines.  That kind of seems like a waste of space if we had something like this:


--- Code: ---
import GEEntity, GEPlayer, GEUtil, GEWeapon, GEMPGameRules as GERules, GEGlobal as Glb
--- End code ---

killermonkey:
I don't agree with that one at all. Very wasteful. I've seen modules that conform to that and there header is longer than the script itself lol.

Navigation

[0] Message Index

Go to full version