If you do not keep references to the pefile.PE() instances the descriptor should be closed once the instance is freed by the garbage collector.
If you want to play it safe you could open the file yourself, read all the data, close the file and create an instance with the alternative form:
pe = pefile.PE(data=data_you_just_read)
Hope that helps,
--
Ero Carrera
> --
> You received this message because you are subscribed to the Google Groups "pefile" group.
> To post to this group, send email to pef...@googlegroups.com.
> To unsubscribe from this group, send email to pefile+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pefile?hl=en.
>