Re: Inconsistent results from int(floatNumber)

2010-10-26 Thread gershar
On Oct 25, 5:44 pm, gershar gerrys...@gmail.com wrote: I had some problems with some Python projects that gave variable results that I could not track down. Eventually and reluctantly I converted them to Java. Later, when I had more time I tried to analyze what the Python code was doing

Inconsistent results from int(floatNumber)

2010-10-25 Thread gershar
I had some problems with some Python projects that gave variable results that I could not track down. Eventually and reluctantly I converted them to Java. Later, when I had more time I tried to analyze what the Python code was doing and found something strange. The following snippet illustrates

Problem: Windows Command line Pipe to stdin

2005-10-30 Thread GerShar
Python 2.3 on Windows XP The following works when run from the command line. import sys text = sys.stdin.read() # do something on the text # ... sys.stdout.write(text) But if the above code is used as a filter program that gets another programs output as shown below, it fails as shown.