Article View: es.comp.os.linux.programacion
Article #9504Re: [Python] Sacar algo de dentro de una función
From: amphora
Date: Sat, 15 Jun 2002 12:52
Date: Sat, 15 Jun 2002 12:52
33 lines
2097 bytes
2097 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
El Thu, 13 Jun 2002 19:35:29 +0200, Pere Pujal Carabantes dijo:
>> Hola
>>
>> Estoy intentando hacer una funci�n que cree una tupla
>> con el nombre que se le pase como argumento y no consigo
>> que me la saque de dentro de la funci�n.
>> def nueva_tupla(nombre):
>> texte={}
>> imatge={}
>> nombre=(texte,imatge)
>> print nombre # imprime ({}, {}) con lo cual compruebo
>> # que al menos se ha creado
>> return nombre
>>
tupla= nueva_tupla('hola')
print tupla
- --
"La pipa es para el alma en pena como la caricia de una madre al hijo que
sufre" (Autor an�nimo "Phisiologie du Fumeur .Siglo XIX)
amphora at escomposlinux dot org http://julieta.escomposlinux.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9CzihbxRsnxqoy84RAjBAAKChXRcM5/mp+q+EPOzQaa5EXZUTPwCcCMcd
vvPUqA50Ls8CwI5084v4qcU=
=4h2l
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<slrnagme4r.k1.amphora@hamlet.escomposlinux.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!213-98-107-123.uc.nombres.ttd.ES!not-for-mailReferences:
<slrnaghlv1.s0.pere@hola.fou.net>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,ea94857271ee2d0f X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2002-06-16 16:05:11 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!213-98-107-123.uc.nombres.ttd.ES!not-for-mail From: amphora <amphora@hamlet.escomposlinux.org> Newsgroups: es.comp.os.linux.programacion Subject: Re: [Python] Sacar algo de dentro de una función Date: Sat, 15 Jun 2002 14:52:49 +0200 Organization: Ecolnet Lines: 33 Sender: amphora@hamlet.escomposlinux.org Message-ID: <slrnagme4r.k1.amphora@hamlet.escomposlinux.org> References: <slrnaghlv1.s0.pere@hola.fou.net> Reply-To: amphora@escomposlinux.org NNTP-Posting-Host: 213-98-107-123.uc.nombres.ttd.es (213.98.107.123) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 1024268707 7710976 213.98.107.123 (16 [64988]) X-Orig-Path: antonio.escomposlinux.org!julieta.escomposlinux.org!127.0.0.1!nobody User-Agent: slrn/0.9.7.4 (Linux)