STINNER Victor <[email protected]> added the comment:
> These should *not* be replaced:
>
> r"not/a/$prefix"
> r"$prefix spacevar/subdir"
Honestly, I don't see an issue to replace $prefix in these examples.
These examples seem artificial. The paths are not user provided: they are
hardcoded paths from the sysconfig module:
if opts.ignore_dir:
_prefix = sysconfig.get_path("stdlib")
_exec_prefix = sysconfig.get_path("platstdlib")
I'm not even sure if it's worth it to fix this issue, it's unclear to me how
you could get r"$prefixvar/subdir" from sysconfig.get_path("stdlib").
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39624>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com