Re: Assignment-in-conditional
Thanks for the FAQ, and for the 'casm ;)
What do you think about using alternative syntax (something like 'as')
- max
Fredrik Lundh wrote:
xamdam wrote:
I am not sure if this came up before, but I would love to have an
'assignment-in-conditional' form in python, e.g
it's a FAQ, so it has probably come up before:
http://pyfaq.infogami.com/why-can-t-i-use-an-assignment-in-an-expression
</F>
.
Relevant Pages
- Re: Assignment-in-conditional
... What do you think about using alternative syntax ... Fredrik Lundh wrote: ... 'assignment-in-conditional' form in python, e.g ... it's a FAQ, so it has probably come up before: ... (comp.lang.python) - Re: new newbie [c.l.py FAQ]
... have been answered in the python FAQ. ... please don't post test messages. ... with all the bells & whistles from every responder. ... (comp.lang.python) - Re: Howto: avoiding multiple copies of a script on the same page
... I now want to reproduce the same functionality given by the script at ... One obvious way to do it is to generate, from Python, multiple copies ... The reason that it is not in the FAQ is probably that using functions / ... methods / subroutines for repeated code is a fundamental part of ... (comp.lang.javascript) - Re: Error in Extending/Embedding FAQ, point 16: How do I tell "incomplete input" from "invalid input
... is accepted without any problem by the Python shell. ... When using the code from the FAQ and entering it line by line ... SyntaxError: invalid syntax ... I am using Python as scripting language in an application. ... (comp.lang.python) - Re: Newsgroup mood [was] why python is slower than java?
... there is an FAQ and yet people still ask why Python gets division ... mathematics, it had lost an important aspect of mathematics, that is, ... "once proven true is forever true." ... (comp.lang.python) |
|