Skip to content

CPython3.12a1 still has special case support for PyStringMap #217

@sobolevn

Description

@sobolevn

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:

The question is: do we still need it?

Some concerns:

  1. 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
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions