Non-local variableIn programming language theory, a non-local variable is a variable that is not defined in the local scope. While the term can refer to global variables, it is primarily used in the context of nested and anonymous functions where some variables can be in neither the local nor the global scope. In Lua they are called the upvalues of the function. In the Python 3 example that follows there is a nested function inner defined in the scope of another function outer.
LausanneLausanne (loʊˈzæn , USalsoloʊˈzɑːn , lɔzan; Losena lɔˈzəna) is the capital and largest city of the Swiss French-speaking canton of Vaud. It is a hilly city situated on the shores of Lake Geneva, about halfway between the Jura Mountains and the Alps, and facing the French town of Évian-les-Bains across the lake. Lausanne is located northeast of Geneva, the nearest major city. The municipality of Lausanne has a population of about 140,000, making it the fourth largest city in Switzerland after Basel, Geneva, and Zurich, with the entire agglomeration area having about 420,000 inhabitants (as of January 2019).
Romanel-sur-LausanneRomanel-sur-Lausanne (ʁɔmanɛl syʁ lɔzan, literally Romanel on Lausanne; Romanél) is a municipality in the canton of Vaud in Switzerland, located in the district of Lausanne. Romanel-sur-Lausanne is first mentioned in 1184 as Romanes. Romanel-sur-Lausanne has an area, , of (depending on calculation method). Of this area, or 59.7% is used for agricultural purposes, while or 3.8% is forested. Of the rest of the land, or 37.8% is settled (buildings or roads). Of the built up area, industrial buildings made up 5.
Lausanne DistrictLausanne District (District de Lausanne) is a district in the canton of Vaud, Switzerland. The seat of the district is the city of Lausanne. Lausanne has an area, , of . Of this area, or 27.3% is used for agricultural purposes, while or 30.9% is forested. Of the rest of the land, or 41.6% is settled (buildings or roads) and or 0.1% is unproductive land. Lausanne has a population () of . Most of the population () speaks French (159,559 or 79.6%), with German being second most common (8,534 or 4.
Le Mont-sur-LausanneLe Mont-sur-Lausanne (lə mɔ̃ syʁ lɔzan, literally Le Mont on Lausanne; Lo Mont) is a municipality in the district of Lausanne in the canton of Vaud in Switzerland. It is a suburb of the city of Lausanne. Le Mont-sur-Lausanne is first mentioned in 1237 as Monte super Lausannam. Le Mont-sur-Lausanne has an area, , of (depending on calculation method). Of this area, or 51.0% is used for agricultural purposes, while or 18.2% is forested. Of the rest of the land, or 30.0% is settled (buildings or roads).