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

Make codetools.blocks2 work with python3 #64

Open
tristanlatr opened this issue Jun 23, 2022 · 1 comment
Open

Make codetools.blocks2 work with python3 #64

tristanlatr opened this issue Jun 23, 2022 · 1 comment

Comments

@tristanlatr
Copy link

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

@corranwebster
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants