You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.
Data members required for establishing connection in Transport layer are stored in init() method of DeviceComms and DccComms, so that self._connect() can be called. This results in duplication.
Why don't we use **kwargs in abstract _connect() method, so that it can take dynamic arguments instead ?
The text was updated successfully, but these errors were encountered:
At the same time, if we put the parameters in _connect(), it gives the possibility that some one call this method on the same obj multiple times with different parameters, which may cause troubles.
Of course you could always resolve these problems in some ways, whether you decide to use an init() or use _connect() directly. We just decided to use the first manner. In this way it might also be more consistent with other modules and classes.
Data members required for establishing connection in Transport layer are stored in
init()
method of DeviceComms and DccComms, so thatself._connect()
can be called. This results in duplication.Why don't we use **kwargs in abstract
_connect()
method, so that it can take dynamic arguments instead ?The text was updated successfully, but these errors were encountered: