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

Update and extend recommendations on Unicode usage in Coding guidelines #17731

Open
dhomeier opened this issue Feb 6, 2025 · 1 comment
Open

Comments

@dhomeier
Copy link
Contributor

dhomeier commented Feb 6, 2025

What is the problem this feature will solve?

Currently our Developer docs only have some cautionary recommendations about using Unicode characters in printed output:

For maximum compatibility, we need to assume that writing non-ASCII characters to the console or to files will not work.

With #17651 merged there is now precedence for using non-ASCII characters in functional code, so the docs should be updated to reflect this, but also give some guidelines or rules when and how to use Unicode in code. Potentially to consider:

  • PEP 3131 setting rather restrictive regulations for the Python standard library
  • Security considerations that may become more relevant when using more easily confusable symbols.

Thoughts?

Describe the desired outcome

No response

Additional context

No response

@pllim
Copy link
Member

pllim commented Feb 6, 2025

Might be a good topic for Coordination Meeting 2025. 🐱 astropy/astropy-project#430 (comment)

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

No branches or pull requests

2 participants