2021-01-04

20 best Python questions at stackoverflow in 2020

This is the 20 most rated questions at 2020 Stack Overflow.
Between brackets: question score & answers count
Built date: 2021/01/04 19:25:02 GMT


  1. What causes [*a] to overallocate? - [143/3]
  2. Count letters in a text in the Welsh language - [78/4]
  3. How do you fix "runtimeError: package fails to pass a sanity check" for numpy and pandas? - [132/9]
  4. How to bypass python function definition with decorator? - [68/5]
  5. Why doesn't Python give any error when quotes around a string do not match? - [67/4]
  6. Why do I get this many iterations when adding to and removing from a set while iterating over it? - [69/4]
  7. Why is a.insert(0,0) much slower than a[0:0]=[0]? - [63/1]
  8. xlrd.biffh.XLRDError: Excel xlsx file; not supported - [55/2]
  9. Does Python forbid two similarly looking Unicode identifiers? - [80/2]
  10. Zipped Python generators with 2nd one being shorter: how to retrieve element that is silently consumed - [54/8]
  11. regex to find a pair of adjacent digits with different digits around them - [57/4]
  12. Why is this regex so slow in java - [51/4]
  13. Efficient way to remove half of the duplicate items in a list - [60/12]
  14. How is `x = 42; x = lambda: x` parsed? - [46/3]
  15. Why is math.sqrt massively slower than exponentiation? - [51/3]
  16. How can I replace the first occurrence of a character in every word? - [46/6]
  17. Generate list of numbers and their negative counterparts in Python - [60/14]
  18. Python round to next highest power of 10 - [47/6]
  19. Discord.py Glitch or random error: TypeError: __new__() got an unexpected keyword argument 'deny_new' - [50/5]
  20. Does string slicing perform copy in memory? - [40/3]