Jan-24-2017, 11:37 AM
i am trying to open a file descriptor (an end of a pipe from os.pipe()) using open().
i get a funny error message and execution continues.
i get a funny error message and execution continues.
Output:Traceback (most recent call last):
File "blist.py", line 53, in <module>
result = main( argv )
File "blist.py", line 47, in main
pipeline.run( cmds, stdout=1 )
File "/root/pipeline.py", line 180, in run
start( commands, stdin=stdin, stdout=stdout )
File "/root/pipeline.py", line 156, in start
rfdw = open(rfdw,'w')
TypeError: coercing to Unicode: need string or buffer, int found
^CError in atexit._run_exitfuncs:
lt1/forums /home/forums 75>
any idea what is happening? yes, rfdw is an int. it is supposed to work. it did work. execution continued after the exception and the expected listing came out just fine and correct. using python 3.5.2.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.