<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 9, 2013 at 5:47 AM, Richard Purdie <span dir="ltr">&lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":y2">There are long standing complaints about the fact its very difficult<br>
to remove a portion of a variable. The immediate request is for a -=<br>
and =- operator. The trouble is that += and =+ are &quot;immediate&quot;<br>
operators and are applied straight away. Most people would expect<br>
-= and =- to be deferred to have the effect most people desire and<br>
therefore implementing -= and =- would just make the situation more<br>
confusing.<br>
<br>
This deferred operation is much more similar to the override syntax<br>
which happens at data store finalisation. The _remove operator is<br>
therefore in keeping with the _append and _prepend operations.<br>
<br>
This code is loosely based on a patch from Peter Seebach although it<br>
has been rewritten to be simpler, more efficient and avoid some<br>
potential bugs.</div></blockquote></div><br>This is a nice idea, though I&#39;m slightly concerned about the naive implementation (use of str.replace). Without it being either word-based (limits flexibility to optimize for the common case) or regex-based (more complex), we may be greatly limiting the usefulness. I wouldn&#39;t want to try to remove a word from DISTRO_FEATURES and end up removing part of a word, for example.<br>

-- <br>Christopher Larson</div></div>