Your explanation is very reasonable. I try to write code in a beautiful and
readable way always,
This is a test to compare.
PEP-8
class MyClass(object):
def someMethod(
some_big_argument_name,
another_big_argument,
and_yet_another_huge_argument_name
):
cmds.parentConstraint('L_armA_shoulder_fk_JNT',
'L_armA_shoulder_fk_JNT', mo=1, sr=1,
n='L_armA_shoulder_fk_parentConstraint')
Now with 120 char
class MyClass(object):
def someMethod(some_big_argument_name,
another_big_argument,and_yet_another_huge_argument_name):
cmds.parentConstraint('L_armA_shoulder_fk_JNT',
'L_armA_shoulder_fk_JNT', mo=1, sr=1,
n='L_armA_shoulder_fk_parentConstraint')
from my point of view, 120 char reads better, and it is twice smaller. And
I don´t think it is uglier.
I don´t know. I might be wrong
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/8fb4ea90-78aa-4f52-a2d5-e9e8890cb806%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.