जब मैं अजगर के साथ इस कोड को निष्पादित करने के 3.2.2स्वरूपण तार() अजगर 3.x में
working_file = subprocess.Popen(["/pyRoot/iAmAProgram"], stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE)
working_file.stdin.write('message')
मैं समझता हूँ की कोशिश मैं एक समस्या है जहाँ मैं त्रुटियों मिल रही है कि अजगर 3 तारों को संभालने के तरीके को बदल दिया लेकिन मुझे समझ नहीं आया कि 'संदेश' को कैसे प्रारूपित किया जाए। क्या कोई जानता है कि मैं इस कोड को वैध कैसे बदलूं?
बहुत धन्यवाद
जॉन
अद्यतन: यहाँ त्रुटि संदेश मैं मिल
Traceback (most recent call last):
File "/pyRoot/goRender.py", line 18, in <module>
working_file.stdin.write('3')
TypeError: 'str' does not support the buffer interface
आप त्रुटि संदेश भूल गया। –