Hi!

Thank you Armin for the awesome software.  I'm a fan.

So...I'm using werkzeug.datastructure.FileStorage objects in my flask api.  
I instantiate the object early in the code passing in an open file handle 
to the constructor.  Do lots of other stuff, and then don't actually use 
the .save() method until much later in the code.  I'm wondering if the 
object will discard the filehandle when the function ends, or if I need to 
wrap the whole section of code in a with or try/finally and then worry 
about closing the filehandle myself.  I don't really know how open 
filehandles are handled in flask in general, so perhaps it will be closed 
anyway when the function finishes.  Just worried about leaving a bunch of 
open files around.

Thanks!

~Sean

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pocoo-libs+unsubscr...@googlegroups.com.
To post to this group, send email to pocoo-libs@googlegroups.com.
Visit this group at https://groups.google.com/group/pocoo-libs.
For more options, visit https://groups.google.com/d/optout.

Reply via email to