Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python3': 0.05; 'read- only': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'terry': 0.09; 'ignore': 0.13; '__pycache__': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'run.': 0.16; 'wrote:': 0.17; 'written,': 0.17; 'jan': 0.18; 'meant': 0.21; 'fine,': 0.22; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.28; 'run': 0.28; 'code': 0.31; 'running': 0.32; 'directory,': 0.33; 'to:addr :python-list': 0.33; 'doing': 0.35; 'pm,': 0.35; 'received:org': 0.36; 'created': 0.36; 'but': 0.36; 'should': 0.36; 'possible': 0.37; 'option': 0.37; 'being': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'email addr:gmail.com': 0.63; 'soon': 0.70; 'execution.': 0.84; 'received:fios.verizon.net': 0.84; 'recompile': 0.84; 'touched': 0.84; 'medium.': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: pycache directories Date: Tue, 22 Jan 2013 01:01:44 -0500 References: <841fcc01-df05-4a8b-8b4f-1217c49aac44@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <841fcc01-df05-4a8b-8b4f-1217c49aac44@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358834539 news.xs4all.nl 6883 [2001:888:2000:d::a6]:58465 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37251 On 1/21/2013 11:55 PM, monosij.forums@gmail.com wrote: > I am doing some OO python3 where I am using multiple dirs/sub-dirs. > > So everything works fine, however when I run code __pycache__ > directories are being created in every directory touched by the > execution. This is much better than having multiple .pyc files in every directory, as in Py2. You should soon learn to ignore them. > Is it possible to set a configuration to be able to create these > pycache directories in a specific location? No. (I am very sure.) You can however, not have the .pyc files written, but that means recompile with every run. So that option is meant for running off a read-only medium. -- Terry Jan Reedy