On this page
ntpath.normcase
Prev: ntpath.lexists | Up: ntpath | Next: ntpath.normpath
Rel: ntpath.abspath, ntpath.basename, ntpath.commonpath, ntpath.commonprefix
Ref: docs.python.org — ntpath.normcase
Tags: #public #python3 #stdlib #ntpath
Import
import ntpath
from ntpath import normcase
Signature & Overview
ntpath.normcase(s)
Normalize case of pathname.
Usage
import ntpath
assert ntpath.normcase('C:/Users/Ada') == r'c:\users\ada'
Gotchas
- Lowercases and converts
/to\: Matches Windows case-insensitive semantics.
REPL Inspect
from ntpath import normcase
help(normcase)
Linked from
Related notes
- tuts/python3/stdlib_module/ntpath/lexists Linked here; links to this page; shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/normpath Linked here; links to this page; shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/ntpath/abspath Linked here; shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/basename Linked here; shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/commonpath Linked here; shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/commonprefix Linked here; shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/dirname shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/exists shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/expanduser shared tags: #ntpath, #stdlib