Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > RE: .pyc files...

Reply
Thread Tools

RE: .pyc files...

 
 
Eddie Parker
Guest
Posts: n/a
 
      11-16-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=(E-Mail Removed)
[mailtoython-list-bounces+eddie=(E-Mail Removed)] On Behalf Of
Jorgen Grahn
Sent: November 16, 2004 11:24 AM
To: http://www.velocityreviews.com/forums/(E-Mail Removed)
Subject: Re: .pyc files...

On Sun, 14 Nov 2004 16:48:51 -0600, Mike Meyer <(E-Mail Removed)> wrote:
> "Simon John" <(E-Mail Removed)> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments