|
From: | Aaron |
Subject: | [Duplicity-talk] Path.name, Path.uc_name and Path.b_name |
Date: | Wed, 29 Nov 2017 23:19:04 +0000 |
Hello all, I would appreciate views on the naming of the Unicode and bytes variants of a Path's filename. Historically we have had Path.name, which has been a Python 2
string/bytes. For better Python 3 compatibility, we need to start
moving towards all strings being Unicode and all bytes being
bytes. As we still need to support Python 2 it is safest to keep
the bytes version of the filename as well, rather than only
keeping the Unicode version and converting on each use. The three key options I see are:
I have currently gone for Option 1, as it is closest to what we are currently doing, but I think Option 2 may be most sensible if others agree. Kind regards, Aaron |
[Prev in Thread] | Current Thread | [Next in Thread] |