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


Groups > comp.lang.python > #48570

Re: My son wants me to teach him Python

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.017
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; '16,': 0.03; 'subject:Python': 0.06; 'tune': 0.09; '"with"': 0.16; 'finds': 0.16; 'fluent': 0.16; 'grep': 0.16; 'hmm.': 0.16; 'simpson': 0.16; 'subject:son': 0.16; 'sucked': 0.16; 'variations': 0.16; 'win7': 0.16; 'wrote:': 0.18; 'example': 0.22; 'fine': 0.24; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'unix': 0.29; 'primarily': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'scripting,': 0.31; 'probably': 0.32; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'convention': 0.38; 'winning': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'rather': 0.38; 'stock': 0.39; 'use.': 0.39; 'to:addr:python.org': 0.39; 'system.': 0.39; 'commands': 0.60; 'real': 0.63; 'sound': 0.68; 'containing': 0.69; 'gotten': 0.74; 'subject:wants': 0.74; '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:from:date:message-id:subject:to :content-type; bh=jYbFSzFIeLt+cejKG28E2WlvOhy1YEN75K1ypt9MVcc=; b=c6Lxv8F5V0WtC9eybEMbcuvv1RY4kR6k12QAryd/yoewaiqgCCi5dpkG+sZrPruI1X 7F5n8jMSI8gxZuvmANyB0YJicdUbhaJwREXR8tGR6xN+pmPduHAmwjhxZ/y0n2WZ279v qve9w+3YnD+wYGDiqsPNrcHZD0Y/cgNvI8LNoJAV+q1YxG/wE0VzThlg5N/GaPwEnkMj ALJWgLJ1f7u+9bkfwPojxCCyTu1zUdD4eUfT70TLjlYG2VT7YWMDfdt9GuKEajFw3HcM V1hu++/lwwFqxzUDmQfKs7Lg8Fe5RzRg4qaoKOXcDsvEiui/OIlygvvBoff428YHk+q0 MyRA==
X-Received by 10.68.42.134 with SMTP id o6mr14641455pbl.149.1371508405828; Mon, 17 Jun 2013 15:33:25 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <20130616095534.GA36027@cskk.homeip.net>
References <oqbnr85meir14rovt24fi0k7q61knf94lt@invalid.netcom.com> <20130616095534.GA36027@cskk.homeip.net>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Mon, 17 Jun 2013 16:32:44 -0600
Subject Re: My son wants me to teach him Python
To Python <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 <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.3498.1371508865.3114.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1371508865 news.xs4all.nl 15931 [2001:888:2000:d::a6]:39898
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:48570

Show key headers only | View raw


On Sun, Jun 16, 2013 at 3:55 AM, Cameron Simpson <cs@zip.com.au> wrote:
> On 14Jun2013 20:12, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
> | [...] PowerShell has been
> | available as a download on WinXP and standard on Win7 [PS 3 is a
> | download for Win7, stock on real Win8].
> |       While I'm not fluent in it, there are some commands I've gotten
> | rather engrained...
> |
> | get-childitem -recurse -filter "*.ad*" | select-string -pattern "with"
> |
> | finds all the Ada (GNAT convention .ads/.adb) files containing "with"
> | statements. And pattern probably is a regex so I could fine tune it to
> | just the package withs by using a start of line marker...
>
> Hmm.
>
>   find . -name '*.ad*' | xargs grep with
>
> on almost any UNIX system. There's any number of variations on that
> depending on exactly what you want. I'm not going to get sucked
> into a UNIX/Windows bickerfest here, but your PowerShell example
> isn't winning me over. Sound like they reinvented the wheel. Again,
> years later:-(

As I understand it, PowerShell is intended primarily for automation
and scripting, not for interactive console use.

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


Thread

Re: My son wants me to teach him Python Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-17 16:32 -0600

csiph-web