Or make your own package? call it affirm (more wholesome), write it in Rust (of course), and take on yes.
Limitless_screaming
You die twice. One time when you stop breathing, and a second time, a bit later on, when somebody damns your soul for the last time.
- Hafez Al-Assad
- 1 Post
- 16 Comments
Limitless_screaming@kbin.earthOPto
Python@programming.dev•How to import local files which import local files themselves?
3·6 months agoSorry, that was just a joke that came off wrong. I understand you were just trying to help.
Limitless_screaming@kbin.earthOPto
Python@programming.dev•How to import local files which import local files themselves?
2·6 months agoYeah, that’s the solution I asked about (last line of my question). I was just trying to make sure that this is ok and won’t tangle up my code later on.
I’m not sure why you’re using
asto make the module name longer? Usually, if I use it at all, I use it make things shorter. Anyway, once you’ve importeddep2, you can calldep2.some_fn().That was just for the example (clarifying order of import). The actual code has imports such as
from src.formatter import Formatter as fmt; always making the name shorter.Thanks for the suggestions
Limitless_screaming@kbin.earthOPto
Python@programming.dev•How to import local files which import local files themselves?
22·6 months agoAre you accusing me of not reading tfm? because I did, but was expecting this specific situation to be clarified on stackOverFlow, geeksForGeeks or somewhere similar. Since it seemed like this import pattern should be common.
Limitless_screaming@kbin.earthOPto
Python@programming.dev•How to import local files which import local files themselves?
3·6 months agoofc. It’s weird how no one asked this before with how little help articles mention
__init__.py.
Limitless_screaming@kbin.earthOPto
Python@programming.dev•How to import local files which import local files themselves?
3·6 months agoItems that you define in
__init__.pyor import into it will be available to import from the module:from .submodule import some_fnThat will be very useful. Thanks for your quick reply!
Limitless_screaming@kbin.earthto
Linux@lemmy.ml•I find it ironic that some Linux websites load faster on Chrome than Firefox sometime it doesn't even load correctly on Firefox
4·8 months agoit feels like a “web app” more than a website. Like, it somehow needs to “load” after loading the page… unlike classic forum softwares that just instantly show the pre-rendered page.
I kind of like this behavior. If you’re writing a complex website with user posts, comments, tags, and other nifty stuff and want it to stay modular it’s almost guaranteed that you’ll end up with this loading behavior (unless you want to SSR everything).
ui also feels way too ‘simple’, hard to navigate and has low info density. i guess this is how more people nowadays prefer things to work
Don’t know about that, I find it easy to navigate with the consistent sidebar elements. Searching for posts is easy since they’re usually well tagged and have good titles. Searching for solutions and checking out community contributions and votes is about 90% of my use case for a forum. Maybe you have different use cases.
Limitless_screaming@kbin.earthto
Linux@lemmy.ml•I find it ironic that some Linux websites load faster on Chrome than Firefox sometime it doesn't even load correctly on Firefox
133·8 months agoI don’t get why people like that forum software :/
feature packed with a really clean and user friendly UI + each distro can easily customize it to add lots of their own brand identity (Manjaro especially appreciates this).
I don’t have a problem with it not loading correctly, and it loads quickly even on somewhat slow internet (using Firefox).
Limitless_screaming@kbin.earthto
Programmer Humor@programming.dev•What's stopping you from writing your Rust like this?
14·1 year agoIn Rust and lots of other languages you have to end each statement with a semicolon. The semi colon is usually placed right after the statement, but in this example there’s indentation after each statement before the semicolon so they’re all aligned.
There’s also the curly brackets, they’re padded in the same way, but those usually define where a scope (block) starts and ends making it even worse.
Limitless_screaming@kbin.earthto
Linux@lemmy.ml•This Week in KDE Apps: Usability, accessibility, and supercharging the Fediverse
4·1 year agoHaruna … Additionally, the default actions for left and right mouse buttons have changed: left click is now Play/Pause and right click opens the context menu.
Just needs reasonable loop options and it will be great.
Limitless_screaming@kbin.earthto
Linux@lemmy.ml•This Week in KDE Apps: Usability, accessibility, and supercharging the Fediverse
3·1 year agoXD what was that before?
Right click for play/pause, and left click does absolutely nothing. Don’t know who though of that.
Limitless_screaming@kbin.earthto
Linux@lemmy.ml•Non-English filename disappears after coppying.
3·1 year agoCan’t reproduce it on ext4, KDE Plasma too.


“Some people like snaps” would have been closer to the truth, but it would still be an exaggeration of their numbers.