devilish666@lemmy.world to Programmer Humor@lemmy.ml · 8 months agoPython tutorial momentlemmy.worldimagemessage-square51fedilinkarrow-up1483
arrow-up1483imagePython tutorial momentlemmy.worlddevilish666@lemmy.world to Programmer Humor@lemmy.ml · 8 months agomessage-square51fedilink
minus-squarejohannesvanderwhales@lemmy.worldlinkfedilinkarrow-up25·8 months agoRemove seems like a terrible name for that method.
minus-squareSkyeStarfalllinkfedilinkarrow-up16·8 months agoWhile yes, the true issue here is that, for some reason, the code only imports the remove method from the package, instead of importing the package and doing rembg.remove().
minus-squaretrashgirlfriend@lemmy.worldlinkfedilinkarrow-up3·8 months agoif you only wanted to import remove you could maybe import as rembg_remove unless there’s some weird taboo against doing that I don’t know about, I’m an awful programmer tbh
Remove seems like a terrible name for that method.
While yes, the true issue here is that, for some reason, the code only imports the remove method from the package, instead of importing the package and doing rembg.remove().
if you only wanted to import remove you could maybe import as rembg_remove
unless there’s some weird taboo against doing that I don’t know about, I’m an awful programmer tbh