9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: [9fans] new python posted
Date: Tue, 10 Sep 2002 02:46:55 -0400	[thread overview]
Message-ID: <a1d8aee0523c49af2194aa7e67f37700@plan9.bell-labs.com> (raw)

the changes i remember:

better utf support

	>>> '☺'
	'☺'
	>>>

an implementation of the dial(2) routines

	>>> from plan9 import *
	>>> dial('tcp!sources.cs.bell-labs.com!9fs')
	(5, '/net/tcp/51', -1)
	>>> close(5)
	None
	>>>

a simulation of sockets above the dial routines

	>>> import _socket
	>>> s=_socket.socket()
	>>> s.connect(('sources.cs.bell-labs.com', 564))
	>>> s.close()
	>>>

the socket simulation is minimal but good enough to run the
various HTTPServer classes in /sys/lib/python

	% cd /tmp; python /sys/lib/python/SimpleHTTPServer.py
	...

the environment doesn't pick up extra nul bytes,
supports assignment, and knows about rc-style lists

	>>> from plan9 import *
	>>> environ['path']
	['.', '/bin']
	>>> environ['path'] = ['.', '/bin', '/tmp']

importing subclasses (subdirectories of /sys/lib/python)
works now too.

russ



                 reply	other threads:[~2002-09-10  6:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a1d8aee0523c49af2194aa7e67f37700@plan9.bell-labs.com \
    --to=rsc@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).