Try 0o10
, may be because of python 3, or pyshell itself.
PEP says,
octal literals must now be specified
with a leading “0o” or “0O” instead of
“0”;
Related Contents:
- Python “raise from” usage
- What is `1..__truediv__` ? Does Python have a .. (“dot dot”) notation syntax?
- What does a b prefix before a python string mean?
- Generator as function argument
- Python print statement “Syntax Error: invalid syntax” [duplicate]
- `from … import` vs `import .` [duplicate]
- Is __init__.py not required for packages in Python 3.3+
- What is “pkg-resources==0.0.0” in output of pip freeze command
- Let JSON object accept bytes or let urlopen output strings
- Combine several images horizontally with Python
- Why does (1 in [1,0] == True) evaluate to False?
- Multiprocessing causes Python to crash and gives an error may have been in progress in another thread when fork() was called
- Which is more preferable to use: lambda functions or nested functions (‘def’)?
- Reading file using relative path in python project
- Conditional operator in Python? [duplicate]
- What’s the difference between “pip install” and “python -m pip install”?
- Bare asterisk in function parameters?
- Add an element in each dictionary of a list (list comprehension)
- How to remove punctuation marks from a string in Python 3.x using .translate()?
- How to redirect stdout and stderr to logger in Python
- TypeError: a bytes-like object is required, not ‘str’
- Why is Python 3 not backwards compatible? [closed]
- Why does Python allow out-of-range slice indexes for sequences?
- How to extract all the emojis from text?
- Ruby equivalent for Python’s “try”?
- What is the difference between __init__.py and __main__.py?
- Optional chaining for Python objects: foo?.bar?.baz
- Error when creating a new text file with python?
- What do ** (double star/asterisk) and * (star/asterisk) mean in a function call?
- What does the slash mean when help() is listing method signatures?
- Printing result of the zip() function in Python 3 gives “zip object at ” [duplicate]
- What are assignment expressions (using the “walrus” or “:=” operator)? Why was this syntax added?
- Why do I get “TypeError: not all arguments converted during string formatting” trying to substitute a placeholder like {0} using %?
- tf.data.Dataset: how to get the dataset size (number of elements in an epoch)?
- python mpl_toolkits installation issue
- Why does Python installed via Homebrew not include Tkinter [duplicate]
- Pytest and Python 3
- How to install pip3 on Windows?
- How to use asyncio with existing blocking library?
- Discord.py error: TypeError: __new__() got an unexpected keyword argument ‘deny_new’
- Unsupported operand type(s) for +: ‘int’ and ‘str’ [duplicate]
- How to view database and schema of django sqlite3 db
- How to prevent BrokenPipeError when doing a flush in Python?
- Let a class behave like it’s a list in Python
- How to upgrade Python version to 3.7? [closed]
- What is a clean way to convert a string percent to a float?
- Add Legend to Seaborn point plot
- Iterate over OrderedDict in Python
- Python: Make class iterable
- Python 3, Are there any known security holes in ast.literal_eval(node_or_string)?