A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-October/018292.html below:

[Python-Dev] statcache.lstat?

[Python-Dev] statcache.lstat? [Python-Dev] statcache.lstat?Guido van Rossum guido@python.org
Wed, 31 Oct 2001 16:20:23 -0500
> Does this (untested) code make sense as a possible addition to statcache?

For me, statcache was a failed experiment.  What's the use you have in
mind?  Why can't you use os.lstat() directly?

> One obvious problem I see is that if stat(path) had been called before
> lstat(path), you'd pull the wrong info out of the cache.  You could get
> around this by maintaining separate stat and lstat caches or caching a
> different key (e.g. (path, "l")) for the lstat variety.

Definitely use two caches or a separate key.

--Guido van Rossum (home page: http://www.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4