On Jul 17, 2018, at 07:59, Guido van Rossum <gu...@python.org> wrote: > > Personally I like Barry's example just fine -- assuming `subdirs` is not used > later, this feels like a good use case.
Thanks! I thought it was cute. It was just something that occurred to me as I was reviewing some existing code. The intent wasn’t to use `subdirs` outside of the assert statement, but I’m warm to it because it means I don’t have to do wasted work outside of the assert statement, or repeat myself in the assert message part. -Barry
signature.asc
Description: Message signed with OpenPGP
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com