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

"None" is a reserved keyword for Python binding #386

Closed
klayoutmatthias opened this issue Oct 31, 2019 · 2 comments
Closed

"None" is a reserved keyword for Python binding #386

klayoutmatthias opened this issue Oct 31, 2019 · 2 comments
Assignees
Milestone

Comments

@klayoutmatthias
Copy link
Collaborator

A specific issue is "pya.Cursor.None" which is not available on Python.

See https://www.klayout.de/forum/discussion/1357/pya-cursor-none-bug#latest for the related discussion.

@klayoutmatthias
Copy link
Collaborator Author

The issue is more generic - "None" is used in other places too.

So the solution is better to provide a Python-compatible alias with "" appended (as done with "exec" for example): Use "pya.Cursor.None".

@klayoutmatthias klayoutmatthias self-assigned this Nov 2, 2019
@klayoutmatthias klayoutmatthias added this to the 0.26.1 milestone Nov 2, 2019
klayoutmatthias added a commit that referenced this issue Nov 6, 2019
Fixed issue #386 by mapping 'None' to 'None_' in Python
@klayoutmatthias
Copy link
Collaborator Author

Will be released soon with 0.26.1

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

1 participant