-
Notifications
You must be signed in to change notification settings - Fork 225
Closed
Description
Hi! I am CPython contributor :)
And I've recently noticed that for the last 22 years we have some special casing for org.python.core.PyStringMap.
Here are they:
- https://github.com/python/cpython/blame/db115682bd639a2642c617f0b7d5b30cd7d7f472/Lib/copy.py#L59-L62
- https://github.com/python/cpython/blame/db115682bd639a2642c617f0b7d5b30cd7d7f472/Lib/pickle.py#L101-L105
- https://github.com/python/cpython/blame/db115682bd639a2642c617f0b7d5b30cd7d7f472/Lib/xml/sax/__init__.py#L98-L100
The question is: do we still need it?
Some concerns:
- It imports code from some third-party module in the stdlib. This is the only place (there might be some other cases that I am not familiar with, please proove me wrong) where we do it. It might be a source of some unexpected results if user has the same package structure. It might be even related to security, because importing third-party modules is never safe in Python
- Jython seems to only support 2.7 a the moment, so we might not need this anymore in our core library 🤔
Please, share your vision on this 🙂
Metadata
Metadata
Assignees
Labels
No labels