Our Ubuntu 24.04/mod_wsgi mystery keeps being deeper: it's been pointed out that list doesn't normally have a __str__ method; normally it comes from 'object'. So our real problem is that the list builtin in mod_wsgi executed Python has acquired a __str__ special method (!!).