Re: [Python-Dev] interaction between locals, builtins and except clause
Lisandro Dalcin schrieb: > Porting to Py3K, I modified a function like the followin, using a > trick for it working in Py2.x . > > def __iter__(self): > if self == _mpi.INFO_NULL: > return > try:range = xrange > except: pass > nkeys = _mpi.info_g
[Python-Dev] interaction between locals, builtins and except clause
Porting to Py3K, I modified a function like the followin, using a trick for it working in Py2.x . def __iter__(self): if self == _mpi.INFO_NULL: return try:range = xrange except: pass nkeys = _mpi.info_get_nkeys(self) for nthkey in range(