Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Default arguments in Python - the return - running out of ideas but...
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Scott David Daniels  
View profile  
 More options May 13 2009, 3:30 pm
From: Scott David Daniels <Scott.Dani...@Acm.Org>
Date: Wed, 13 May 2009 12:30:04 -0700
Local: Wed, May 13 2009 3:30 pm
Subject: Re: [Python-ideas] Default arguments in Python - the return - running out of ideas but...

spir wrote:
> My opinion on this is you're basically right. Even 'print' (for py<3.0) could be an identifier you could use in an assignment (or in any value expression), I guess, for parse patterns are different:
>    print_statement : "print" expression
>    assignment      : name '=' expression
> So you can safely have "print" as name, or inside an expression. Even "print print" should work !

But you would not want
     print print
and
     print(print)
to have two different meanings.
In Python, extra parens are fair around expressions,
and print(print) is clearly a function call.

--Scott David Daniels
Scott.Dani...@Acm.Org

_______________________________________________
Python-ideas mailing list
Python-id...@python.org
http://mail.python.org/mailman/listinfo/python-ideas


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.