From: "Russ Cox" <rsc@swtch.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: Re: [9fans] plan9 python
Date: Tue, 2 Jan 2007 08:08:06 -0500 [thread overview]
Message-ID: <ee9e417a0701020508i6e08dd31sfb64eb254c9bb16b@mail.gmail.com> (raw)
In-Reply-To: <13426df10701011837t3976cc0dj475b55f3dc8fdcb4@mail.gmail.com>
> in the Plan9lib/Plan9.py file, there is a reference to _e2s. Not
> defined anywhere.
>
> Any idea what the author might have had in mind? I'm not sure.
it was intended to convert an environment value to a string
suitable to write into the environment. something like:
def _e2s(val):
if type(val) is list:
return '\x00'.join(map(_e2s, val))
if type(val) is str:
return val
raise BadEnvValueException
russ
prev parent reply other threads:[~2007-01-02 13:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-02 2:37 ron minnich
2007-01-02 13:08 ` Russ Cox [this message]
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=ee9e417a0701020508i6e08dd31sfb64eb254c9bb16b@mail.gmail.com \
--to=rsc@swtch.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).