mother of based

mother of based

Beware Cat Shirt $21.68

Rise, Grind, Banana Find Shirt $21.68

Beware Cat Shirt $21.68

  1. 3 weeks ago
    Anonymous

    mein gott

  2. 3 weeks ago
    Anonymous

    I just put list=[] and the garbage collector takes care of the old list

    • 3 weeks ago
      Anonymous

      This fails if another variable is referencing the list, the right way to do it is with .clear()

      while len(l):
      del l[-1]

      Make it pythonic sirs
      while lst:
      lst.pop()

      • 3 weeks ago
        Anonymous

        Beautiful saar

  3. 3 weeks ago
    Anonymous

    Don't call your lists list because then you won't be able to cast other shit like sets to lists.

    • 3 weeks ago
      Anonymous

      But a set isn't a list, anongay

  4. 3 weeks ago
    Anonymous

    What's the question?

    • 3 weeks ago
      Anonymous

      moron detected

      • 3 weeks ago
        Anonymous

        I'm asking what the question is for this answer. Clearly you're the autistic moron in this thread.

    • 3 weeks ago
      Anonymous

      Seconded

    • 3 weeks ago
      Anonymous

      Probably how to clear an array that may be held, referenced by other code.

      • 3 weeks ago
        Anonymous

        I would personally just set it to None then. del seems like an expensive operation, except if there is a delall that would be efficient

  5. 3 weeks ago
    Anonymous

    who is the father?

  6. 3 weeks ago
    Anonymous

    for me it is
    import gc

    del list
    gc.collect()

  7. 3 weeks ago
    Anonymous

    That was a dumb answer in a few different ways, but there's no need to delete from the last item.

    while len(list):
    del list[0]

    Works quite fine.

    • 3 weeks ago
      Anonymous

      it's much more efficient to delete from the last element

      • 3 weeks ago
        Anonymous

        If you care about efficiency, don't use Python

      • 3 weeks ago
        Anonymous

        while len(l):
        del l[-1]

  8. 3 weeks ago
    Anonymous

    just do
    del list

    lmaooo
    you dont have to delete everything in it
    ltierally just delete the list

  9. 3 weeks ago
    Anonymous

    >me when I spread misinformation on the internet

Your email address will not be published. Required fields are marked *