Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Programmers do it bit by bit.


devel / comp.lang.python / from foo import bar and the ast module

SubjectAuthor
o from foo import bar and the ast moduleDan Stromberg

1
from foo import bar and the ast module

<mailman.447.1629641240.4164.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=14710&group=comp.lang.python#14710

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: drsali...@gmail.com (Dan Stromberg)
Newsgroups: comp.lang.python
Subject: from foo import bar and the ast module
Date: Sun, 22 Aug 2021 07:07:07 -0700
Lines: 11
Message-ID: <mailman.447.1629641240.4164.python-list@python.org>
References: <CAGGBd_rYtV7g7ggrEF-Nv=ayPxVm9WraXixaoFncG2fiuxJ2SQ@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de OZWPTmKoIhmGtTJ/mh4f3A96cQ0nqnojkvL3UrS9XSRA==
Return-Path: <drsalists@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=a3ekTDqd;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.011
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:import': 0.07;
'subject:module': 0.07; 'ast': 0.09; 'import': 0.14;
'from:addr:drsalists': 0.16; 'from:name:dan stromberg': 0.16;
'module,': 0.16; 'received:209.85.217': 0.16; 'to:addr:python-
list': 0.23; 'thanks!': 0.25; 'there': 0.31; 'but': 0.31;
'message-id:@mail.gmail.com': 0.33; 'received:google.com': 0.34;
'subject:from': 0.35; 'from:addr:gmail.com': 0.35;
'received:209.85': 0.38; 'received:209': 0.38; 'bar,': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:from:date:message-id:subject:to;
bh=oW2kyZcgPZliZJ84pvNGW4a32DOYpdAEL0sS7OXrp5k=;
b=a3ekTDqdRpeL/Wqu/nVfVYNT8T0cmGUVIg9j3tMAB91AH1kOIAIBJldnp6EEPE3t8w
zMwX6rUXE+9VknhFzcROZm6qykt0rNzvDkvHV02XiPp5PTyNzLmknRRRS/H1DGXtX3pV
5TD68wgbjihNwV7fu0XLD0mooUZ/2HA37e5ktust1puBcVyKByRcsvwOkEtvrKEX7VWz
5u1QHmc76deCQTWtL4TIi0qrdOZ1SKlptSpboFSpJzDvIvDFbM8FlqmRGr9Yx7qmbfVp
zs89nJ5IEQZw1fMXfCssMKSLmKP3vXPJhV4pSsL3qHfAhUOUByy6o59vag/1H7Emjvc+
Lr0Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
bh=oW2kyZcgPZliZJ84pvNGW4a32DOYpdAEL0sS7OXrp5k=;
b=qvnEnGScr4sK/4RYLRfHEf4xkxK+MmAihYPqOTrPBWyHgSr3Z/M1NmrOIvGuZHOULn
/BB7Grj9xVoYFuCiSzH047A6k3eR7WQbdsM7VvsMK9UcALOzQHjStvaC062pjHP/ZMNU
mMXVTBCVashpj0JOrxEg5AJd3D+EJKAnTTZ0xgLMu2TEmSsexUstYiIWv/OLd6rmMcwh
ifiRDxkMuzJa09zoqSmesziWA9bvKJBEo4aPbjL4mpB9dE7LrQ5m/uSOSLba0oB1KbBg
sfPuSAiL2T2aDWJAprNJw+gRsRKdp6XjZ9GOBzDJsbYz7jBiIMwhNQ9lKsaBU6Lp49he
pEuw==
X-Gm-Message-State: AOAM530AJpL2198O9K1xwf52zGZY44SqkN5EX+s+qogVvHchAtSFXcF+
Lckp5zjdjVfun+gMLINyY89d3Prz2M5cpK4fBeE44Rh7nXk=
X-Google-Smtp-Source: ABdhPJz4KQj5v6utihFoEAzuVAPkyZSsr8Co+n+ipNxBJxCArfeghHCNQMwhvyvQg8a6QbzxREXcKYNZedBrItUi9PI=
X-Received: by 2002:a67:ee46:: with SMTP id g6mr22108830vsp.6.1629641238359;
Sun, 22 Aug 2021 07:07:18 -0700 (PDT)
X-Content-Filtered-By: Mailman/MimeDel 2.1.34
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAGGBd_rYtV7g7ggrEF-Nv=ayPxVm9WraXixaoFncG2fiuxJ2SQ@mail.gmail.com>
 by: Dan Stromberg - Sun, 22 Aug 2021 14:07 UTC

In 'from foo import bar':

With the ast module, I see how to get bar, but I do not yet see how to get
the foo.

There are clearly ast.Import and ast.ImportFrom, but I do not see the foo
part in ast.ImportFrom.

?

Thanks!

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor