Wikipedia icon indicating copy to clipboard operation
Wikipedia copied to clipboard

about function 'page' and arg 'suggestion'

Open wind641727121 opened this issue 4 years ago • 1 comments

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 '

wind641727121 avatar Dec 11 '20 05:12 wind641727121

In _https://github.com/goldsmith/Wikipedia, What's the deal with ny = wikipedia.page("New York") ?

  1. It raises DisambiguationError
  2. It prints itself!! (A list with 69 entries)
  3. Output cannot be redirected to file!!
  4. After printing, the script terminates!!
  5. 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): image

AlkisPis avatar Jun 15 '21 21:06 AlkisPis