Thank you Paul and Christian for your reply and understanding my question. I
was actually inspired by this example for IronPython and thought that this is
pretty useful for testing and exploring of C-API:
http://www.voidspace.org.uk/ironpython/ip_in_ip.shtml
So does it all boil down to GIL rest
Hi Denis,
Am 03.03.16 um 06:01 schrieb Denis Akhiyarov:
Is it possible to embed CPython in CPython, e.g. using ctypes, cffi, or cython?
since you titled your question with a famous movie title, I take it more
as a "philosophical" question (musing about the CPython world) than an
actual dema
Ben Finney writes:
> I'm familiar with that document. It doesn't help me understand what you
> mean by “embed CPython in CPython”.
It seems straightforward enough to me. Lots of Python programs load C
extensions. Denis is asking whether one of those C extensions could
itself embed CPython throu
On Thursday, March 3, 2016 at 11:13:58 AM UTC+5:30, Denis Akhiyarov wrote:
> Embed using C-API from ctypes, cffi or cython, but not using subprocesses.
> Thanks for asking!
>
> Here is link to official documentation about embedding:
>
> https://docs.python.org/3.6/extending/index.html
Nowadays
Denis Akhiyarov writes:
> Embed using C-API from ctypes, cffi or cython, but not using
> subprocesses. Thanks for asking!
I'm glad you appreciate my asking, but I am no closer to an answer. What
would meet your requirements, what would be a “yes” for you?
> Here is link to official documentatio
Embed using C-API from ctypes, cffi or cython, but not using subprocesses.
Thanks for asking!
Here is link to official documentation about embedding:
https://docs.python.org/3.6/extending/index.html
--
https://mail.python.org/mailman/listinfo/python-list
Ben Finney writes:
> Denis Akhiyarov writes:
>
> > Is it possible to embed CPython in CPython, e.g. using ctypes, cffi,
> > or cython?
>
> I don't know what you mean by “embed” in this context. What would
> qualify as “yes” for you?
Here is CPython embedded in CPython::
>>> import subproce
Denis Akhiyarov writes:
> Is it possible to embed CPython in CPython, e.g. using ctypes, cffi,
> or cython?
I don't know what you mean by “embed” in this context. What would
qualify as “yes” for you?
--
\“You don't change the world by placidly finding your bliss — |
`\you do