Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And I can't seem the find features of C# in Python.

Which features of C# are you looking for in Python that you can't find?

Also, keep in mind that something that is written in good, idiomatic C# might need to use different idioms in Python in order to make sense as a Python program (and vice versa).



I'm not the original poster, but one of the things that I can see as much easier in c# than in python is process control. The power of the .net process library [0] seems to be much greater than the power of the python process library [1]. Being able to create events on process behavior, etc is rather useful, and the python tools don't seem to give anywhere near that amount of flexibility.

[0] http://msdn.microsoft.com/en-us/library/system.diagnostics.p...

[1] http://docs.python.org/2/library/os.html


That isn't really the "python process library", most of it is an agglomeration of thin wrappers around standard POSIX interfaces.

The subprocess[0] module is probably closer to what you're looking for, though it still does not operate the way you want it to. It's also possible you may be looking for something that you can get by proper use of dtrace.

More broadly, you're not looking at the C# process library there, either. You're really looking at the Windows process library. It's predicated on a different culture and different assumptions and some of its functionality may be difficult or perhaps even impossible to implement on other systems (I note the Mono implementation has several explicit NotImplemented portions).

[0] http://docs.python.org/2/library/subprocess.html




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: