[pyar] A beginner's guide to Python's namespaces, scope resolution, and the LEGB

Juan Manuel Pérez jmperez.85 en gmail.com
Mie Mayo 7 18:35:15 ART 2014


Consulta (léase con buena onda): no estamos en una lista en español?
On May 7, 2014 10:19 AM, "Apokalyptica Painkiller" <apokalyptica79 en gmail.com>
wrote:

> This is a short tutorial about Python's namespaces and the scope
> resolution for variable names using the LEGB-rule. The following sections
> will provide short example code blocks that should illustrate the problem
> followed by short explanations. You can simply read this tutorial from
> start to end, but I'd like to encourage you to execute the code snippets -
> you can either copy & paste them, or for your convenience, simply download
> this IPython notebook<https://raw.githubusercontent.com/rasbt/python_reference/master/tutorials/scope_resolution_legb_rule.ipynb>
> .
>
> Tutorial<http://nbviewer.ipython.org/github/rasbt/python_reference/blob/master/tutorials/scope_resolution_legb_rule.ipynb?utm_content=bufferb8e67&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer>
>
> --
> I live each day
> Like it's my last
> I live for rock and roll
> I never look back
>
> I'm a rocker
> Do as I feel as I say
> I'm a rocker
> And no one can take that away
>
>
> _______________________________________________
> pyar mailing list pyar en python.org.ar
> http://listas.python.org.ar/listinfo/pyar
>
> PyAr - Python Argentina - Sitio web: http://www.python.org.ar/
>
> La lista de PyAr esta Hosteada en USLA - Usuarios de Software Libre de
> Argentina - http://www.usla.org.ar
>
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20140507/1649898c/attachment.html>


More information about the pyar mailing list