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 from future import pass_function
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
 
Ethan Furman  
View profile  
 More options Jul 26 2012, 12:32 am
Newsgroups: comp.lang.python
From: Ethan Furman <et...@stoneleaf.us>
Date: Wed, 25 Jul 2012 21:32:33 -0700
Local: Thurs, Jul 26 2012 12:32 am
Subject: Re: from future import pass_function

Ross Ridge wrote:
> Ross Ridge <rri...@csclub.uwaterloo.ca> wrote:
>> No, they're very much alike.  That's why all your arguments for print
>> as function also apply just as well to pass a function.  Your arguments
>> had very little to do what what print actually did.

> Chris Angelico  <ros...@gmail.com> wrote:
>> Except that print / print() is executable. Execution proceeds through
>> your code, comes to a "print", and goes off to handle that, then comes
>> back to your code. But "pass" doesn't have code attached to it. Why
>> should it be a function?

> For consistancy with print.  What it does doesn't matter any more than
> what print did mattered.

Of course what print did mattered.  `print` was not changed to `print()`
because a function looks cooler; it was changed because it does stuff,
and what it does could be changed with parameters, and overriding it
with your own custom thingie was a useful thing to do.

What code does `pass` run?  When do we pass parameters to `pass`?   When
do we need to override `pass`?

Answers:  None.  Never.  Still waiting for a reply from the OP for a use
case.

How does that quote go?  "A foolish consistency is the hobgoblin of
little minds"?  This definitely fits that category.

~Ethan~


 
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.