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

updated pkpy to v2.0.4 #2730

Merged
merged 4 commits into from
Jan 4, 2025
Merged

updated pkpy to v2.0.4 #2730

merged 4 commits into from
Jan 4, 2025

Conversation

PrimedErwin
Copy link
Contributor

The previous pr is #2714 (1 month ago)

What's changed from v2.0.1 to v2.0.4

v2.0.2

  1. Fix a bug of random module which uses a wrong initial seed.
  2. Fix #315 about py_switchvm.
  3. Improve PK_ENABLE_OS and add PK_BUILD_WITH_IPO to cmake options.
  4. Add conio module which provides _kbhit and _getch functions for desktop platforms.
  5. Fix True not False bug of parser.
  6. Fix ** associativity bug. 2**2**3 now evaluates to 256 instead of 64.
  7. Add __float__ and __int__ and __round__.
  8. Add py_bindstaticmethod.
  9. Fix str.split. It behaves the same as cpython now.
  10. Fix a bug of closure for generator functions.
  11. Support vec* unpack, e.g. x, y = vec2i(1, 2).

v2.0.3

  1. fix some type annotation usage e.g. int | None.
  2. fix some builtins hash functions
  3. fix a severe bug of dict
  4. clean up #defines
  5. improve array2d
  6. fix a bug of super
  7. fix a bug of context manager

v2.0.4

  1. add pickle module
  2. raise error on mismatched eq/ne
  3. fix a bug of 32-bit
  4. support empty tuple ()
  5. improve json

Full Changelog: pocketpy/pocketpy@v2.0.1...v2.0.4

@blueloveTH
Copy link
Contributor

You can undraft this and it's ready to submit now.

@PrimedErwin PrimedErwin marked this pull request as ready for review December 25, 2024 10:18
@nesbox nesbox merged commit 2027e28 into nesbox:main Jan 4, 2025
12 of 13 checks passed
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.

[BUG] Few bugs in v2.0 pocketpy.c that cause crashes (using uninitialized variables)
3 participants