Another advantage of using these two macrosis that when Python is compiled without thread support, they are defined empty, thus saving the thread state and lock manipulations.When thread support is enabled, the block above expands to the following code: これらの二つのマクロを使うもうひとつの利点は、Python をスレッドサポートなしでコンパイルしたとき、マクロの内容、すなわちスレッド状態の退避とロック操作が空になるという点です。 スレッドサポートが有効になっている場合、上記のブロックは以下のようなコードに展開されます: - Python
Copyright 2001-2004 Python Software Foundation.All rights reserved. Copyright 2000 BeOpen.com.All rights reserved. Copyright 1995-2000 Corporation for National Research Initiatives.All rights reserved. Copyright 1991-1995 Stichting Mathematisch Centrum.All rights reserved.