On this page
posixpath.normcase
Prev: posixpath.lexists | Up: posixpath | Next: posixpath.normpath
Rel: posixpath.abspath, posixpath.basename, posixpath.commonpath, posixpath.commonprefix
Ref: docs.python.org — posixpath.normcase
Tags: #public #python3 #stdlib #posixpath
Import
import posixpath
from posixpath import normcase
Signature & Overview
posixpath.normcase(s)
Normalize case of pathname. Has no effect under Posix
Usage
import posixpath
assert posixpath.normcase('/Usr/Local') == '/Usr/Local'
Gotchas
- No-op on POSIX (returns the path unchanged because POSIX paths are case-sensitive).
REPL Inspect
from posixpath import normcase
help(normcase)
Linked from
Related notes
- tuts/python3/stdlib_module/posixpath/lexists Linked here; links to this page; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/normpath Linked here; links to this page; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/posixpath/abspath Linked here; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/basename Linked here; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/commonpath Linked here; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/commonprefix Linked here; shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/dirname shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/exists shared tags: #posixpath, #stdlib
- tuts/python3/stdlib_module/posixpath/expanduser shared tags: #posixpath, #stdlib