devilish666 to Programmer Humor@lemmy.ml · 1 year agoPython tutorial momentimagemessage-square55fedilinkarrow-up1311arrow-down147
arrow-up1264arrow-down1imagePython tutorial momentdevilish666 to Programmer Humor@lemmy.ml · 1 year agomessage-square55fedilink
minus-squarejohannesvanderwhaleslinkfedilinkarrow-up21·1 year agoRemove seems like a terrible name for that method.
minus-squareSkyeStarfall@lemmy.blahaj.zonelinkfedilinkarrow-up16·1 year 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-squaretrashgirlfriendlinkfedilinkarrow-up3·1 year 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