[Python-Dev] marshal / unmarshal

2005-04-08 Thread Scott David Daniels
What should marshal / unmarshal do with floating point NaNs (the case we are worrying about is Infinity) ? The current behavior is not perfect. Michael Spencer chased down a supposed Idle problem to (on Win2k): marshal.dumps(1e1) == 'f\x061.#INF' marshal.loads('f\x061.#INF') == 1.0

Re: [Python-Dev] marshal / unmarshal

2005-04-08 Thread Tim Peters
[Scott David Daniels] What should marshal / unmarshal do with floating point NaNs (the case we are worrying about is Infinity) ? The current behavior is not perfect. All Python behavior in the presence of a NaN, infinity, or signed zero is a platform-dependent accident. This is because C89