From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Tue, 2 Jan 2007 08:08:06 -0500 From: "Russ Cox" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] plan9 python In-Reply-To: <13426df10701011837t3976cc0dj475b55f3dc8fdcb4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <13426df10701011837t3976cc0dj475b55f3dc8fdcb4@mail.gmail.com> Topicbox-Message-UUID: fc6be4a6-ead1-11e9-9d60-3106f5b1d025 > 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