Re: curious problem with large numbers - Due to subprocess

2005-04-08 Thread Scott David Daniels
Michael Spencer wrote: Problem is associated with executing iteractive input in a subprocess. >python idle.py -n IDLE 1.1 No Subprocess >>> 1e1 1.#INF >>> Really good find. _very_ curious. Perhaps moving the float causes the problem? Where does the value get converted to text

Re: curious problem with large numbers - Due to subprocess - using pickle

2005-04-08 Thread Michael Spencer
Michael Spencer wrote: Problem is associated with executing iteractive input in a subprocess. >python idle.py -n IDLE 1.1 No Subprocess >>> 1e1 1.#INF >>> Michael It seems that the culprit is pickle - used to send messages between the IDLE shell and the execution server. >

Re: curious problem with large numbers - Due to subprocess

2005-04-08 Thread Michael Spencer
Scott David Daniels wrote: Scott David Daniels wrote: Bengt Richter wrote: Aha! Same version (2.3.4): Idle: >>> 1e1 1.0 >>> import struct; struct.pack('d', 1e1) '\x00\x00\x00\x00\x00\x00\xf0?' (which is actually 1.0) python via command line (readline support): >>> 1e1