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

@klayoutmatthias klayoutmatthias commented Oct 31, 2019

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 added a commit that referenced this issue Nov 1, 2019
@klayoutmatthias

This comment has been minimized.

Copy link
Collaborator Author

@klayoutmatthias klayoutmatthias commented Nov 1, 2019

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

This comment has been minimized.

Copy link
Collaborator Author

@klayoutmatthias klayoutmatthias commented Nov 13, 2019

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
Projects
None yet
1 participant
You can’t perform that action at this time.