Dec-04-2019, 05:37 AM
(This post was last modified: Dec-04-2019, 05:37 AM by rudihammad.)
Hello, this might be a strange question but I was wondering if I can give a hint about
the tuple argument items. For isntance, in the example bellow:
you don't know which item is the source and which one is the target.
Is it possible to make that tuple more explicit about what it represents?
I am using python 2.7.
thanks
R
the tuple argument items. For isntance, in the example bellow:
# I don't want 2 arguments def matchObjects(source=None, target=None): pass # I want one argument like this def matchObjects(objects=(None, None)): passThe thing that I don't like in the tuple argument "objects=(None, None)" is that unless you read the docstring
you don't know which item is the source and which one is the target.
Is it possible to make that tuple more explicit about what it represents?
I am using python 2.7.
thanks
R