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

Clean up the C code. #220

Merged
merged 3 commits into from
May 12, 2018
Merged

Clean up the C code. #220

merged 3 commits into from
May 12, 2018

Conversation

serhiy-storchaka
Copy link
Contributor

  • Define less version-specific macros.
  • Remove redundant version checks and code inside version-specific code.
  • Always check PyUnicode_READY() for external unicode objects.
  • Use PyUnicode_Join().
  • Use PyUnicode_FromOrdinal().
  • All Python string constants are now allocated only once.

serhiy-storchaka and others added 3 commits April 25, 2018 19:37
* Define less version-specific macros.
* Remove redundant version checks and code inside version-specific code.
* Always check `PyUnicode_READY()` for external unicode objects.
* Use `PyUnicode_Join()`.
* Use `PyUnicode_FromOrdinal()`.
* All Python string constants are now allocated only once.
Copy link
Member

@etrepum etrepum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

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

Successfully merging this pull request may close these issues.

None yet

2 participants