5

The worst part about switching code from python 2 to python 3:

`map(myfunc, mylist)`, behaves differently, but won't throw an error. It will just show up as nothing.

Comments
  • 0
    math. round (x) works differently too :/
  • 0
    @UjjwalQo I hadn't noticed that one, what does it do differently? I usually just use numpy.
  • 1
    @willbeddow
    Read this question

    http://stackoverflow.com/questions/...

    I sometimes use python for competitive programming. One not so fine day, I just couldn't get my python2.7 code to run even though I was pretty sure my code was algorithmically correct. Afters hours and hours of thinking I don't know why, but I converted my code to python3 and submitted the solution again and boom it passed! ..

    At first I was like WTF 😑.. I had no idea what happened..
    After a few days.. I came across this stack overflow question.. And then my expression was like ohh....😮 faak!
Add Comment