Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Solved
    • Unsolved
    • Search
    1. Home
    2. thom
    3. Best
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by thom

    • RE: What's the main difference between py2 vs py3?

      I noticed today iterate a dict works also different.
      While translating scripts from py2 to py3 this was a thing...

      If the keys are integers in py2 they will be sorted.
      In py3 the will stay in order as appended to dict.

      print {1:"A",0:"B"} 
      > {0: 'B', 1: 'A'}
      

      vs

      print({1:"A",0:"B"})
      > {1: 'A', 0: 'B'}
      

      (also it seems print() is not coloured in snippet)

      posted in General Discussion
      thom
      thom
    • From app to this forum.

      Link to this forum in the app would be nice.
      Maybe also a upload to forum thingy?
      Just thinking out loud...

      posted in Feature Requests
      thom
      thom