.pyc files...
Eddie Parker
eddie at replicon.com
Tue Nov 16 13:57:54 EST 2004
<chuckles> No, I'm not, not always.
Doesn't preclude Cygwin, or http://unxtools.sourceforge.net, however... Some
days I wish Windows was more like Linux.. Some days I wish Linux was more
like Windows.. Ah well, that's the way she goes. :)
Thanks for everyone's help on this. ;) Looks like there might be forward
movement on this, if not just right yet.. Wish I had time to pick up the
patch myself! :)
-e-
[Assuming OP = Original Poster]. :)
-----Original Message-----
From: python-list-bounces+eddie=replicon.com at python.org
[mailto:python-list-bounces+eddie=replicon.com at python.org] On Behalf Of
Jorgen Grahn
Sent: November 16, 2004 11:24 AM
To: python-list at python.org
Subject: Re: .pyc files...
On Sun, 14 Nov 2004 16:48:51 -0600, Mike Meyer <mwm at mired.org> wrote:
> "Simon John" <simoninusa2001 at yahoo.co.uk> writes:
>
>> Stephen Waterbury wrote:
>>
>>> > OK, stupid question, but it's been bothering me for ages.. J
>>> >
>>> > I love Python to bits, but .pyc files always litter my source tree,
>> and
>>> > they've always bothered me. ...
>>
>>> One solution (on unices, at least):
>>>
>>> alias cleanpy="find . -name '*.pyc' -exec rm {} ';'"
>> or with backticks: rm -rf `find . -name '*.pyc'`
>
> Better with $(: rm -rf $(find . -name '*.pyc').
Yeah, but then you're bash-specific. Or at least that rules sh, csh and
tcsh.
My weapon of choice would be
find . -name '*.pyc' | xargs rm
but on the other hand .pyc files don't bother me much ...
/Jorgen
(who wonders if the OP really was on a Unix system)
--
// Jorgen Grahn <jgrahn@ Ph'nglui mglw'nafh Cthulhu
\X/ algonet.se> R'lyeh wgah'nagl fhtagn!
--
http://mail.python.org/mailman/listinfo/python-list
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004
More information about the Python-list
mailing list