then he could have specified his arguments and **kwargs and ignore kwargs...
audax
@audax
0
Reputation
3
Posts
10
Profile views
0
Followers
0
Following
Best posts made by audax
This user hasn't posted anything yet.
Latest posts made by audax
-
RE: Suspecting the interpreter.
-
RE: Suspecting the interpreter.
no, theres no limit except the one given by sanity;)
-
Suspecting the interpreter.
[Python]
def process_upload(self, **keywds):
frm_batch_id = keywds['frm_batch_id']
frm_product = keywds['frm_product']
additional_info = keywds['additional_info']
frm_sequence_id = keywds['frm_sequence_id']
files_for_upload = keywds['files_for_upload']
num_files = keywds['num_files']
frm_try = keywds['frm_try']Note for non-pythoneers: **foo puts all arguments given by keyword in a Hash, so this is nearly
equivalent to just write them in the function-header but ignores all extra-arguments silently.
Not a big WTF, just one of those `What was he thinking?`.