Was providing filenamecompleter.py to do the filename completion when at the Ferret prompt in PyFerret. Reverts back to Python's default completion when back at the Python prompt.
However, the word delimiters were not being reset. Discovered that setting the readline completer to None assigns readline's default completer, the filename completer I was trying to (poorly) mimic. So removed filenamecompleter.py. Before going to the Ferret prompt, the completer is now set to None (thus readline's filename completer), the word delimiters string is to pyferret.FERRET_READLINE_DELIMS (which the user can assign but by default is readline's default values). On return to the Python prompt the completer and delimiter are returned to whatever they were before going to the Python prompt.
Was providing filenamecompleter.py to do the filename completion when at the Ferret prompt in PyFerret. Reverts back to Python's default completion when back at the Python prompt.
However, the word delimiters were not being reset. Discovered that setting the readline completer to None assigns readline's default completer, the filename completer I was trying to (poorly) mimic. So removed filenamecompleter.py. Before going to the Ferret prompt, the completer is now set to None (thus readline's filename completer), the word delimiters string is to pyferret.FERRET_READLINE_DELIMS (which the user can assign but by default is readline's default values). On return to the Python prompt the completer and delimiter are returned to whatever they were before going to the Python prompt.