For NULL columns it throws and exception with a traceback:
File "/usr/lib64/python2.5/site-packages/Sybase.py", line 681, in _fetch_rows
else:
File "/usr/lib64/python2.5/site-packages/Sybase.py", line 289, in _extract_row
set_global_ctx(_ctx)
File "/usr/lib64/python2.5/site-packages/Sybase.py", line 279, in _column_value
desc.append((buf.name, buf.datatype, 0,
File "/usr/lib64/python2.5/site-packages/Sybase.py", line 198, in <lambda>
elif mn == 2812: ## Procedure not found
AttributeError: 'NoneType' object has no attribute 'year'
I think this patch python-sybase-Patches-3132535 will fix this. You can also use the DateTimeAsPython dictionary from the patch as the output map argument when you create a cursor.