summaryrefslogtreecommitdiffstats
path: root/HACKING
diff options
context:
space:
mode:
authorBrian Waldon <brian.waldon@rackspace.com>2011-07-29 13:46:24 -0400
committerBrian Waldon <brian.waldon@rackspace.com>2011-07-29 13:46:24 -0400
commit58e2d9f46fef753857f559c8f5953e025d022d3c (patch)
treed80ab7010b9f06b7907227781c7a2f77a315113a /HACKING
parent5c7b70cef1abe91861dd4f82a365143256e9f2cf (diff)
rewording
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING14
1 files changed, 5 insertions, 9 deletions
diff --git a/HACKING b/HACKING
index cb5f696d1..4c5193779 100644
--- a/HACKING
+++ b/HACKING
@@ -116,16 +116,12 @@ Defining Methods
----------------
Method signatures longer than 80 characters are very unreadable. If you
encounter this problem, first you should determine if your method is
- too big. Otherwise, you should compress your keyword arguments with a
- '**kwargs' parameter. You should use the 'kwargs' in your method as a
- dictionary to retrieve the necessary keyword arguments.
+ too big. If not, you can compress your keyword arguments with a
+ '**kwargs' parameter. You can then use 'kwargs' in your method as a
+ dictionary to retrieve the necessary keyword arguments. This is just a
+ guideline, not a requirement.
- Example (BAD):
-
- def my_method(argument_one, argument_two, kwarg_one='default_one',
- kwarg_two='default_two', kwarg_three='default_three'):
-
- Example (GOOD):
+ Example:
def my_method(argumet_one, argument_two, **kwargs):
kwarg_one = kwargs.get('kwarg_one', 'default_one')