3 <title>PyImport_BeImageID()
</title>
5 <body text=
"#000000" bgcolor=
"#ffffff">
7 <h1>PyImport_BeImageID()
</h1>
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>
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>
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>
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>