¡@

Home 

python Programming Glossary: pangolins

What does python sys.intern do, and when should it be used?

http://stackoverflow.com/questions/1136826/what-does-python-sys-intern-do-and-when-should-it-be-used

interned strings table. import sys a sys.intern 'why do pangolins dream of quiche' a 'why do pangolins dream of quiche' In the.. a sys.intern 'why do pangolins dream of quiche' a 'why do pangolins dream of quiche' In the above example a holds the interned string... not visible the sys.intern function has saved the 'why do pangolins dream of quiche' string object in the interned strings table...