<div dir="ltr">Hi Andrew,<div><br></div><div>Deprecated methods already print a warning if they are declared with VTK_LEGACY().  Is there a reason that we would want the methods to live longer in Python than they do in C++?</div><div><br></div><div> - David<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 20, 2017 at 5:55 PM, Andrew Maclean <span dir="ltr"><<a href="mailto:andrew.amaclean@gmail.com" target="_blank">andrew.amaclean@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-size:small">What is the best way to handle deprecated methods?</div><div style="font-size:small"><br></div><div style="font-size:small">I'm thinking of doing this:</div><div style="font-size:small"><pre style="color:rgb(0,0,0);font-family:"Courier New";font-size:9pt"><span style="color:rgb(0,0,128);font-weight:bold">try</span>:<br>    windowToImageFilter.SetScale(<span style="color:rgb(0,0,255)">1</span><wbr>)<br><span style="color:rgb(0,0,128);font-weight:bold">except </span><span style="color:rgb(0,0,128)">NameError</span>:<br>    <span style="color:rgb(0,0,128)">print</span>(<span style="color:rgb(0,128,128);font-weight:bold">'windowToImageFilter.<wbr>SetMagnification() is deeprecated in VTK8.1'</span>)<br>    windowToImageFilter.<wbr>SetMagnification(<span style="color:rgb(0,0,255)">1</span>)<br></pre></div><div><div style="font-size:small">The thinking here is that if a deprecated method is ultimately removed, this will still work.</div><div style="font-size:small">​Any better ideas?​</div></div></div></blockquote></div><br></div></div></div>