#32452: Simplify storing strings/bytes in a Storage
-------------------------------------+-------------------------------------
     Reporter:  Thomas Güttler       |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  File                 |                  Version:  3.1
  uploads/storage                    |
     Severity:  Normal               |               Resolution:  wontfix
     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 Mariusz Felisiak):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 > Things would be bit easier, if save() would support strings/bytes
 directly.

 IMO it would be confusing. `Storage.save()` save content to the file, so
 it supports files and any file-like objects, e.g. `StringIO` or `BytesIO`.
 Making mocking easier is not a sufficient argument for me, it's also not
 clear why this is much harder with the current API.

 You can start a discussion on DevelopersMailingList if you don't agree.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32452#comment:3>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.68a72c9982309d20c23ec3f150f1afa7%40djangoproject.com.

Reply via email to