You’re right, see 3.1.3. Unicode Strings.
It’s been the syntax since Python 2.0.
Python 3 made them redundant, as the default string type is Unicode. Versions 3.0 through 3.2 removed them, but they were re-added in 3.3+ for compatibility with Python 2 to aide the 2 to 3 transition.
Related Contents:
- What does ** (double star/asterisk) and * (star/asterisk) do for parameters?
- What is the difference between ‘/’ and ‘//’ when used for division?
- What does __all__ mean in Python?
- What does the “at” (@) symbol do in Python?
- What is the syntax rule for having trailing commas in tuple definitions?
- Accessing dict keys like an attribute?
- Why does adding a trailing comma after a variable name make it a tuple?
- How to use a dot “.” to access members of dictionary?
- What does a b prefix before a python string mean?
- Putting a simple if-then-else statement on one line [duplicate]
- Can you add new statements to Python’s syntax?
- Why does (1 in [1,0] == True) evaluate to False?
- Python: access class property from string [duplicate]
- What does preceding a string literal with “r” mean? [duplicate]
- “x not in y” or “not x in y”
- What does “while True” mean in Python?
- Putting an if-elif-else statement on one line?
- Why are trailing commas allowed in a list?
- What is :: (double colon) in Python when subscripting sequences?
- Python Script returns unintended “None” after execution of a function [duplicate]
- Advanced Nested List Comprehension Syntax
- Python integer incrementing with ++ [duplicate]
- Python “raise from” usage
- Why isn’t assigning to an empty list (e.g. [] = “”) an error?
- Meaning of using commas and underscores with Python assignment operator? [duplicate]
- When are parentheses required around a tuple?
- Python: One Try Multiple Except
- No Multiline Lambda in Python: Why not?
- Why does adding a trailing comma after an expression create a tuple?
- How to include a quote in a raw Python string
- What does “ mean in Python?
- Extracting specific columns in numpy array
- Is it possible to assign the same value to multiple keys in a dict object at once?
- Is there a difference between continue and pass in a for loop in Python?
- How to normalize a 2-dimensional numpy array in python less verbose?
- Reversing a list using slice notation
- Why does python use two underscores for certain things? [duplicate]
- One try block with multiple excepts
- How to include a double-quote and/or single-quote character in a raw Python string literal?
- What do ** (double star/asterisk) and * (star/asterisk) mean in a function call?
- Is there a difference between “pass” and “continue” in a for loop in Python?
- Python print statement “Syntax Error: invalid syntax” [duplicate]
- Nested list comprehensions
- Getting a default value on index out of range in Python [duplicate]
- How can I diagnose common errors in JSON data?
- Python boolean expression and or
- What do >> and
- What does the ** maths operator do in Python?
- Python: SyntaxError: keyword can’t be an expression
- In regex, what does [\w*] mean?