A string of ASCII text is also valid UTF-8 text. UTF-8 is fairly compact; the majority of commonly used characters can be represented with one or two bytes. If bytes are corrupted or lost, it's possible to determine the start of the next UTF-8-encoded code point and resynchronize. ...
:param string: The string to casefold according to the IRC server semantics. """returnIRCString(self.case,string).casefold()defcasecmp(self,string,other):"""Do a caseless comparison of two strings. Returns True if equal, or False if not. :param string: String to compare :param other: ...
It's very wasteful of space. In most texts, the majority of the code points are less than 127, or less than 255, so a lot of space is occupied by0x00bytes. The above string takes 24 bytes compared to the 6 bytes needed for an ASCII representation. Increased RAM usage doesn't matter...
playlist_id(string): Playlist identifier playlist_title(string): Playlist title playlist_uploader(string): Full name of the playlist uploader playlist_uploader_id(string): Nickname or id of the playlist uploader Available for the video that belongs to some logical chapter or section: chapter(string...
--match-title REGEX Download only matching titles (regex or caseless sub-string) --reject-title REGEX Skip download for matching titles (regex or caseless sub-string) --max-downloads NUMBER Abort after downloading NUMBER files --min-filesize SIZE Do not download any videos smaller than SIZE...
The str type gets a new casefold() method: return a casefolded copy of the string, casefolded strings may be used for caseless matching. For example, 'ß'.casefold() returns 'ss'. The sequence documentation has been substantially rewritten to better explain the binary/text sequence distinct...
The str type gets a new casefold() method: return a casefolded copy of the string, casefolded strings may be used for caseless matching. For example, 'ß'.casefold() returns 'ss'. The sequence documentation has been substantially rewritten to better explain the binary/text sequence distinct...
def open(file, mode='r', buffering=None, encoding=None, errors=None, newline=None, closefd=True): # known special case of open """ Open file and return a stream. Raise IOError upon failure. file is either a text or byte string giving the name (and the path ...
It's very wasteful of space. In most texts, the majority of the code points are less than 127, or less than 255, so a lot of space is occupied by0x00bytes. The above string takes 24 bytes compared to the 6 bytes needed for an ASCII representation. Increased RAM usage doesn't matter...
The str type gets a new casefold() method: return a casefolded copy of the string, casefolded strings may be used for caseless matching. For example, 'ß'.casefold() returns 'ss'. The sequence documentation has been substantially rewritten to better explain the binary/text sequence distinct...