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


Groups > comp.lang.python > #54864

Re: Referrer key missing form os.environ dictionary?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'interpreter': 0.05; 'affected': 0.07; 'interpreter.': 0.07; 'subject:form': 0.07; 'subject:missing': 0.07; 'scripting': 0.09; 'command-line': 0.16; 'descriptors': 0.16; 'descriptors.': 0.16; 'fd,': 0.16; 'finds': 0.16; 'fork': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'lang': 0.16; 'line);': 0.16; 'stuff.': 0.16; 'subject:key': 0.16; 'variant,': 0.16; 'wrote:': 0.18; 'examples': 0.20; 'command': 0.22; 'shell': 0.22; '(or': 0.24; 'script': 0.25; 'handling': 0.26; 'pass': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'unix': 0.29; 'message-id:@mail.gmail.com': 0.30; 'obscure': 0.31; 'sep': 0.31; 'file': 0.32; 'probably': 0.32; 'stuff': 0.32; 'fri,': 0.33; 'agree': 0.35; 'common': 0.35; 'except': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'done': 0.36; 'subject:?': 0.36; 'should': 0.36; 'two': 0.37; 'sometimes': 0.38; 'security,': 0.38; 'to:addr :python-list': 0.38; 'does': 0.39; 'though,': 0.39; 'to:addr:python.org': 0.39; 'advanced': 0.63; 'more': 0.64; 'between': 0.67; 'nobody': 0.68; 'home': 0.69; 'programs,': 0.74; 'special': 0.74; 'common,': 0.84; 'env': 0.84; 'edwards': 0.91; 'vars': 0.91; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=SGhFgkUfZ0FyC0ofrhXnxonm3iNydkyLhLucseeyI/0=; b=whi2kNJN7wnvCtcjGM7RC7VdMrCmvzoCrKw9JfC2bFm099vJ7G1qYohMxXnOItd58m zKevVaW9qcCLFacVnyOlUnf907K34vGLHxE+GYl7Th5kNPh6YshKZ0rDXT7FW4lwdsfy KqWD2p2Sq9/+3G54xZ5+3jN6rmtaGF93VSRRfuIx4bGl7xQm8nZXJpHDc8BMma1vO7dT 55JVBn1zOytRpa1doTjDXOFX7Z+6TQGRmtJ94geWd1wvtEVbLclfGr8clGMYMg8tAGKl AgCRx3FCuPJ6/8chgedZnj3HVr2cmzAOTU2gU8BgyjL3ju48HYQDlEyF+/+HuwquaH7o KXTA==
MIME-Version 1.0
X-Received by 10.58.133.66 with SMTP id pa2mr4606463veb.18.1380261712792; Thu, 26 Sep 2013 23:01:52 -0700 (PDT)
In-Reply-To <l22fse$fcl$1@reader1.panix.com>
References <l1ulsv$4mv$1@dont-email.me> <mailman.315.1380117704.18130.python-list@python.org> <l1uqi7$qi5$1@dont-email.me> <5242f8bc$0$30000$c3e8da3$5496439d@news.astraweb.com> <l1uusg$k0t$1@reader1.panix.com> <52437bca$0$30000$c3e8da3$5496439d@news.astraweb.com> <l21fbd$1i6$1@reader1.panix.com> <mailman.356.1380208642.18130.python-list@python.org> <l22fse$fcl$1@reader1.panix.com>
Date Fri, 27 Sep 2013 16:01:52 +1000
Subject Re: Referrer key missing form os.environ dictionary?
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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 <http://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>
Newsgroups comp.lang.python
Message-ID <mailman.373.1380261715.18130.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1380261715 news.xs4all.nl 15973 [2001:888:2000:d::a6]:46698
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:54864

Show key headers only | View raw


On Fri, Sep 27, 2013 at 9:27 AM, Grant Edwards <invalid@invalid.invalid> wrote:
> I probably should have said "stdin", but in theory you can pass data
> in via multiple file descriptors.  Nobody does that except people
> cooking up obscure examples for advanced shell scripting guides...

Yep. With that variant, I agree that it's more common than env vars
(apart from standard ones - *heaps* of programs are affected by stuff
like LANG or HOME or PATH, but they're not passed at the command
line); what your description put me in mind of, though, was the
special handling sometimes done between two programs, like when the
Unix program loader finds a #! and exec's an interpreter to process
the script - for security, it has to pass the fd, not the file name,
to the interpreter. But that's really esoteric!

Of course, whenever you fork without execing (execking?), you can pass
(or share) file descriptors easily. Very common, but not exactly
command-line stuff.

ChrisA

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


Thread

Referrer key missing form os.environ dictionary? Νίκος <nikos.gr33k@gmail.com> - 2013-09-25 15:45 +0300
  Re: Referrer key missing form os.environ dictionary? Νίκος <nikos.gr33k@gmail.com> - 2013-09-25 16:14 +0300
  Re: Referrer key missing form os.environ dictionary? Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-09-25 16:01 +0200
    Re: Referrer key missing form os.environ dictionary? Νίκος <nikos.gr33k@gmail.com> - 2013-09-25 17:04 +0300
      Re: Referrer key missing form os.environ dictionary? John Gordon <gordon@panix.com> - 2013-09-25 14:26 +0000
        Re: Referrer key missing form os.environ dictionary? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-25 15:04 +0000
          Re: Referrer key missing form os.environ dictionary? Νίκος <nikos.gr33k@gmail.com> - 2013-09-25 18:16 +0300
            Re: Referrer key missing form os.environ dictionary? Tim Chase <python.list@tim.thechases.com> - 2013-09-25 10:42 -0500
            Re: Referrer key missing form os.environ dictionary? Denis McMahon <denismfmcmahon@gmail.com> - 2013-09-25 21:17 +0000
        Re: Referrer key missing form os.environ dictionary? Ned Batchelder <ned@nedbatchelder.com> - 2013-09-25 11:09 -0400
      Re: Referrer key missing form os.environ dictionary? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-25 14:52 +0000
        Re: Referrer key missing form os.environ dictionary? Νίκος <nikos.gr33k@gmail.com> - 2013-09-25 18:02 +0300
          Re: Referrer key missing form os.environ dictionary? Xaxa Urtiz <urtizvereaxaxa@gmail.com> - 2013-09-25 08:09 -0700
          Re: Referrer key missing form os.environ dictionary? Tim Chase <python.list@tim.thechases.com> - 2013-09-25 10:14 -0500
            Re: Referrer key missing form os.environ dictionary? Νίκος <nikos.gr33k@gmail.com> - 2013-09-25 18:35 +0300
        Re: Referrer key missing form os.environ dictionary? Grant Edwards <invalid@invalid.invalid> - 2013-09-25 15:18 +0000
          Re: Referrer key missing form os.environ dictionary? Νίκος <nikos.gr33k@gmail.com> - 2013-09-25 18:41 +0300
            Re: Referrer key missing form os.environ dictionary? John Gordon <gordon@panix.com> - 2013-09-25 16:27 +0000
            Re: Referrer key missing form os.environ dictionary? Grant Edwards <invalid@invalid.invalid> - 2013-09-25 18:37 +0000
          Re: Referrer key missing form os.environ dictionary? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-26 00:11 +0000
            Re: Referrer key missing form os.environ dictionary? Terry Reedy <tjreedy@udel.edu> - 2013-09-25 21:32 -0400
            Re: Referrer key missing form os.environ dictionary? Chris Angelico <rosuav@gmail.com> - 2013-09-26 13:25 +1000
              Re: Referrer key missing form os.environ dictionary? Grant Edwards <invalid@invalid.invalid> - 2013-09-26 14:16 +0000
            Re: Referrer key missing form os.environ dictionary? Robert Kern <robert.kern@gmail.com> - 2013-09-26 11:15 +0100
            Re: Referrer key missing form os.environ dictionary? Grant Edwards <invalid@invalid.invalid> - 2013-09-26 14:11 +0000
              Re: Referrer key missing form os.environ dictionary? Chris Angelico <rosuav@gmail.com> - 2013-09-27 01:17 +1000
                Re: Referrer key missing form os.environ dictionary? Grant Edwards <invalid@invalid.invalid> - 2013-09-26 23:27 +0000
                Re: Referrer key missing form os.environ dictionary? Chris Angelico <rosuav@gmail.com> - 2013-09-27 16:01 +1000
    Re: Referrer key missing form os.environ dictionary? Νίκος <nikos.gr33k@gmail.com> - 2013-09-25 17:07 +0300
      Re: Referrer key missing form os.environ dictionary? Robert Kern <robert.kern@gmail.com> - 2013-09-25 15:26 +0100
      Re: Referrer key missing form os.environ dictionary? John Gordon <gordon@panix.com> - 2013-09-25 14:30 +0000
      Re: Referrer key missing form os.environ dictionary? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-25 14:46 +0000
      Re: Referrer key missing form os.environ dictionary? Piet van Oostrum <piet@vanoostrum.org> - 2013-09-25 15:59 -0400
  Re: Referrer key missing form os.environ dictionary? John Gordon <gordon@panix.com> - 2013-09-25 14:18 +0000
    Re: Referrer key missing form os.environ dictionary? Tim Chase <python.list@tim.thechases.com> - 2013-09-25 09:58 -0500

csiph-web