🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #9585

Re: [Python] Sacar algo de dentro de una función

#9585
From: David SF
Date: Thu, 13 Jun 2002 17:52
38 lines
1853 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 13.06.2002, Pere Pujal Carabantes wrote in es.comp.os.linux.programacion

>  def nueva_tupla(nombre):
>      texte={}
>      imatge={}
>      nombre=(texte,imatge)
>      print nombre # imprime ({}, {}) con lo cual compruebo
>  		 # que al menos se ha creado
>      return nombre
>  
>  nueva_tupla('hola')
>  print hola

No ser�a algo como..

    def nueva_tupla():
        texte = {}
        imatge = {}
        return (texte, imatge)
        
    t1 = nueva_tupla()
    print t1

..aunque no entiendo muy bien el sentido de esa funci�n.. quiz�s porque no
s� mucho python y me estoy perdiendo algo ;)

Saludos.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9CNvfJ/HgPjz2jQERAtWkAKDJDOHGq+Nh5E5Vem3jLWNImBsjmwCfW/nn
3RwUON3+c/tRxu6QPeHXnvM=
=2CSP
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <u4maea.h41.ln@dookie.hn.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed1.bredband.com!bredband!news01.chello.se!newsrouter.chello.at!fu-berlin.de!uni-berlin.de!cm04129.telecable.ES!not-for-mail
References: <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-13 11:00:15 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed1.bredband.com!bredband!news01.chello.se!newsrouter.chello.at!fu-berlin.de!uni-berlin.de!cm04129.telecable.ES!not-for-mail
From: David SF <aktns@escomposlinux.org>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: [Python] Sacar algo de dentro de una función
Date: Thu, 13 Jun 2002 19:52:30 +0200
Lines: 38
Message-ID: <u4maea.h41.ln@dookie.hn.org>
References: <slrnaghlv1.s0.pere@hola.fou.net>
NNTP-Posting-Host: cm04129.telecable.es (212.89.24.67)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1023991212 5483282 212.89.24.67 (16 [99261])
X-Orig-Path: dookie.hn.org!nobody
User-Agent: slrn/0.9.7.4 (Linux)