title: How Python can get binary data(char*) from C++ by SWIG?
body: <p>I am using C++ functions in Python by SWIG,and I met a problem now.
  When I pass a char * from C++ to Python, the char * is truncted by Python.</p>
  
  <p>For example:</p>
  
  <p>example.h:</p>
  
  <pre><code>char * fun()
  {
      return "abc\0de";
  }
  </code></pre>
  
  <p>now in Python,we call 
      example.fun()
  it only print 
      "abc" 
  instead of 
      "abc\0de"
  the data behind '\0' is deleted by Python.</p>
  
  <p>I want to get all the chars(it is a binary data that can contains '\0') from fun() in C++,
  and any advise is appreciated</p>