9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] plan9 python
@ 2007-01-02  2:37 ron minnich
  2007-01-02 13:08 ` Russ Cox
  0 siblings, 1 reply; 2+ messages in thread
From: ron minnich @ 2007-01-02  2:37 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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.

ron


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] plan9 python
  2007-01-02  2:37 [9fans] plan9 python ron minnich
@ 2007-01-02 13:08 ` Russ Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2007-01-02 13:08 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-02 13:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-02  2:37 [9fans] plan9 python ron minnich
2007-01-02 13:08 ` Russ Cox

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).