<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Comments on snippet: 'Python Password Generator'</title>
<link>http://snipplr.com</link>
<description>Snipplr comments feed'</description>
<language>en-us</language>
<pubDate>Sun, 19 May 2013 18:51:39 GMT</pubDate>
<item>
<title>AnojiRox said on 9/6/12</title>
<link>http://snipplr.com/view/63223/python-password-generator/</link>
<description><![CDATA[ import string
    import random

    def main():
        while True:
            stop = input("Generate password? y/n: ")
            if stop and stop[0].lower() == "n":
                break
    
            length = int
    
            size = input("What length do you want the password to be(4-20): ")
            try:
              if int(size)3:
                length=int(size)
              else:
                length=6
           except:
            length=6            
            chars = string.ascii_letters + string.digits
            return ''.join(random.choice(chars) for x in range(length)) ]]></description>
<pubDate>Thu, 06 Sep 2012 04:26:32 GMT</pubDate>
<guid>http://snipplr.com/view/63223/python-password-generator/</guid>
</item>
<item>
<title>AnojiRox said on 9/6/12</title>
<link>http://snipplr.com/view/63223/python-password-generator/</link>
<description><![CDATA[ lol. that failed. ]]></description>
<pubDate>Thu, 06 Sep 2012 04:23:59 GMT</pubDate>
<guid>http://snipplr.com/view/63223/python-password-generator/</guid>
</item>
<item>
<title>AnojiRox said on 9/6/12</title>
<link>http://snipplr.com/view/63223/python-password-generator/</link>
<description><![CDATA[ <code>
import string
import random

def main():
    while True:
        stop = input("Generate password? y/n: ")
        if stop and stop[0].lower() == "n":
            break

        length = int

        size = input("What length do you want the password to be(4-20): ")
        try:
          if int(size)3:
            length=int(size)
          else:
            length=6
       except:
        length=6            
        chars = string.ascii_letters + string.digits
        return ''.join(random.choice(chars) for x in range(length))
</code> ]]></description>
<pubDate>Thu, 06 Sep 2012 04:23:09 GMT</pubDate>
<guid>http://snipplr.com/view/63223/python-password-generator/</guid>
</item>
</channel>
</rss>