Improved some error messages for command line processing.
[python/dscho.git] / BeOS / PyImport_BeImageID.html
blob2d045281c67fe74df0256ed9c04aff0378b937bc
1 <html>
2 <head>
3 <title>PyImport_BeImageID()</title>
4 </head>
5 <body text="#000000" bgcolor="#ffffff">
7 <h1>PyImport_BeImageID()</h1>
9 <dl compact>
11 <dt><strong>NOTE:</strong><dt>
13 <dd>This is documentation for the BeOS-specific
14 <code>PyImport_BeImageID()</code> function defined in
15 <tt>Python/importdl.c</tt>; it should be merged with the
16 <cite>Importing Modules</cite> section of the <cite>Python/C API</cite>
17 reference (or it should be the first member of a BeOS-specific
18 document in the <tt>BeOS</tt> directory).</dd>
20 </dl>
22 <dl compact
24 <dt><code>image_id <b>PyImport_BeImageID</b>( char *<i>name</i> )</code></dt>
26 <dd>Return the BeOS image ID (see the
27 <a href="file:///boot/beos/documentation/Be%20Book/The%20Kernel%20Kit/Images.html">Images</a>
28 section in the
29 <a href="file:///boot/beos/documentation/Be%20Book/The%20Kernel%20Kit/index.html">Kernel
30 Kit</a>) for the module object corresponding to a module <i>name</i>.
31 If the specified module is not dynamically loaded,
32 <code>PyImport_BeImageID()</code> will return <code>B_ERROR</code>,
33 otherwise it will return a valid <code>image_id</code>.
35 <p>Using <code>PyImport_BeImageID()</code> outside of a BeOS-specific
36 module is probably a very bad idea.</p></dd>
38 </dl>
40 <hr>
41 <p>Function added by Donn Cave
42 (<a href="mailto:donn@u.washington.edu"><tt>donn@u.washington.edu</tt></a>),
43 documented by Chris Herborth
44 (<a href="mailto:chrish@qnx.com"><tt>chrish@qnx.com</tt></a>).</p>
46 </body>
47 </html>