Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Do packages really require "__init__.py" ?
Post: RE: Do packages really require "__init__.py" ?

(Feb-15-2019, 03:59 AM)snippsat Wrote: snippsat Thank you for your response. It's clear. Denis
denis_beurive General Coding Help 4 9,992 Feb-15-2019, 08:30 AM
    Thread: Do packages really require "__init__.py" ?
Post: Do packages really require "__init__.py" ?

Hello, In the official documentation for Python 3 it is written that : Quote:The __init__.py files are required to make Python treat the directories as containing packages; this is done to prevent d...
denis_beurive General Coding Help 4 9,992 Feb-14-2019, 04:19 PM
    Thread: Multiple inheritance - the right way ?
Post: RE: Multiple inheritance - the right way ?

@ichabod801 Yes, good point. If two classes have a parent in common, you cannot use the list "__base__". I was thinking that I could include within the parent class a flag that indicates whether cla...
denis_beurive General Coding Help 6 4,664 Feb-14-2019, 09:24 AM
    Thread: Multiple inheritance - the right way ?
Post: RE: Multiple inheritance - the right way ?

Note: I find a better way to initialise the parent objects: # This is OK: # Parent1.__init__(self, *args, **kwargs) # Parent2.__init__(self, *args, **kwargs) for par...
denis_beurive General Coding Help 6 4,664 Feb-13-2019, 04:54 PM
    Thread: Multiple inheritance - the right way ?
Post: Multiple inheritance - the right way ?

Hello, I am not sure to fully understand multiple inheritance with Python 3. I can implement what I want to implement. It works. However, I am not sure to do things as they should be done. My questi...
denis_beurive General Coding Help 6 4,664 Feb-13-2019, 04:19 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020