Collections.namedtuple()

  • + 0 comments

    Collections.namedtuple() is a factory function in Python provided by the collections module that allows you to create simple, immutable classes for storing data — similar to a lightweight class, but with less boilerplate. Gold 365 Site