Xiang Zhang added the comment:

I thought about this method but didn't find it's simpler.

You cannot avoid malloc/free since the isolation level has to be on heap. It's 
going to be freed in the dealloc method unless your alter that part too. Then 
it's about one memcpy or two, which doesn't make much difference. And in this 
method you have to do more in argument checking. A simple strstr doesn't solve 
this problem.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27881>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to