𝔻𝔼𝕍𝕀𝕃𝕀𝕊ℍ@lemmy.worldBanned from community to Programmer Humor@lemmy.ml · 2 年前Python tutorial momentlemmy.worldimagemessage-square56linkfedilinkarrow-up1485arrow-down159
arrow-up1426arrow-down1imagePython tutorial momentlemmy.world𝔻𝔼𝕍𝕀𝕃𝕀𝕊ℍ@lemmy.worldBanned from community to Programmer Humor@lemmy.ml · 2 年前message-square56linkfedilink
minus-squarejohannesvanderwhales@lemmy.worldlinkfedilinkarrow-up25·2 年前Remove seems like a terrible name for that method.
minus-squareSkyeStarfall@lemmy.blahaj.zonelinkfedilinkarrow-up16·2 年前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().
minus-squaretrashgirlfriend@lemmy.worldlinkfedilinkarrow-up3·2 年前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
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