<h1>Potential Incompatibilities with Earlier Versions<aclass="headerlink"href="#potential-incompatibilities-with-earlier-versions"title="Permalink to this headline">¶</a></h1>
<p>This section describes incompatibilities introduced by particular versions of
SIP. Normally these are the removal of previously deprecated features.</p>
<divclass="section"id="sip-v4-10-1">
<h2>SIP v4.10.1<aclass="headerlink"href="#sip-v4-10-1"title="Permalink to this headline">¶</a></h2>
<h3>Newly Deprecated Features<aclass="headerlink"href="#newly-deprecated-features"title="Permalink to this headline">¶</a></h3>
<p>The following parts of the <aclass="reference external"href="c_api.html#ref-c-api"><em>C API</em></a> are now deprecated (but
still supported).</p>
<ulclass="simple">
<li>The <ttclass="docutils literal"><spanclass="pre">D</span></tt> format character of <atitle="sipParseResult"class="reference external"href="c_api.html#sipParseResult"><ttclass="xref docutils literal"><spanclass="pre">sipParseResult()</span></tt></a>.</li>
</ul>
</div>
</div>
<divclass="section"id="sip-v4-8">
<h2>SIP v4.8<aclass="headerlink"href="#sip-v4-8"title="Permalink to this headline">¶</a></h2>
<divclass="section"id="truediv">
<h3>__truediv__<aclass="headerlink"href="#truediv"title="Permalink to this headline">¶</a></h3>
<p>Prior to this version the <ttclass="xref docutils literal"><spanclass="pre">__div__()</span></tt> special method implicitly defined the
<ttclass="xref docutils literal"><spanclass="pre">__truediv__()</span></tt> special method. From this version the <ttclass="xref docutils literal"><spanclass="pre">__truediv__()</span></tt>
special method must be explicitly defined.</p>
</div>
<divclass="section"id="sipwrapper-user-member">
<h3>sipWrapper user Member<aclass="headerlink"href="#sipwrapper-user-member"title="Permalink to this headline">¶</a></h3>
<p>Prior to this version the <atitle="sipWrapper"class="reference external"href="c_api.html#sipWrapper"><ttclass="xref docutils literal"><spanclass="pre">sipWrapper</span></tt></a> structure had a member called
<atitle="user"class="reference external"href="c_api.html#user"><ttclass="xref docutils literal"><spanclass="pre">user</span></tt></a> which is available for handwritten code to use. From this
version <atitle="user"class="reference external"href="c_api.html#user"><ttclass="xref docutils literal"><spanclass="pre">user</span></tt></a> is a member of the <atitle="sipSimpleWrapper"class="reference external"href="c_api.html#sipSimpleWrapper"><ttclass="xref docutils literal"><spanclass="pre">sipSimpleWrapper</span></tt></a> structure.</p>
<p><atitle="sipWrapper"class="reference external"href="c_api.html#sipWrapper"><ttclass="xref docutils literal"><spanclass="pre">sipWrapper</span></tt></a> pointers can be safely cast to <atitle="sipSimpleWrapper"class="reference external"href="c_api.html#sipSimpleWrapper"><ttclass="xref docutils literal"><spanclass="pre">sipSimpleWrapper</span></tt></a>
pointers, so if your code does something like:</p>
<h3>Removal of Previously Deprecated Features<aclass="headerlink"href="#removal-of-previously-deprecated-features"title="Permalink to this headline">¶</a></h3>
<p>The following parts of the <aclass="reference external"href="c_api.html#ref-c-api"><em>C API</em></a> have been removed.</p>
<ulclass="simple">
<li>The <ttclass="docutils literal"><spanclass="pre">a</span></tt>, <ttclass="docutils literal"><spanclass="pre">A</span></tt>, <ttclass="docutils literal"><spanclass="pre">M</span></tt>, <ttclass="docutils literal"><spanclass="pre">N</span></tt>, <ttclass="docutils literal"><spanclass="pre">O</span></tt>, <ttclass="docutils literal"><spanclass="pre">P</span></tt> and <ttclass="docutils literal"><spanclass="pre">T</span></tt> format characters
from <atitle="sipBuildResult"class="reference external"href="c_api.html#sipBuildResult"><ttclass="xref docutils literal"><spanclass="pre">sipBuildResult()</span></tt></a> and <atitle="sipCallMethod"class="reference external"href="c_api.html#sipCallMethod"><ttclass="xref docutils literal"><spanclass="pre">sipCallMethod()</span></tt></a>.</li>
<li>The <ttclass="docutils literal"><spanclass="pre">a</span></tt>, <ttclass="docutils literal"><spanclass="pre">A</span></tt>, <ttclass="docutils literal"><spanclass="pre">L</span></tt> and <ttclass="docutils literal"><spanclass="pre">M</span></tt> format characters from
<li>The <ttclass="xref docutils literal"><spanclass="pre">transfer()</span></tt> function of the <atitle=""class="reference external"href="python_api.html#module-sip"><ttclass="xref docutils literal"><spanclass="pre">sip</span></tt></a> module.</li>
<li>The old-style generated type convertors.</li>
</ul>
<p>In addition the <aclass="reference external"href="command_line.html#cmdoption-sip-a"><emclass="xref">-a</em></a> command line option to <ttclass="docutils literal"><spanclass="pre">configure.py</span></tt> has
<li>The <ttclass="docutils literal"><spanclass="pre">B</span></tt>, <ttclass="docutils literal"><spanclass="pre">C</span></tt> and <ttclass="docutils literal"><spanclass="pre">E</span></tt> format characters of <atitle="sipBuildResult"class="reference external"href="c_api.html#sipBuildResult"><ttclass="xref docutils literal"><spanclass="pre">sipBuildResult()</span></tt></a> and
<li>The <ttclass="docutils literal"><spanclass="pre">s</span></tt>, <ttclass="docutils literal"><spanclass="pre">C</span></tt> and <ttclass="docutils literal"><spanclass="pre">E</span></tt> format characters of <atitle="sipParseResult"class="reference external"href="c_api.html#sipParseResult"><ttclass="xref docutils literal"><spanclass="pre">sipParseResult()</span></tt></a>.</li>
</ul>
</div>
</div>
<divclass="section"id="sip-v4-7-8">
<h2>SIP v4.7.8<aclass="headerlink"href="#sip-v4-7-8"title="Permalink to this headline">¶</a></h2>
<h3>Automatic int to Enum Conversions<aclass="headerlink"href="#automatic-int-to-enum-conversions"title="Permalink to this headline">¶</a></h3>
<p>This version allows a Python <ttclass="docutils literal"><spanclass="pre">int</span></tt> object to be passed whenever an enum is
expected. This can mean that two signatures that were different with prior
versions are now the same as far as Python is concerned.</p>
<p>The <aclass="reference external"href="annotations.html#aanno-Constrained"><ttclass="xref docutils literal"><spanclass="pre">Constrained</span></tt></a> argument annotation can now be applied to an enum
argument to revert to the earlier behaviour.</p>
</div>
</div>
<divclass="section"id="sip-v4-7-3">
<h2>SIP v4.7.3<aclass="headerlink"href="#sip-v4-7-3"title="Permalink to this headline">¶</a></h2>
<h3>%ConvertFromTypeCode and %ConvertToTypeCode<aclass="headerlink"href="#convertfromtypecode-and-converttotypecode"title="Permalink to this headline">¶</a></h3>
<p>Handwritten <aclass="reference external"href="directives.html#directive-%ConvertFromTypeCode"><ttclass="xref docutils literal"><spanclass="pre">%ConvertFromTypeCode</span></tt></a> and
<aclass="reference external"href="directives.html#directive-%ConvertToTypeCode"><ttclass="xref docutils literal"><spanclass="pre">%ConvertToTypeCode</span></tt></a> now have the responsibility for implementing
the <aclass="reference external"href="annotations.html#aanno-Transfer"><ttclass="xref docutils literal"><spanclass="pre">Transfer</span></tt></a> and <aclass="reference external"href="annotations.html#aanno-TransferBack"><ttclass="xref docutils literal"><spanclass="pre">TransferBack</span></tt></a> annotations.</p>
</div>
<divclass="section"id="sip-build">
<h3>SIP_BUILD<aclass="headerlink"href="#sip-build"title="Permalink to this headline">¶</a></h3>
<p>The <ttclass="xref docutils literal"><spanclass="pre">SIP_BUILD</span></tt> C preprocessor symbol has been removed.</p>
</div>
<divclass="section"id="id2">
<h3>Newly Deprecated Features<aclass="headerlink"href="#id2"title="Permalink to this headline">¶</a></h3>
<p>The following parts of the <aclass="reference external"href="c_api.html#ref-c-api"><em>C API</em></a> are now deprecated (but