[Tutor] os.is_file and os.is_dir missing from CPython 3.8.0b?

Alan Gauld alan.gauld at yahoo.co.uk
Fri Jun 14 13:43:16 EDT 2019


On 14/06/2019 15:53, Tom Hale wrote:

> I'm trying to use os.is_dir, but I'm not finding it or os.is_file.

I've never heard of these functions, but I'm still on v3.6, never
having found a reason to upgrade. So I assume...

> Python 3.8.0b1 (tags/v3.8.0b1:3b5deb01, Jun 13 2019, 22:28:20)

...these are new introductions in 3.8?

If so, how do they differ from the os.path.isfile()
and os.path.isdir() functions that already exist?
Could you use those as alternatives?

As to why the new functions aren't showing up, I've no
idea, sorry.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list