[Tutor] Why are expressions not allowed as parameters in function definition statements?

boB Stepp robertvstepp at gmail.com
Sat Jun 18 22:58:03 EDT 2016


On Sat, Jun 18, 2016 at 9:10 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> On Sat, Jun 18, 2016 at 02:04:46PM -0500, boB Stepp wrote:

> Can you explain what you expected
>
> def d(row, col/2)
>
> to mean? I have literally no idea.

You know Steve, as I was typing the beginning of a reply responding to
a similar question you asked earlier in your response, I suddenly
realized how ridiculous having a parameter of 'col/2' is!  I'll just
have either eat crow or attribute this to a brain fart.  You pick!

Cheers!

-- 
boB


More information about the Tutor mailing list