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
 
spir  
View profile  
 More options May 14 2009, 2:50 am
From: spir <denis.s...@free.fr>
Date: Thu, 14 May 2009 08:50:42 +0200
Local: Thurs, May 14 2009 2:50 am
Subject: Re: [Python-ideas] Default arguments in Python - the return - running out of ideas but...
Le Wed, 13 May 2009 12:30:04 -0700,
Scott David Daniels <Scott.Dani...@Acm.Org> s'exprima ainsi:

> 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.

You're right ;-)

Denis
------
la vita e estrany
_______________________________________________
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.