osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why exception from os.path.exists()?


On Thu, 07 Jun 2018 22:56:49 -0400, Richard Damon wrote:

> or we need an alternate API that lets us pass raw bytes as file names

Guido's Time Machine strikes again.

All the path related functions, include open(), take arguments as either 
bytes or strings.



-- 
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson