Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43850 > unrolled thread
| Started by | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| First post | 2013-04-18 12:25 -0600 |
| Last post | 2013-04-18 12:25 -0600 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: equivalent to C pointer Ian Kelly <ian.g.kelly@gmail.com> - 2013-04-18 12:25 -0600
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2013-04-18 12:25 -0600 |
| Subject | Re: equivalent to C pointer |
| Message-ID | <mailman.787.1366309589.3114.python-list@python.org> |
On Thu, Apr 18, 2013 at 11:50 AM, abdelkader belahcene <abelahcene@gmail.com> wrote: > Thanks for answer, > but with C we can compile the trapeze function and put it in librairy, > If we try to save the trapeze alone in package to import it later, I > think, I am not sure > it will be refused because F1 and sin are not define !!! this is the > power of the C pointers !!! > the link is dynamic The Python equivalent of a dynamically linked library is a module. You can certainly pass functions defined in one module as arguments to functions defined in another, completely unrelated module. In fact, Python doesn't care where they were defined or even whether they are functions; they're just objects, no different in that regard from strings or ints or class instances.
Back to top | Article view | comp.lang.python
csiph-web