Path: csiph.com!news.mixmin.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.tota-refugium.de!.POSTED!gate.homenet!not-for-mail From: Thomas Orgelmacher Newsgroups: de.comp.lang.python Subject: Re: [Python-de] strings zusammensetzen. Date: Wed, 30 Aug 2017 20:21:32 +0200 Organization: Organization? What Organization? Lines: 20 Message-ID: References: <40c6ccec-4cbc-9614-dbdd-9e88cd1dccf0@gmx.de> <4247d63f-f9f9-2915-2cb8-8be9f4302564@behnel.de> Reply-To: news10@odbs.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: tota-refugium.de 1504117802 12116 eJwFwYEBwDAEBMCVCP9kHKT2H6F3MConnKBjseNVI4mCWrR21vLi+Wrw3c+696UE5MgZtfoBJNwRIA== (30 Aug 2017 18:30:02 GMT) X-Complaints-To: abuse@news.tota-refugium.de NNTP-Posting-Date: Wed, 30 Aug 2017 18:30:02 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 Cancel-Lock: sha1:5WtyxK+RWs1R5P9GIU+nMWAhMKE= In-Reply-To: X-NNTP-Posting-Host: eJwNwYkBgDAIA8CV+BLsOCiw/wj2Dk7ll0EwsNijooW0DmQJztzpxmfsjfHssKt6dk1E+gcBAxBq X-User-ID: eJwNwoERwCAIBLCVUODBcRT4/UdoL3HFQoXBYU5niQMYR/DpvqX5izR9V2RuNDvNFtVq2HJQg+zac1yFzz5JQhWe Content-Language: de-DE Xref: csiph.com de.comp.lang.python:4888 Am 30.08.2017 um 20:03 schrieb Hermann Riemann: > > Bei Risisko halt: > os.system('rm "'+dateiname+'"') Wozu? Das bringt Dir lediglich einen zusätzlichen fork mit einem execve in die Shell, die dann rm ausführt (WIMRE ein weiterer fork). Die genannte Alternative "kostet" Dich lediglich einen Syscall und damit einen Bruchteil von os.system(). Thomas -- I have seen things you lusers would not believe. I've seen Sun monitors on fire off the side of the multimedia lab. I've seen NTU lights glitter in the dark near the Mail Gate. All these things will be lost in time, like the root partition last week.