Message from Python discussions

December 2018

— 😍

— 

More so yes but cant give you a definitive answer to that,,,,,as am not well versed with binary and how to manipulate them

— Cuz floating point operations are messy.

— Try:
0.3*2==0.6
0.2*3==0.6
And enjoy with the answer in python

— Hi! I am trying to get EXIF metadata from image (XPKeywords to be more precise), but all I get is (74, 4, 59, 0, 116, 0, 101, 0, 115, 0, 116, 0, 0, 0) instead of "ъ;test". I am using piexif library

Message permanent page

— XnView recognizes tags properly

— Hm

— 

from PIL import Image
import piexif
image = Image.open("IMG_20181118_210156_922.jpg")
exif = piexif.load(image.info["exif"])
print(exif["0th"]["0x9c9e"])

My code

Message permanent page

— True, becuz not all floating point numbers can be expressed in binary

— Can you dump whole exif on something like pastebin?

— 

{'0th': {34665: 2110, 40094: (74, 4, 59, 0, 116, 0, 101, 0, 115, 0, 116, 0, 0, 0)}, 'Exif': {}, 'GPS': {}, 'Interop': {}, '1st': {}, 'thumbnail': None}

Message permanent page

— It's not that long