🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #1171

funciones en python

#1171
From: David Az�car
Date: Fri, 15 Dec 2006 20:35
21 lines
1533 bytes
Hola, quisiera hacer una pregunta
se puede hacer un arreglo de funciones en python? al estilo de c

double (*BX[A])(double, double, double*, double*);

donde BX[0] ser�a una funcion, BX[2] ser�a otra, etc. Es que debo definir
muchas funciones que son todas muy parecidas pero con ciertos par�metros
distintos, y no quiero hacerlas una por una, adem�s las debo meter en un
for, del tipo:

for i in range(x):
	BX[i]*5

etc.

ojal� puedan ayudarme.

saludos cordiales
-- 
David Az�car P.
Technical Details
Message-ID: <elv0v5$678$1@localhost.localdomain>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news.vcd.cl!not-for-mail!news.cec.uchile.cl!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,9b843d3029723c46,start
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII
From: David Az�car <dazocar@NOSPAMing.uchile.cl>
Newsgroups: chile.comp.programacion
Subject: funciones en python
Date: Fri, 15 Dec 2006 20:35:49 +0000 (UTC)
Organization: Ingenier�a - U de Chile
Lines: 21
Sender: AZOCAR PAREDES DAVID IGNACIO  <dazocar@cipres.cec.uchile.cl>
Message-ID: <elv0v5$678$1@localhost.localdomain>
NNTP-Posting-Host: cipres.cec.uchile.cl
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: localhost.localdomain 1166214949 6376 200.9.100.5 (15 Dec 2006 20:35:49 GMT)
X-Complaints-To: news@localhost.localdomain
NNTP-Posting-Date: Fri, 15 Dec 2006 20:35:49 +0000 (UTC)
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (SunOS/5.8 (sun4u))
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!news.vcd.cl!not-for-mail!news.cec.uchile.cl!not-for-mail