Conversation
7 tasks
Owner
|
Superseded by batch 9 implementation on feat/stdlib-batch9 branch (commit 7668dc9). PR was empty/WIP — difflib implemented from scratch with SequenceMatcher, Differ, unified_diff, context_diff, ndiff, get_close_matches, restore. |
antonsynd
added a commit
that referenced
this pull request
Jun 1, 2026
…cket (#757, #746, #753, #754) Implement four stdlib modules from the Tier 2 roadmap Batch 9: - **fractions**: Exact rational arithmetic via BigInteger. Fraction class with full operator support, GCD normalization, LimitDenominator, string/double parsing. 66 tests. - **difflib**: Text comparison and diffing. SequenceMatcher (Ratcliff/Obershelp), Differ with intra-line guides, unified_diff, context_diff, ndiff, get_close_matches, restore. 34 tests. - **threading**: Thread-based concurrency. Thread, Lock, RLock, Event, Semaphore, BoundedSemaphore, Barrier, Timer wrapping .NET primitives. 39 tests. - **socket**: Low-level networking. SocketWrapper with TCP/UDP support, error type hierarchy (SharpySocketError/timeout/gaierror/herror), DNS functions, byte order conversion, inet_pton/ntop. 43 tests. Each module includes: C# implementation, per-module .csproj, spy stub, and tests. Salvaged and fixed code from Copilot PRs #763, #767, #766 (difflib #776 was empty). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.