omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. craftmojo
    3. Topics

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 8
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by craftmojo

    • craftmojo

      Upgrade matplotlib to the latest
      Pythonista • • craftmojo

      6
      0
      Votes
      6
      Posts
      4389
      Views

      dgelessus

      No, you can only install pure Python modules yourself. Modules such as numpy and matplotlib that use C, Cython, Fortran or other compiled languages need to be integrated into Pythonista by omz, because Apple's app guidelines do not allow compiling native code in an app, and simply because there are no C compilers for iOS on iOS.

    • craftmojo

      string.maketrans() method not working
      Pythonista • help • • craftmojo

      7
      0
      Votes
      7
      Posts
      7474
      Views

      dgelessus

      Exactly. str is the string class, and you can use it to convert an object to a string. For example, str(42) is the same as '42'. This is important when you want to do something like this:

      print("Your score is: " + str(42))

      Without using str, you would get a TypeError, because you can't add a string and a number.

      This means that if you assign something different to the name str, you cannot use the original str class anymore. The same goes for other standard types like int, float, list, dict, etc.