[Chennaipy] Chennaipy Digest, Vol 35, Issue 4

ranjith pillay ammaranjith at gmail.com
Thu Jul 7 06:03:13 EDT 2016


Thank you Venkat.


Regards,
Ranjith



On Mon, Jul 4, 2016 at 9:30 PM, <chennaipy-request at python.org> wrote:

> Send Chennaipy mailing list submissions to
>         chennaipy at python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mail.python.org/mailman/listinfo/chennaipy
> or, via email, send a message with subject or body 'help' to
>         chennaipy-request at python.org
>
> You can reach the person managing the list at
>         chennaipy-owner at python.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Chennaipy digest..."
>
>
> Today's Topics:
>
>    1. Help with Python (Abdur Rub)
>    2. Re: Python interpreter (venkata krishnan)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 3 Jul 2016 22:54:12 +0530
> From: Abdur Rub <abdur.engineer at gmail.com>
> To: chennaipy at python.org
> Subject: [Chennaipy] Help with Python
> Message-ID:
>         <
> CAMdP94w2SibW1aWspJYWfNrmjVyqasxFjG3aj4J9cNVuqpXn-Q at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Dear all,
>
> I posted the following on Stack overflow.
> http://stackoverflow.com/q/38171869/6426077
> wonder if anyone here could help
>
> thanks
> Abdur
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mail.python.org/pipermail/chennaipy/attachments/20160703/4dbccb5f/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Sun, 3 Jul 2016 17:52:43 +0000 (UTC)
> From: venkata krishnan <ve_krish at yahoo.com>
> To: "chennaipy at python.org" <chennaipy at python.org>
> Subject: Re: [Chennaipy] Python interpreter
> Message-ID:
>         <385017020.1210430.1467568363516.JavaMail.yahoo at mail.yahoo.com>
> Content-Type: text/plain; charset=UTF-8
>
> Dear Ranjit,
>
> It is not the interpreter alone in action and it flutters. From my
> learning by going through the articles below.
> It works in conjunction with Symbol table to determine the scope of each
> name binding. So, before it reaches the print(x) in case 2. It has the
> symbol table prepared for the function/block. When the LEGB scoping rule
> applied. It finds that, you have already an assignment operator for x in
> that scope. Thus, it treats it as an UnboundLocalError. Where as in case 1.
> The symbol table would not have any local scope/assignment for x.
>
>
> Please go through below links(articles) from below. Has a very good
> explanation of "UnboundLocalError".
> 1.
> http://eli.thegreenplace.net/2011/05/15/understanding-unboundlocalerror-in-python/
> 2. Symbol table construction in Python's compiler
>     Part1:
> http://eli.thegreenplace.net/2010/09/18/python-internals-symbol-tables-part-1/
>
>     Part2:
> http://eli.thegreenplace.net/2010/09/20/python-internals-symbol-tables-part-2/
>
>
> Thanks
> Venkat
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Chennaipy mailing list
> Chennaipy at python.org
> https://mail.python.org/mailman/listinfo/chennaipy
>
>
> ------------------------------
>
> End of Chennaipy Digest, Vol 35, Issue 4
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chennaipy/attachments/20160707/eb2c07e8/attachment.html>


More information about the Chennaipy mailing list