Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7236

Re: Function declarations ?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ironfroggy@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'wed,': 0.03; 'python.': 0.04; 'high-level': 0.05; 'definitions': 0.07; 'function,': 0.07; 'advance.': 0.09; "j'ai": 0.09; 'subject:Function': 0.09; 'am,': 0.14; 'wrote:': 0.14; 'cc:addr:python-list': 0.17; 'source.': 0.19; 'header:In-Reply-To:1': 0.21; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'received:209.85.161.46': 0.23; 'received:mail- fx0-f46.google.com': 0.23; 'function': 0.25; 'url:mailman': 0.26; 'received:209.85.161': 0.26; 'message-id:@mail.gmail.com': 0.28; 'thanks': 0.28; 'cc:addr:python.org': 0.30; 'url:listinfo': 0.30; 'andre': 0.30; 'sort': 0.31; 'source': 0.34; 'there': 0.35; 'subject: ?': 0.35; 'received:google.com': 0.37; 'received:209.85': 0.37; 'depend': 0.37; 'url:python': 0.38; 'url:org': 0.38; 'subject:: ': 0.38; 'received:209': 0.39; 'your': 0.60; 'header:Reply-To:1': 0.72; 'reply-to:no real name:2**0': 0.72; 'reply-to:addr:gmail.com': 0.79; 'autres': 0.84; 'blog!': 0.84; 'ont': 0.84; 'url:fr': 0.96
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=+sMdB0kyYd4MpnTXg4p/Tp5P6ed/gR8av4b3usiEhtY=; b=KVz+yQ5wftXXAPPFGq1QqsS1z7A1Zg3G0KHV6D9xxjKRyow/HRy/0UNGTXbagAoYk8 cRYbPsqQsmYbsgI6+K+n/BtWzTuYnBSHPWMo8WMSPQWE238+mP8tOBO7kOwP5gq45iBW O7SwaWL5FGPFqps1JwFY74iNbO1b9HNIQkfa0=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=vg9NVNhOAZCHgdjG4ZaL0t38hcDWrjYmqMjOKuti6uQOHikixAVDXKXYdWGt9i7gMz Vn2CVE26FySXPgQqudAem0drPy3NGZvPPMZniddHvFg0rFnDPqN+HoZq6mmL7bYW5+VD dHzLP5+80TWwbKkcxDvXnaj2oi1QdXvVyMLGk=
MIME-Version 1.0
In-Reply-To <slrniuv00f.8s9.cheney@atc5.vermine.org>
References <slrniuv00f.8s9.cheney@atc5.vermine.org>
From Calvin Spealman <ironfroggy@gmail.com>
Date Wed, 8 Jun 2011 10:06:56 -0400
Subject Re: Function declarations ?
To Andre Majorel <cheney@halliburton.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To ironfroggy@gmail.com
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.25.1307542038.11593.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 82.94.164.166
X-Trace 1307542038 news.xs4all.nl 49183 [::ffff:82.94.164.166]:34817
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:7236

Show key headers only | View raw


Just write the function, at the top of the source. Easy peasy.

On Wed, Jun 8, 2011 at 9:58 AM, Andre Majorel <cheney@halliburton.com> wrote:
> Is there a way to keep the definitions of the high-level
> functions at the top of the source ? I don't see a way to
> declare a function in Python.
>
> Thanks in advance.
>
> --
> André Majorel http://www.teaser.fr/~amajorel/
> J'ai des droits. Les autres ont des devoirs.
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Read my blog! I depend on your acceptance of my opinion! I am interesting!
http://techblog.ironfroggy.com/
Follow me if you're into that sort of thing: http://www.twitter.com/ironfroggy

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Function declarations ? Andre Majorel <cheney@halliburton.com> - 2011-06-08 13:58 +0000
  Re: Function declarations ? Calvin Spealman <ironfroggy@gmail.com> - 2011-06-08 10:06 -0400
  Re: Function declarations ? "D'Arcy J.M. Cain" <darcy@druid.net> - 2011-06-08 10:27 -0400
  Re: Function declarations ? Asen Bozhilov <asen.bozhilov@gmail.com> - 2011-06-10 15:46 -0700
    Re: Function declarations ? Andre Majorel <cheney@halliburton.com> - 2011-06-12 19:38 +0000
      Re: Function declarations ? Tim Roberts <timr@probo.com> - 2011-06-12 21:27 -0700
        Re: Function declarations ? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-06-14 14:03 +1200
      Re: Function declarations ? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-06-13 14:58 +0000
        Re: Function declarations ? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-06-14 13:18 +1200
      Re: Function declarations ? John Nagle <nagle@animats.com> - 2011-06-13 17:19 -0700

csiph-web