ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-dev
python-dev
Re: [Python-Dev] Reworking the GIL
by Antoine Pitrou other posts by this author
Nov 8 2009 6:19AM messages near this date
Re: [Python-Dev] Reworking the GIL | Re: [Python-Dev] Reworking the GIL
Baptiste Lepilleur <baptiste.lepilleur <at>  gmail.com> writes:
>  
>  I've tried, but there is no change in result (the regexp does not use \w &
>  co but specify a lot unicode ranges). All strings are already of unicode
>  type in 2.6.

No they aren't. You should add "from __future__ import unicode_literals" at the
start of your script and run it again.

>  Hmmm, I was confusing with other modules (bzip2 & hashlib?). Looking back at 
>  the result of your benchmark it's obvious. Is there a place where the list of 
>  functions releasing the GIL is available? I did not see anything in 
>  bz2.compress documentation.

No, there isn't. You'd have to test, or read the source code.
But bz2 and zlib, for example, do release the GIL.

Regards

Antoine.


_______________________________________________
Python-Dev mailing list
Python-Dev@[...].org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev-ml%40maillist.acti
vestate.com
Thread:
Antoine Pitrou
Stefan Ring
Stefan Ring
Nick Coghlan
Antoine Pitrou
Antoine Pitrou
Antoine Pitrou
Baptiste Lepilleur
Antoine Pitrou
Baptiste Lepilleur
Guido van Rossum
Antoine Pitrou
Guido van Rossum
Baptiste Lepilleur
Antoine Pitrou
Antoine Pitrou
Sturla Molden
John Arbash Meinel
Antoine Pitrou
Antoine Pitrou
Jeffrey Yasskin
martin
Antoine Pitrou
martin
Gregory P. Smith
Antoine Pitrou
Christian Heimes
Christian Heimes
Brett Cannon

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved