Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43850
| References | <CAF3f0sQ_rsdKwaEOCmFHEeEwpVUaNUo-pOYgoqYA_F-k0CftcA@mail.gmail.com> <51702AB6.30609@gmail.com> <CAF3f0sTgxWupYqKDdtqqaPBz2kCZ04404rtDBnsOkDLXAfbQpQ@mail.gmail.com> |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | 2013-04-18 12:25 -0600 |
| Subject | Re: equivalent to C pointer |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.787.1366309589.3114.python-list@python.org> (permalink) |
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 comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: equivalent to C pointer Ian Kelly <ian.g.kelly@gmail.com> - 2013-04-18 12:25 -0600
csiph-web