Python Tutorials

What is : A guide

Comments (2)
  1. Geert Vancompernolle says:


    Just read your article about since it’s not clear to me what the purpose is of that “mysterious” file.

    I have the following python project tree (not all given, but it makes the idea clear):

    As you can see, not one of them currently has the

    According to your article, it should NOT be possible to do an “from canbus import canbus” without the file being part of the canbus directory, in

    Well, it looks like I am able to do that. Whether I put a file or not in the directory canbus, it works equally fine.

    I can also write “from canbus.canbus import CANbus” in (which is a class within without having the present.

    So, I’m even more confused then before about the purpose of this file.

    Hope you can explain why I can do this all without having not a single in my project…

  2. Geert Vancompernolle says:

    OK… I just now saw that with Python3 there’s no need anymore for files. That explains why it’s working for me, since I’m using Python3…

Leave a Reply

Your email address will not be published. Required fields are marked *

Tell us about you and we will match you with top rated bootcamps with flexible payment options, income sharing (ISAs), or money-back guarantees.

Career Karma

Find the right bootcamp for you

By continuing you indicate that you have read and agree to
Career Karma Terms of Service and Privacy Policy

A person sitting on a dark green chair with a laptop on their knee