Pour tester la compatibilité ascendante des champs de bits dans votre code vous pouvez ajouter une instruction assert pour vérifier si les structures ont la taille attendue.
To check the backward compatibility of bit fields in your code you can add an assert statement that checks for the structure size you are expecting.
Assertions sont effectuées par l'instruction assert, le nouveau mot-clé Python, introduit dans la version 1.5.
Assertions are carried out by the assert statement, the newest keyword to Python, introduced in version 1.5.
L'instruction ASSERT est un moyen pratique d'insérer dans les fonctions PL/pgSQL des vérifications d'assertions.
The ASSERT statement is a convenient shorthand for inserting debugging checks into PL/pgSQL functions.
Notez que l'instruction ASSERT sert à détecter des erreurs de programmation, pas à rapporter des erreurs ordinaires.
Note that ASSERT is meant for detecting program bugs, not for reporting ordinary error conditions.
Potentieel gevoelige of ongepaste informatie
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.