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

cython compiler error #88284

Closed
mlucool mannequin opened this issue May 12, 2021 · 2 comments
Closed

cython compiler error #88284

mlucool mannequin opened this issue May 12, 2021 · 2 comments
Labels
3.7 (EOL) end of life build The build process and cross-build topic-C-API

Comments

@mlucool
Copy link
Mannequin

mlucool mannequin commented May 12, 2021

BPO 44118
Files
  • cpython_error.txt: Error
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-05-12.21:38:22.103>
    created_at = <Date 2021-05-12.21:31:16.320>
    labels = ['expert-C-API', 'build', '3.7']
    title = 'cython compiler error'
    updated_at = <Date 2021-05-12.21:38:22.103>
    user = 'https://bugs.python.org/mlucool'

    bugs.python.org fields:

    activity = <Date 2021-05-12.21:38:22.103>
    actor = 'mlucool'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-05-12.21:38:22.103>
    closer = 'mlucool'
    components = ['C API']
    creation = <Date 2021-05-12.21:31:16.320>
    creator = 'mlucool'
    dependencies = []
    files = ['50039']
    hgrepos = []
    issue_num = 44118
    keywords = []
    message_count = 2.0
    messages = ['393548', '393549']
    nosy_count = 1.0
    nosy_names = ['mlucool']
    pr_nums = []
    priority = 'normal'
    resolution = 'third party'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue44118'
    versions = ['Python 3.7']

    @mlucool
    Copy link
    Mannequin Author

    mlucool mannequin commented May 12, 2021

    Hi,

    The follow gives an unexpected error during compilation:

    In [1]: %%cython
    ...: #cython: infer_types=True
    ...: class A:
    ...: def f(self):
    ...: x = max(self.a, self.a)

    Removing max, or setting infer_types=False, or setting x = None first all make it compile.

    @mlucool mlucool mannequin added 3.7 (EOL) end of life topic-C-API build The build process and cross-build labels May 12, 2021
    @mlucool
    Copy link
    Mannequin Author

    mlucool mannequin commented May 12, 2021

    Wrong forum

    @mlucool mlucool mannequin closed this as completed May 12, 2021
    @mlucool mlucool mannequin closed this as completed May 12, 2021
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life build The build process and cross-build topic-C-API
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants