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


Groups > comp.lang.python > #107324

Re: Why are my files in in my list - os module used with sys argv

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Peter Otten <__peter__@web.de>
Newsgroups comp.lang.python
Subject Re: Why are my files in in my list - os module used with sys argv
Date Tue, 19 Apr 2016 15:45:24 +0200
Organization None
Lines 11
Message-ID <mailman.14.1461073547.30862.python-list@python.org> (permalink)
References <0bce26b1-ad3d-42c4-8f99-08e82d1bce88@googlegroups.com> <5715798b$0$1612$c3e8da3$5496439d@news.astraweb.com> <nf4ph0$6gh$1@ger.gmane.org> <mailman.3.1461053808.30862.python-list@python.org> <719abd0a-d3b4-483d-ab77-1989b06f062e@googlegroups.com> <nf5cpq$37a$1@ger.gmane.org>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Trace news.uni-berlin.de KYVYEOxigSUQj5+NX01/ow1mP170s4sqa1bjZnZXD5hQ==
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'bash': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:Why': 0.09; 'subject:files': 0.09; 'subject:module': 0.09; 'argparse': 0.16; 'carefully.': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'received:t-ipconnect.de': 0.16; 'wrote:': 0.16; 'url:au': 0.18; 'windows': 0.20; 'header:User-Agent:1': 0.26; 'subject:list': 0.26; 'header:X-Complaints-To:1': 0.26; 'linux': 0.26; 'expansion': 0.27; 'behaviour': 0.29; 'post': 0.31; 'comment': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'thanks': 0.37; 'received:org': 0.37; 'doing': 0.38; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'received:de': 0.40; 'your': 0.60; 'hope': 0.61; 'insight,': 0.84; 'url:2013': 0.91
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host p57bd8f77.dip0.t-ipconnect.de
User-Agent KNode/4.13.3
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
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>
X-Mailman-Original-Message-ID <nf5cpq$37a$1@ger.gmane.org>
X-Mailman-Original-References <0bce26b1-ad3d-42c4-8f99-08e82d1bce88@googlegroups.com> <5715798b$0$1612$c3e8da3$5496439d@news.astraweb.com> <nf4ph0$6gh$1@ger.gmane.org> <mailman.3.1461053808.30862.python-list@python.org> <719abd0a-d3b4-483d-ab77-1989b06f062e@googlegroups.com>
Xref csiph.com comp.lang.python:107324

Show key headers only | View raw


Sayth Renshaw wrote:

> Thanks for the insight, after doing a little reading I found this post
> which uses both argparse and glob and attempts to cover the windows and
> bash expansion of wildcards,
> http://breathmintsforpenguins.blogspot.com.au/2013/09/python-crossplatform-handling-of.html

I hope you read the comment section of that page carefully.
On Linux your script's behaviour will be surprising.

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


Thread

Why are my files in in my list - os module used with sys argv Sayth Renshaw <flebber.crue@gmail.com> - 2016-04-18 16:44 -0700
  Re: Why are my files in in my list - os module used with sys argv Steven D'Aprano <steve@pearwood.info> - 2016-04-19 10:19 +1000
    Re: Why are my files in in my list - os module used with sys argv Peter Otten <__peter__@web.de> - 2016-04-19 10:16 +0200
      Re: Why are my files in in my list - os module used with sys argv Sayth Renshaw <flebber.crue@gmail.com> - 2016-04-19 06:21 -0700
        Re: Why are my files in in my list - os module used with sys argv Sayth Renshaw <flebber.crue@gmail.com> - 2016-04-19 06:31 -0700
        Re: Why are my files in in my list - os module used with sys argv Peter Otten <__peter__@web.de> - 2016-04-19 15:45 +0200
          Re: Why are my files in in my list - os module used with sys argv Sayth Renshaw <flebber.crue@gmail.com> - 2016-04-19 07:18 -0700
  Re: Why are my files in in my list - os module used with sys argv MRAB <python@mrabarnett.plus.com> - 2016-04-19 02:17 +0100

csiph-web