Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #15368
| References | <1f9f9361-8278-4ae6-8d4d-5fd09b0fd800@hc5g2000vbb.googlegroups.com> |
|---|---|
| Date | 2011-11-06 09:09 +1100 |
| Subject | Re: Python ORMs Supporting POPOs and Substituting Layers in Django |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2458.1320530968.27778.python-list@python.org> (permalink) |
On Sun, Nov 6, 2011 at 7:11 AM, Travis Parks <jehugaleahsa@gmail.com> wrote: > Finally, I wanted to ask whether anyone has tried having Django call > out to Python 3 routines. I am okay using Python 2.7 in Django, if I > can have the controllers call business logic implemented in Python 3, > accepting POPOs from the data layer. What you're going to have is completely separate processes; either invoking Python3 and having it terminate after one action, or keeping it running concurrently and passing data between them. Has anyone ever extended AND embedded Python at the same time? Written a Python module that ... executes Python code? Might be a bit tricky, but possibly isolating the Py2 and Py3 code into different C source files would help conserve programmer sanity (at the possible cost of performance). Would be a tricky thing to juggle, but if you can pull it off, you'd be able to - effectively - have a module in Django that's written in Python 3, and directly callable. Propagating parameters and return values would be a matter of unpacking them into C objects and repacking them on the other side. Propagating exceptions would be.... fun? ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python ORMs Supporting POPOs and Substituting Layers in Django Travis Parks <jehugaleahsa@gmail.com> - 2011-11-05 13:11 -0700
Re: Python ORMs Supporting POPOs and Substituting Layers in Django Marco Nawijn <nawijn@gmail.com> - 2011-11-05 13:35 -0700
Re: Python ORMs Supporting POPOs and Substituting Layers in Django Chris Angelico <rosuav@gmail.com> - 2011-11-06 09:09 +1100
Re: Python ORMs Supporting POPOs and Substituting Layers in Django Travis Parks <jehugaleahsa@gmail.com> - 2011-11-05 20:22 -0700
Re: Python ORMs Supporting POPOs and Substituting Layers in Django John Gordon <gordon@panix.com> - 2011-11-07 15:33 +0000
Re: Python ORMs Supporting POPOs and Substituting Layers in Django John Gordon <gordon@panix.com> - 2011-11-07 17:44 +0000
Re: Python ORMs Supporting POPOs and Substituting Layers in Django Travis Parks <jehugaleahsa@gmail.com> - 2011-11-07 18:21 -0800
Re: Python ORMs Supporting POPOs and Substituting Layers in Django Lie Ryan <lie.1296@gmail.com> - 2011-11-08 16:09 +1100
Re: Python ORMs Supporting POPOs and Substituting Layers in Django Travis Parks <jehugaleahsa@gmail.com> - 2011-11-12 08:11 -0800
Re: Python ORMs Supporting POPOs and Substituting Layers in Django Chris Angelico <rosuav@gmail.com> - 2011-11-08 18:35 +1100
Re: Python ORMs Supporting POPOs and Substituting Layers in Django Dave Angel <d@davea.name> - 2011-11-08 07:58 -0500
csiph-web