Re: Proposal: private keyword for import statements to hide module dependencies

2025-12-02 Thread Bjørnar Remmen via Python-list
Richard Damon wrote: > On 11/25/25 3:42 PM, bjotta via Python-list wrote: > > It seem like you are talking about classes and sub-classes. I was talking > > about dependencies in projects. > > The technique is currently defined only for class and sub-classes, but > could be extended > > e..g I cre

Re: Proposal: private keyword for import statements to hide module dependencies

2025-11-30 Thread Bjørnar Remmen via Python-list
I agree that some of my reasoning was off and it does not directly with the issue of sub-dependencies. However, the Idea was more on how to hide it rather than the dependency issue itself. Anyways, I agree that an approach on name mangling might be more in line with what we have in python. Ho

Proposal: private keyword for import statements to hide module dependencies

2025-11-21 Thread Bjørnar Remmen via Python-list
Hi, this is my first time here on the mailing list. I would like to open up for a discussion on how we can introduce a way to hide imports. I am proposing the introduction of an optional, non-breaking keyword, private, to be used when importing a file. The goal is to allow developer to hide in