BridgesUNCC / bridges-python

Python client library for Bridges
http://bridgesuncc.github.io
MIT License
3 stars 4 forks source link

Add *args to Element constructors to mimic other 2 client's semantics #63

Open AlecGoncharow opened 4 years ago

AlecGoncharow commented 4 years ago

Currently all Element classes require users to specify keywords in the constructor, I would imagine it may be worth while to add *args parsing to the constructors to help with the semantics of building elements, similar to how it is done in the other 2 languages.

Currently:

sl_element = SLelement(e=MyElement, label="label")

ideally you could also do

sl_element = SLelement(MyElement, "label")