Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #92179
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!news.unit0.net!news.panservice.it!feed.xsnews.nl!border02.ams.xsnews.nl!feeder04.ams.xsnews.nl!feeder01.ams.xsnews.nl!abp001.ams.xsnews.nl!frontend-F09-10.ams.news.kpn.nl |
|---|---|
| From | Cecil Westerhof <Cecil@decebal.nl> |
| Newsgroups | comp.lang.python |
| Subject | Re: Find in ipython3 |
| Organization | Decebal Computing |
| References | <5570A252.9040908@gmail.com> <mailman.183.1433459104.13271.python-list@python.org> |
| X-Face | "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR<J%a^F2lh4[N~Yz4 nSp#c+aQo1b5=?HcNEkQ7QzF<])O3X4MDL/AYjys&*mt>,v+Pti8=Vi/Z"g^?b"E |
| X-Homepage | http://www.decebal.nl/ |
| Date | Sat, 06 Jun 2015 12:10:14 +0200 |
| Message-ID | <87zj4dp2pl.fsf@Equus.decebal.nl> (permalink) |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
| Cancel-Lock | sha1:crTmUoW/SEcho83TOMT2pGX0O8o= |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| Lines | 44 |
| NNTP-Posting-Host | 81.207.62.244 |
| X-Trace | 1433586593 news.kpn.nl 19521 81.207.62.244@kpn/81.207.62.244:36278 |
| Xref | csiph.com comp.lang.python:92179 |
Show key headers only | View raw
On Friday 5 Jun 2015 01:04 CEST, Cameron Simpson wrote:
> On 04Jun2015 13:09, Michael Torrie <torriem@gmail.com> wrote:
>> Why not use Python for what it's good for and say pipe the results
>> of find into your python script? Reinventing find poorly isn't
>> going to buy you anything.
>
> And several others made similar disparaging remarks. I think you're
> all missing some of the point of Cecil's approach.
My first experience with this newsgroup was very positive. Lately I
found some remarks not really encouraging (to use a British way of
talking). I am glad with this remark.
> I suspect Cecil is a bit like me; he's writing various well
> understood simple external tools in Python as an aid to learning
> Python and its toolbox. As an added bonus one gets a deeper
> understanding of the nuances of the external tools as well, by
> debugging issues in implementing them.
Yes, this is part of what I am doing: learning to work with Python.
But it is more. If I use shell functions like:
!find ~ -iname '*python*.pdf'
then I have to switch between different way of working. Now I can use:
find('~', '.*python.*.pdf', True)
so I do not have to switch my thinking.
And I can use:
results = find('~', '.*python.*.pdf', True)
to do something with it.
At the moment the problem is that my Python variant takes 5 times as
much time as the shell version. Not a real big problem, but something
to think about.
And as someone said: this will also work in Windows. No plus for me,
but maybe for someone else.
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Find in ipython3 Cameron Simpson <cs@zip.com.au> - 2015-06-05 09:04 +1000 Re: Find in ipython3 Cecil Westerhof <Cecil@decebal.nl> - 2015-06-06 12:10 +0200
csiph-web