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 OBStereo.ImplicitRef
would be to use long


On Fri, Dec 4, 2015 at 2:25 PM, Geoffrey Hutchison <
geoff.hutchi...@gmail.com> wrote:

> 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.
>
>
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to