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


Groups > comp.lang.python > #15333

Re: leftover pyc files

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <andrea.crotti.0@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'svn': 0.04; 'option,': 0.07; 'sadly': 0.07; 'skipping': 0.07; 'wrapper': 0.07; 'python': 0.08; 'bash': 0.09; 'deletes': 0.09; 'subject:files': 0.09; 'files.': 0.09; 'am,': 0.12; 'cc:addr:python-list': 0.15; 'hartley': 0.16; 'takes,': 0.16; 'wrote:': 0.18; 'cc:no real name:2**0': 0.21; 'asked': 0.22; 'scripting,': 0.23; 'header:In- Reply-To:1': 0.23; 'received:74.125.82.174': 0.24; 'received:mail- wy0-f174.google.com': 0.24; 'shell': 0.24; 'checkout': 0.25; 'guess': 0.25; 'fine': 0.26; 'windows': 0.26; 'specifically': 0.27; 'mainly': 0.27; 'script': 0.28; 'delay': 0.28; 'cc:addr:python.org': 0.29; 'does': 0.32; "can't": 0.32; 'someone': 0.33; 'this.': 0.33; 'operating': 0.33; 'header:User- Agent:1': 0.33; 'done': 0.33; 'on,': 0.33; 'message- id:@gmail.com': 0.34; 'install': 0.34; 'probably': 0.34; 'largest': 0.34; 'file': 0.36; 'skip:" 10': 0.36; 'jonathan': 0.36; 'received:74.125.82': 0.37; 'but': 0.37; 'could': 0.38; 'cc:2**2': 0.38; 'received:google.com': 0.38; 'some': 0.38; 'url:en': 0.38; 'received:74.125': 0.39; "it's": 0.39; 'why': 0.39; 'subject:: ': 0.39; 'delete': 0.40; 'files': 0.40; 'your': 0.61; 'kind': 0.62; 'human': 0.63; 'saw': 0.67; 'ways,': 0.67; 'from:addr:andrea.crotti.0': 0.84; 'from:name:andrea crotti': 0.84; 'to:none': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=1Usq8ZUWgskKoBaji304Ew2bM0QLIspRdqlYXLGJs8I=; b=ap+KZztmlCXNI2R71ZtCozl7t2V1CJ1wZZ3PD3DTgwKPr8ISplWRNvEHvvsxBZnIwJ 1LXro98bhI/RcMbFjgx7gpgXDIcjT/uE07Uv+F9jsy0OGuXJPMRnKkgskhYzHb22T7dw iW8u+u6ULnwrHWNwtba1b9XBXIxkxPeXl9/1A=
Date Fri, 04 Nov 2011 10:34:11 +0000
From Andrea Crotti <andrea.crotti.0@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20111001 Thunderbird/7.0.1
MIME-Version 1.0
Subject Re: leftover pyc files
References <4EB14D9D.8080309@gmail.com> <j8rm4k$fvl$1@dough.gmane.org> <mailman.2385.1320248748.27778.python-list@python.org> <11169846.60.1320306575820.JavaMail.geo-discussion-forums@yqiu15> <j8tro3$pj0$1@dough.gmane.org> <mailman.2409.1320342902.27778.python-list@python.org> <5204871.568.1320398878314.JavaMail.geo-discussion-forums@yqiu15>
In-Reply-To <5204871.568.1320398878314.JavaMail.geo-discussion-forums@yqiu15>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Cc python-list@python.org, Jonathan Hartley <tartley@tartley.com>, Peter Otten <__peter__@web.de>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
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.2426.1320402859.27778.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1320402859 news.xs4all.nl 6923 [2001:888:2000:d::a6]:53631
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:15333

Show key headers only | View raw


On 11/04/2011 09:27 AM, Jonathan Hartley wrote:
> I like to install a Bash shell of some kind on windows boxes I work on, specifically so I can use shell commands like this, just like on any other operating system. Cywin works just fine for this.
>
> svn also has hooks, but sadly not a checkout hook:
> http://svnbook.red-bean.com/en/1.1/ch05s02.html
> I guess you could write your own two-line wrapper script which does the checkout and then deletes the pyc files.
>
> I don't understand why deleting only some pyc files is important. Can't you just delete them all and let Python re generate the ones you need? I once saw someone create the longest python file they could to see how long generating pyc files takes, and it is very very quick indeed. A human could not notice the delay even for the largest of projects.
>
> Finally, someone asked about skipping .svn dirs: find has a '-prune' option, you can read about it on the manpa

Uhm yes it makes sense also to just remove all of them, I don't know why 
it was done like this but
probably for "performance" reasons.

I will try both ways, but I would definitively avoid the shell 
scripting, because it's mainly windows
but it has to be multi-platform..

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


Thread

Re: leftover pyc files Andrea Crotti <andrea.crotti.0@gmail.com> - 2011-11-02 15:45 +0000
  Re: leftover pyc files Jonathan Hartley <tartley@tartley.com> - 2011-11-03 00:49 -0700
    Re: leftover pyc files Jonathan Hartley <tartley@tartley.com> - 2011-11-03 00:50 -0700
    Re: leftover pyc files Jonathan Hartley <tartley@tartley.com> - 2011-11-03 00:50 -0700
    Re: leftover pyc files Jonathan Hartley <tartley@tartley.com> - 2011-11-03 01:45 -0700
    Re: leftover pyc files Jonathan Hartley <tartley@tartley.com> - 2011-11-03 01:45 -0700
  Re: leftover pyc files Jonathan Hartley <tartley@tartley.com> - 2011-11-03 00:49 -0700
    Re: leftover pyc files Peter Otten <__peter__@web.de> - 2011-11-03 11:51 +0100
    Re: leftover pyc files Andrea Crotti <andrea.crotti.0@gmail.com> - 2011-11-03 17:54 +0000
      Re: leftover pyc files Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-11-04 06:48 +0000
      Re: leftover pyc files Jonathan Hartley <tartley@tartley.com> - 2011-11-04 02:27 -0700
        Re: leftover pyc files Andrea Crotti <andrea.crotti.0@gmail.com> - 2011-11-04 10:34 +0000
        Re: leftover pyc files Chris Angelico <rosuav@gmail.com> - 2011-11-04 21:39 +1100
          Re: leftover pyc files 88888 Dihedral <dihedral88888@googlemail.com> - 2011-11-04 06:31 -0700
          Re: leftover pyc files 88888 Dihedral <dihedral88888@googlemail.com> - 2011-11-04 06:31 -0700
        Re: leftover pyc files Andrea Crotti <andrea.crotti.0@gmail.com> - 2011-11-04 11:00 +0000
        Re: leftover pyc files Terry Reedy <tjreedy@udel.edu> - 2011-11-04 16:01 -0400
          Re: leftover pyc files Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-11-04 23:15 +0000
      Re: leftover pyc files Jonathan Hartley <tartley@tartley.com> - 2011-11-04 02:27 -0700
        Re: leftover pyc files Jonathan Hartley <tartley@tartley.com> - 2011-11-04 02:29 -0700
    Re: leftover pyc files Chris Angelico <rosuav@gmail.com> - 2011-11-04 08:36 +1100
    Re: leftover pyc files David Robinow <drobinow@gmail.com> - 2011-11-03 20:14 -0400

csiph-web