DrDamnit
asked on
Insert a dictionary into a dictionary?
I am working on building an auto-complete for readline. What I have works, but it's static.
I want it to be able to prompt me based on file contents.
Although I knew it wouldn't work, here's what I tried:
What I want is the output of this function to be part of the dictionary at the place called out with the arrow above:
For reference, this is how the readline completer is coded:
I want it to be able to prompt me based on file contents.
Although I knew it wouldn't work, here's what I tried:
What I want is the output of this function to be part of the dictionary at the place called out with the arrow above:
For reference, this is how the readline completer is coded:
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
OK, thanks for feedback ;)
ASKER
Code is: