I'd be in favor of a nice syntax for named mapping unpacking.
But while we are at discussion - I'd point out it is "possible" (not easy)
with
current day syntax, by abusing the command "import" -
One can set appropriate import hooks that would enable
either for the current module, or maybe, in a c
On 2/11/2022 2:01 PM, Paul Moore wrote:
On Fri, 11 Feb 2022 at 16:37, Christopher Barker wrote:
On Fri, Feb 11, 2022 at 12:28 AM Serhiy Storchaka wrote:
expandvars() does not operate on paths, it operates on strings and
bytestrings. There is nothing path-specific here. Expanding environment
On Sun, 13 Feb 2022 at 02:45, Eric V. Smith wrote:
>
>
> On 2/11/2022 2:01 PM, Paul Moore wrote:
> > On Fri, 11 Feb 2022 at 16:37, Christopher Barker
> > wrote:
> >> On Fri, Feb 11, 2022 at 12:28 AM Serhiy Storchaka
> >> wrote:
> >>> expandvars() does not operate on paths, it operates on strin
> On Feb 12, 2022, at 10:54 AM, Chris Angelico wrote:
>
> On Sun, 13 Feb 2022 at 02:45, Eric V. Smith wrote:
>>
>>
>>> On 2/11/2022 2:01 PM, Paul Moore wrote:
>>> On Fri, 11 Feb 2022 at 16:37, Christopher Barker
>>> wrote:
On Fri, Feb 11, 2022 at 12:28 AM Serhiy Storchaka
wrote
On Sun, 13 Feb 2022 at 02:57, Eric V. Smith wrote:
> See Paul’s example, copied above. Maybe the code isn’t expecting it.
>
There wasn't an actual example, just a hypothetical one. I have never
once seen something in real usage where you interpolate environment
variables into a path, without expe
On Sat, 12 Feb 2022 at 16:02, Chris Angelico wrote:
>
> On Sun, 13 Feb 2022 at 02:57, Eric V. Smith wrote:
> > See Paul’s example, copied above. Maybe the code isn’t expecting it.
> >
>
> There wasn't an actual example, just a hypothetical one. I have never
> once seen something in real usage whe
On Sun, 13 Feb 2022 at 03:15, Paul Moore wrote:
>
> On Sat, 12 Feb 2022 at 16:02, Chris Angelico wrote:
> >
> > On Sun, 13 Feb 2022 at 02:57, Eric V. Smith wrote:
> > > See Paul’s example, copied above. Maybe the code isn’t expecting it.
> > >
> >
> > There wasn't an actual example, just a hypot
On Fri, Feb 11, 2022 at 07:01:12PM +, Paul Moore wrote:
> One way that tying it to paths is bad is that it ignores the path
> structure. If environment variable a is "d1/f1" and b is "d2/f2" then
> "${a}x${b}" is "d1/f1xd2/f2", which could be very confusing to someone
> who sees the value of b
On Fri, Feb 11, 2022 at 08:00:54AM -0800, Christopher Barker wrote:
> I have to say I agree with Neil here. I was trying to think about what
> other reasons an attribute might be unsettable, and did not quickly come up
> with that list.
I'm curious what list you came up with if it excluded the th