Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion ten small Python programs
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
 
Steve Howell  
View profile  
 More options May 28 2007, 2:48 am
Newsgroups: comp.lang.python
From: Steve Howell <showel...@yahoo.com>
Date: Sun, 27 May 2007 09:48:43 -0700 (PDT)
Local: Mon, May 28 2007 2:48 am
Subject: Re: ten small Python programs

--- Wildemar Wildenburger <wilde...@freakmail.de>
wrote:

> Steve Howell wrote:
> >     # def defines a method in Python
> >     def say_hello(name):
> >         print 'hello', name
> >     say_hello('Jack')
> >     say_hello('Jill')

> Doesn't def define methods *xor* functions,
> depending on the context?
> And in this example, say_hello (*yuck*, underscores
> ...) is certainly a
> function. Or is it that functions are considered
> "module-methods"?

Goodness, I didn't expect such a simple example to be
so controversial.  But please see the new version
here:

http://wiki.python.org/moin/SimplePrograms

I changed the method name to "greet" and removed the
comment, as hopefully the intent of the program will
be pretty obvious to anyone that reads it.

___________________________________________________________________________ _________Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz


    Reply to author    Forward  
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.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google