Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43085

Re: How to do a Lispy-esque read?

References <4ff75708-f8e4-4ec9-8a4b-e71eb1dc2892@googlegroups.com>
Date 2013-04-08 18:46 +0100
Subject Re: How to do a Lispy-esque read?
From Arnaud Delobelle <arnodel@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.298.1365443184.3114.python-list@python.org> (permalink)

Show all headers | View raw


On 8 April 2013 08:45,  <zeta.convex@gmail.com> wrote:
> Suppose I want to read an object from some stream. How do I do it?
>
> For example, if the input stream contained the text:
> [1, # python should ignore this comment
> 2]
>
> and I do a "read" on it, I should obtain the result
> [1, 2]

You might be interested in code.compile_command()
(http://docs.python.org/2/library/code.html)

-- 
Arnaud

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

How to do a Lispy-esque read? zeta.convex@gmail.com - 2013-04-08 00:45 -0700
  Re: How to do a Lispy-esque read? Barrett Lewis <musikal.fusion@gmail.com> - 2013-04-08 01:17 -0700
  Re: How to do a Lispy-esque read? Benjamin Kaplan <benjamin.kaplan@case.edu> - 2013-04-08 01:32 -0700
  Re: How to do a Lispy-esque read? Arnaud Delobelle <arnodel@gmail.com> - 2013-04-08 18:46 +0100

csiph-web