Re: [OpenBabel-Devel] python cast of OBStereo.NoRef

2015-12-04 Thread TJ O'Donnell
I'm not 100% sure, but I believe Python does not implement unsigned. Python shows the print config.refs as 4294967294L (long) but print ob.OBStereo.NoRef, ob.OBStereo.ImplicitRef as -1 and -2 So, I'm thinking the only way to get the python comparison of config.refs elements to OBStereo.NoRef or O

Re: [OpenBabel-Devel] python cast of OBStereo.NoRef

2015-12-04 Thread Geoffrey Hutchison
Is it really a cast to long or a cast to unsigned? -Geoff > I think the cast to int should be cast to long for > OBStereo.NoRef and OBStereo.ImplicitRef > > I would like to compare config.refs elements to OBStereo.NoRef > or OBStereo.ImplicitRef, but these come up as -1 and -2 in python/swig.

[OpenBabel-Devel] python cast of OBStereo.NoRef

2015-10-30 Thread TJ O'Donnell
I think the cast to int should be cast to long for OBStereo.NoRef and OBStereo.ImplicitRef I would like to compare config.refs elements to OBStereo.NoRef or OBStereo.ImplicitRef, but these come up as -1 and -2 in python/swig. Here's an example. slim:~ tj$ cat atest.py import openbabel as ob mol