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


Groups > comp.lang.python > #102975

Re: Make a unique filesystem path, without creating the file

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Roel Schroeven <roel@roelschroeven.net>
Newsgroups comp.lang.python
Subject Re: Make a unique filesystem path, without creating the file
Date Mon, 15 Feb 2016 23:22:47 +0100
Lines 17
Message-ID <mailman.148.1455574986.22075.python-list@python.org> (permalink)
References <85r3gf55k4.fsf@benfinney.id.au>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de umWekozfKEOTtEhJKe9M+g2tfKBC2sPsJMGioP7qIG3Q==
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; '*not*': 0.07; 'subject:file': 0.07; 'filesystem': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'library': 0.20; 'aspect': 0.22; 'header :In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.26; 'function': 0.28; 'received:be': 0.30; 'received:84': 0.32; 'file': 0.34; 'path': 0.35; 'knowledge': 0.35; 'should': 0.36; 'faster': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'subject:the': 0.39; 'to:addr:python.org': 0.40; 'ever': 0.60; 'skip:u 10': 0.61; 'real': 0.62; 'life': 0.67; 'isaac': 0.84; 'schreef': 0.84; 'subject:Make': 0.91
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host d54c57c9e.access.telenet.be
User-Agent Thunderbird 2.0.0.24 (Windows/20100228)
In-Reply-To <85r3gf55k4.fsf@benfinney.id.au>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21rc2
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:102975

Show key headers only | View raw


Ben Finney schreef op 2016-02-14 22:46:
> How should a program generate a unique filesystem path and *not* create
> the filesystem entry?
 > ...
> What standard library function should I be using to generate
> ‘tempfile.mktemp’-like unique paths, and *not* ever create a real file
> by that path?

Use uuid.uuid1()?

-- 
The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom.
   -- Isaac Asimov

Roel Schroeven

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


Thread

Re: Make a unique filesystem path, without creating the file Roel Schroeven <roel@roelschroeven.net> - 2016-02-15 23:22 +0100

csiph-web