Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: Deepfriedice Newsgroups: comp.lang.python Subject: Re: Saving a file "in the background" -- How? Date: Fri, 31 Oct 2014 11:45:31 +1000 Organization: Aioe.org NNTP Server Lines: 2 Message-ID: References: NNTP-Posting-Host: p5Yz5XDCzbye2d9UOXSRiw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.python:79987 Why not just call the save function as a separate thread? threading.Thread(target=save, args=(data)).start()