Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'subject:skip:s 10': 0.07; 'f.close()': 0.09; 'friday,': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '13:07,': 0.16; 'problem!': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.18; "python's": 0.19; '>>>': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'url:moin': 0.24; 'post': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'mode': 0.30; 'url:wiki': 0.31; 'this.': 0.32; 'thanks!': 0.32; 'url:python': 0.33; 'fri,': 0.33; 'subject: (': 0.35; 'done': 0.36; 'url:org': 0.36; 'should': 0.36; 'awesome': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'previous': 0.38; '12,': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; 'details.': 0.61; "you're": 0.61; 'charset:windows-1252': 0.65; 'hard.': 0.84; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: shutil.copyfile is incomplete (truncated) Date: Fri, 12 Apr 2013 13:18:58 +0100 References: <439121e2-ecc0-4f4d-b75f-0154102cc128@googlegroups.com> <61dcdc73-08de-4727-bdfc-fa3e99bd303e@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: host-92-18-43-197.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: <61dcdc73-08de-4727-bdfc-fa3e99bd303e@googlegroups.com> X-Antivirus: avast! (VPS 130412-0, 12/04/2013), Outbound message X-Antivirus-Status: Clean 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365769090 news.xs4all.nl 2661 [2001:888:2000:d::a6]:54231 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43442 On 12/04/2013 13:07, Rob Schneider wrote: > On Friday, 12 April 2013 10:22:21 UTC+1, Chris Angelico wrote: >> On Fri, Apr 12, 2013 at 7:18 PM, Rob Schneider wrote: >> >>> f.close >> >> Yep, there's the problem! See my previous post for details. Change this to: >> >> f.close() >> >> and you should be sorted. >> >> ChrisA > > Slapping forehead ... hard. Thanks! > a) We've all done it :) b) The print function/statement or Python's interactive mode are awesome in situations like this. -- If you're using GoogleCrap™ please read this http://wiki.python.org/moin/GoogleGroupsPython. Mark Lawrence