▲ 427 ▼ Python tutorial moment (lemmy.world) submitted 2 years ago by devilish666@lemmy.world to c/programmerhumor@lemmy.ml 56 comments fedilink hide all child comments
[–] johannesvanderwhales@lemmy.world 25 points 2 years ago (2 children) Remove seems like a terrible name for that method. permalink fedilink source hideshow 2 child comments replies: [–] SkyeStarfall@lemmy.blahaj.zone 16 points 2 years ago (1 child) 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(). permalink fedilink source parent hideshow 1 child comment replies: [–] trashgirlfriend@lemmy.world 3 points 2 years ago 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 permalink fedilink source parent
[–] SkyeStarfall@lemmy.blahaj.zone 16 points 2 years ago (1 child) 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(). permalink fedilink source parent hideshow 1 child comment replies: [–] trashgirlfriend@lemmy.world 3 points 2 years ago 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 permalink fedilink source parent
[–] trashgirlfriend@lemmy.world 3 points 2 years ago 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 permalink fedilink source parent