Re: Dataclass question

Albert-Jan Roskam <[email protected]> Fri, 23 Aug 2024 21:15:04 +0200
Newsgroups gmane.comp.python.tutor
Message-ID <DB9PR10MB6689FF45ED3578169C1B442983882@DB9PR10MB6689.EURPRD10.PROD.OUTLOOK.COM>
   On Aug 23, 2024 18:41, Mats Wichmann <[email protected]> wrote:

     The unittest module also has a shortener it uses, which is a little more
     general - it chops chars out from in between a prefix and suffix (you
     can give the length of each) and inserts a counter of how much was
     chopped in between, so you can get an output like <snip>

   ====
   Aah, thanks! I never thought about unittest. This looks
   useful: https://github.com/python/cpython/blob/bf1b5d323bdb6b1609c6f4b31dcaed621e5d0e2f/Lib/unittest/util.py#L45.
   Best wishes,
   Albert-Jan
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor