Skip to content

Fix bugs and use sympy lib to Upgrade and Upgrade grammer to Python 3.14#3207

Open
lighting9999 wants to merge 13 commits into
geekcomputers:masterfrom
lighting9999:my-feature-branch
Open

Fix bugs and use sympy lib to Upgrade and Upgrade grammer to Python 3.14#3207
lighting9999 wants to merge 13 commits into
geekcomputers:masterfrom
lighting9999:my-feature-branch

Conversation

@lighting9999

@lighting9999 lighting9999 commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Description

This PR introduces several enhancements and bug fixes across multiple scripts in the repository, with a focus on modernizing the codebase and improving performance.

Key Changes:

  • Optimized primelib.py: Refactored the prime number utilities library. Replaced custom implementations with sympy for faster and more reliable prime factorization and primality testing[reference:1].
  • Improved Add_two_Linked_List.py: Fixed a logical error in the linked list addition algorithm and refactored the code for better readability and correctness.
  • Modernized Codebase:
    • Updated syntax and features to be compatible with Python 3.14[reference:2].
    • Added comprehensive type hints to all functions for better code clarity and IDE support.
    • Enhanced docstrings with doctest examples to serve as both documentation and tests.
  • General Code Quality:
    • Fixed minor bugs and potential runtime errors.
    • Improved code formatting and adhered to PEP 8 style guidelines.
    • Removed redundant code and simplified complex logic.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Code cleanup/refactoring

Related Issues

Closes #(issue number)

Testing

Please describe the tests you've run to verify your changes:

  • Manual testing
  • Added automated tests (doctests)
  • Existing tests pass

All added doctests have been verified using python -m doctest -v. Existing functionality remains unchanged.

Checklist

  • My code follows the project's code style
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the README.md if needed
  • My changes generate no new warnings
  • I have tested my code locally
  • New and existing tests pass with my changes

Comment thread wifi hack by brutefore.py Fixed
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