Dev:Source/Development/Todo/Compatibility Breaking

提供: wiki
移動先: 案内検索

テンプレート:Dev:2.5/Source/Development/Todo/index

Cycles

Change BGE Python API Naming Convention

The BGE Python API is still using a Java style naming convention (i.e., mixedCase), but it would be nice if it used more Pythonic names such as those described in PEP8. Doing the rename would be relatively easy (although time consuming), but it seems like a rather poor reason to break everyone's scripts.

[A conversion script could be provided, utilizing python's AST module. --CoDEmanX]

[A very poor reason... bordering on the ridiculous, IMO. Not only is PEP8-style rejected by several Python libraries (PyQt for example), in fact, PEP8 specifically argues against rewrites like this: "In particular: do not break backwards compatibility just to comply with this PEP!" Sjoerd ]

[It's not just to match PEP8, but to match bpy so our libraries are more consistent. However, yes, it's still a bad reason to break scripts. If we do some other large rewrite of the API, it would be a good idea to switch naming convention at the same time too. --Moguri]