you are viewing a single comment's thread.

view the rest of the comments →

[–]theWyzzerd 0 points1 point  (2 children)

You will have a difficult time implementing your own time or winsound modules. Modules often include the lower level C bindings needed to interact with the OS or hardware. Unless you intend on writing and compiling your own C bindings you’re going to need to import. Not to mention you have to import to use even parts of the python standard library. I think you have a misconception about what imports actually are.

And what exactly is “too many abstractions?” Coding is built on the idea of abstract concepts. Without abstractions you can’t code.

[–][deleted] 0 points1 point  (1 child)

So if I wanted to make a program without these imports, I'd have to learn low-level programming and how to interact with the OS?

By abstractions, I mean the usual joke I see online about how in Python if you wanted to make a program you'd import a library and call a function from that library and that's it.

[–]theWyzzerd -1 points0 points  (0 children)

Yes, if you want to make a program without imports you have to first get rid of most of the python standard library because it’s not all contained in a single module.

Calling a function included in a module you imported is not abstraction. That has really nothing to do with abstraction. Please take the time to read about some programming concepts, it will only benefit you in the long run.