Skip to content

Conversation

@dbrattli
Copy link
Collaborator

@dbrattli dbrattli commented Dec 9, 2025

Summary

  • Add logging module with Logger, Handler, Formatter classes and Level constants (DEBUG, INFO, WARNING, ERROR, CRITICAL)
  • Add random module with seed, random, uniform, choice, sample, shuffle, and distribution functions (gauss, normalvariate, etc.)
  • Expand string module with Template class, constants (ascii_letters, digits, hexdigits, punctuation, etc.), and capwords function
  • Add builtins.bytes function for converting F# byte arrays to Python bytes
  • Fix sys module to use ResizeArray for argv/path and add int() conversion for exit
  • Add comprehensive tests for all new modules (14 new test files for logging, 18 for random, 17 for string, 13 for base64, 24 for math, 10 for asyncio)

Test plan

  • All 191 tests pass with just test-python
  • Logging module correctly handles F# Int32 level values with int() conversion
  • Random module correctly handles F# Int32/arrays with appropriate conversions
  • String module Template class works with F# anonymous records as mapping

🤖 Generated with Claude Code

…ng module

- Add logging module with Logger, Handler, Formatter classes and Level constants
- Add random module with seed, random, uniform, choice, sample, shuffle, and distribution functions
- Expand string module with Template class, constants (ascii_letters, digits, etc.), and capwords
- Add builtins.bytes function for F# byte array to Python bytes conversion
- Fix sys module to use ResizeArray for argv/path and add int conversion for exit
- Add comprehensive tests for all new modules

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dbrattli dbrattli merged commit 709d6c2 into main Dec 9, 2025
2 checks passed
@dbrattli dbrattli deleted the feat/stdlib-modules branch December 9, 2025 16:53
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.

2 participants