#28623: Docs: handle_uploaded_file(f) .. what is "f"? -------------------------------------+------------------------------------- Reporter: Thomas Güttler | Owner: nobody Type: | Status: new Cleanup/optimization | Component: Documentation | Version: 1.11 Severity: Normal | Resolution: Keywords: | Triage Stage: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Tim Graham):
* type: Uncategorized => Cleanup/optimization * component: Uncategorized => Documentation Comment: Look at the usage code above: `handle_uploaded_file(request.FILES['file'])`. If you click on the docs for `request.FILES`, you'll see, "Each value in `FILES` is an `UploadedFile`." I'm not sure a more verbose name provides much benefit. If you read [https://docs.python.org/3/tutorial/inputoutput.html the Python docs for files], you'll see that `f` is a common variable name, probably to avoid clashing with the Python built-in `file`. -- Ticket URL: <https://code.djangoproject.com/ticket/28623#comment:2> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.c59c06b03561aa857108cda5e0fd42f1%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.