Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python': 0.09; 'toss': 0.09; 'library': 0.15; 'skip:f 30': 0.15; '"import': 0.16; '(#1,': 0.16; 'april.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mailing-list': 0.16; 'oct': 0.16; 'result:': 0.16; 'sys.path': 0.16; 'wrote:': 0.17; 'windows': 0.19; 'feb': 0.19; 'file.': 0.20; 'bit': 0.21; '3.2': 0.22; 'header:In-Reply- To:1': 0.25; 'wrote': 0.26; 'leave': 0.26; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'there.': 0.28; '(my': 0.29; 'mirror': 0.29; "i'm": 0.29; "skip:' 10": 0.30; 'fri,': 0.30; 'on,': 0.30; 'file': 0.32; 'problem': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'skip:f 40': 0.35; 'similar': 0.35; 'received:209.85': 0.35; 'there': 0.35; '12,': 0.36; 'should': 0.36; 'skip:p 20': 0.36; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; '2010,': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'subject:-': 0.40; 'header:Received:5': 0.40; 'think': 0.40; 'here:': 0.62; 'costs': 0.64; 'other.': 0.64; 'jul': 0.65; 'anywhere.': 0.84; 'presumably': 0.84 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=Cw8uY5UY5mKAVPekWbkwsqOrd1mrteV3P1w1meP6edI=; b=e3pJp6mhhTNhdoFJ0a10gT/xwRtchE6yaRt9E9/xv3sRKjlJmRhY018eKYDb7CR78N lvekaBw7aIQvfyiedF+Gy2DBpo5zy5UXCcqTEW7sq18I44o8AiXTCNIcee5pqD7PUkIM O6TfOTbWMDPK9DkKLuaYZSg+XbVvxWueG4hBaaCBitcFEh7kv6Fb1fGUjsC8Ge4IxWHy A3Ehpqvs2u6x7OMYcrFOxpLl9v+ISHWJ5Sy9M/Tl9u0Pq4jbC0XnTzGLfI/2yyWx3lv6 sVYVgqS0NrsC9eNP79ih94eymTHaV8JpHgxl2K462v/AY1vv56Y+IqJMb2ezt/dklNQA UfwQ== MIME-Version: 1.0 In-Reply-To: <61F66C1735DA4E1496AAE9A0BD68E436@dev.null> References: <20121011081607.46014e3d@dilbert> <029d1272-68a7-4313-92f7-760e5bec141d@googlegroups.com> <61F66C1735DA4E1496AAE9A0BD68E436@dev.null> Date: Fri, 12 Oct 2012 03:58:45 +1100 Subject: Re: for-loop on cmd-line From: Chris Angelico 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 66 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1349974728 news.xs4all.nl 6922 [2001:888:2000:d::a6]:54173 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31128 On Fri, Oct 12, 2012 at 3:49 AM, Gisle Vanem wrote: > wrote in comp.lang.python > > (my ISP no longer updates this group. Last message is from 8. April. > Does the postings to the python mailing-list automatically get reposted to > comp.lang.python?) Yes, c.l.p and python-list mirror each other. >> C:\Windows\system32\python32.zip >> c:\python32\DLLs > > > I see a similar result: > f:\Windows\system32\python27.zip > > Where is it determined that python27.zip should be in sys.path? > I have no such file anywhere. I'm using ActivePython 2.7.2. It's in sys.path in the three Windows Pythons I have here: C:\Documents and Settings\M>python -c "import sys; print(sys.version); print('\n '.join(sys.path))" 2.4.5 (#1, Jul 22 2011, 02:01:04) [GCC 4.1.1] C:\Program Files\LilyPond\usr\lib\python24.zip C:\Program Files\LilyPond\usr\lib\python2.4 C:\Program Files\LilyPond\usr\lib\python2.4\plat-mingw32 C:\Program Files\LilyPond\usr\lib\python2.4\lib-tk C:\Program Files\LilyPond\usr\lib\python2.4\lib-dynload C:\Program Files\LilyPond\usr\lib\python2.4\site-packages C:\Documents and Settings\M>\python26\python -c "import sys; print(sys.version); print('\n'.join(sys.path))" 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] C:\WINDOWS\system32\python26.zip C:\python26\DLLs C:\python26\lib C:\python26\lib\plat-win C:\python26\lib\lib-tk C:\python26 C:\python26\lib\site-packages C:\Documents and Settings\M>\python32\python -c "import sys; print(sys.version); print('\n'.join(sys.path))" 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] C:\WINDOWS\system32\python32.zip C:\python32\DLLs C:\python32\lib C:\python32 C:\python32\lib\site-packages C:\python32\lib\site-packages\win32 C:\python32\lib\site-packages\win32\lib C:\python32\lib\site-packages\Pythonwin C:\Documents and Settings\M> Presumably it's so that I can zip up my entire Python library and toss it into a convenient file. I don't think it costs much to stat a file and find it's not there before moving on, so it's not a problem to leave it there. ChrisA