Skip to content

Conversation

@matrixise
Copy link
Member

@matrixise matrixise commented Mar 24, 2019

  • Declaration of new constants for the PyMemberDef.flags with an
    enumeration and with the PY_ prefix (convention of the C-API for the
    public names). The redeclaration is for the backward compatibility.
  • Use attribute(deprecate) for the deprecation of the former
    constants.
  • Update the documentation about the new constants.

https://bugs.python.org/issue36347

* Declaration of new constants for the PyMemberDef.flags with an
enumeration and with the PY_ prefix (convention of the C-API for the
public names). The redeclaration is for the backward compatibility.
* Use __attribute__(deprecate) for the deprecation of the former
constants.
* Update the documentation about the new constants.
@matrixise
Copy link
Member Author

matrixise commented Mar 24, 2019

This PR is a WIP PR and it's used for the associated issue.

Checklist

  • Add a blurb entry
  • Fix the compilation step on AppVeyor for the Windows support
  • Fix the warnings when compiling on Linux

@matrixise matrixise changed the title bpo-36347: Renaming the constants for the PyMemberDef.flags WIP: bpo-36347: Renaming the constants for the PyMemberDef.flags Mar 24, 2019
Copy link
Contributor

@jdemeyer jdemeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole "restricted mode" thing is long obsolete and support has been removed in Python 3. So really, the flags related to restricted mode should just be deprecated without offering a replacement. And I would propose to remove all mentions of restricted mode from the docs.

@brettcannon brettcannon added the type-feature A feature request or enhancement label Mar 27, 2019
@matrixise
Copy link
Member Author

matrixise commented Apr 4, 2019 via email

@jdemeyer
Copy link
Contributor

jdemeyer commented Apr 4, 2019

See also #12684 for no longer using these constants in CPython internally. That PR should be completely uncontroversial.

@matrixise
Copy link
Member Author

I close my PR.

@matrixise matrixise closed this Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants