-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Name clash with multipart
package.
#16
Comments
I would like to second this. It's quite hard to detect when it happens, it took 3 of us for a whole day (or more) to finally discover we had both packages installed. I was about to call a server exorcist 😂 Of course, it was a bug in our code to have both installed, but the fact that sometimes one is used and some times the other for the same Would you consider changing the import name as @tomchristie suggests? 🙏 |
I'm not fixing this. My intention is to maintain this package till we merge the code to Starlette. |
@Kludex Appreciate a concise & clear response. 🌟 |
FWIW, I'd recommend renaming the import to Note that the official CPython docs recommend |
Why does CPython recommends that? |
This issue was opened six years ago. If that has not been enough time for you to figure out how to merge this into Starlette, then it seems extremely unlikely it will ever merge. And as long as this name conflict situation goes on, it causes pain and brokenness to people who don't deserve it and didn't ask for it, and harm to the overall Python community and its reputation. This also causes harm to your reputation as an individual, the reputation of the projects you work on, and the reputation of the company you work for. Please do the right thing, reconsider your course here, and change the module name to remove the conflict. |
FYI, let me know if you want me to help with the solution I suggested... somewhere, not this thread apparently. That would be to rename the import to But I don't want to spend time helping with a solution if you are not interested in one. |
@henryiii Is it possible to have a fallback to multipart import? If it is, and you have time, I'm happy to review a PR. My only concern is that I want to bring security fixes to users that are stuck on old versions of packages that depend on this project. I'm locking this issue. Open source has been a bit too rude to me lately. |
I don't especially mind that both
multipart
andpython-multipart
exist on PyPI, but it's a bit awkward that they both also install asmultipart
.I've already managed to bump my head on this, and couldn't understand why the signature for
multipart.MultipartParser
wasn't as expected having had both packages installed at some point.Although I much prefer the plain
multipart
name I wonder if it's worth considering something likemultipartparser
?Alternatively we don't worry about it for now, and consider something later if it's an issue. Not sure.
The text was updated successfully, but these errors were encountered: