#33839: Support pathlib.Path in loaders' get_template().
---------------------------------+-----------------------------------------
Reporter: simon klemenc | Owner: simon klemenc
Type: New feature | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
---------------------------------+-----------------------------------------
Comment (by Carlton Gibson):
TBH I think I'm -1 on this as well.
I see no benefit in loosening the accepted type on the `template_name`
argument, from `str` to `Union[str, Path]` as in the draft PR.
It's a looser API, that doesn't match the underlying expectations, as
David points out.
I'd suggest casting to `str` as a last step if want to use `pathlib` for
the manipulations.
--
Ticket URL: <https://code.djangoproject.com/ticket/33839#comment:4>
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/01070181f666393e-4027d299-ff2f-46ab-a3b8-72bb15e3dd2e-000000%40eu-central-1.amazonses.com.