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


Groups > comp.lang.python > #30754

RE: final question: logging to stdout and updating files

Path csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ramit.prasad@jpmorgan.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'heavily': 0.04; 'things.': 0.05; 'completeness': 0.07; 'important,': 0.07; 'subject:question': 0.08; 'python': 0.09; '===': 0.09; 'advice.': 0.09; 'code"': 0.09; 'received:155': 0.09; 'stdout': 0.09; 'subject:files': 0.09; 'sure,': 0.09; 'yeah,': 0.09; 'bug': 0.10; '*any*': 0.16; 'bugs,': 0.16; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'ensured': 0.16; 'from:addr:jpmorgan.com': 0.16; "guido's": 0.16; 'indent': 0.16; 'oct': 0.16; 'received:155.180': 0.16; 'received:159.53': 0.16; 'received:bankone.net': 0.16; 'received:exchad.jpmchase.net': 0.16; 'received:jpmchase.com': 0.16; 'received:jpmchase.net': 0.16; 'received:svr.bankone.net': 0.16; 'securities,': 0.16; 'silly': 0.16; 'team?': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'wrote:': 0.17; 'to:name:python-list@python.org': 0.20; 'meant': 0.21; 'minor': 0.22; 'this:': 0.23; 'received:169.254': 0.24; 'machine': 0.24; 'pass': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'bugs': 0.27; 'logging': 0.27; 'updating': 0.27; 'accuracy': 0.27; 'chris': 0.28; "d'aprano": 0.29; 'indentation': 0.29; 'optional': 0.29; 'question:': 0.29; 'steven': 0.29; 'received:169': 0.29; 'worked': 0.30; 'fri,': 0.30; 'thursday,': 0.30; 'code': 0.31; 'america': 0.32; 'could': 0.32; 'to:addr:python-list': 0.33; 'fastest': 0.35; 'moved': 0.35; 'there': 0.35; 'next': 0.35; 'really': 0.36; 'subject:': 0.36; 'created': 0.36; 'except': 0.36; 'but': 0.36; 'email addr:python.org': 0.36; 'test': 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'correctly': 0.37; 'october': 0.37; 'optimization': 0.37; 'sent:': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'comment': 0.38; 'to:addr:python.org': 0.39; 'space': 0.39; 'skip:" 10': 0.40; 'end': 0.40; 'think': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'most': 0.61; 'australia': 0.62; 'email name:python-list': 0.62; 'life,': 0.62; 'peace': 0.62; 'world': 0.63; 'information,': 0.63; 'url:email': 0.63; 'legal': 0.65; 'subject': 0.66; 'purchase': 0.67; 'sale': 0.76; 'existence.': 0.84; 'optimized,': 0.84; 'peace,': 0.84; 'received:169.254.8': 0.84; 'won': 0.96
X-DKIM OpenDKIM Filter v2.1.3 sz4.jpmchase.com q94MaHhX013304
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpmorgan.com; s=smtpout; t=1349390177; bh=ulk3zIX4psRG+hdosSDQgYhNxsuvpiaVRM66Ot3d59k=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:Content-Type; b=brUrBsC2JPdHeARgZC7XUysSRFozpwC62mTGxgHrXV41gHK1BVDgF/KX/nFRD46Tf yiHgRtha4LaNv4+s2sMaOoN+mLm9DZQLVku1S41wNEt/kyNz/TP6ufBT6TiGH9Y0vo T4rW4VbHmYF1zMnwswOIuTV02Xf9UCMiD7YOZr9Q=
From "Prasad, Ramit" <ramit.prasad@jpmorgan.com>
To "python-list@python.org" <python-list@python.org>
Subject RE: final question: logging to stdout and updating files
Thread-Topic final question: logging to stdout and updating files
Thread-Index AQHNojiaAQx11CGTEEOpqPxnEQUmqZepd2YAgABEj6A=
Date Thu, 4 Oct 2012 22:36:02 +0000
References <mailman.1781.1349320295.27098.python-list@python.org> <mailman.1797.1349357671.27098.python-list@python.org> <506d967a$0$29978$c3e8da3$5496439d@news.astraweb.com> <CAPTjJmo4r77m8Rjdsj3PhqCF0fDuxH2XEkh=rzKr40XWNA3-8w@mail.gmail.com>
In-Reply-To <CAPTjJmo4r77m8Rjdsj3PhqCF0fDuxH2XEkh=rzKr40XWNA3-8w@mail.gmail.com>
Accept-Language en-US
Content-Language en-US
X-MS-Has-Attach
X-MS-TNEF-Correlator
x-originating-ip [10.67.79.47]
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-DLP-FWD Yes
Content-Type text/plain; charset="us-ascii"
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 <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.1816.1349392031.27098.python-list@python.org> (permalink)
Lines 29
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1349392031 news.xs4all.nl 6938 [2001:888:2000:d::a6]:57481
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:30754

Show key headers only | View raw


Chris Angelico wrote:
> Sent: Thursday, October 04, 2012 9:28 AM
> To: python-list@python.org
> Subject: Re: final question: logging to stdout and updating files
> 
> On Fri, Oct 5, 2012 at 12:00 AM, Steven D'Aprano
> <steve+comp.lang.python@pearwood.info> wrote:
> > That is *terrible* advice. But if you insist on following it, you can
> > optimize *any* Python program to this:
> >
> > # === start code ===
> > pass  # this line is optional
> > # === end code ===
> >
> >
> > There you go. The most heavily optimized, fastest Python program in
> > existence. Sure, it has a few bugs, but boy is it fast!!!
> 
> Not many bugs though! I ran it in my Python 5.2.7 for GNU/Windows
> 256-bit (err, yeah, I borrowed Guido's time machine but had the silly
> thing in reverse... oops) and it worked perfectly, except that
> indentation has moved from "significant" to "mandatory". When I added
> the necessary 5 space indent at the beginning, it correctly created
> world peace, ensured that Australia won the next Test Match, and then
> printed "Hello, world!\n" to stdout. Unfortunately, a bug in your "end
> code" comment meant that the peace it created was by wiping out all
> life, but that's pretty minor in the scheme of things.

Python is a product for Americans! ;) It should ensure America
wins the Test Match....wait, do we even have a cricket team?

> 
> Optimization really is that important, folks!
> 
> ChrisA
> may need to schedule surgical detongueing of his cheek

Think we could get a group rate for c.l.p?

Ramit

This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  

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


Thread

final question: logging to stdout and updating files "Littlefield, Tyler" <tyler@tysdomain.com> - 2012-10-03 21:11 -0600
  Re: final question: logging to stdout and updating files Ramchandra Apte <maniandram01@gmail.com> - 2012-10-04 00:53 -0700
  Re: final question: logging to stdout and updating files Ramchandra Apte <maniandram01@gmail.com> - 2012-10-04 00:53 -0700
  Re: final question: logging to stdout and updating files Ramchandra Apte <maniandram01@gmail.com> - 2012-10-04 06:34 -0700
  Re: final question: logging to stdout and updating files Ramchandra Apte <maniandram01@gmail.com> - 2012-10-04 06:34 -0700
    Re: final question: logging to stdout and updating files Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-04 14:00 +0000
      Re: final question: logging to stdout and updating files Chris Angelico <rosuav@gmail.com> - 2012-10-05 00:27 +1000
      RE: final question: logging to stdout and updating files "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-10-04 22:36 +0000
      Re: final question: logging to stdout and updating files Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-10-05 09:11 +0100
      Re: final question: logging to stdout and updating files Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-10-05 09:19 +0100
      Re: final question: logging to stdout and updating files Ramchandra Apte <maniandram01@gmail.com> - 2012-10-05 06:32 -0700
  Re: final question: logging to stdout and updating files Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-04 14:52 +0000

csiph-web