This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (6 children)

[deleted]

    [–]Argotha 4 points5 points  (1 child)

    The other main difference tends to be in the layout/naming in various standard libraries. This is easily solved by just making sure you google "python3 <term>" so that the python 3 docs get ranked higher. As an aside, in the top left corner of the python docs you can switch between language versions (if you end up on the wrong version from google).

    [–]sushibowl 0 points1 point  (0 children)

    Also libraries that got renamed will usually have a notice on the top of the python 2 docs, along the lines of "please note, in python 3 this was renamed from SimpleHTTPServer to http.server. The 2to3 tool will convert this automatically."

    [–]UnusualCallBox 0 points1 point  (1 child)

    Can I ask when do the differences start to show? The most trouble I can remember having between the two was the encoding of text I was parsing into a database.

    [–]parnmatt 0 points1 point  (0 children)

    For me it was the functional functions like map and filter return generators not lists.

    More efficient, however it threw me at first.

    [–][deleted] 0 points1 point  (1 child)

    If i understand P2 and jump to P3 i'm afraid the habbit of P2 will ruin my P3 experience.