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


Groups > comp.lang.python > #10598

Re: Windows: setting title of console window

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ethan@stoneleaf.us>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'cool.': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'manipulation': 0.09; 'message- id:@stoneleaf.us': 0.09; 'received:gator410.hostgator.com': 0.09; 'subject:setting': 0.09; '~ethan~': 0.09; 'wrote:': 0.15; 'bootstrap': 0.16; 'explanation': 0.16; 'such.': 0.16; 'there...': 0.16; 'yup': 0.16; 'cc:addr:python-list': 0.16; 'pm,': 0.16; 'subject:Windows': 0.19; '(like': 0.21; 'cc:2**0': 0.21; 'modify': 0.22; 'primarily': 0.22; 'cc:no real name:2**0': 0.22; 'header:In- Reply-To:1': 0.22; 'stuff': 0.22; 'assume': 0.23; 'suspect': 0.25; 'later': 0.26; 'random': 0.28; 'sat,': 0.28; 'bit': 0.28; "didn't": 0.29; 'object': 0.30; 'cc:addr:python.org': 0.30; 'yet': 0.30; 'chris': 0.32; 'tend': 0.32; 'setting': 0.32; 'does': 0.32; 'header:User-Agent:1': 0.34; 'then.': 0.35; 'subject:: ': 0.38; 'posts': 0.38; 'something': 0.38; 'else': 0.38; 'basic': 0.39; 'your': 0.60; 'link': 0.63; 'received:websitewelcome.com': 0.65; 'received:184': 0.67; 'received:69.56': 0.73; '30,': 0.74; 'clicking': 0.83; 'received:gateway15.websitewelcome.com': 0.84
Date Sat, 30 Jul 2011 12:05:17 -0700
From Ethan Furman <ethan@stoneleaf.us>
User-Agent Thunderbird 2.0.0.24 (Windows/20100228)
MIME-Version 1.0
To Chris Angelico <rosuav@gmail.com>
Subject Re: Windows: setting title of console window
References <4E343E1C.90807@stoneleaf.us> <CAPTjJmr3WUGRAEeqjt+oB5cs+KKD5+U9ahgru4r-+S+2T03vSw@mail.gmail.com> <4E344FCB.7030801@stoneleaf.us> <CAPTjJmp-vqh05qBa3NvNOufDQ-vunMQCN7vZ1iYX0jfqsxv9Ng@mail.gmail.com>
In-Reply-To <CAPTjJmp-vqh05qBa3NvNOufDQ-vunMQCN7vZ1iYX0jfqsxv9Ng@mail.gmail.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-AntiAbuse This header was added to track abuse, please include it with any abuse report
X-AntiAbuse Primary Hostname - gator410.hostgator.com
X-AntiAbuse Original Domain - python.org
X-AntiAbuse Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse Sender Address Domain - stoneleaf.us
X-BWhitelist no
X-Source
X-Source-Args
X-Source-Dir
X-Source-Sender c-67-170-168-84.hsd1.or.comcast.net ([192.168.74.5]) [67.170.168.84]:3157
X-Source-Auth ethan+stoneleaf.us
X-Email-Count 1
X-Source-Cap dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ==
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1671.1312052785.1164.python-list@python.org> (permalink)
Lines 27
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1312052785 news.xs4all.nl 23923 [2001:888:2000:d::a6]:42725
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:10598

Show key headers only | View raw


Chris Angelico wrote:
> On Sat, Jul 30, 2011 at 7:39 PM, Ethan Furman <ethan@stoneleaf.us> wrote:
>> Well, you /could/ have followed the link and read the explanation there...
>> ;)
> 
> I tend to avoid clicking random links in posts :)

Ah -- I understand.

>> How it works: since the sys.argv object does yet exist...
> 
> That's the bit I didn't understand. I assume that's just the way it
> is, then. Your cool trick is primarily because something else will
> later modify sys.argv... and as such. it is indeed very cool.

Yup -- I suspect sitecustomize is primarily intended for path 
manipulation and as such happens before a lot of other basic bootstrap 
stuff (like setting sys.argv).

~Ethan~






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


Thread

Re: Windows: setting title of console window Ethan Furman <ethan@stoneleaf.us> - 2011-07-30 12:05 -0700

csiph-web