#28623: Docs: handle_uploaded_file(f) .. what is "f"?
------------------------------------------+------------------------
Reporter: Thomas Güttler | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------+------------------------
https://docs.djangoproject.com/en/1.11/topics/http/file-uploads/
{{{
def handle_uploaded_file(f):
with open('some/file/name.txt', 'wb+') as destination:
for chunk in f.chunks():
destination.write(chunk)
}}}
I talked with an other developer about this above code.
I started to stutter.
Why?
Because: What is "f"?
A more verbose name would be great.
--
Ticket URL: <https://code.djangoproject.com/ticket/28623>
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/050.da1cc323c894c98097f060bed5c37e5f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.