darwinex / dwx-zeromq-connector

Wrapper library for algorithmic trading in Python 3, providing DMA/STP access to Darwinex liquidity via a ZeroMQ-enabled MetaTrader Bridge EA.
https://blog.darwinex.com/zeromq-interface-python-r-metatrader4/
BSD 3-Clause "New" or "Revised" License
341 stars 227 forks source link

Pylint error: Accessing a protected member of a client class when calling functions on the DWX_ZeroMQ_Connector.py #141

Closed teddywaweru closed 2 years ago

teddywaweru commented 2 years ago

I've been trying to implement the DWX_connector & making reference calls to the functions on the script. But now my code is having all these Pylint warnings concerning: Access to a protected member _DWX_MTX_UNSUBSCRIBE_MARKETDATA_ of a client class pylint(protected-access) On browsing the error, it turns out that Pylint recognizes objects starting with an underscore as protected. Wondering whether:

  1. Is this a PEP design guideline?
  2. Am I the only facing this issue? or how do i bypass it...
elvinex commented 2 years ago

Hi,

As google tellsme, the underscore seems to indicates that the variable or method is intended for internal use.

But I am not sure if that is the case for all of the occurrences or whether it was simply a preference of the programmer who wrote the ZeroMQ Connector.

Now, I wouldn't want to change variable/method names since it would force users to also change all their code.