wcout issue

2012-02-27 Thread Ben Held
Hello,

After upgrading from Python 2.6 to 3.2 in our application we noticed that after 
calling Py_Initialize, our output from std::wcout has extra spaces in it:

wcout << L"Just a test\n";

now prints out:

J u s t  a  t e s t

Any clue why?


Ben Held

-- 
http://mail.python.org/mailman/listinfo/python-list


Memory leak in PyImport_ReloadModule - URGENT

2005-08-10 Thread ben . held
Having recently upgraded to Python 2.4, I am having a large memory
leak with the following code built with VC++ 6.0:

PyObject *pName, *pModule;

Py_Initialize();
pName = PyString_FromString(argv[1]);

pModule = PyImport_Import(pName);
Py_DECREF(pName);

PyObject* pModule2 = PyImport_ReloadModule(pModule);
Py_DECREF(pModule2);
Py_DECREF(pModule);
Py_Finalize();
return 0;

I get leaks of over 500 kb.  I have another program which is much more
complex, in which every call to PyImport_ReloadModule is leaking 200+
kb, even though I am calling Py_DECREF correctly.

Help!

-- 
http://mail.python.org/mailman/listinfo/python-list