[Python-ideas] Quick idea: defining variables from functions that take the variable name
Sven R. Kunze
srkunze at mail.de
Wed Jun 1 15:14:19 EDT 2016
On 01.06.2016 18:24, Michael Selik wrote:
> I don't see how that would be improved by a special syntax for the LHS
> to know the identifier it's being assigned to. Could you clarify that?
I wasn't referring to labels here although somebody might find that
useful too.
I was referring to the issue that fields don't know neither their
containing form classes nor their form instances. In some circumstances,
one need to do that in order to correctly work with the field (think of
the prefix of the form which needs to be reflected in the field but
there are more missing pieces of information).
As mentioned to Steven, in this case the name does not suffices at all.
So, I am not sure how to handle this right now. This might belong to a
greater issue of *referring back* which currently needs to be handled
manually in all cases.
Best,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160601/529fc3e7/attachment.html>
More information about the Python-ideas
mailing list