From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: "Russ Cox" MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20011206072931.90885199E8@mail.cse.psu.edu> Subject: [9fans] python Date: Thu, 6 Dec 2001 02:29:29 -0500 Topicbox-Message-UUID: 3005a87c-eaca-11e9-9e20-41e7f4b1d025 g% 8.out 'import site' failed; use -v for traceback Python 2.0.1 (#0, Dec 6 2001, 02:11:16) [C] on unknown Type "copyright", "credits" or "license" for more information. >>> from plan9 import * >>> from plan9 import _exits # underscore hides from * >>> read(open("/dev/sysname", OREAD), 100) '17genr' >>> if rfork(RFPROC)==0: ... write(2, "child\n") ... _exits("") ... else: ... write(2, "parent\n") ... child parent 7 >>> it's still rough, but i'm willing to put it into lucio's cvs repository so people can hack on getting it up to speed. send me mail if you're interested. unlike the other os-specific modules, i think the plan9 one should include just the system calls and then have the rest implemented as python code rather than the fairly difficult c layering. the eventual goal is to bring in the ``stackless python'' patches, so we can have really cheap continuations and build a csp-style threading module that has neither stack overflow concerns nor ridiculously large stacks. russ