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

Upgrade Python language bindings to v1.4.1 #2459

Merged
merged 7 commits into from
Feb 16, 2024
Merged

Upgrade Python language bindings to v1.4.1 #2459

merged 7 commits into from
Feb 16, 2024

Conversation

blueloveTH
Copy link
Contributor

@blueloveTH blueloveTH commented Feb 13, 2024

The previous pr is #2413 (3 months ago)

What's changed from v1.3.5 to v1.4.1

Too many versions in between. Check the following for details.

https://github.com/pocketpy/pocketpy/releases/tag/v1.3.6
https://github.com/pocketpy/pocketpy/releases/tag/v1.3.7
https://github.com/pocketpy/pocketpy/releases/tag/v1.3.8
https://github.com/pocketpy/pocketpy/releases/tag/v1.3.9
https://github.com/pocketpy/pocketpy/releases/tag/v1.4.0
https://github.com/pocketpy/pocketpy/releases/tag/v1.4.1

The most important changes

  1. str was changed to be null-terminated. So python.c was altered for new string ops
  2. allow const tuple as function default parameter. e.g. def f(a=(1,2)): ...
  3. add array2d module. An efficient general purpose 2d array
  4. add full support about @staticmethod and @classmethod
  5. add full slice support. e.g. a[:, 1:2:3]
  6. add support for try..finally
  7. add complex number support and cmath module. For example, 1+2j
  8. support real exception objects. Now you can define a class derived from Exception
  9. add line_profiler module. See this page for details

Notes

target_compile_definitions(pocketpy PRIVATE PK_ENABLE_OS=0) was removed because currently PK_ENABLE_OS defaults to 0.

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

Successfully merging this pull request may close these issues.

2 participants