def main (a,b): return a
main(1, !field2!)
main(1,2)
main(!field3!, !field4!)
Isn't it this behavior?NIM059424 - Null values in the feature class do not get replaced when using Python in the Field Calculator.Seems to be fixed in 10.1.
from types import *
if type(c.field) is not NoneType:
c.field = None
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.