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?

From Deepfriedice <Deepfriedice@openmailbox.org>
Newsgroups comp.lang.python
Subject Re: Saving a file "in the background" -- How?
Date 2014-10-31 11:45 +1000
Organization Aioe.org NNTP Server
Message-ID <m2upjs$bf8$1@speranza.aioe.org> (permalink)
References <mailman.15332.1414706036.18130.python-list@python.org>

Show all headers | 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