Skip to content

Add flexsearch module and sample program with edge case handling#138145

Closed
KailashSatkuri-warangal wants to merge 1 commit into
python:mainfrom
KailashSatkuri-warangal:feature/my-change
Closed

Add flexsearch module and sample program with edge case handling#138145
KailashSatkuri-warangal wants to merge 1 commit into
python:mainfrom
KailashSatkuri-warangal:feature/my-change

Conversation

@KailashSatkuri-warangal
Copy link
Copy Markdown

  • Added Lib/flexsearch.py: a Python module to parse numbers from strings, sort arrays
    (modes: a/d/min/max), and perform binary search with automatic ascending/descending detection.
  • Added Programs/samplebinarysearch.py: interactive demo program for testing the module.
  • Handles edge cases including empty input, non-numeric input, missing target, duplicates,
    single-element arrays, and mixed separators.
  • Fully tested with interactive user input; ready to run with local CPython build.

This adds a reusable module for numeric parsing, sorting, and searching to the forked CPython repository.

@python-cla-bot
Copy link
Copy Markdown

python-cla-bot Bot commented Aug 25, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented Aug 25, 2025

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@StanFromIreland
Copy link
Copy Markdown
Member

You accidentally opened this against upstream and not the fork you mentioned IIUC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants