[Pyobjc-dev] Pickling OC_PythonFloat causes a crash
Brought to you by:
ronaldoussoren
From: Luc H. <lu...@ho...> - 2006-05-19 11:15:12
|
Yo, I just spent two days tracking down a weird (and bad) crash in my PyObjC application, which turns out to be a problem of pickling (using cPickle, fwiw) an instance of what I thought was a python float but which actually is a objc._pythonify.OC_PythonFloat. Switching the value of this attribute to an int fixes the crash, which is fine for me because using a float (from NSTextField.floatValue instead of intValue) in my particular case was a mistake to begin with. But I'm curious to know exactly why the crash occurs when using a float-which-is-not-a-float... :) -- Luc Heinrich - lu...@ho... - http://www.honk-honk.com |