Python error messages are specific and easy to understand "ga" (before that, a colon (:) and a semicolon (;))

Purpose

I don't have enough experience to compare with anything, ** Python error messages are concrete and easy to understand ** I feel that. Therefore, the error is not only a quick glance, To read the contents seriously I feel that it is a shortcut for error resolution.

This is an article to show such feelings.

Before that, a colon (:) and a semicolon (;)

The supplementary ** before that, the meaning of the colon (:) and semicolon (;) ** is The purpose is to show the meaning of the colon that often appears in error messages. The semicolon is for comparison.

Difference between colon (:) and semicolon (;)

The difference between a colon and a semicolon is I referred to the description on the following site. According to the following site (What is the difference between the ";" semicolon and the ":" colon? The meaning and usage of each) https://allabout.co.jp/gm/gc/471930/

The colon (:) is

The colon means "that is," "to give an example."

Example sentences are also quoted from the same site.

I like Japanese foods: sushi, tempura, and sukiyaki.

The semicolon (;) is

The image of a semicolon is that it is shorter than a period and longer than a comma as a sentence delimiter.

this Example sentences are also quoted from the same site.

I went to the library; Jonathan went to the theater.

Summary

Obviously, Even if it's an error message, it's English, so I have to know English I wrote the explanation of colon (:) and semicolon (;).

Related (person)

Things that are not directly related

Use python without stress! (Become familiar with generator. It seems to be since1975.)

Use python without stress! (In Python, everything is implemented as an object) Use python without stress! (Close to Pylint) Use python without stress! (Expression and Statement) Learn Python carefully using both English and Japanese.

from now on

If you have any comments, please let us know. : candy: Will study,,,,

Recommended Posts

Python error messages are specific and easy to understand "ga" (before that, a colon (:) and a semicolon (;))
Python error messages are specific and easy to understand "ga" (... AAA yyy BBB)
Python error messages are concrete and easy to understand "ga" (SyntaxError on the closing side of triple "" "comments)
Python error messages are concrete and easy to understand "ga" (IndexError: list index out of range with element [0])
Regular expressions that are easy and solid to learn in Python
Python list comprehensions that are easy to forget
A story that makes it easy to estimate the living area using Elasticsearch and Python
Five useful Python data types that are easy to forget
How to write a metaclass that supports both python2 and python3
A python regular expression, str and unicode that are sober and addictive
A quick guide to PyFlink that combines Apache Flink and Python
[python] A note that started to understand the behavior of matplotlib.pyplot
Python a + = b and a = a + b are different
How to put a half-width space before letters and numbers in Python.
How to stop a program in python until a specific date and time
[Python] Understand the content of error messages
Prepare a development environment that is portable and easy to duplicate without polluting the environment with Python embeddable (Windows)
10 Python errors that are common to beginners
A way to understand Python duck typing
I want to exe and distribute a program that resizes images Python3 + pyinstaller
[Python] Solution to the problem that elements are linked when copying a list
A nice nimporter that connects nim and python
Send messages to Skype and Chatwork in Python
Allow vim quickfix to jump to Python error messages
Why does Python have to write a colon?
A Python script that crawls RSS in Azure Status and posts it to Hipchat
[LPIC 101] I tried to summarize the command options that are easy to make a mistake
A program that asks for a few kilograms to reach BMI and standard weight [Python]
Points that are easy to make mistakes when using lambda during Python loop processing
A solution to the problem that files containing [and] are not listed in glob.glob ()