#29278: FileResponse documentation should warn against using context managers
-------------------------------------+-------------------------------------
Reporter: Mike DePalatis | Owner: Windson
Type: | yang
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 2.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by andrei kulakov):
I don't think this requires a warning because the sole function and
purpose of `with` construct is to close file objects / clean up state when
done with the block. By the same logic we would have to document all
Python features in Django docs.
--
Ticket URL: <https://code.djangoproject.com/ticket/29278#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.7b15c0e200765361339c3cadcbcb9f4a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.