GoldenEye: Source Forums

Editing and Customization => Community Content => Topic started by: killermonkey on July 12, 2013, 10:35:11 pm

Title: Changing GES Python's Style
Post by: killermonkey on July 12, 2013, 10:35:11 pm
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.
Title: Re: Changing GES Python's Style
Post by: Proxie on July 13, 2013, 05:55:19 am
I vote yes for the change.  I can probably help out, too.
Title: Re: Changing GES Python's Style
Post by: Troy on July 13, 2013, 08:14:11 am
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: [Select]
import GEEntity, GEPlayer, GEUtil, GEWeapon, GEMPGameRules as GERules, GEGlobal as Glb
Title: Re: Changing GES Python's Style
Post by: killermonkey on July 13, 2013, 12:34:40 pm
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.