title: createNamedPipe in python
body: <p>hello I have two python files(namedpipe)</p>
  
  <p><strong>a.py</strong> </p>
  
  <pre><code>import win32pipe, win32file
  
  p = win32pipe.CreateNamedPipe(r'\\.\pipe\test_pipe',
      win32pipe.PIPE_ACCESS_DUPLEX,
      win32pipe.PIPE_TYPE_MESSAGE | win32pipe.PIPE_WAIT,
      1, 65536, 65536,300,None)
  
  win32pipe.ConnectNamedPipe(p, None)
  
  
  data = "Hello Pipe"  
  win32file.WriteFile(p, data)
  </code></pre>
  
  <p>this pipe creates a namedpipe "test_pipe" and writes the data into the pipe. </p>
  
  <p><strong>b.py</strong> </p>
  
  <pre><code>import win32pipe, win32file
  import win32file
  fileHandle = win32file.CreateFile("\\\\.\\pipe\\test_pipe",
                                win32file.GENERIC_READ | win32file.GENERIC_WRITE,
                                0, None,
                                win32file.OPEN_EXISTING,
                                0, None)
  data = win32file.ReadFile(fileHandle, 4096)
  print data
  </code></pre>
  
  <p>i am able to get the data without any problem. but the data i get is in this form(i have enclosed the output in double quotes)</p>
  
  <pre><code>"&lt;0, Hello Pipe&gt;" 
  </code></pre>
  
  <p>I am unable to figure out why  all these variables are being printed(&lt;,0 ,>) where is the problem in a.py or b.py and how I can fix this. </p>