But I wonder if doctors can tell who really does suffer from impotency and who's just faking impotency to get the drug?〔【出典】Hiragana Times, 1998年11月号◆【出版社】株式会社ヤック企画 〕"HT145010", "2269499"
今、アメリカでは、新しいインポ治療薬が開発されている。
Now, in America, there are new anti-impotent drugs being made.〔【出典】Hiragana Times, 1998年11月号◆【出版社】株式会社ヤック企画 〕"HT145010", "2415991"
本当にインポかどうかなんて、見分けようがないもんね。
You really can't tell if someone really is impotent or not, can you?〔【出典】Hiragana Times, 1998年11月号◆【出版社】株式会社ヤック企画 〕"HT145010", "2577611"
私の夫はインポになり、その原因は私がセックスしたがらないからだと言う。
My husband suffers from impotence and blames me for not wanting to have sex.〔性的表現なので使用には注意。〕
Impotent men aren't able to keep an erection either because they couldn't produce enough GMP, or they over produce an enzyme (PDE5) that destroy GMP.〔【出典】Hiragana Times, 1998年11月号◆【出版社】株式会社ヤック企画 〕"HT145010", "2354196"
When you want to use functions defined in imported modules, you need to include the module name. So you can't just say approximate_size; it must be humansize.approximate_size. If you've used classes in Java, this should feel vaguely familiar.〔【出典】"Dive Into Python 3" by Mark Pilgrim ◆【和訳】Fukada & Fujimoto ◆【License】CC-BY-SA-3.0 〕
The first line imports the humansize program as a module -- a chunk of code that you can use interactively, or from a larger Python program. Once you import a module, you can reference any of its public functions, classes, or attributes. Modules can do this to access functionality in other modules, and you can do it in the Python interactive shell too. This is an important concept, and you'll see a lot more of it throughout this book.〔【出典】"Dive Into Python 3" by Mark Pilgrim ◆【和訳】Fukada & Fujimoto ◆【License】CC-BY-SA-3.0 〕
6年間インポテンツだったのが、この新薬のおかげで機能が回復した。
He was impotent for 6 years, but regained his functions with this drug.〔【出典】Hiragana Times, 1998年11月号◆【出版社】株式会社ヤック企画 〕"HT145010", "2316502"
Another common use of the ImportError exception is when two modules implement a common API, but one is more desirable than the other. (Maybe it's faster, or it uses less memory.) You can try to import one module but fall back to a different module if the first import fails. For example, the XML chapter talks about two modules that implement a common API, called the ElementTree API. The first, lxml, is a third-party module that you need to download and install yourself. The second, xml.etree.ElementTree, is slower but is part of the Python 3 standard library.〔【出典】"Dive Into Python 3" by Mark Pilgrim ◆【和訳】Fukada & Fujimoto ◆【License】CC-BY-SA-3.0 〕
All names in Python are case-sensitive: variable names, function names, class names, module names, exception names. If you can get it, set it, call it, construct it, import it, or raise it, it's case-sensitive.〔【出典】"Dive Into Python 3" by Mark Pilgrim ◆【和訳】Fukada & Fujimoto ◆【License】CC-BY-SA-3.0 〕
One of Python's built-in exceptions is ImportError, which is raised when you try to import a module and fail. This can happen for a variety of reasons, but the simplest case is when the module doesn't exist in your import search path. You can use this to include optional features in your program. For example, the chardet library provides character encoding auto-detection. Perhaps your program wants to use this library if it exists, but continue gracefully if the user hasn't installed it. You can do this with a try..except block.〔【出典】"Dive Into Python 3" by Mark Pilgrim ◆【和訳】Fukada & Fujimoto ◆【License】CC-BY-SA-3.0 〕
You can add a new directory to Python's search path at runtime by adding the directory name to sys.path, and then Python will look in that directory as well, whenever you try to import a module. The effect lasts as long as Python is running.〔【出典】"Dive Into Python 3" by Mark Pilgrim ◆【和訳】Fukada & Fujimoto ◆【License】CC-BY-SA-3.0 〕