Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.109.133.86.MISMATCH!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python.': 0.02; 'subject:Python': 0.06; '21,': 0.07; 'c++,': 0.07; 'perl,': 0.07; 'preference': 0.07; 'definition,': 0.09; 'oh,': 0.09; 'processing,': 0.09; 'python': 0.11; "(it's": 0.16; '2:28': 0.16; 'command-line': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'python",': 0.16; 'roy': 0.16; 'throw': 0.16; 'java,': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'things.': 0.19; 'python?': 0.22; 'shell': 0.22; 'parse': 0.24; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; '1.4': 0.31; 'bunch': 0.31; 'sep': 0.31; 'file': 0.32; 'know.': 0.32; 'text': 0.33; 'not.': 0.33; 'problem': 0.35; 'basic': 0.35; 'info': 0.35; 'etc': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'should': 0.36; 'problems': 0.38; 'easiest': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'pm,': 0.38; 'that,': 0.38; 'bad': 0.39; 'to:addr:python.org': 0.39; 'days': 0.60; 'easy': 0.60; 'solve': 0.60; 'subject:"': 0.60; 'most': 0.60; 'hope': 0.61; 'today,': 0.61; 'reach': 0.63; 'myself': 0.63; 'levels': 0.65; 'urgent': 0.67; 'answer.': 0.68; 'smith': 0.68; 'article': 0.77; 'dozens': 0.84; 'subject:before': 0.84; 'subject:know': 0.84; 'subject:saying': 0.84; 'viable': 0.84; 'pipeline': 0.91; '2013': 0.98 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=4PJXcs4LxSBBexnluM5ZpNQyYjiICzhmZkgIkz8/OSU=; b=F32jjS8HJqyFP/QUemZji3DLCyn80RCA7OG8/NdrVjyQRgkpgLPAV5ZBgOmBaHZBoc dFVTXMvPQHWqQ6/xWmWW4wRXNV4AHeqdN3Afzx7Vp7ZFywYxIXaDErzDaEWqS2KR00ff KMI2MckMNdmkL83FSkLa04pzJtOnrbKbs9mDM64iqbKGsZcMpbC6h9K6w/VmAJW+C/lA iIltTt4ynXf3uJ0NfWZiCIs45OOpc0eR3SQ0+dPmdDVZRD6lmJd8WNLyPQ9/hncxCAsJ vuqMXdEiVSS700C87y9B+mSXuhIBFmLz6ad+j9zT1rhrzF7o6bdxkoHgYofLD6zbSyvF LKhg== MIME-Version: 1.0 X-Received: by 10.52.100.202 with SMTP id fa10mr7996723vdb.0.1379732074307; Fri, 20 Sep 2013 19:54:34 -0700 (PDT) In-Reply-To: References: <31df03f7-2b81-483a-9242-b83ba4559b1a@googlegroups.com> <97f90924-7690-442c-a1b3-4d7409e30d44@googlegroups.com> <31648467-19e8-484c-995d-1e5ba48b5ea3@googlegroups.com> <771f2126-883f-40de-8df0-93c79061305f@googlegroups.com> Date: Sat, 21 Sep 2013 12:54:34 +1000 Subject: Re: What minimum should a person know before saying "I know Python" 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: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1379732077 news.xs4all.nl 15915 [2001:888:2000:d::a6]:50983 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54528 On Sat, Sep 21, 2013 at 12:31 PM, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> On Sat, Sep 21, 2013 at 2:28 AM, Aseem Bansal wrote: >> > I hope that cleared some confusion about what I wanted to ask. I wanted to >> > gauge myself to find if I am progressing or not. >> >> Well, based on my definition, that's easy to answer. Have you solved >> problems using Python? If you have a bunch of HTML pages and you need >> to get some info out of all of them by COB today, do you think "I can >> do that with Python", or do you think "I can do that with sed, awk, >> grep, and five levels of pipe"? The tools you use for an urgent job >> will be the ones you know. > > The fact that you reach for traditional command-line tools to parse HTML > should not be taken as evidence that you don't know Python. It should > be taken as evidence that you have a lot of tools in your quiver and > know when to use the right one. > > I started with Python in the 1.4 days. I will reach for Python these > days in preference to Perl, Tcl, C, C++, Java, or PHP for most things. > But, for a lot of basic text processing, I can throw together a sed, > awk, grep, sort, uniq, wc, tac, tail, etc pipeline faster than I can > write a Python program to do the same thing. Oh, absolutely! I never said that sed/awk/grep was a bad way to do things; my point is that, when there are dozens of viable solutions to a problem and you have to solve that problem *now*, you are going to reach for the one you know best. I use sed all the time (it's one of the easiest ways to edit a root-owned file from a non-root shell script - 'sudo sed -i'). ChrisA