How to Install and Uninstall python38-scandir Package on openSuSE Tumbleweed
Last updated: December 25,2024
Deprecated! Installation of this package may no longer be supported.
1. Install "python38-scandir" package
In this section, we are going to explain the necessary steps to install python38-scandir on openSuSE Tumbleweed
$
sudo zypper refresh
Copied
$
sudo zypper install
python38-scandir
Copied
2. Uninstall "python38-scandir" package
Here is a brief guide to show you how to uninstall python38-scandir on openSuSE Tumbleweed:
$
sudo zypper remove
python38-scandir
Copied
3. Information about the python38-scandir package on openSuSE Tumbleweed
Information for package python38-scandir:
-----------------------------------------
Repository : openSUSE-Tumbleweed-Oss
Name : python38-scandir
Version : 1.10.0-3.11
Arch : x86_64
Vendor : openSUSE
Installed Size : 96,6 KiB
Installed : No
Status : not installed
Source package : python-scandir-1.10.0-3.11.src
Summary : Scandir, a better directory iterator and faster oswalk
Description :
``scandir()`` is a directory iteration function like ``os.listdir()``,
except that instead of returning a list of bare filenames, it yields
``DirEntry`` objects that include file type and stat information along
with the name. Using ``scandir()`` increases the speed of ``os.walk()``
by 2-20 times (depending on the platform and file system) by avoiding
unnecessary calls to ``os.stat()`` in most cases.
``scandir`` has been included in the Python 3.5 standard library as
``os.scandir()``, and the related performance improvements to
``os.walk()`` have also been included. So if you're lucky enough to be
using Python 3.5 (release date September 13, 2015) you get the benefit
immediately, otherwise just
`download this module from PyPI`_,
install it with ``pip install scandir``, and then do something like
this in your code::
try:
from os import scandir, walk
except ImportError:
from scandir import scandir, walk
`PEP 471 `_, which is the
PEP that proposes including ``scandir`` in the Python standard library,
was `accepted`_
in July 2014 by Victor Stinner, the BDFL-delegate for the PEP.
This ``scandir`` module is intended to work on Python 2.6+ and Python
3.2+ (and it has been tested on those versions).
-----------------------------------------
Repository : openSUSE-Tumbleweed-Oss
Name : python38-scandir
Version : 1.10.0-3.11
Arch : x86_64
Vendor : openSUSE
Installed Size : 96,6 KiB
Installed : No
Status : not installed
Source package : python-scandir-1.10.0-3.11.src
Summary : Scandir, a better directory iterator and faster oswalk
Description :
``scandir()`` is a directory iteration function like ``os.listdir()``,
except that instead of returning a list of bare filenames, it yields
``DirEntry`` objects that include file type and stat information along
with the name. Using ``scandir()`` increases the speed of ``os.walk()``
by 2-20 times (depending on the platform and file system) by avoiding
unnecessary calls to ``os.stat()`` in most cases.
``scandir`` has been included in the Python 3.5 standard library as
``os.scandir()``, and the related performance improvements to
``os.walk()`` have also been included. So if you're lucky enough to be
using Python 3.5 (release date September 13, 2015) you get the benefit
immediately, otherwise just
`download this module from PyPI
install it with ``pip install scandir``, and then do something like
this in your code::
try:
from os import scandir, walk
except ImportError:
from scandir import scandir, walk
`PEP 471
PEP that proposes including ``scandir`` in the Python standard library,
was `accepted
in July 2014 by Victor Stinner, the BDFL-delegate for the PEP.
This ``scandir`` module is intended to work on Python 2.6+ and Python
3.2+ (and it has been tested on those versions).