I am a beginner in Python and I am wondering how to prevent methods starting with an underscore (_) from being imported. I have a class called Scrapper which has four methods: get, save, _is_data_available, and _collecting_data. I only want the get and save methods to be imported by other modules.I tried adding all = ['get', 'save'] outside the class, but this did not work. How can I do this?
__all__doesn't have an effect here.