#28428: Add support for Pathlib objects in django.core.storage
-------------------------------------+-------------------------------------
     Reporter:  Tom                  |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  File                 |                  Version:  master
  uploads/storage                    |
     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
-------------------------------------+-------------------------------------

Comment (by Tom):

 In my case we have a bunch of methods in our applications that all use
 pathlib instances, some of which is used by our upload_to methods. It
 feels a bit strange to have to return the string representation from them
 when interacting with Django. With Python 2 support out of the picture
 there isn't much reason to, other than historical ones.

 The main advantage is readability, in a lot of cases using Pathlib makes
 `os.path` heavy code a lot less dense.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28428#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/061.7534f8214748dbb415078d4acc0b4f8a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to