Tweak some comments

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-05-17 02:49:13 +00:00
parent 1282553221
commit 3d3aaae524
2 changed files with 4 additions and 20 deletions

View File

@@ -17,25 +17,10 @@
%MappedType wxString
{
// TODO: Will something like this work (and be a good idea) in order to
// share the conversion code here and in the utlities module?
//%ConvertToTypeCode
// // Code to test a PyObject for compatibility with wxString
// if (!sipIsErr) {
// if (PyString_Check(sipPy) || PyUnicode_Check(sipPy))
// return TRUE;
// return FALSE;
// }
//
// // Convert a compatible PyObject to a wxString
// wxString str = Py2wxString(sipPy, true, *sipIsErr);
// if (*sipIsErr)
// return 0;
// *sipCppPtr = new wxString(str);
// return sipGetState(sipTransferObj);
//%End
// TODO: It is still possible to have a wx build that uses utf-8 inside
// wxString, so we should probably be checking wxUSE_UNICODE_WCHAR or
// wxUSE_UNICODE_UTF8 for this conversion.
%ConvertToTypeCode
// Code to test a PyObject for compatibility with wxString

View File

@@ -15,7 +15,6 @@
#include "wxpybuffer.h"
%End
// TODO: Use new buffer APIs and memoryview or bytearray objects?
%MappedType wxPyBuffer
{