Re: Inception

2016-03-03 Thread Denis Akhiyarov
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

Re: Inception

2016-03-03 Thread Christian Gollwitzer
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

Re: Inception

2016-03-02 Thread Paul Rubin
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

Re: Inception

2016-03-02 Thread Rustom Mody
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

Re: Inception

2016-03-02 Thread Ben Finney
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

Re: Inception

2016-03-02 Thread Denis Akhiyarov
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

Re: Inception

2016-03-02 Thread Ben Finney
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

Re: Inception

2016-03-02 Thread Ben Finney
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

Inception

2016-03-02 Thread Denis Akhiyarov
Is it possible to embed CPython in CPython, e.g. using ctypes, cffi, or cython? -- https://mail.python.org/mailman/listinfo/python-list