Skip to content
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

Implement DISALLOW_INSTANTIATION PyTypeFlags #5286

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Commits on Apr 28, 2024

  1. Add DISALLOW_INSTANTIATION for TypeFlags

    Signed-off-by: snowapril <sinjihng@gmail.com>
    Snowapril committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    efbf0ce View commit details
    Browse the repository at this point in the history
  2. Set tp_new slot when build heap/static type

    Signed-off-by: snowapril <sinjihng@gmail.com>
    Snowapril committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    c88b7f8 View commit details
    Browse the repository at this point in the history
  3. Improve type tp_call impl to check tp_new existence and error if not …

    …exist
    
    Signed-off-by: snowapril <sinjihng@gmail.com>
    Snowapril committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    9f631d0 View commit details
    Browse the repository at this point in the history
  4. Set DISALLOW_INSTANTIATION flag on several types according to cpython…

    … impl
    
    Signed-off-by: snowapril <sinjihng@gmail.com>
    Snowapril committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    20aeacc View commit details
    Browse the repository at this point in the history