[issue40529] Auto Completions with case insensitive

Madhusudhan Kasula report at bugs.python.org
Wed May 6 11:43:24 EDT 2020


Madhusudhan Kasula <kasula.madhusudhan at gmail.com> added the comment:

Yes. Python is case sensitive language and this feature will not break its essence.
This case insensitive completion will help interpreter user for easy typing and choose from the available options.
In the following example even user typed 'os.po', completions will give user all the options ignoring case:

>>>  os.po
os.POSIX_FADV_DONTNEED    os.POSIX_FADV_NORMAL      os.POSIX_FADV_SEQUENTIAL  os.popen(                 os.posix_fallocate(       
os.POSIX_FADV_NOREUSE     os.POSIX_FADV_RANDOM      os.POSIX_FADV_WILLNEED    os.posix_fadvise(         
>>> os.po

And finally, this is implemented as an controllable user option with default value as 'case sensitive'. So user can choose to go case insensitive or not. Even core 'readline' also provide this option with 'set completion-ignore-case on'.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40529>
_______________________________________


More information about the Python-bugs-list mailing list