Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ben Finney Newsgroups: comp.lang.python Subject: Re: Inception Date: Thu, 03 Mar 2016 16:37:37 +1100 Lines: 25 Message-ID: References: <80f8708e-1fec-4310-9191-56df2ad14197@googlegroups.com> <85oaawt9cy.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de ykLEG92FcdBumdaexvJiQQ5xfOkmtvfgUVsGlVyOTbSA== Cancel-Lock: sha1:9UEP3ime/4XNwIFwJ4CrG8OoC7s= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'cpython': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'subprocess': 0.16; '>>>': 0.20; 'arguments': 0.22; 'context.': 0.22; 'import': 0.24; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'header:X-Complaints-To:1': 0.26; 'embed': 0.29; 'you?': 0.30; 'e.g.': 0.30; 'skip:s 30': 0.31; 'embedded': 0.32; 'qualify': 0.33; 'that,': 0.34; 'possible': 0.36; 'to:addr:python- list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'mean': 0.38; 'why': 0.39; 'to:addr:python.org': 0.40; 'your': 0.60; "you'll": 0.61; 'more': 0.63; 'here': 0.66; '_o__)': 0.84; 'denis': 0.84; 'received:125': 0.84; 'upset': 0.84 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:103939 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 subprocess >>> subprocess.check_call(["python3", "--version"]) Python 3.5.1+ If that doesn't impress you, then you'll need to be more specific about what you're expecting. -- \ “If the arguments in favor of atheism upset you, explain why | `\ they’re wrong. If you can’t do that, that’s your problem.” | _o__) —Amanda Marcotte, 2015-02-13 | Ben Finney