[IronPython] importing os module
ml.cyresse at gmail.com
Tue Nov 1 23:50:28 PST 2005
Ah pity. Anyone know of a .NET variant on the various popens()? I
understand that CPython nt module uses the Win32 API to create pipes,
but most .NET code I can find requires both processes to be running on
the CLR and to manually connect to the pipe, which limits the
versatility somewhat. I'm not sure how the CPython does it, as I'm not
very good with C.
Unless... just a question for anyone who might know the answer, are
System.Console.In and Out per process, or shared across? i.e. Will
redirecting In in one process redirect in another?
On 11/2/05, Brian Lloyd <brian at zope.com> wrote:
> > Others know more than I do, but writing a CPython module in C
> > interacts very significantly with mechanisms that are
> > internal to the Python interpreter, and needs to be involved
> > with the reference-counting mechanism that's the basis of
> > CPython's garbage collector (when IronPython uses the .Net
> > collector and doesn't use reference counting). Also, a
> > CPython C-coded module manipulates data structures that
> > actually ARE the internal data structures of the interpreter.
> > The IronPython interpreter shares none of those structures.
> Right - the fact that CPython encourages/forces you to work with
> structs, pointers, etc. directly is the real problem. If there
> were a truly 'abstract' interface for C extensions it would be
> much easier to contemplate a CLR (or other VM) abstraction layer.
> I bet the PyPy folks wish that were true as well ;)
> Brian Lloyd brian at zope.com
> V.P. Engineering 540.361.1716
> Zope Corporation http://www.zope.com
> users mailing list
> users at lists.ironpython.com
More information about the users