Wikipedia
Wikipedia copied to clipboard
about function 'page' and arg 'suggestion'
i use page('bill gate') always errors ,because the 'title = suggestion or results[0]' but suggestion (bill gets) don't exit , so i think it should be 'title = results[0] or suggestion '
In _https://github.com/goldsmith/Wikipedia, What's the deal with ny = wikipedia.page("New York") ?
- It raises DisambiguationError
- It prints itself!! (A list with 69 entries)
- Output cannot be redirected to file!!
- After printing, the script terminates!!
- So, 'ny' variable is never obtained!!
I have to say this: It's one of the craziest things I've met in Python!! Congratulations!
Here's a screenshot (start part of the whole output):
