[katello-devel] Python variable names
David Davis
daviddavis at redhat.com
Fri Oct 5 21:51:07 UTC 2012
I have a quick Python question. In our Python guide, it says to use snake case for variable names but for function arguments, it seems like we're mostly using camel case. Here's an example from cli/src/katello/client/api/environment.py:
def environments_by_org(self, orgId):
path = "/api/organizations/%s/environments" % orgId
envs = self.server.GET(path)[1]
return envs
Here you see orgId instead of org_id. Is this code out of date or are we using camel case for argument variables and snake case for non-argument variables?
Thanks.
David
More information about the katello-devel
mailing list