This section describes incompatibilities introduced by particular versions of SIP. Normally these are the removal of previously deprecated features.
The following parts of the C API are now deprecated (but still supported).
Prior to this version the __div__() special method implicitly defined the __truediv__() special method. From this version the __truediv__() special method must be explicitly defined.
Prior to this version the sipWrapper structure had a member called user which is available for handwritten code to use. From this version user is a member of the sipSimpleWrapper structure.
sipWrapper pointers can be safely cast to sipSimpleWrapper pointers, so if your code does something like:
((sipWrapper *)obj)->user = an_object_reference;
then you just need to change it to:
((sipSimpleWrapper *)obj)->user = an_object_reference;
The following parts of the C API have been removed.
In addition the -a command line option to configure.py has been removed.
The following PyTQt-specific support functions have been removed.
The following parts of the C API are now deprecated (but still supported).
This version allows a Python int 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.
The Constrained argument annotation can now be applied to an enum argument to revert to the earlier behaviour.
Prior to this version SIP did not automatically generate missing complementary comparison operators. Typically this was worked around by adding them explicitly to the .sip files, even though they weren’t implemented in C++ and relied on the C++ compiler calling the complementary operator that was implemented.
A necessary change to the code generator meant that this not longer worked and so SIP was changed to automatically generate any missing complementary operators. If you have added such operators explicitly then you should remove them or make them dependent on the particular version of SIP.
Handwritten %ConvertFromTypeCode and %ConvertToTypeCode now have the responsibility for implementing the Transfer and TransferBack annotations.
The SIP_BUILD C preprocessor symbol has been removed.