Python 证明os.pardir的规范引用在哪里?
Python标准库是一个Python 证明os.pardir的规范引用在哪里?,python,macos,standards,history,standards-compliance,Python,Macos,Standards,History,Standards Compliance,Python标准库是一个os.pardir,应该是相同的os.path.pardir os.py说明: - os.curdir is a string representing the current directory ('.' or ':') - os.pardir is a string representing the parent directory ('..' or '::') 并且macpath.py具有 curdir = ':' pardir = '::' sep =
os.pardir
,应该是相同的os.path.pardir
os.py
说明:
- os.curdir is a string representing the current directory ('.' or ':')
- os.pardir is a string representing the parent directory ('..' or '::')
并且macpath.py
具有
curdir = ':'
pardir = '::'
sep = ':'
这似乎是包含os.pardir
的充分理由。
除此之外,我不知道pardir的其他用途
然而,根据Mac,我找不到Mac支持或要求将:
作为父目录符号的规范历史参考
根据其他操作系统,我不知道有任何其他操作系统使用与不同的pardir。
- pardir是否与
有任何其他操作系统不同。
- 究竟哪个文档(如果有)指定了
作为旧版Mac=OSX的路径分隔符:
macpath.py
指的是经典Mac操作系统的文件路径(@Two-bitalchest,比如微软的(虽然我不确定它到底有多确定)或POSIX)。我想维基文章也提到了,但它没有外来的操作系统分隔符:)。我在该表中找不到一些经典Mac或其他操作系统的文档,其中特别提到了:
,或^
,