pathlib.Path.is_file vs os.path.isfile difference

Liste des GroupesRevenir à cl python 
Sujet : pathlib.Path.is_file vs os.path.isfile difference
De : sjeik_appie (at) *nospam* hotmail.com (Albert-Jan Roskam)
Groupes : comp.lang.python
Date : 08. Mar 2024, 19:03:40
Autres entêtes
Message-ID : <mailman.66.1709921032.3452.python-list@python.org>
References : 1
   Hi,
   I was replacing some os.path stuff with Pathlib and I discovered this:
   Path(256 * "x").is_file()  # OSError
   os.path.isfile(256 * "x")  # bool
   Is this intended? Does pathlib try to resemble os.path as closely as
   possible?
   Best wishes,
   Albert-Jan

Date Sujet#  Auteur
8 Mar 24 * pathlib.Path.is_file vs os.path.isfile difference4Albert-Jan Roskam
8 Mar 24 +- Re: pathlib.Path.is_file vs os.path.isfile difference1ram@zedat.fu-berlin.de (Stefan Ram)
8 Mar 24 `* Re: pathlib.Path.is_file vs os.path.isfile difference2ram@zedat.fu-berlin.de (Stefan Ram)
8 Mar 24  `- Re: pathlib.Path.is_file vs os.path.isfile difference (Posting On Python-List Prohibited)1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal