omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Arrays

    Pythonista
    2
    2
    1654
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • misha_turnbull
      misha_turnbull last edited by

      Something I feel is missing from the Python language is the array data type. I know of the builtin array module but I haven't yet seen it used and having tried it decided I wanted something more akin to the C++ type. So I made this.

      https://gist.github.com/080801f5da7cda04cee6

      All it really is is a list of lists, with a fancy wrapper and some ways to manipulate said lists. I plan to keep working on this, specifically the .setmultiz method, and will post a release here when I do. Let me know if you fix it before I do (its probable)!

      Edit: For some reason a line of code wasnt uploaded to the gist. In the .setmultiz method I included a
      <code>raise NotImplementedError('I tried to make this work...but it wouldnt. :(')</code>

      sooo....pretend its there. :p

      1 Reply Last reply Reply Quote 0
      • polymerchm
        polymerchm last edited by

        Your should read up on numpy. Its all there and coded efficiently.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB Forums | Contributors