harsha2010/python-geohash

GAE AttributeError: type object 'float' has no attribute 'fromhex'

Closed this issue · 3 comments

What do you see instead?

if float.fromhex:
AttributeError: type object 'float' has no attribute 'fromhex'

What version of the product are you using? On what operating system?

r231, Google App Engine, geohash.py





Original issue reported on code.google.com by zygiman...@berziunas.com on 30 Mar 2011 at 10:14

object.property rises exception if the property does not exist.
if hasattr(float, 'fromhex') works fine.

Original comment by zygiman...@berziunas.com on 30 Mar 2011 at 12:33

Ah, you're right. 

Original comment by Hiroaki.Kawai@gmail.com on 30 Mar 2011 at 3:42

fixed at r233, targeted to 0.8.3. I'll pack it tomorrow.

Original comment by Hiroaki.Kawai@gmail.com on 30 Mar 2011 at 3:58

  • Changed state: Fixed