[Python-Dev] The "lazy strings" patch

Ronald Oussoren ronaldoussoren at mac.com
Tue Oct 24 11:28:40 CEST 2006

On Oct 24, 2006, at 11:09 AM, Jack Jansen wrote:

> Look at packages such as win32, PyObjC, ctypes, bridges between  
> Python and other languages, etc. That's where implementors are  
> tempted to bend the rules of Official APIs for the benefit of  
> serious optimizations.

PyObjC should be safe in this regard, I try to conform to the  
official rules :-)

I do use PyString_AS_STRING outside of the GIL in other extensions  
though, the lazy strings patch would break that. My code is of course  
bending the rules here and can easily be fixed by introducing a  
temporary variable.


> --
> Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
> If I can't dance I don't want to be part of your revolution -- Emma  
> Goldman
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/ 
> ronaldoussoren%40mac.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3562 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-dev/attachments/20061024/5370f4fc/attachment-0001.bin 

More information about the Python-Dev mailing list