#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          |               Resolution:
     Keywords:                  |             Triage Stage:  Unreviewed
    Has patch:  0               |      Needs documentation:  0
  Needs tests:  0               |  Patch needs improvement:  0
Easy pickings:  0               |                    UI/UX:  0
--------------------------------+--------------------------------------
Description changed by Thomas Güttler:

Old description:

> 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.

New description:

 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 can create a pull request.

 It would be nice if you give me a matching name for this variable.

 I started to stutter.

 Why?

 Because: What is "f"?

 A more verbose name would be great.

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28623#comment:1>
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/065.ed1cec15edb3879f506d5d42aed5b393%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to