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


Groups > comp.lang.python > #79987

Re: Saving a file "in the background" -- How?

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 <Deepfriedice@openmailbox.org>
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 <m2upjs$bf8$1@speranza.aioe.org> (permalink)
References <mailman.15332.1414706036.18130.python-list@python.org>
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

Show key headers only | View raw


Why not just call the save function as a separate thread?
threading.Thread(target=save, args=(data)).start()

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


Thread

Saving a file "in the background" -- How? Virgil Stokes <vs@it.uu.se> - 2014-10-30 22:30 +0100
  Re: Saving a file "in the background" -- How? Deepfriedice <Deepfriedice@openmailbox.org> - 2014-10-31 11:45 +1000

csiph-web