Skip to content

Make codetools.blocks2 work with python3 #64

Open

Description

@tristanlatr

Hi, I've understood that modules codetools.blocks2 and codetools.blocks are not working for python3 yet, I'm very interested into this kind of static analysis features, especially the use of restrict.

Is there any plan to make it work with python3 ? Do you know what's the effort needed for this migration ? We should port blocks2 only right?

Tell me what you think,

Thanks

Activity

  1. corranwebster commented on Jun 24, 2022

    @corranwebster
    Contributor

    It's not on our road-map right now - it is indeed a cool bit of code, but it's not something that Enthought is actively using (as opposed to Contexts, which we still use a fair bit).

    We'd welcome a port to Python 3. For codetools.blocks it would require a translation from the old compiler stdlib library to ast-based analysis. I think blocks2 was a start of such a port, but it was never completed.

    If blocks2 has all the functionality that you need right now, then by all means just port that. If you need additional functionality from blocks then I would suggest adding it to blocks2 as part of the port.

    If it makes things easier, feel free to support only Python >= 3.6 (or even 3.8).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions