setMode in 2.39

hello

i have some ‘old’ scripts that stopped working in recent compiled blender versions

, namely lines where i have:

mesh.setMode( “SubSurf” )

resulting in the following error:

attributeerror: unknown nmesh mode

i compiled recently the python apidox
but it still mentions the following:

"
setMode(m=None, m1=None, m2=None, m3=None)
Set the mode flags for this mesh. Given mode strings turn the mode “on”. Modes not passed in are turned “off”, so setMode() (without arguments) unsets all mode flags.
Parameters:
m - mode string or int. An int (see Modes) or from none to 5 strings can be given:
“NoVNormalsFlip”
“TwoSided”
“AutoSmooth”
“SubSurf”
“Optimal”
"

although nmesh.c only mentions the first three modes
, the last two omitted

so does anybody know how to turn subsurf through python the new way ?

thanks
jmcs3