<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: macks: listas</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>convertir string a lista - python</title>
        <link>http://www.posteet.com/view/2063</link>
        <description>
        <![CDATA[<pre>string = '[1,2,3]'
list = eval(string)
print list
[1, 2, 3]</pre> <a href="http://www.posteet.com/tags/listas">[listas]</a>  <a href="http://www.posteet.com/tags/python">[python]</a>  <a href="http://www.posteet.com/tags/string">[string]</a>  <a href="http://www.posteet.com/tags/tips">[tips]</a> ]]>        </description>
        <dc:creator>macks</dc:creator>
        <pubDate>Tue, 30 Mar 2010 00:24:49 +0200</pubDate>

            <category>listas</category>
            <category>python</category>
            <category>string</category>
            <category>tips</category>
    
    </item>

  
    <item>
        <title>formatear  listas, agrupados para grabar a la bd</title>
        <link>http://www.posteet.com/view/2035</link>
        <description>
        <![CDATA[<pre>cName = ['funciton','bcp','interbank','sheraton']
    cPhone = ['65465465','4546545','56465465','545454545']
    cRuc = [5465463545,546546546,5245454,9898998]

    store = [cName,cPhone,cRuc]
    
    l = []
    i = 0
    for s in store:
        cname = store[0][i]
        cphone = store[1][i]
        cruc = store[2][i]
        l.append({'cname': cname, 'phone':cphone, 'ruc':cruc})
        i = i+1

savelog(l)
[{
  'phone': '65465465',
  'cname': 'funciton',
  'ruc': 5465463545L
},
{
  'phone': '4546545',
  'cname': 'bcp',
  'ruc': 546546546
},
{
  'phone': '56465465',
  'cname': 'interbank',
  'ruc': 5245454
}]</pre> <a href="http://www.posteet.com/tags/diccionarios">[diccionarios]</a>  <a href="http://www.posteet.com/tags/django">[django]</a>  <a href="http://www.posteet.com/tags/listas">[listas]</a>  <a href="http://www.posteet.com/tags/python">[python]</a>  <a href="http://www.posteet.com/tags/soluciones">[soluciones]</a> ]]>        </description>
        <dc:creator>macks</dc:creator>
        <pubDate>Fri, 15 Jan 2010 17:28:55 +0100</pubDate>

            <category>diccionarios</category>
            <category>django</category>
            <category>listas</category>
            <category>python</category>
            <category>soluciones</category>
    
    </item>


</channel>
</rss>
