arizvisa
@arizvisa
dice
Mon, Sep 2, 2024 7:39 PM
here's a fun python stupidity. the
os.path.normcase
function does not fully remove all double-slashes if the first 2 characters in your path are a slash.
i.e.
os.path.normcase('//heh/yep') == '//heh/yep'
python
side-effects
stupidities
path
python2
python3
os.path
normpath
載入新的回覆
os.path.normcase
function does not fully remove all double-slashes if the first 2 characters in your path are a slash.i.e.
os.path.normcase('//heh/yep') == '//heh/yep'
python side-effects stupidities path python2 python3 os.path normpath