Search code examples
pythonpyramid

Can someone explain this Python syntax?


I am working with Pyramid for Python and there are several files that have the syntax below. I'm very new to Python, and none of the 3 books I have read so far mention this format.

[logger_sqlalchemy]
level = INFO
handlers =
qualname = sqlalchemy.engine

My guess is that it's a way of creating a list named logger_sqlalchemy.

logger_sqlalchemy = [level:INFO, handlers:'', qualname:sqlalchemy]

Is this what the code is doing?


Solution

  • It's not a Python file, but a logging configuration file. See logging config file format.