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


Groups > comp.lang.python > #10597

Re: Windows: setting title of console window

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.016
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'cool.': 0.09; 'subject:setting': 0.09; 'wrote:': 0.15; 'explanation': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'such.': 0.16; 'there...': 0.16; 'pm,': 0.16; 'received:74.125.82.44': 0.19; 'received:mail-ww0-f44.google.com': 0.19; 'subject:Windows': 0.19; 'modify': 0.22; 'primarily': 0.22; 'header:In-Reply-To:1': 0.22; 'assume': 0.23; 'later': 0.26; 'random': 0.28; 'sat,': 0.28; 'bit': 0.28; 'message- id:@mail.gmail.com': 0.28; "didn't": 0.29; 'object': 0.30; 'yet': 0.30; 'tend': 0.32; 'does': 0.32; 'to:addr:python-list': 0.34; 'then.': 0.35; 'received:google.com': 0.38; 'subject:: ': 0.38; 'posts': 0.38; 'something': 0.38; 'else': 0.38; 'received:74.125.82': 0.39; 'to:addr:python.org': 0.39; 'received:74.125': 0.40; 'your': 0.60; 'link': 0.63; '30,': 0.74; 'clicking': 0.83
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=rMm2s9mUaZnBiiApQ+hqlvPVCvgCs6ToZWue3EkSjg0=; b=g+a+jCpL+EUoIc66zgSdX5YigR3CkxrUzvPE8kgqX8ET8+QIqQz4SNI1FmY3z2Jy03 6rlGeBEoGlzFQWSXrhlSp3ywO52JmWqGtUQOLb7uKGhVy8i61ZDc6962QQTfy9z9hgm6 t6j1tZxFkzAIT7t1BTKuf2Re36p69lCJT02nY=
MIME-Version 1.0
In-Reply-To <4E344FCB.7030801@stoneleaf.us>
References <4E343E1C.90807@stoneleaf.us> <CAPTjJmr3WUGRAEeqjt+oB5cs+KKD5+U9ahgru4r-+S+2T03vSw@mail.gmail.com> <4E344FCB.7030801@stoneleaf.us>
Date Sat, 30 Jul 2011 19:55:59 +0100
Subject Re: Windows: setting title of console window
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.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.1670.1312052161.1164.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1312052161 news.xs4all.nl 23964 [2001:888:2000:d::a6]:43243
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:10597

Show key headers only | View raw


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 :)

> 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.

ChrisA

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


Thread

Re: Windows: setting title of console window Chris Angelico <rosuav@gmail.com> - 2011-07-30 19:55 +0100

csiph-web