On Wednesday, February 5, 2020 at 1:15:23 PM UTC-5, Michael Merickel wrote: > > If you're opening files you should use the context manager - for example: > > with request.POST['file'] as field: > data = field.file.read() >
Thanks, Michael. My application code did that... but somewhere in the form management/validation stack, file objects were being opened and not closed. I haven't tracked down exactly where that happens yet, so I went with the finished callback to close file-like objects. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/696afa5d-13ad-4a3e-9e07-c7c74e75710a%40googlegroups.com.