From jeffrey.fischer at gmail.com Thu Sep 1 20:01:02 2011 From: jeffrey.fischer at gmail.com (Jeff Fischer) Date: Thu, 1 Sep 2011 11:01:02 -0700 Subject: [Baypiggies] Slides from my talk last Thursday Message-ID: Hi everyone, The slides from my talk on Engage are up at http://blog.genforma.com/2011/08/24/talk-on-engage-thursday-august-25/ (near the bottom of the page). You can reach the PDF directly at http://blog.genforma.com/wp-content/uploads/2011/08/engage_talk_20110825.pdf. I've also added more documentation to Engage. You can get the latest code and documentation at http://github.com/genforma/engage. If you try it out and run into problems (or just have questions), feel free to email me! Thanks, Jeff Fischer From tony at tcapp.com Sun Sep 4 02:14:38 2011 From: tony at tcapp.com (Tony Cappellini) Date: Sat, 3 Sep 2011 17:14:38 -0700 Subject: [Baypiggies] Fwd: User Group discount code for O'Reilly Android Open Conference Message-ID: While it's not directly python-related, it is one of the perks O'Reilly passes on to user groups. O'Reilly Android Open Conference Oct 9-11, 2011 San Francisco, CA Get 20% off any pass with code an11ug http://androidopen.com/ 20% Registration for O'Reilly Android Open Conference San Francisco Use code an11ug when you register at https://en.oreilly.com/android2011/public/regwith/an11ug -------------- next part -------------- An HTML attachment was scrubbed... URL: From cappy2112 at gmail.com Wed Sep 7 02:14:53 2011 From: cappy2112 at gmail.com (Tony Cappellini) Date: Tue, 6 Sep 2011 17:14:53 -0700 Subject: [Baypiggies] Fwd: UG News - The O'Reilly Android Open Conference- Register now win a free HTC tablet. Message-ID: For those interested in registering for Open Android, the first 50 people who register with the discount code TABLET will receive an HTC Tablet. See details below. ** If you would like to view this information in your browser, click here . [image: O'Reilly] Forward this announcement Hi, We're excited about our upcoming Android Open Conference in San Francisco Oct 9 - 11. Here are some things to know: *Free Tablet* Be one of the first 50 people to register with discount code TABLET between Sept 6 - Sept 12 and we'll give you a free HTC Flyer Tablet($499 value). Act now -- we only have 50 tablets, and they'll go quickly. (Sorry, not available with any other discount codes.) Certain restrictions apply, please see official rules: If you're not interested in the tablet, you can still get 20% off any pass with code an11ug ($200-$500 value). Register online. *Free Webcast* Join us on Sept 9 10AM PT for a free webcast, Android Honeycomb Fragments: Creating Large-Screen UIs for Android Devices presented by Blake Meike. Register here. Attention startups: here's your chance to get in front of hundreds of potential users and a couple of high-profile investors at Android Open. Submit your companyto participate in Startup Showcase on Monday, Oct 10 at 6:40 pm. Special Android Open Events: Ignite - Enlighten Us, But Make it Quick7:00pm Sunday, Oct 9 Sponsor Gallery Reception- Grab a drink, mingle with fellow Android Open participants, and see the latest offerings from our exhibitors and sponsors. 5:40pm Monday, Oct 10 Mini Maker Faire / Lunch-- This hands-on, demo-licious lunch event showcases the most exciting Android tools and hardware that are emerging from garages and university labs. 11:55am Tuesday, Oct 11 Here's a complete listof events and more details. *Keynote Speakers include*: - Massimo Banzi, Arduino Co-founder - Robert Stephens, Best Buy, Geek Squad CTO, Founder - Dion Almaer, Walmart.com VP, Mobile Architecture Here's a full listof Keynote speakers, Post our banneron your site and get a free book, and send us your logo, and we'll post it on our partners page . Send your logo to usergroups at oreilly.com Grab your Android Open banner here. Until next time-- Marsee Henon & Jon Johns [image: Spreading the knowledge of innovators][image: oreilly.com] You are receiving this email because you are a User Group contact with O'Reilly Media. Forward this announcement. If you would like to stop receiving these newsletters or announcements from O'Reilly, send an email to usergroups at oreilly.com. O'Reilly Media, Inc. 1005 Gravenstein Highway North, Sebastopol, CA 95472 (707) 827-7000 -------------- next part -------------- An HTML attachment was scrubbed... URL: From abhishek.vit at gmail.com Wed Sep 7 22:11:00 2011 From: abhishek.vit at gmail.com (Abhishek Pratap) Date: Wed, 7 Sep 2011 13:11:00 -0700 Subject: [Baypiggies] importing variables into python namespace using argparse module Message-ID: Hey All This might sound naive as I am trying to learn python. I am using argparse to parse the command line arguments but I am not sure how they variables created by it are imported into python's current namespace for downstream usage. eg: parser = argparse.ArgumentParser(description='Process some integers') parser.add_argument('--file_1', nargs=1 , type=file, required=True, help='Name of file 1') parser.add_argument('--file_2', nargs=1 , type=file, required=True, help='Name of file 2') parser.parse_args() print "file 1 is %s) % file_1 ## as expected gives me error NameError: name file_1' is not defined What I am not sure is now how can I use the file_1 and file_2 variable for anything downstream. PS: Please let me know if this is not a appropriate forum to push such questions and if there are other mailing list that I could use coz in the coming days I am sure to send in a lot of email traffic. Thanks! -Abhi From rami.chowdhury at gmail.com Wed Sep 7 22:55:44 2011 From: rami.chowdhury at gmail.com (Rami Chowdhury) Date: Wed, 7 Sep 2011 21:55:44 +0100 Subject: [Baypiggies] importing variables into python namespace using argparse module In-Reply-To: References: Message-ID: On Wed, Sep 7, 2011 at 21:11, Abhishek Pratap wrote: > This might sound naive as I am trying to learn python. Not at all, we've all been there :-) > I am using argparse to parse the command line arguments but I am not > sure how they variables created by it are imported into python's > current namespace for downstream usage. The simple answer is that they're not. I'll explain further after the code sample > parser = argparse.ArgumentParser(description='Process some integers') > > parser.add_argument('--file_1', nargs=1 , type=file, required=True, > help='Name of file 1') > parser.add_argument('--file_2', nargs=1 , type=file, required=True, > help='Name of file 2') > parser.parse_args() Here, you need to capture the object that is returned from parser.parse_args() -- that object is where any data captured by the parser is stored, and you can access it from that object. So, for instance: >>> args = parser.parse_args() >>> print "File 1 is %s" % args.file_1 > PS: Please let me know if this is not a appropriate forum to push such > questions and if there are other mailing list that I could use coz in > the coming days I am sure to send in a lot of email traffic. You could also try the main Python-language mailing list (python-list at python.org) -- there are more people on the list and you might get quicker responses to questions :-) Hope that helps, Rami -- Rami Chowdhury "Never assume malice when stupidity will suffice." -- Hanlon's Razor +44-7581-430-517 / +1-408-597-7068 / +88-0189-245544 From abhishek.vit at gmail.com Wed Sep 7 23:01:33 2011 From: abhishek.vit at gmail.com (Abhishek Pratap) Date: Wed, 7 Sep 2011 14:01:33 -0700 Subject: [Baypiggies] importing variables into python namespace using argparse module In-Reply-To: References: Message-ID: Thanks Simeon and Rami. Works now. -Abhi On Wed, Sep 7, 2011 at 1:55 PM, Rami Chowdhury wrote: > On Wed, Sep 7, 2011 at 21:11, Abhishek Pratap wrote: >> This might sound naive as I am trying to learn python. > > Not at all, we've all been there :-) > >> I am using argparse to parse the command line arguments but I am not >> sure how they variables created by it are imported into python's >> current namespace for downstream usage. > > The simple answer is that they're not. I'll explain further after the > code sample > >> parser = argparse.ArgumentParser(description='Process some integers') >> >> parser.add_argument('--file_1', nargs=1 , type=file, required=True, >> help='Name of file 1') >> parser.add_argument('--file_2', nargs=1 , type=file, required=True, >> help='Name of file 2') >> parser.parse_args() > > Here, you need to capture the object that is returned from > parser.parse_args() -- that object is where any data captured by the > parser is stored, and you can access it from that object. So, for > instance: > >>>> args = parser.parse_args() >>>> print "File 1 is %s" % args.file_1 > >> PS: Please let me know if this is not a appropriate forum to push such >> questions and if there are other mailing list that I could use coz in >> the coming days I am sure to send in a lot of email traffic. > > You could also try the main Python-language mailing list > (python-list at python.org) -- there are more people on the list and you > might get quicker responses to questions :-) > > Hope that helps, > Rami > > -- > Rami Chowdhury > "Never assume malice when stupidity will suffice." -- Hanlon's Razor > +44-7581-430-517?/ +1-408-597-7068 / +88-0189-245544 > From abhishek.vit at gmail.com Wed Sep 7 23:56:01 2011 From: abhishek.vit at gmail.com (Abhishek Pratap) Date: Wed, 7 Sep 2011 14:56:01 -0700 Subject: [Baypiggies] importing variables into python namespace using argparse module In-Reply-To: References: Message-ID: Guys I think I am stuck again while trying to open a file. It looks like a type casting error but not sure. ##Error: TypeError: coercing to Unicode: need string or buffer, list found #code def read_file(file): """Read the first same and create a dictionary """ fh1 = open(file,'r') for line in fh1: print line sam_file_1 = args.sam_file_1 sam_file_2 = args.sam_file_2 read_file(sam_file_1) -Abhi On Wed, Sep 7, 2011 at 2:01 PM, Abhishek Pratap wrote: > Thanks Simeon and Rami. Works now. > > -Abhi > > > > > On Wed, Sep 7, 2011 at 1:55 PM, Rami Chowdhury wrote: >> On Wed, Sep 7, 2011 at 21:11, Abhishek Pratap wrote: >>> This might sound naive as I am trying to learn python. >> >> Not at all, we've all been there :-) >> >>> I am using argparse to parse the command line arguments but I am not >>> sure how they variables created by it are imported into python's >>> current namespace for downstream usage. >> >> The simple answer is that they're not. I'll explain further after the >> code sample >> >>> parser = argparse.ArgumentParser(description='Process some integers') >>> >>> parser.add_argument('--file_1', nargs=1 , type=file, required=True, >>> help='Name of file 1') >>> parser.add_argument('--file_2', nargs=1 , type=file, required=True, >>> help='Name of file 2') >>> parser.parse_args() >> >> Here, you need to capture the object that is returned from >> parser.parse_args() -- that object is where any data captured by the >> parser is stored, and you can access it from that object. So, for >> instance: >> >>>>> args = parser.parse_args() >>>>> print "File 1 is %s" % args.file_1 >> >>> PS: Please let me know if this is not a appropriate forum to push such >>> questions and if there are other mailing list that I could use coz in >>> the coming days I am sure to send in a lot of email traffic. >> >> You could also try the main Python-language mailing list >> (python-list at python.org) -- there are more people on the list and you >> might get quicker responses to questions :-) >> >> Hope that helps, >> Rami >> >> -- >> Rami Chowdhury >> "Never assume malice when stupidity will suffice." -- Hanlon's Razor >> +44-7581-430-517?/ +1-408-597-7068 / +88-0189-245544 >> > From eric at ericwalstad.com Thu Sep 8 00:08:11 2011 From: eric at ericwalstad.com (Eric Walstad) Date: Wed, 7 Sep 2011 15:08:11 -0700 Subject: [Baypiggies] importing variables into python namespace using argparse module In-Reply-To: References: Message-ID: Hi Abhishek, In the future please include the full error traceback. It includes information that helps in debugging. It looks like your sam_file_1 variable contains a list when a string is expected. You could try printing the value of that variable before passing it to your read_file function to see what it contains. You've changed your code and didn't include all the changes. Eric. On Wed, Sep 7, 2011 at 2:56 PM, Abhishek Pratap wrote: > Guys > > I think I am stuck again while trying to open a file. It looks like a > type casting error but not sure. > > ##Error: > TypeError: coercing to Unicode: need string or buffer, list found > > > #code > > def read_file(file): > ? ?"""Read the first same and create a dictionary > ? ?""" > ? ?fh1 = open(file,'r') > ? ?for line in fh1: > ? ? ? ?print line > > > sam_file_1 = args.sam_file_1 > sam_file_2 = args.sam_file_2 > > read_file(sam_file_1) > > > -Abhi From sherman.yang at gmail.com Thu Sep 8 00:15:01 2011 From: sherman.yang at gmail.com (Shiqi Yang) Date: Wed, 7 Sep 2011 15:15:01 -0700 Subject: [Baypiggies] importing variables into python namespace using argparse module In-Reply-To: References: Message-ID: It might be because the type is set to 'file' for args.sam_file_1 and then the file object was returned as sam_file_1 then passed to open() in read_file() maybe try change type=str would help HTH, Shiqi On Wed, Sep 7, 2011 at 2:56 PM, Abhishek Pratap wrote: > Guys > > I think I am stuck again while trying to open a file. It looks like a > type casting error but not sure. > > ##Error: > TypeError: coercing to Unicode: need string or buffer, list found > > > #code > > def read_file(file): > ? ?"""Read the first same and create a dictionary > ? ?""" > ? ?fh1 = open(file,'r') > ? ?for line in fh1: > ? ? ? ?print line > > > sam_file_1 = args.sam_file_1 > sam_file_2 = args.sam_file_2 > > read_file(sam_file_1) > > > -Abhi > > > On Wed, Sep 7, 2011 at 2:01 PM, Abhishek Pratap wrote: >> Thanks Simeon and Rami. Works now. >> >> -Abhi >> >> >> >> >> On Wed, Sep 7, 2011 at 1:55 PM, Rami Chowdhury wrote: >>> On Wed, Sep 7, 2011 at 21:11, Abhishek Pratap wrote: >>>> This might sound naive as I am trying to learn python. >>> >>> Not at all, we've all been there :-) >>> >>>> I am using argparse to parse the command line arguments but I am not >>>> sure how they variables created by it are imported into python's >>>> current namespace for downstream usage. >>> >>> The simple answer is that they're not. I'll explain further after the >>> code sample >>> >>>> parser = argparse.ArgumentParser(description='Process some integers') >>>> >>>> parser.add_argument('--file_1', nargs=1 , type=file, required=True, >>>> help='Name of file 1') >>>> parser.add_argument('--file_2', nargs=1 , type=file, required=True, >>>> help='Name of file 2') >>>> parser.parse_args() >>> >>> Here, you need to capture the object that is returned from >>> parser.parse_args() -- that object is where any data captured by the >>> parser is stored, and you can access it from that object. So, for >>> instance: >>> >>>>>> args = parser.parse_args() >>>>>> print "File 1 is %s" % args.file_1 >>> >>>> PS: Please let me know if this is not a appropriate forum to push such >>>> questions and if there are other mailing list that I could use coz in >>>> the coming days I am sure to send in a lot of email traffic. >>> >>> You could also try the main Python-language mailing list >>> (python-list at python.org) -- there are more people on the list and you >>> might get quicker responses to questions :-) >>> >>> Hope that helps, >>> Rami >>> >>> -- >>> Rami Chowdhury >>> "Never assume malice when stupidity will suffice." -- Hanlon's Razor >>> +44-7581-430-517?/ +1-408-597-7068 / +88-0189-245544 >>> >> > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From abhishek.vit at gmail.com Thu Sep 8 00:15:14 2011 From: abhishek.vit at gmail.com (Abhishek Pratap) Date: Wed, 7 Sep 2011 15:15:14 -0700 Subject: [Baypiggies] importing variables into python namespace using argparse module In-Reply-To: References: Message-ID: Hi Eric Sorry I did not provide the full info. Here is the exact code with full traceback at the end. import sys sys.path.append('/house/homedirs/a/apratap/lib/python'); import argparse def read_file(file): """Read the first same and create a dictionary """ with open(file,'r') as fh1: for line in fh1: line.strip() temp = line.split("\t") print 'header : %s \t flag : %s' % (temp[0],temp[1]) def compare_with_second_sam_file(file): pass parser = argparse.ArgumentParser(description='Process some integers') parser.add_argument('--sam_file_1', nargs=1 , type=file, required=True, help='Name of sam file 1') parser.add_argument('--sam_file_2', nargs=1 , type=file, required=True, help='Name of sam file 2') args=parser.parse_args() sam_file_1 = args.sam_file_1 sam_file_2 = args.sam_file_2 print 'sam _file_1 has the value %s' % sam_file_1 print 'type of var %s' % type(sam_file_1) read_file(sam_file_1) ### Traceback ### sam _file_1 has the value [] type of var Traceback (most recent call last): File "/house/homedirs/a/apratap/dev/eclipse_workspace/python_scripts/src/compare_read_names_in_sam_files.py", line 41, in read_file(sam_file_1) File "/house/homedirs/a/apratap/dev/eclipse_workspace/python_scripts/src/compare_read_names_in_sam_files.py", line 13, in read_file with open(file,'r') as fh1: TypeError: coercing to Unicode: need string or buffer, list found On Wed, Sep 7, 2011 at 3:08 PM, Eric Walstad wrote: > Hi Abhishek, > > In the future please include the full error traceback. ?It includes > information that helps in debugging. > > It looks like your sam_file_1 variable contains a list when a string > is expected. ?You could try printing the value of that variable before > passing it to your read_file function to see what it contains. ?You've > changed your code and didn't include all the changes. > > Eric. > > > On Wed, Sep 7, 2011 at 2:56 PM, Abhishek Pratap wrote: >> Guys >> >> I think I am stuck again while trying to open a file. It looks like a >> type casting error but not sure. >> >> ##Error: >> TypeError: coercing to Unicode: need string or buffer, list found >> >> >> #code >> >> def read_file(file): >> ? ?"""Read the first same and create a dictionary >> ? ?""" >> ? ?fh1 = open(file,'r') >> ? ?for line in fh1: >> ? ? ? ?print line >> >> >> sam_file_1 = args.sam_file_1 >> sam_file_2 = args.sam_file_2 >> >> read_file(sam_file_1) >> >> >> -Abhi > From abhishek.vit at gmail.com Thu Sep 8 00:34:07 2011 From: abhishek.vit at gmail.com (Abhishek Pratap) Date: Wed, 7 Sep 2011 15:34:07 -0700 Subject: [Baypiggies] importing variables into python namespace using argparse module In-Reply-To: References: Message-ID: I think I understand why the error happens but still not sure about a step 2(below) 1. I was not aware that the object type returned by parser.add_argument when "type=file" is a file handle. I took it as a string or file name. **Here is what I dont understand.** 2. parser.add_argument('--sam_file_1', nargs=1 , type=file, required=True, help='Name of sam file 1') sam_file_1 = args.sam_file_1 sam_file_1 is a list ?? I am not sure why Does this mean all the arguments returned by parser.parse_args() are a list even if they have one variable. May be I am missing a concept here. If I make the following change then the code works which is basically extracting an element out of the list. sam_file_1 = args.sam_file_1 [0] -Abhi On Wed, Sep 7, 2011 at 3:15 PM, Shiqi Yang wrote: > It might be because the type is set to 'file' for args.sam_file_1 and > then the file object was returned as sam_file_1 > then passed to open() in read_file() > > maybe try change type=str would help > > HTH, > Shiqi > > On Wed, Sep 7, 2011 at 2:56 PM, Abhishek Pratap wrote: >> Guys >> >> I think I am stuck again while trying to open a file. It looks like a >> type casting error but not sure. >> >> ##Error: >> TypeError: coercing to Unicode: need string or buffer, list found >> >> >> #code >> >> def read_file(file): >> ? ?"""Read the first same and create a dictionary >> ? ?""" >> ? ?fh1 = open(file,'r') >> ? ?for line in fh1: >> ? ? ? ?print line >> >> >> sam_file_1 = args.sam_file_1 >> sam_file_2 = args.sam_file_2 >> >> read_file(sam_file_1) >> >> >> -Abhi >> >> >> On Wed, Sep 7, 2011 at 2:01 PM, Abhishek Pratap wrote: >>> Thanks Simeon and Rami. Works now. >>> >>> -Abhi >>> >>> >>> >>> >>> On Wed, Sep 7, 2011 at 1:55 PM, Rami Chowdhury wrote: >>>> On Wed, Sep 7, 2011 at 21:11, Abhishek Pratap wrote: >>>>> This might sound naive as I am trying to learn python. >>>> >>>> Not at all, we've all been there :-) >>>> >>>>> I am using argparse to parse the command line arguments but I am not >>>>> sure how they variables created by it are imported into python's >>>>> current namespace for downstream usage. >>>> >>>> The simple answer is that they're not. I'll explain further after the >>>> code sample >>>> >>>>> parser = argparse.ArgumentParser(description='Process some integers') >>>>> >>>>> parser.add_argument('--file_1', nargs=1 , type=file, required=True, >>>>> help='Name of file 1') >>>>> parser.add_argument('--file_2', nargs=1 , type=file, required=True, >>>>> help='Name of file 2') >>>>> parser.parse_args() >>>> >>>> Here, you need to capture the object that is returned from >>>> parser.parse_args() -- that object is where any data captured by the >>>> parser is stored, and you can access it from that object. So, for >>>> instance: >>>> >>>>>>> args = parser.parse_args() >>>>>>> print "File 1 is %s" % args.file_1 >>>> >>>>> PS: Please let me know if this is not a appropriate forum to push such >>>>> questions and if there are other mailing list that I could use coz in >>>>> the coming days I am sure to send in a lot of email traffic. >>>> >>>> You could also try the main Python-language mailing list >>>> (python-list at python.org) -- there are more people on the list and you >>>> might get quicker responses to questions :-) >>>> >>>> Hope that helps, >>>> Rami >>>> >>>> -- >>>> Rami Chowdhury >>>> "Never assume malice when stupidity will suffice." -- Hanlon's Razor >>>> +44-7581-430-517?/ +1-408-597-7068 / +88-0189-245544 >>>> >>> >> _______________________________________________ >> Baypiggies mailing list >> Baypiggies at python.org >> To change your subscription options or unsubscribe: >> http://mail.python.org/mailman/listinfo/baypiggies >> > From simeonf at gmail.com Thu Sep 8 00:35:01 2011 From: simeonf at gmail.com (Simeon Franklin) Date: Wed, 7 Sep 2011 15:35:01 -0700 Subject: [Baypiggies] importing variables into python namespace using argparse module In-Reply-To: References: Message-ID: Shiqi is correct - because you specified that the argument was of type file argparse already opened the file for you. If you want to handle file opening yourself specify str arguments instead. Also - because you specified nargs the resulting variable is a list, even if nargs=1. Just leave nargs off of the add_argument call if you only want one argument. You can print the args variable when you execute the script to see what its contents look like. I'd also strongly recommend Doug Hellman's Python Module of the Week as a good source of tutorial style documentation. The argparse chapter is at http://www.doughellmann.com/PyMOTW/argparse/ -regards Simeon Franklin 209 846-2151 On Wed, Sep 7, 2011 at 3:15 PM, Abhishek Pratap wrote: > Hi Eric > > Sorry I did not provide the full info. Here is the exact code with > full traceback at the end. > > > import sys > sys.path.append('/house/homedirs/a/apratap/lib/python'); > import argparse > > > > def read_file(file): > """Read the first same and create a dictionary > """ > with open(file,'r') as fh1: > for line in fh1: > line.strip() > temp = line.split("\t") > print 'header : %s \t flag : %s' % (temp[0],temp[1]) > > > > > def compare_with_second_sam_file(file): > pass > > > > parser = argparse.ArgumentParser(description='Process some integers') > > parser.add_argument('--sam_file_1', nargs=1 , type=file, > required=True, help='Name of sam file 1') > parser.add_argument('--sam_file_2', nargs=1 , type=file, > required=True, help='Name of sam file 2') > > args=parser.parse_args() > > sam_file_1 = args.sam_file_1 > sam_file_2 = args.sam_file_2 > > print 'sam _file_1 has the value %s' % sam_file_1 > print 'type of var %s' % type(sam_file_1) > > read_file(sam_file_1) > > > ### > Traceback > ### > > > sam _file_1 has the value [] > type of var > Traceback (most recent call last): > File > "/house/homedirs/a/apratap/dev/eclipse_workspace/python_scripts/src/compare_read_names_in_sam_files.py", > line 41, in > read_file(sam_file_1) > File > "/house/homedirs/a/apratap/dev/eclipse_workspace/python_scripts/src/compare_read_names_in_sam_files.py", > line 13, in read_file > with open(file,'r') as fh1: > TypeError: coercing to Unicode: need string or buffer, list found > > > > > > On Wed, Sep 7, 2011 at 3:08 PM, Eric Walstad wrote: > > Hi Abhishek, > > > > In the future please include the full error traceback. It includes > > information that helps in debugging. > > > > It looks like your sam_file_1 variable contains a list when a string > > is expected. You could try printing the value of that variable before > > passing it to your read_file function to see what it contains. You've > > changed your code and didn't include all the changes. > > > > Eric. > > > > > > On Wed, Sep 7, 2011 at 2:56 PM, Abhishek Pratap > wrote: > >> Guys > >> > >> I think I am stuck again while trying to open a file. It looks like a > >> type casting error but not sure. > >> > >> ##Error: > >> TypeError: coercing to Unicode: need string or buffer, list found > >> > >> > >> #code > >> > >> def read_file(file): > >> """Read the first same and create a dictionary > >> """ > >> fh1 = open(file,'r') > >> for line in fh1: > >> print line > >> > >> > >> sam_file_1 = args.sam_file_1 > >> sam_file_2 = args.sam_file_2 > >> > >> read_file(sam_file_1) > >> > >> > >> -Abhi > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From simeonf at gmail.com Thu Sep 8 00:36:38 2011 From: simeonf at gmail.com (Simeon Franklin) Date: Wed, 7 Sep 2011 15:36:38 -0700 Subject: [Baypiggies] importing variables into python namespace using argparse module In-Reply-To: References: Message-ID: On Wed, Sep 7, 2011 at 3:34 PM, Abhishek Pratap wrote: > **Here is what I dont understand.** > > Does this mean all the arguments returned by parser.parse_args() are a > list even if they have one variable. May be I am missing a concept > here. > > Yes - but only if you specify the nargs argument when creating the argument. -regards Simeon Franklin 209 846-2151 -------------- next part -------------- An HTML attachment was scrubbed... URL: From cappy2112 at gmail.com Thu Sep 8 06:27:29 2011 From: cappy2112 at gmail.com (Tony Cappellini) Date: Wed, 7 Sep 2011 21:27:29 -0700 Subject: [Baypiggies] Raffle for 1 free ticket to O'Reilly Android Open 2011 conference Message-ID: O'Reilly has graciously donated 1 free ticket to the Android Open 2011 Conference. * http://androidopen.com/android2011 * We will be raffling off that ticket Thursday Sept 22, 2011. http://www.baypiggies.net/ You **must** be present to win. See you at the meeting. * * -------------- next part -------------- An HTML attachment was scrubbed... URL: From donotreply at eventbrite.com Thu Sep 8 18:05:46 2011 From: donotreply at eventbrite.com (PyStar) Date: Thu, 08 Sep 2011 11:05:46 -0500 Subject: [Baypiggies] Reminder for PyStar San Francisco: Introduction to Python Web... Message-ID: <1315497946.137258@eventbrite.com> Hi Olga, Your event is almost here! Check out the details below. Event: PyStar San Francisco: Introduction to Python Web Programming for Women and their Friends Date/Time: Sep 10, 2011 9:00 AM - 4:00 PM URL: http://www.eventbrite.com/event/2084750545 Print Tickets: http://www.eventbrite.com/safe-redirect?next=http%3A%2F%2Fwww.eventbrite.com%2Fprint-ticket%2F47326543%2F60423147%2F47326543-60423147-tickets.pdf%2F%3Fc%3DMTE1MjU0Nzc%253D%250A%26utm_source%3Deb_email%26utm_medium%3Demail%26utm_campaign%3Dorder_confirm&key=AH_ElWGGrn4sDS-O4_6GhuD8Py3Um_ryvQ Thanks for using Eventbrite. Have a great time! -------------- next part -------------- An HTML attachment was scrubbed... URL: From donotreply at eventbrite.com Fri Sep 9 01:10:22 2011 From: donotreply at eventbrite.com (Heads up about water shut off) Date: Thu, 08 Sep 2011 18:10:22 -0500 Subject: [Baypiggies] Message to attendees of PyStar San Francisco: Introduction to Python Web... Message-ID: <1315523422.207061@eventbrite.com> Hi Everyone, Looking forward to learning some Python on Saturday?? Me too. Couple of things: 1.? If you have time, please try to do the setup steps for your machine using the notes here: http://pystar.org/setup_machine.html (just do the page for your operating system if you're a beginner) so that you can start coding right away Saturday morning.? If you don't have time or get stuck somewhere along the way don't worry, we'll have a group of volunteers helping with installations first thing Saturday morning and we'll make sure your laptop is ready to go as quickly as possible.? For folks who are thinking they might want to do the Django tutorial (ie: people who have touched at least one programming language before) go ahead and try to install the other stuff (git, virtualenv, pip, and django) ? 2.? I just got a heads up from our building that the water for the women's restrooms will be off from 7am - 11am on the Saturday morning (what an ironic coincidence!) we also have a men's room if needed during that time, but I thought it would be good to let everyone know ahead of time so they can take that into consideration. ? See you Saturday! Lukas ? ? Event: PyStar San Francisco: Introduction to Python Web...Date: Saturday, September 10, 2011 from 9:00 AM to 4:00 PM (PT)Location: Mozilla SF2 Harrison StreetSuite 700San Francisco, CA 94105For more information click here: PyStar San Francisco: Introduction to Python Web Programming for Women and their Friends -------------- next part -------------- An HTML attachment was scrubbed... URL: From tshanky at gmail.com Fri Sep 9 01:53:10 2011 From: tshanky at gmail.com (Shashank Tiwari) Date: Thu, 8 Sep 2011 16:53:10 -0700 Subject: [Baypiggies] Mastering Hadoop Map-reduce for Data Analysis Message-ID: I know this is a Python related mailing list and I have no intentions of spamming the list. However, I do believe there are many developers interested in learning about and leveraging Hadoop for data analysis so wanted to let you know that I am conducting an exclusive 1 day session on "Mastering Hadoop Map-reduce for Data Analysis" in the bay area on Oct 14 and then repeating the same session on Oct 22. Many developers have liked this session and found it to be very useful. If you are interested then please find details about the event (including links to register for the event) at http://hadoopbayarea.eventbrite.com/. Thanks, Shashank Author: Professional NoSQL (Wiley, 2011) -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtuite at yahoo.com Fri Sep 9 02:38:22 2011 From: vtuite at yahoo.com (Vicky Tuite) Date: Thu, 8 Sep 2011 17:38:22 -0700 (PDT) Subject: [Baypiggies] Django instructior needed for pystar event in SF on Saturday Message-ID: <1315528702.70017.YahooMailNeo@web39704.mail.mud.yahoo.com> Hi All, Pystar could use another Django person to help out on Saturday Sept 10.? I can't make it. (I'm in Portland at Djangocon).? I helped out in the previous event and it's really fun. It's going through a Django tutorial and making sure all the students are getting it working on their own machines. They may also need Python instructors. Mozilla SF 2 Harrison Street Suite 700 San Francisco, CA 94105 Get more info or sign up at pystar.org or contact rupa at codechix.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From glen at glenjarvis.com Fri Sep 9 05:51:05 2011 From: glen at glenjarvis.com (Glen Jarvis) Date: Thu, 8 Sep 2011 20:51:05 -0700 Subject: [Baypiggies] A properties and obj.__dict__ question Message-ID: I have a question that is hard to ask without involving code. I reduced my project down to a tiny test case (as follows). As you see, the following code will work and access the variables within the class successfully. However, it's a cheat, using the internal attributes instead of the properties (as properties don't show in __dict__). The objective is to have a large string with different fields. The fields happen to all be members of my class. So, I could hard code things like this: message = """ Name: %s Address: %s %s, %s %s """ % {obj.name, obj.address, obj.city, obj.state, obj.postal_code} But, as each of the items are properties of the class, I'd like to be more dynamic, like this: message = """ Name: %(obj.name)s Address: %(obj.address)s %(obj.city)s, %(obj.state)s %(obj.postal_code)s """ % obj I can do this with normal attributes, like the following: message = """ Name: %(name)s Address: %(address)s %(city)s, %(state)s %(postal_code)s """ % obj.__dict__ However, these attributes in my case are properties and don't show in the __dict__. Here's a runnable piece of code to demonstrate: =-=-=-=-=-=-=- Start of Working Code -=-=-=-=-=-=-=-=-=- class Piggie(object): def __init__(self): """A demo for a BayPIGgies question""" self._name = None self._address = None @property def name(self): return self._name @name.setter def name(self, value): if isinstance(value, basestring): value = value.strip() self._name = value @property def address(self): return self._address @address.setter def address(self, value): if isinstance(value, basestring): value = value.strip() self._address = value def __unicode__(self): if self.name is None: return u"Nameless Person" else: return self.name __str__ = __unicode__ f = Piggie() f.name = 'Glen' message = """ Obviously, this is silly for only two fields like this. But, it's a very reduced test case to demo a problem from a much larger project. Name: %(_name)s Address: %(_address)s """ % f.__dict__ print message =-=-=-=-=-=-=- Start of Working Code -=-=-=-=-=-=-=-=-=- This works, as the output below shows. However, only by accessing the internal attributes of the class directly, not using the property accessors. How can I do something like this, but with property accessors. Something like dir(f) or f.__property_dict__ that just has the properties. Run: Obviously, this is silly for only two fields like this. But, it's a very reduced test case to demo a problem from a much larger project. Name: Glen Address: None Run with the properties used: Traceback (most recent call last): File "x.py", line 48, in """ % f.__dict__ KeyError: 'name' Thanks, for letting me share :) Glen -- Things which matter most must never be at the mercy of things which matter least. -- Goethe -------------- next part -------------- An HTML attachment was scrubbed... URL: From mvoorhie at yahoo.com Fri Sep 9 06:18:44 2011 From: mvoorhie at yahoo.com (Mark Voorhies) Date: Thu, 8 Sep 2011 21:18:44 -0700 Subject: [Baypiggies] A properties and obj.__dict__ question In-Reply-To: References: Message-ID: <201109082118.45278.mvoorhie@yahoo.com> On Thursday, September 08, 2011 08:51:05 pm Glen Jarvis wrote: > I have a question that is hard to ask without involving code. I reduced my > project down to a tiny test case (as follows). > > As you see, the following code will work and access the variables within the > class successfully. However, it's a cheat, using the internal attributes > instead of the properties (as properties don't show in __dict__). > > The objective is to have a large string with different fields. The fields > happen to all be members of my class. So, I could hard code things like > this: > > message = """ > Name: %s > Address: %s > %s, %s %s > """ % {obj.name, obj.address, obj.city, obj.state, obj.postal_code} > > But, as each of the items are properties of the class, I'd like to be more > dynamic, like this: > > message = """ > Name: %(obj.name)s > Address: %(obj.address)s > %(obj.city)s, %(obj.state)s %(obj.postal_code)s > """ % obj > > I can do this with normal attributes, like the following: > > message = """ > Name: %(name)s > Address: %(address)s > %(city)s, %(state)s %(postal_code)s > """ % obj.__dict__ > > However, these attributes in my case are properties and don't show in the > __dict__. > > Here's a runnable piece of code to demonstrate: > > > =-=-=-=-=-=-=- Start of Working Code -=-=-=-=-=-=-=-=-=- > class Piggie(object): > def __init__(self): > """A demo for a BayPIGgies question""" > self._name = None > self._address = None > > @property > def name(self): > return self._name > > @name.setter > def name(self, value): > if isinstance(value, basestring): > value = value.strip() > self._name = value > > @property > def address(self): > return self._address > > @address.setter > def address(self, value): > if isinstance(value, basestring): > value = value.strip() > self._address = value > > def __unicode__(self): > if self.name is None: > return u"Nameless Person" > else: > return self.name > __str__ = __unicode__ > > > f = Piggie() > f.name = 'Glen' > > > message = """ > Obviously, this is silly for only two fields like this. > > But, it's a very reduced test case to demo a problem from a > much larger project. > > Name: %(_name)s > Address: %(_address)s > """ % f.__dict__ > > print message > =-=-=-=-=-=-=- Start of Working Code -=-=-=-=-=-=-=-=-=- > > > This works, as the output below shows. However, only by accessing the > internal attributes of the class directly, not using the property accessors. > How can I do something like this, but with property accessors. Something > like dir(f) or f.__property_dict__ that just has the properties. > > Run: > > > Obviously, this is silly for only two fields like this. > > But, it's a very reduced test case to demo a problem from a > much larger project. > > Name: Glen > Address: None > > > > Run with the properties used: > > Traceback (most recent call last): > File "x.py", line 48, in > """ % f.__dict__ > KeyError: 'name' > > > Thanks, for letting me share :) > > > > Glen > What about: message = """ Name: %(obj.name)s Address: %(obj.address)s %(obj.city)s, %(obj.state)s %(obj.postal_code)s """ % dict((i,getattr(obj,i)) for i in dir(obj)) ? (obviously, this is dangerous if any attribute of obj has side effects) If this is a string to be modified at run time, would it be reasonable to just use eval or have the client supply an importable module? (i.e., if you want dynamic behavior, can you take advantage of the fact that Python is already a dynamic language?) --Mark From simeonf at gmail.com Fri Sep 9 06:29:06 2011 From: simeonf at gmail.com (Simeon Franklin) Date: Thu, 8 Sep 2011 21:29:06 -0700 Subject: [Baypiggies] A properties and obj.__dict__ question In-Reply-To: References: Message-ID: Sounds like a job for the inspect module. I don't have a great deal of familiarity here so others may have better suggestions but given a toy class: class foo(object): @property def x(self): return 1 I can use inspect to get all the attributes and values of objects of class with >>> import inspect >>> f = foo() >>>dict(inspect.getmembers(f)) # returns a list of two tuples that I pass to dict {'__class__': , '__delattr__': , '__dict__': {}, ... snip ... 'x': 1} You could use this dict in your format strings if you know that all properties are side-effect free. Alternatively if you need a more sophisticated method you could copy the __dict__ of your object and then add to it by calling inspect.classify_class_attrs on your class (not the instance) and noting that properties are identified in the resulting list of attribute objects. You could then call each one and add its name and value to your copy of obj.__dict__. Hmm - this still has you calling all the properties beforehand and seems clunky. Aha! Try adding a __getitem__ method to your class like: class foo(object): @property def x(self): return 1 def __getitem__(self, key): return getattr(self, key) And then your class emulates dictionary access (for item retrieval at least) so that >>> f = foo() >>> f['x'] # dict access 1 >>> "%(x)s" % f # and string formatting with named labels as a consequence '1' -regards Simeon Franklin 209 846-2151 -------------- next part -------------- An HTML attachment was scrubbed... URL: From krid at otisbean.com Fri Sep 9 06:01:38 2011 From: krid at otisbean.com (Dirk Bergstrom) Date: Thu, 08 Sep 2011 21:01:38 -0700 Subject: [Baypiggies] A properties and obj.__dict__ question In-Reply-To: References: Message-ID: <4E698FA2.2010900@otisbean.com> I think that String.format will solve this for you, based on this example from the python docs: >>> class Point(object): ... def __init__(self, x, y): ... self.x, self.y = x, y ... def __str__(self): ... return 'Point({self.x}, {self.y})'.format(self=self) Found here: http://docs.python.org/library/string.html#formatexamples On 09/08/2011 08:51 PM, Glen Jarvis wrote: > I have a question that is hard to ask without involving code. I reduced my > project down to a tiny test case (as follows). > > As you see, the following code will work and access the variables within the > class successfully. However, it's a cheat, using the internal attributes > instead of the properties (as properties don't show in __dict__). > > The objective is to have a large string with different fields. The fields > happen to all be members of my class. So, I could hard code things like > this: > > message = """ > Name: %s > Address: %s > %s, %s %s > """ % {obj.name, obj.address, obj.city, obj.state, obj.postal_code} > > But, as each of the items are properties of the class, I'd like to be more > dynamic, like this: > > message = """ > Name: %(obj.name)s > Address: %(obj.address)s > %(obj.city)s, %(obj.state)s %(obj.postal_code)s > """ % obj > > I can do this with normal attributes, like the following: > > message = """ > Name: %(name)s > Address: %(address)s > %(city)s, %(state)s %(postal_code)s > """ % obj.__dict__ > > However, these attributes in my case are properties and don't show in the > __dict__. > > Here's a runnable piece of code to demonstrate: > > > =-=-=-=-=-=-=- Start of Working Code -=-=-=-=-=-=-=-=-=- > class Piggie(object): > def __init__(self): > """A demo for a BayPIGgies question""" > self._name = None > self._address = None > > @property > def name(self): > return self._name > > @name.setter > def name(self, value): > if isinstance(value, basestring): > value = value.strip() > self._name = value > > @property > def address(self): > return self._address > > @address.setter > def address(self, value): > if isinstance(value, basestring): > value = value.strip() > self._address = value > > def __unicode__(self): > if self.name is None: > return u"Nameless Person" > else: > return self.name > __str__ = __unicode__ > > > f = Piggie() > f.name = 'Glen' > > > message = """ > Obviously, this is silly for only two fields like this. > > But, it's a very reduced test case to demo a problem from a > much larger project. > > Name: %(_name)s > Address: %(_address)s > """ % f.__dict__ > > print message > =-=-=-=-=-=-=- Start of Working Code -=-=-=-=-=-=-=-=-=- > > > This works, as the output below shows. However, only by accessing the > internal attributes of the class directly, not using the property accessors. > How can I do something like this, but with property accessors. Something > like dir(f) or f.__property_dict__ that just has the properties. > > Run: > > > Obviously, this is silly for only two fields like this. > > But, it's a very reduced test case to demo a problem from a > much larger project. > > Name: Glen > Address: None > > > > Run with the properties used: > > Traceback (most recent call last): > File "x.py", line 48, in > """ % f.__dict__ > KeyError: 'name' > > > Thanks, for letting me share :) > > > > Glen > > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies -- -------------------------------------- Dirk Bergstrom krid at otisbean.com http://otisbean.com/ From mvoorhie at yahoo.com Fri Sep 9 06:23:19 2011 From: mvoorhie at yahoo.com (Mark Voorhies) Date: Thu, 8 Sep 2011 21:23:19 -0700 Subject: [Baypiggies] A properties and obj.__dict__ question In-Reply-To: <201109082118.45278.mvoorhie@yahoo.com> References: <201109082118.45278.mvoorhie@yahoo.com> Message-ID: <201109082123.19784.mvoorhie@yahoo.com> On Thursday, September 08, 2011 09:18:44 pm Mark Voorhies wrote: > On Thursday, September 08, 2011 08:51:05 pm Glen Jarvis wrote: > > I have a question that is hard to ask without involving code. I reduced my > > project down to a tiny test case (as follows). > > > > As you see, the following code will work and access the variables within the > > class successfully. However, it's a cheat, using the internal attributes > > instead of the properties (as properties don't show in __dict__). > > > > The objective is to have a large string with different fields. The fields > > happen to all be members of my class. So, I could hard code things like > > this: > > > > message = """ > > Name: %s > > Address: %s > > %s, %s %s > > """ % {obj.name, obj.address, obj.city, obj.state, obj.postal_code} > > > > But, as each of the items are properties of the class, I'd like to be more > > dynamic, like this: > > > > message = """ > > Name: %(obj.name)s > > Address: %(obj.address)s > > %(obj.city)s, %(obj.state)s %(obj.postal_code)s > > """ % obj > > > > I can do this with normal attributes, like the following: > > > > message = """ > > Name: %(name)s > > Address: %(address)s > > %(city)s, %(state)s %(postal_code)s > > """ % obj.__dict__ > > > > However, these attributes in my case are properties and don't show in the > > __dict__. > > > > Here's a runnable piece of code to demonstrate: > > > > > > =-=-=-=-=-=-=- Start of Working Code -=-=-=-=-=-=-=-=-=- > > class Piggie(object): > > def __init__(self): > > """A demo for a BayPIGgies question""" > > self._name = None > > self._address = None > > > > @property > > def name(self): > > return self._name > > > > @name.setter > > def name(self, value): > > if isinstance(value, basestring): > > value = value.strip() > > self._name = value > > > > @property > > def address(self): > > return self._address > > > > @address.setter > > def address(self, value): > > if isinstance(value, basestring): > > value = value.strip() > > self._address = value > > > > def __unicode__(self): > > if self.name is None: > > return u"Nameless Person" > > else: > > return self.name > > __str__ = __unicode__ > > > > > > f = Piggie() > > f.name = 'Glen' > > > > > > message = """ > > Obviously, this is silly for only two fields like this. > > > > But, it's a very reduced test case to demo a problem from a > > much larger project. > > > > Name: %(_name)s > > Address: %(_address)s > > """ % f.__dict__ > > > > print message > > =-=-=-=-=-=-=- Start of Working Code -=-=-=-=-=-=-=-=-=- > > > > > > This works, as the output below shows. However, only by accessing the > > internal attributes of the class directly, not using the property accessors. > > How can I do something like this, but with property accessors. Something > > like dir(f) or f.__property_dict__ that just has the properties. > > > > Run: > > > > > > Obviously, this is silly for only two fields like this. > > > > But, it's a very reduced test case to demo a problem from a > > much larger project. > > > > Name: Glen > > Address: None > > > > > > > > Run with the properties used: > > > > Traceback (most recent call last): > > File "x.py", line 48, in > > """ % f.__dict__ > > KeyError: 'name' > > > > > > Thanks, for letting me share :) > > > > > > > > Glen > > > > What about: > > message = """ > Name: %(obj.name)s > Address: %(obj.address)s > %(obj.city)s, %(obj.state)s %(obj.postal_code)s > """ % dict((i,getattr(obj,i)) for i in dir(obj)) > > ? > > (obviously, this is dangerous if any attribute of obj has side effects) > > If this is a string to be modified at run time, would it be reasonable > to just use eval or have the client supply an importable module? > (i.e., if you want dynamic behavior, can you take advantage of the > fact that Python is already a dynamic language?) > > --Mark > oops -- that code snippet should have been: message = """ Name: %(name)s Address: %(address)s %(city)s, %(state)s %(postal_code)s """ % dict((i,getattr(obj,i)) for i in dir(obj)) --Mark From davidoff56 at alluvialsw.com Fri Sep 9 06:43:05 2011 From: davidoff56 at alluvialsw.com (Monte Davidoff) Date: Thu, 08 Sep 2011 21:43:05 -0700 Subject: [Baypiggies] A properties and obj.__dict__ question In-Reply-To: <4E698FA2.2010900@otisbean.com> References: <4E698FA2.2010900@otisbean.com> Message-ID: <4E699959.9060700@alluvialsw.com> On 9/8/11 9:01 PM, Dirk Bergstrom wrote: > I think that String.format will solve this for you, based on this > example from the python docs: > > >>> class Point(object): > ... def __init__(self, x, y): > ... self.x, self.y = x, y > ... def __str__(self): > ... return 'Point({self.x}, {self.y})'.format(self=self) Yes, for Glen's example, this works: message = """ Name: {0.name} Address: {0.address} """.format(f) Monte From ewalstad at gmail.com Fri Sep 9 07:08:15 2011 From: ewalstad at gmail.com (Eric Walstad) Date: Thu, 8 Sep 2011 22:08:15 -0700 Subject: [Baypiggies] A properties and obj.__dict__ question In-Reply-To: References: Message-ID: Hey Glen I was working on something similar the other day and came up with a class that might work for you here. The class is derived from dict and sets it's __dict__ to self http://pastebin.com/tk7sa7tz Hth Eric On Sep 8, 2011 8:51 PM, "Glen Jarvis" wrote: > I have a question that is hard to ask without involving code. I reduced my > project down to a tiny test case (as follows). > > As you see, the following code will work and access the variables within the > class successfully. However, it's a cheat, using the internal attributes > instead of the properties (as properties don't show in __dict__). > > The objective is to have a large string with different fields. The fields > happen to all be members of my class. So, I could hard code things like > this: > > message = """ > Name: %s > Address: %s > %s, %s %s > """ % {obj.name, obj.address, obj.city, obj.state, obj.postal_code} > > But, as each of the items are properties of the class, I'd like to be more > dynamic, like this: > > message = """ > Name: %(obj.name)s > Address: %(obj.address)s > %(obj.city)s, %(obj.state)s %(obj.postal_code)s > """ % obj > > I can do this with normal attributes, like the following: > > message = """ > Name: %(name)s > Address: %(address)s > %(city)s, %(state)s %(postal_code)s > """ % obj.__dict__ > > However, these attributes in my case are properties and don't show in the > __dict__. > > Here's a runnable piece of code to demonstrate: > > > =-=-=-=-=-=-=- Start of Working Code -=-=-=-=-=-=-=-=-=- > class Piggie(object): > def __init__(self): > """A demo for a BayPIGgies question""" > self._name = None > self._address = None > > @property > def name(self): > return self._name > > @name.setter > def name(self, value): > if isinstance(value, basestring): > value = value.strip() > self._name = value > > @property > def address(self): > return self._address > > @address.setter > def address(self, value): > if isinstance(value, basestring): > value = value.strip() > self._address = value > > def __unicode__(self): > if self.name is None: > return u"Nameless Person" > else: > return self.name > __str__ = __unicode__ > > > f = Piggie() > f.name = 'Glen' > > > message = """ > Obviously, this is silly for only two fields like this. > > But, it's a very reduced test case to demo a problem from a > much larger project. > > Name: %(_name)s > Address: %(_address)s > """ % f.__dict__ > > print message > =-=-=-=-=-=-=- Start of Working Code -=-=-=-=-=-=-=-=-=- > > > This works, as the output below shows. However, only by accessing the > internal attributes of the class directly, not using the property accessors. > How can I do something like this, but with property accessors. Something > like dir(f) or f.__property_dict__ that just has the properties. > > Run: > > > Obviously, this is silly for only two fields like this. > > But, it's a very reduced test case to demo a problem from a > much larger project. > > Name: Glen > Address: None > > > > Run with the properties used: > > Traceback (most recent call last): > File "x.py", line 48, in > """ % f.__dict__ > KeyError: 'name' > > > Thanks, for letting me share :) > > > > Glen > -- > Things which matter most must never be at the mercy of things which matter > least. > > -- Goethe -------------- next part -------------- An HTML attachment was scrubbed... URL: From ewalstad at gmail.com Fri Sep 9 07:20:04 2011 From: ewalstad at gmail.com (Eric Walstad) Date: Thu, 8 Sep 2011 22:20:04 -0700 Subject: [Baypiggies] A properties and obj.__dict__ question In-Reply-To: References: Message-ID: And now that I'm in front of a computer, an example: >>> class Classtionary(dict): ... def __init__(self, **kwargs): ... self.__dict__ = self ... self.update(kwargs) >>> message = """ ... Name: %(name)s ... Address: %(address)s ... %(city)s, %(state)s %(postal_code)s ... """ >>> >>> data = Classtionary( ... name="Glen", ... address="123 Your Street", ... city="San Francisco", ... state="CA", ... postal_code="94131" ... ) >>> print(message % data) Name: Glen Address: 123 Your Street San Francisco, CA 94131 Best, Eric. On Thu, Sep 8, 2011 at 10:08 PM, Eric Walstad wrote: > Hey Glen > > I was working on something similar the other day and came up with a class > that might work for you here.? The class is derived from dict and sets it's > __dict__ to self > > http://pastebin.com/tk7sa7tz > > Hth > > Eric > > On Sep 8, 2011 8:51 PM, "Glen Jarvis" wrote: >> I have a question that is hard to ask without involving code. I reduced my >> project down to a tiny test case (as follows). >> >> As you see, the following code will work and access the variables within >> the >> class successfully. However, it's a cheat, using the internal attributes >> instead of the properties (as properties don't show in __dict__). >> >> The objective is to have a large string with different fields. The fields >> happen to all be members of my class. So, I could hard code things like >> this: >> >> message = """ >> Name: %s >> Address: %s >> %s, %s %s >> """ % {obj.name, obj.address, obj.city, obj.state, obj.postal_code} >> >> But, as each of the items are properties of the class, I'd like to be more >> dynamic, like this: >> >> message = """ >> Name: %(obj.name)s >> Address: %(obj.address)s >> %(obj.city)s, %(obj.state)s %(obj.postal_code)s >> """ % obj >> >> I can do this with normal attributes, like the following: >> >> message = """ >> Name: %(name)s >> Address: %(address)s >> %(city)s, %(state)s %(postal_code)s >> """ % obj.__dict__ >> >> However, these attributes in my case are properties and don't show in the >> __dict__. >> >> Here's a runnable piece of code to demonstrate: >> >> >> =-=-=-=-=-=-=- Start of Working Code -=-=-=-=-=-=-=-=-=- >> class Piggie(object): >> def __init__(self): >> """A demo for a BayPIGgies question""" >> self._name = None >> self._address = None >> >> @property >> def name(self): >> return self._name >> >> @name.setter >> def name(self, value): >> if isinstance(value, basestring): >> value = value.strip() >> self._name = value >> >> @property >> def address(self): >> return self._address >> >> @address.setter >> def address(self, value): >> if isinstance(value, basestring): >> value = value.strip() >> self._address = value >> >> def __unicode__(self): >> if self.name is None: >> return u"Nameless Person" >> else: >> return self.name >> __str__ = __unicode__ >> >> >> f = Piggie() >> f.name = 'Glen' >> >> >> message = """ >> Obviously, this is silly for only two fields like this. >> >> But, it's a very reduced test case to demo a problem from a >> much larger project. >> >> Name: %(_name)s >> Address: %(_address)s >> """ % f.__dict__ >> >> print message >> =-=-=-=-=-=-=- Start of Working Code -=-=-=-=-=-=-=-=-=- >> >> >> This works, as the output below shows. However, only by accessing the >> internal attributes of the class directly, not using the property >> accessors. >> How can I do something like this, but with property accessors. Something >> like dir(f) or f.__property_dict__ that just has the properties. >> >> Run: >> >> >> Obviously, this is silly for only two fields like this. >> >> But, it's a very reduced test case to demo a problem from a >> much larger project. >> >> Name: Glen >> Address: None >> >> >> >> Run with the properties used: >> >> Traceback (most recent call last): >> File "x.py", line 48, in >> """ % f.__dict__ >> KeyError: 'name' >> >> >> Thanks, for letting me share :) >> >> >> >> Glen >> -- >> Things which matter most must never be at the mercy of things which matter >> least. >> >> -- Goethe > From max at theslimmers.net Fri Sep 9 07:59:33 2011 From: max at theslimmers.net (Max Slimmer) Date: Thu, 8 Sep 2011 22:59:33 -0700 Subject: [Baypiggies] A properties and obj.__dict__ question In-Reply-To: References: Message-ID: I found this code in python cookbook years ago and have been using it ever since, I added the update method. #--------------------------------------------------------------------------# # adict - (AtribDict) A dict whose items can also be accessed as # # member variables . # # >>> d = adict (a=1, b=2) # # >>> d['c'] = 3 # # >>> print d.a, d.b, d.c # # 1 2 3 # # >>> d.b = 10 # # >>> print d['b'] # # 10 # # 11 # # # but be careful , it 's easy to hide methods # # >>> print d.get('c') # # 3 # # >>> d['get'] = 4 # # >>> print d.get('a') # # Traceback ( most recent call last ): # # TypeError : 'int ' object is not callable # #--------------------------------------------------------------------------# class adict( dict ): def __init__ (self , *args , ** kwargs ): dict.__init__(self , *args , ** kwargs ) self.__dict__ = self def update(self, *args,**kwargs): dict.update(self, *args, **kwargs) self.__dict__ = self Max Slimmer eMail: max at SlimmerSoft.com On Thu, Sep 8, 2011 at 10:08 PM, Eric Walstad wrote: > Hey Glen > > I was working on something similar the other day and came up with a class > that might work for you here. The class is derived from dict and sets it's > __dict__ to self > > http://pastebin.com/tk7sa7tz > > Hth > > Eric > On Sep 8, 2011 8:51 PM, "Glen Jarvis" wrote: > > I have a question that is hard to ask without involving code. I reduced > my > > project down to a tiny test case (as follows). > > > > As you see, the following code will work and access the variables within > the > > class successfully. However, it's a cheat, using the internal attributes > > instead of the properties (as properties don't show in __dict__). > > > > The objective is to have a large string with different fields. The fields > > happen to all be members of my class. So, I could hard code things like > > this: > > > > message = """ > > Name: %s > > Address: %s > > %s, %s %s > > """ % {obj.name, obj.address, obj.city, obj.state, obj.postal_code} > > > > But, as each of the items are properties of the class, I'd like to be > more > > dynamic, like this: > > > > message = """ > > Name: %(obj.name)s > > Address: %(obj.address)s > > %(obj.city)s, %(obj.state)s %(obj.postal_code)s > > """ % obj > > > > I can do this with normal attributes, like the following: > > > > message = """ > > Name: %(name)s > > Address: %(address)s > > %(city)s, %(state)s %(postal_code)s > > """ % obj.__dict__ > > > > However, these attributes in my case are properties and don't show in the > > __dict__. > > > > Here's a runnable piece of code to demonstrate: > > > > > > =-=-=-=-=-=-=- Start of Working Code -=-=-=-=-=-=-=-=-=- > > class Piggie(object): > > def __init__(self): > > """A demo for a BayPIGgies question""" > > self._name = None > > self._address = None > > > > @property > > def name(self): > > return self._name > > > > @name.setter > > def name(self, value): > > if isinstance(value, basestring): > > value = value.strip() > > self._name = value > > > > @property > > def address(self): > > return self._address > > > > @address.setter > > def address(self, value): > > if isinstance(value, basestring): > > value = value.strip() > > self._address = value > > > > def __unicode__(self): > > if self.name is None: > > return u"Nameless Person" > > else: > > return self.name > > __str__ = __unicode__ > > > > > > f = Piggie() > > f.name = 'Glen' > > > > > > message = """ > > Obviously, this is silly for only two fields like this. > > > > But, it's a very reduced test case to demo a problem from a > > much larger project. > > > > Name: %(_name)s > > Address: %(_address)s > > """ % f.__dict__ > > > > print message > > =-=-=-=-=-=-=- Start of Working Code -=-=-=-=-=-=-=-=-=- > > > > > > This works, as the output below shows. However, only by accessing the > > internal attributes of the class directly, not using the property > accessors. > > How can I do something like this, but with property accessors. Something > > like dir(f) or f.__property_dict__ that just has the properties. > > > > Run: > > > > > > Obviously, this is silly for only two fields like this. > > > > But, it's a very reduced test case to demo a problem from a > > much larger project. > > > > Name: Glen > > Address: None > > > > > > > > Run with the properties used: > > > > Traceback (most recent call last): > > File "x.py", line 48, in > > """ % f.__dict__ > > KeyError: 'name' > > > > > > Thanks, for letting me share :) > > > > > > > > Glen > > -- > > Things which matter most must never be at the mercy of things which > matter > > least. > > > > -- Goethe > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From glen at glenjarvis.com Fri Sep 9 15:53:02 2011 From: glen at glenjarvis.com (Glen Jarvis) Date: Fri, 9 Sep 2011 06:53:02 -0700 Subject: [Baypiggies] A properties and obj.__dict__ question In-Reply-To: References: Message-ID: Thanks everyone! I went with the format example. It was exactly what I was looking for: http://docs.python.org/library/string.html#formatexamples In fact, before I tried to look it up or before I asked for help, I was writing things like: %({obj}.name)s The format module makes it even cleaner. Python so fits in your brain, I love it. I also love that I learned about the format module now.... w00t! Again, thanks for all the help everyone! Glen On Thu, Sep 8, 2011 at 8:51 PM, Glen Jarvis wrote: > I have a question that is hard to ask without involving code. I reduced my > project down to a tiny test case (as follows). > > As you see, the following code will work and access the variables within > the class successfully. However, it's a cheat, using the internal attributes > instead of the properties (as properties don't show in __dict__). > > The objective is to have a large string with different fields. The fields > happen to all be members of my class. So, I could hard code things like > this: > > message = """ > Name: %s > Address: %s > %s, %s %s > """ % {obj.name, obj.address, obj.city, obj.state, obj.postal_code} > > But, as each of the items are properties of the class, I'd like to be more > dynamic, like this: > > message = """ > Name: %(obj.name)s > Address: %(obj.address)s > %(obj.city)s, %(obj.state)s %(obj.postal_code)s > """ % obj > > I can do this with normal attributes, like the following: > > message = """ > Name: %(name)s > Address: %(address)s > %(city)s, %(state)s %(postal_code)s > """ % obj.__dict__ > > However, these attributes in my case are properties and don't show in the > __dict__. > > Here's a runnable piece of code to demonstrate: > > > =-=-=-=-=-=-=- Start of Working Code -=-=-=-=-=-=-=-=-=- > class Piggie(object): > def __init__(self): > """A demo for a BayPIGgies question""" > self._name = None > self._address = None > > @property > def name(self): > return self._name > > @name.setter > def name(self, value): > if isinstance(value, basestring): > value = value.strip() > self._name = value > > @property > def address(self): > return self._address > > @address.setter > def address(self, value): > if isinstance(value, basestring): > value = value.strip() > self._address = value > > def __unicode__(self): > if self.name is None: > return u"Nameless Person" > else: > return self.name > __str__ = __unicode__ > > > f = Piggie() > f.name = 'Glen' > > > message = """ > Obviously, this is silly for only two fields like this. > > But, it's a very reduced test case to demo a problem from a > much larger project. > > Name: %(_name)s > Address: %(_address)s > """ % f.__dict__ > > print message > =-=-=-=-=-=-=- Start of Working Code -=-=-=-=-=-=-=-=-=- > > > This works, as the output below shows. However, only by accessing the > internal attributes of the class directly, not using the property accessors. > How can I do something like this, but with property accessors. Something > like dir(f) or f.__property_dict__ that just has the properties. > > Run: > > > Obviously, this is silly for only two fields like this. > > But, it's a very reduced test case to demo a problem from a > much larger project. > > Name: Glen > Address: None > > > > Run with the properties used: > > Traceback (most recent call last): > File "x.py", line 48, in > """ % f.__dict__ > KeyError: 'name' > > > Thanks, for letting me share :) > > > > Glen > -- > Things which matter most must never be at the mercy of things which matter > least. > > -- Goethe > -- Things which matter most must never be at the mercy of things which matter least. -- Goethe -------------- next part -------------- An HTML attachment was scrubbed... URL: From bdbaddog at gmail.com Fri Sep 9 20:00:29 2011 From: bdbaddog at gmail.com (William Deegan) Date: Fri, 9 Sep 2011 11:00:29 -0700 Subject: [Baypiggies] Anyone using Pinax? Message-ID: <57558E28-33F7-4EAA-B044-8C0BB5EDBB8E@gmail.com> Greetings, I recently stumbled up the pinax project (http://pinaxproject.com) Django based framework with a bunch of social networking features. Has anyone used it? Any comments? I'm considering using it for a new project. Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: From glen at glenjarvis.com Sat Sep 10 05:42:34 2011 From: glen at glenjarvis.com (Glen Jarvis) Date: Fri, 9 Sep 2011 20:42:34 -0700 Subject: [Baypiggies] Anyone using Pinax? In-Reply-To: <57558E28-33F7-4EAA-B044-8C0BB5EDBB8E@gmail.com> References: <57558E28-33F7-4EAA-B044-8C0BB5EDBB8E@gmail.com> Message-ID: <97E32CE0-AB34-4097-819A-3D98623124CF@glenjarvis.com> I had several "pinax removal" jobs where I removed pinax from django projects. I've never worked with it directly, but clients who wanted it removed didn't like the software dependencies that they had and that pinax was slow to be compatible/upgrade. I don't know if this feedback is helpful. Cheers, Glen On Sep 9, 2011, at 11:00 AM, William Deegan wrote: > Greetings, > > I recently stumbled up the pinax project (http://pinaxproject.com) Django based framework with a bunch of social networking features. > > Has anyone used it? > Any comments? > > I'm considering using it for a new project. > > Thanks, > Bill > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies -------------- next part -------------- An HTML attachment was scrubbed... URL: From aahz at pythoncraft.com Mon Sep 12 02:24:54 2011 From: aahz at pythoncraft.com (Aahz) Date: Sun, 11 Sep 2011 17:24:54 -0700 Subject: [Baypiggies] importing variables into python namespace using argparse module In-Reply-To: References: Message-ID: <20110912002454.GA29001@panix.com> On Wed, Sep 07, 2011, Abhishek Pratap wrote: > > def read_file(file): > """Read the first same and create a dictionary > """ > fh1 = open(file,'r') > for line in fh1: > print line Side note: you should avoid naming your variables the same as existing built-in ones: >>> file Also please read PEP8 to learn how to correctly format your code: http://www.python.org/dev/peps/pep-0008/ -- Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ "If you don't know what your program is supposed to do, you'd better not start writing it." --Dijkstra From keith at dartworks.biz Sun Sep 11 09:46:45 2011 From: keith at dartworks.biz (Keith Dart) Date: Sun, 11 Sep 2011 00:46:45 -0700 Subject: [Baypiggies] Good promotional video. Message-ID: <20110911004645.12faa553@dartworks.biz> Hey, here's a great video with Python in it. http://youtu.be/1lBeungEnx4 Although it's also about matlab. -- Keith Dart -- -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Keith Dart public key: ID: 19017044 ===================================================================== From walterv at gbbservices.com Mon Sep 12 21:03:15 2011 From: walterv at gbbservices.com (Walter Vannini) Date: Mon, 12 Sep 2011 12:03:15 -0700 Subject: [Baypiggies] ACCU Wednesday 'An Introduction to Engage' Jeff Fischer Message-ID: <4E6E5773.3040702@gbbservices.com> When: Wednesday, September 14, 2011 Topic: An Introduction to Engage Speaker: Jeff Fischer Time: 6:30pm doors open 7:00pm meeting begins Where: Symantec VCAFE building 350 Ellis Street (near E. Middlefield Road) Mountain View, CA 94043 Map: Directions: VCAFE is accessible from the semicircular courtyard between Symantec buildings Cost: Free More Info: Engage is a new open-source, Python-based platform for deploying and managing applications, either on your own servers or in the public cloud. It automates server provisioning, application installation, configuration, and upgrades. The technology behind engage combines ideas from Linux package managers, constraint solvers, and existing deployment frameworks such as Puppet or Chef. In this talk, we will look into the design of Engage, how to use Engage, and how to extend it. The talk will conclude with a discussion on lessons learned, including the use of domain specific languages, software evolution, and testing strategy. Engage is available under the Apache License at http://github.com/genforma/engage. Jeff is a co-founder of genForma, a startup building a Platform as a Service offering on top of Engage. Meetings are open to the public and are free of charge. --------- The ACCU meets monthly. Meetings are always open to the public and are free of charge. To suggest topics and speakers please email Walter Vannini via walterv at gbbservices.com From walterv at gbbservices.com Wed Sep 14 20:08:21 2011 From: walterv at gbbservices.com (Walter Vannini) Date: Wed, 14 Sep 2011 11:08:21 -0700 Subject: [Baypiggies] ACCU tonight 'An Introduction to Engage' Jeff Fischer Message-ID: <4E70ED95.9080402@gbbservices.com> When: Wednesday, September 14, 2011 Topic: An Introduction to Engage Speaker: Jeff Fischer Time: 6:30pm doors open 7:00pm meeting begins Where: Symantec VCAFE building 350 Ellis Street (near E. Middlefield Road) Mountain View, CA 94043 Map: Directions: VCAFE is accessible from the semicircular courtyard between Symantec buildings Cost: Free More Info: Engage is a new open-source, Python-based platform for deploying and managing applications, either on your own servers or in the public cloud. It automates server provisioning, application installation, configuration, and upgrades. The technology behind engage combines ideas from Linux package managers, constraint solvers, and existing deployment frameworks such as Puppet or Chef. In this talk, we will look into the design of Engage, how to use Engage, and how to extend it. The talk will conclude with a discussion on lessons learned, including the use of domain specific languages, software evolution, and testing strategy. Engage is available under the Apache License at http://github.com/genforma/engage. Jeff is a co-founder of genForma, a startup building a Platform as a Service offering on top of Engage. Meetings are open to the public and are free of charge. ---- Upcoming ACCU talks ----- Wednesday, October 12, 2011 Bryan Bell "Writing a compiler in Haskell and LLVM" Tuesday, October 25, 2011 Dan Saks "Programmers and Truthiness" --------- The ACCU meets monthly. Meetings are always open to the public and are free of charge. To suggest topics and speakers please email Walter Vannini via walterv at gbbservices.com From john at tenantry.net Wed Sep 14 23:26:18 2011 From: john at tenantry.net (John Sphar) Date: Wed, 14 Sep 2011 14:26:18 -0700 Subject: [Baypiggies] Recommendation for Into+Intermediate Python Message-ID: Just wanted to blast out a personal recommendation for Wesley Chun's class. Wesley has a complete understanding of the language and is able to answer 95-99% of the questions asked. Better yet, he's honest about when he doesn't know and will often times seek out the answer. On-screen examples with a zen-like focus. I found it to be a very straight forward and well thought out class. Socratic method. Ivy-league quality. Cheers, John Sphar john at tenantry.net ---------- Forwarded message ---------- From: wesley chun Date: Mon, Jul 25, 2011 at 8:33 AM Subject: [Baypiggies] ANN: Intro+Intermediate Python course, SF, Oct 18-20 To: Baypiggies Need to get up-to-speed with Python as quickly and as in-depth as possible? Already coding Python but still have areas of uncertainty you need to fill? Then come join me, Wesley Chun, author of Prentice-Hall's bestseller "Core Python" for a comprehensive intro/intermediate course coming up this May in Northern California, then enjoy a beautiful Fall weekend afterwards in San Francisco, the beautiful city by the bay. Please pass on this note to whomever you think may be interested. I look forward to meeting you and your colleagues! Feel free to pass around the PDF flyer linked down below. Write if you have questions. Since I hate spam, I'll only send out one reminder as the date gets closer. (Comprehensive) Intro+Intermediate Python Tue-Thu, 2011 Oct 18-20, 9am-5pm Hope to meet you soon! -Wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON Although this course may appear to those new to Python, it is also perfect for those who have tinkered with it and want to "fill in the gaps" and/or want to get more in-depth formal training. It combines the best of both an introduction to the language as well as a "Python Internals" training course. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. 3 hands-on labs each day will help hammer the concepts home. Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine, Jython, IronPython, and Mailman will also benefit! PREVIEW 1: you will find (and can download) a video clip of a class session recorded live to get an idea of my lecture style and the interactive classroom environment (as well as sign-up) at: http://cyberwebconsulting.com PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books Online has asked me to deliver a 1-hour webcast a couple of years ago called "What is Python?". This was an online seminar based on a session that I've delivered at numerous conferences in the past. It will give you an idea of lecture style as well as an overview of the material covered in the course. info:http://www.safaribooksonline.com/events/WhatIsPython.html download (reg req'd): http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA WEB: http://cyberwebconsulting.com FLYER: http://cyberwebconsulting.com/flyerPP1.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites See website for costs, venue info, and registration. There is a significant discounts available for full-time students, secondary teachers, and others. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2007,2001 "Python Fundamentals", Prentice Hall, (c)2009 http://corepython.com wesley.chun : wescpy-gmail.com : @wescpy python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com _______________________________________________ Baypiggies mailing list Baypiggies at python.org To change your subscription options or unsubscribe: http://mail.python.org/mailman/listinfo/baypiggies -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlacagnina at sysdevit.com Thu Sep 15 21:11:44 2011 From: mlacagnina at sysdevit.com (Michael La Cagnina) Date: Thu, 15 Sep 2011 15:11:44 -0400 Subject: [Baypiggies] ~Senior Python Developer *NEEDED ASAP* ~LEADING EDGE / DYNAMIC FIRM~Sunnyvale, CA~ Message-ID: <060801cc73db$4f45d370$edd17a50$@com> Would you or someone you respect be interested in this opportunity? It's a permanent position in the Sunnyvale area with a solid cutting edge company and great pay. If you or they are interested in learning more, please let me know and send resume to mlacagnina @ sysdevit . com . I also offer a referral bonus of 1000.00 if we hire someone you refer. Regards, Michael La Cagnina 678-559-4486 mlacagnina at sysdevit.com Responsibilities for this role include but are not limited to; . In charge of developing and releasing our company multiple protocol gateway, owning all development aspects of the product. . Design, code, prototype, implement and debug entire new application suite retaining performance characteristics of our storage platform. . Software analysis, code analysis, requirements analysis, identification of code metrics, and system risk analysis. . Software simulation and modeling and virtualization using cloud. . Support, maintain and document software functionalities. . Evaluate and identify new technologies focusing around distributed storage. . Clustering or data replication in an enterprise environment to help us productize our distributed company virtual File System. . Team building, helping hiring talented individuals and promoting collaborative environment. Qualifications for this role are; . Out of the box thinking, ability to work independently on numerous activities and prioritize them properly while meeting deadlines. . Understanding of Linux based Operating system is a Must. . Worked with Data distribution, data consistency in a big data/low latency environment. . Master in Python, DB replication, many to many, knowledge of No-Sql is desired such as Riak . The candidate must have a versatile skill set, grasp operating system concepts, data structures/algorithms and network programming and protocols. . We are looking for a motivated and bright engineer that understands Linux Operating system . Experience with test-driven development techniques and/or well-disciplined to write unit tests asserting meaningful validation. . Passion for technology outside the workplace with an interest in the latest open source framework/libraries/tools Michael La Cagnina Associate mlacagnina at sysdevit.com O: 678-389-8709 C: 678-559-4486 F: 404-467-6180 www.sysdevit.com logo_sysdev_small -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 4842 bytes Desc: not available URL: From cappy2112 at gmail.com Mon Sep 19 21:31:54 2011 From: cappy2112 at gmail.com (Tony Cappellini) Date: Mon, 19 Sep 2011 12:31:54 -0700 Subject: [Baypiggies] Fwd: PyCharm 2.0 EAP open and 50% discount still works In-Reply-To: <24173388.6173.1316459498843.JavaMail.css@xnet-eu.aws.intellij.net> References: <24173388.6173.1316459498843.JavaMail.css@xnet-eu.aws.intellij.net> Message-ID: For those interested in buying PyCharm at a discount Have you heard that PyCharm 2.0 is coming soon and you can try it already? Wonder what's coming in 2.0? - Mako and Jinja templates editing - Support for IPython - Support for PyPy - Cython support - Reporting of parameter type mismatch in function calls and binary operators - Distinct highlighting for Unicode and byte strings - and many other things... Read more about the Early Access Preview at http://blog.jetbrains.com/pycharm/2011/09/pycharm-2-0-eap-open and download it to try. Also make sure you don?t miss our 50% discount in September! Note that if you buy a license now, it will be still valid for the 2.0 release - http://www.jetbrains.com/pycharm/buy Develop with pleasure! The PyCharm Team http://www.jetbrains.com/pycharm --- If you would like to stop receiving any email announcements from JetBrains, visit: http://www.jetbrains.com/eforms/unsubscribe.action?code=C679104126303742539 From rajanikanth at gmail.com Wed Sep 21 00:30:45 2011 From: rajanikanth at gmail.com (Rajanikanth Jammalamadaka) Date: Tue, 20 Sep 2011 18:30:45 -0400 Subject: [Baypiggies] Python presentation for Perl audience Message-ID: <940968DE-83FC-4E3B-B399-0DF59901096D@gmail.com> Hi I am planning to give a presentation on Python. The audience mostly use and love Perl. Could somebody suggest a good list of topics that I should cover. Thanks, Raj From abhishek.vit at gmail.com Wed Sep 21 00:33:42 2011 From: abhishek.vit at gmail.com (Abhishek Pratap) Date: Tue, 20 Sep 2011 15:33:42 -0700 Subject: [Baypiggies] Python presentation for Perl audience In-Reply-To: <940968DE-83FC-4E3B-B399-0DF59901096D@gmail.com> References: <940968DE-83FC-4E3B-B399-0DF59901096D@gmail.com> Message-ID: I would love to attend. I am trying to make a sincere effort to make a shift. I would like to see how nested data structure could be created in python (a.k.a hashes of hashes/arrays etc in perl) . May be there is a lot of doc out there. I honestly haven't searched for it as of now. -Abhi On Tue, Sep 20, 2011 at 3:30 PM, Rajanikanth Jammalamadaka < rajanikanth at gmail.com> wrote: > Hi > > I am planning to give a presentation on Python. The audience mostly use and > love Perl. Could somebody suggest a good list of topics that I should cover. > > Thanks, > Raj > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rajanikanth at gmail.com Wed Sep 21 00:36:18 2011 From: rajanikanth at gmail.com (Rajanikanth Jammalamadaka) Date: Tue, 20 Sep 2011 18:36:18 -0400 Subject: [Baypiggies] Python presentation for Perl audience In-Reply-To: References: <940968DE-83FC-4E3B-B399-0DF59901096D@gmail.com> Message-ID: <711DC71F-25F7-4D0A-A85A-1454F7CB2274@gmail.com> Thanks Abhi. Just to make it clear: I am planning to give the presentation to my team at my company. I will gladly send you the slides if you want. Thanks, Raj On Sep 20, 2011, at 6:33 PM, Abhishek Pratap wrote: > I would love to attend. I am trying to make a sincere effort to make a shift. I would like to see how nested data structure could be created in python (a.k.a hashes of hashes/arrays etc in perl) . May be there is a lot of doc out there. I honestly haven't searched for it as of now. > > -Abhi > > On Tue, Sep 20, 2011 at 3:30 PM, Rajanikanth Jammalamadaka wrote: > Hi > > I am planning to give a presentation on Python. The audience mostly use and love Perl. Could somebody suggest a good list of topics that I should cover. > > Thanks, > Raj > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dirk at otisbean.com Wed Sep 21 00:51:42 2011 From: dirk at otisbean.com (Dirk Bergstrom) Date: Tue, 20 Sep 2011 15:51:42 -0700 Subject: [Baypiggies] Python presentation for Perl audience In-Reply-To: <940968DE-83FC-4E3B-B399-0DF59901096D@gmail.com> References: <940968DE-83FC-4E3B-B399-0DF59901096D@gmail.com> Message-ID: <4E7918FE.2050403@otisbean.com> On 09/20/2011 03:30 PM, Rajanikanth Jammalamadaka wrote: > I am planning to give a presentation on Python. The audience mostly > use and love Perl. Could somebody suggest a good list of topics that > I should cover. Hmmm, did you want useful answers or snarky ones? Some googling leads to: http://wiki.python.org/moin/PerlPhrasebook http://everythingsysadmin.com/perl2python.html http://markbieda.wordpress.com/2008/06/18/python-for-perl-programmers-and-bioinformatics-people/ Personally I'd tell them repeatedly how useful interactive python (the REPL) is. It's a huge time saver when you're trying to figure out how to get pretty much anything done. Make sure to tell them about ipython -- the tab completion is a monumental improvement in utility. -- Dirk Bergstrom dirk at otisbean.com http://otisbean.com/ From tony at tcapp.com Wed Sep 21 01:14:04 2011 From: tony at tcapp.com (Tony Cappellini) Date: Tue, 20 Sep 2011 16:14:04 -0700 Subject: [Baypiggies] Python presentation for Perl audience In-Reply-To: <940968DE-83FC-4E3B-B399-0DF59901096D@gmail.com> References: <940968DE-83FC-4E3B-B399-0DF59901096D@gmail.com> Message-ID: There are so many features in the in the core language alone, like generators, decorators... but if you're really short of material- you may want to tell them about some great python debugging tools. Wing IDE (debugger/ide) PyCharm (dumb name, great debugger/ide) WinAppDbg (debugger module, mostly) On Tue, Sep 20, 2011 at 3:30 PM, Rajanikanth Jammalamadaka wrote: > Hi > > I am planning to give a presentation on Python. The audience mostly use and love Perl. Could somebody suggest a good list of topics that I should cover. > > Thanks, > Raj > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From venkat83 at gmail.com Wed Sep 21 05:47:24 2011 From: venkat83 at gmail.com (Venkatraman S) Date: Wed, 21 Sep 2011 09:17:24 +0530 Subject: [Baypiggies] Python presentation for Perl audience In-Reply-To: <940968DE-83FC-4E3B-B399-0DF59901096D@gmail.com> References: <940968DE-83FC-4E3B-B399-0DF59901096D@gmail.com> Message-ID: In an interview that a recently gave(in a pretty big company), the team was using Perl and i told the Manager about the 'awesomeness' of Python, and the response was :'well, its great if you get the indentations right'; my response was 'it is due to the same reason that python is so awesome. since the code looks clean, its easy to read and you do not have to go searching for braces..etc etc'. So i think, a 'clean-readable' code would be a great selling point along with the 'ease of learning' to your target audience. -V http://blizzardzblogs.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dwight_hubbard at yahoo.com Wed Sep 21 09:50:21 2011 From: dwight_hubbard at yahoo.com (Dwight Hubbard) Date: Wed, 21 Sep 2011 00:50:21 -0700 (PDT) Subject: [Baypiggies] Python presentation for Perl audience In-Reply-To: References: <940968DE-83FC-4E3B-B399-0DF59901096D@gmail.com> Message-ID: <1316591421.80343.YahooMailNeo@web112517.mail.gq1.yahoo.com> My past experience talking to people who script in Perl is there is frequently an emotional attachment to their brackets and bringing up the whitespace/vs brackets tends to cause them to tune out the rest of the conversation.?? I would leave the brackets/vs whitespace issue out of the conversation, after using python for a few weeks it's pretty self evident to a person that their scripts don't look like a word processor threw up... I know when I first switched from Perl to Python the things that attracted me was that python had a small and simple syntax and logical and concise way to build upon it in a way that a person could get up to speed quickly (much more quickly than with Perl).? Also I found the python documentation itself a great selling point, there are python modules to do damn near anything and the documentation is very consistent which makes using them fairly simple. >________________________________ >From: Venkatraman S >To: BayPiggies >Sent: Tuesday, September 20, 2011 8:47 PM >Subject: Re: [Baypiggies] Python presentation for Perl audience > > >In an interview? that a recently gave(in a pretty big company), the team was using Perl and i told the Manager about the 'awesomeness' of Python, and the response was :'well, its great if you get the indentations right'; my response was 'it is due to the same reason that python is so awesome. since the code looks clean, its easy to read and you do not have to go searching for braces..etc etc'. > >So i think, a 'clean-readable' code would be a great selling point along with the 'ease of learning' to your target audience. > >-V >http://blizzardzblogs.blogspot.com/ > >_______________________________________________ >Baypiggies mailing list >Baypiggies at python.org >To change your subscription options or unsubscribe: >http://mail.python.org/mailman/listinfo/baypiggies > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rajanikanth at gmail.com Wed Sep 21 18:29:31 2011 From: rajanikanth at gmail.com (Rajanikanth Jammalamadaka) Date: Wed, 21 Sep 2011 12:29:31 -0400 Subject: [Baypiggies] Python presentation for Perl audience In-Reply-To: <1316591421.80343.YahooMailNeo@web112517.mail.gq1.yahoo.com> References: <940968DE-83FC-4E3B-B399-0DF59901096D@gmail.com> <1316591421.80343.YahooMailNeo@web112517.mail.gq1.yahoo.com> Message-ID: Thanks for your suggestions. Thanks, Raj On Sep 21, 2011, at 3:50 AM, Dwight Hubbard wrote: > My past experience talking to people who script in Perl is there is frequently an emotional attachment to their brackets and bringing up the whitespace/vs brackets tends to cause them to tune out the rest of the conversation. I would leave the brackets/vs whitespace issue out of the conversation, after using python for a few weeks it's pretty self evident to a person that their scripts don't look like a word processor threw up... > > I know when I first switched from Perl to Python the things that attracted me was that python had a small and simple syntax and logical and concise way to build upon it in a way that a person could get up to speed quickly (much more quickly than with Perl). Also I found the python documentation itself a great selling point, there are python modules to do damn near anything and the documentation is very consistent which makes using them fairly simple. > From: Venkatraman S > To: BayPiggies > Sent: Tuesday, September 20, 2011 8:47 PM > Subject: Re: [Baypiggies] Python presentation for Perl audience > > In an interview that a recently gave(in a pretty big company), the team was using Perl and i told the Manager about the 'awesomeness' of Python, and the response was :'well, its great if you get the indentations right'; my response was 'it is due to the same reason that python is so awesome. since the code looks clean, its easy to read and you do not have to go searching for braces..etc etc'. > > So i think, a 'clean-readable' code would be a great selling point along with the 'ease of learning' to your target audience. > > -V > http://blizzardzblogs.blogspot.com/ > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies -------------- next part -------------- An HTML attachment was scrubbed... URL: From simeonf at gmail.com Wed Sep 21 18:35:22 2011 From: simeonf at gmail.com (Simeon Franklin) Date: Wed, 21 Sep 2011 09:35:22 -0700 Subject: [Baypiggies] Python is not immune to WTF Message-ID: I thought I'd make up a new drinking game for Baypiggies like: 1. Feast your eyes upon the code snippet at http://thedailywtf.com/Articles/Python-Charmer.aspx 2. Take a shot of your beverage of choice every time you see the zen of python violated but on second thought this could well prove fatal. I don't know if anybody else reads the daily WTF but today's article is proof you can write ugly code in any language! I hope you find it as amusing as I did. -regards Simeon Franklin ps - I've perpetrated some atrocities in various programming languages myself (hopefully not quite so bad as this one) so I also related to Luke Plant's recent "Prayer to the programming gods". http://lukeplant.me.uk/blog/posts/a-prayer-to-the-programming-gods/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From hcarrinski at gmail.com Wed Sep 21 19:08:37 2011 From: hcarrinski at gmail.com (Hy Carrinski) Date: Wed, 21 Sep 2011 10:08:37 -0700 Subject: [Baypiggies] Python is not immune to WTF In-Reply-To: References: Message-ID: <-965688184506095424@unknownmsgid> Simeon et al., Thank you for a post whose comments contain a link for goto for Python: http://entrian.com/goto/ I like the way Python allows wtf but only after making you work hard or set an intention to not-think. Hy On Sep 21, 2011, at 9:36 AM, Simeon Franklin wrote: I thought I'd make up a new drinking game for Baypiggies like: 1. Feast your eyes upon the code snippet at http://thedailywtf.com/Articles/Python-Charmer.aspx 2. Take a shot of your beverage of choice every time you see the zen of python violated but on second thought this could well prove fatal. I don't know if anybody else reads the daily WTF but today's article is proof you can write ugly code in any language! I hope you find it as amusing as I did. -regards Simeon Franklin ps - I've perpetrated some atrocities in various programming languages myself (hopefully not quite so bad as this one) so I also related to Luke Plant's recent "Prayer to the programming gods". http://lukeplant.me.uk/blog/posts/a-prayer-to-the-programming-gods/ _______________________________________________ Baypiggies mailing list Baypiggies at python.org To change your subscription options or unsubscribe: http://mail.python.org/mailman/listinfo/baypiggies -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagappan at gmail.com Wed Sep 21 20:02:58 2011 From: nagappan at gmail.com (Nagappan Alagappan) Date: Wed, 21 Sep 2011 11:02:58 -0700 Subject: [Baypiggies] Announce: Linux Desktop Testing Project (LDTP) 2.2.0 released Message-ID: Hello, About LDTP: Linux Desktop Testing Project is aimed at producing high quality test automation framework (using GNOME / Python) and cutting-edge tools that can be used to test Linux Desktop and improve it. It uses the Accessibility libraries to poke through the application's user interface. We strive to help in building a quality desktop. Changes in this release: Many fixes with respect to GTK3 Added new function rightclick Bugs fixed: Fixed bug#657290 - getpanelchildcount is not implemented Fixed bug#656801 - hasstate return wrong status result on solaris Check partial_match, compatible with LDTPv1 handle_table_cell when handletablecell function was called Handled exception: ResponseNotReady, noticed in VMware Automation environment, specific to Ubuntu 11.04 Added two new methods to LDTPv2 as per LDTPv1 API set - verifytoggled, verifypushbutton Patch to fix bug#654683 getallstates does not work with pyatspi2, thanks to Michael Terry for the patch Fixes bug#654685 Frequent LookupErrors, thanks Michael Terry < michael.terry at canonical.com> reporting the issue Special thanks: Tim Miao Jean-Baptiste Lallement Michael Terry Brain Nitz Download source: http://download.freedesktop.org/ldtp/2.x/2.2.x/ldtp-2.2.0.tar.gz Download RPM from http://download.opensuse.org/repositories/home:/anagappan:/ldtp2:/rpm/ Will schedule deb build in openSUSE build service later Documentation references: For detailed information on LDTP framework and latest updates visit http://ldtp.freedesktop.org For information on various APIs in LDTP including those added for this release can be got from http://ldtp.freedesktop.org/user-doc/index.html Report bugs - http://ldtp.freedesktop.org/wiki/Bugs To subscribe to LDTP mailing lists, visit http://ldtp.freedesktop.org/wiki/Mailing_20list IRC Channel - #ldtp on irc.freenode.net Thanks Nagappan -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From cappy2112 at gmail.com Wed Sep 21 21:14:26 2011 From: cappy2112 at gmail.com (Tony Cappellini) Date: Wed, 21 Sep 2011 12:14:26 -0700 Subject: [Baypiggies] It's time to vote for Nov/Dec 2011 meetings Message-ID: Due to potential holiday travel conflicts in Nov & Dec, we typically move our meeting dates from the 4th Thursday to something more suitable. This decision also requires approval from Symantec. Instead of Nov 24, we can choose to meet Nov 10 or Nov 17, or whichever day Symantec allows for that month. Instead of Dec 22, we can choose to meet Dec 8 or Dec 15, or whichever day Symantec allows for that month. Another option is to skip the meetings for one or both months. At the moment, we have no presenters scheduled for Nov/Dec 2011. Let the voting begin, please reply to the LIST! From abhishek.vit at gmail.com Wed Sep 21 21:18:49 2011 From: abhishek.vit at gmail.com (Abhishek Pratap) Date: Wed, 21 Sep 2011 12:18:49 -0700 Subject: [Baypiggies] It's time to vote for Nov/Dec 2011 meetings In-Reply-To: References: Message-ID: Here is what will suit me: 1. Nov 10 2. Dec 8 -Abhi On Wed, Sep 21, 2011 at 12:14 PM, Tony Cappellini wrote: > Due to potential holiday travel conflicts in Nov & Dec, we typically > move our meeting dates from the 4th Thursday to > something more suitable. > > This decision also requires approval from Symantec. > > Instead of Nov 24, we can choose to meet Nov 10 or Nov 17, or > whichever day Symantec allows for that month. > Instead of Dec 22, we can choose to meet Dec 8 or Dec 15, or whichever > day Symantec allows for that month. > > Another option is to skip the meetings for one or both months. > > At the moment, we have no presenters scheduled for Nov/Dec 2011. > > Let the voting begin, please reply to the LIST! > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucas.wiman at gmail.com Wed Sep 21 22:56:29 2011 From: lucas.wiman at gmail.com (Lucas Wiman) Date: Wed, 21 Sep 2011 13:56:29 -0700 Subject: [Baypiggies] Python is not immune to WTF Message-ID: The "corrected" version in the comments is quite good. Also, you can replace all 15 nested for loops with one call to itertools.product, and all 15 if statements to one very compact line, so I'm not sure you can really blame Python here. The big question is why the function exists in the first place. Why would you need to write lexicographically ordered strings to a file when they can be generated on the fly? To wit: ... for chars in itertools.product(*([wlc] * 15)): word = ''.join(chars[-maxchar:]) ... - Lucas ---------- Forwarded message ---------- From: Date: Wed, Sep 21, 2011 at 11:03 AM Subject: Baypiggies Digest, Vol 71, Issue 18 To: baypiggies at python.org Send Baypiggies mailing list submissions to baypiggies at python.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.python.org/mailman/listinfo/baypiggies or, via email, send a message with subject or body 'help' to baypiggies-request at python.org You can reach the person managing the list at baypiggies-owner at python.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Baypiggies digest..." Today's Topics: 1. Re: Python presentation for Perl audience (Rajanikanth Jammalamadaka) 2. Python is not immune to WTF (Simeon Franklin) 3. Re: Python is not immune to WTF (Hy Carrinski) 4. Announce: Linux Desktop Testing Project (LDTP) 2.2.0 released (Nagappan Alagappan) ---------------------------------------------------------------------- Message: 1 Date: Wed, 21 Sep 2011 12:29:31 -0400 From: Rajanikanth Jammalamadaka To: Dwight Hubbard Cc: BayPiggies Subject: Re: [Baypiggies] Python presentation for Perl audience Message-ID: Content-Type: text/plain; charset="us-ascii" Thanks for your suggestions. Thanks, Raj On Sep 21, 2011, at 3:50 AM, Dwight Hubbard wrote: > My past experience talking to people who script in Perl is there is frequently an emotional attachment to their brackets and bringing up the whitespace/vs brackets tends to cause them to tune out the rest of the conversation. I would leave the brackets/vs whitespace issue out of the conversation, after using python for a few weeks it's pretty self evident to a person that their scripts don't look like a word processor threw up... > > I know when I first switched from Perl to Python the things that attracted me was that python had a small and simple syntax and logical and concise way to build upon it in a way that a person could get up to speed quickly (much more quickly than with Perl). Also I found the python documentation itself a great selling point, there are python modules to do damn near anything and the documentation is very consistent which makes using them fairly simple. > From: Venkatraman S > To: BayPiggies > Sent: Tuesday, September 20, 2011 8:47 PM > Subject: Re: [Baypiggies] Python presentation for Perl audience > > In an interview that a recently gave(in a pretty big company), the team was using Perl and i told the Manager about the 'awesomeness' of Python, and the response was :'well, its great if you get the indentations right'; my response was 'it is due to the same reason that python is so awesome. since the code looks clean, its easy to read and you do not have to go searching for braces..etc etc'. > > So i think, a 'clean-readable' code would be a great selling point along with the 'ease of learning' to your target audience. > > -V > http://blizzardzblogs.blogspot.com/ > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies -------------- next part -------------- An HTML attachment was scrubbed... URL: < http://mail.python.org/pipermail/baypiggies/attachments/20110921/e02256c3/attachment-0001.html > ------------------------------ Message: 2 Date: Wed, 21 Sep 2011 09:35:22 -0700 From: Simeon Franklin To: Baypiggies Subject: [Baypiggies] Python is not immune to WTF Message-ID: Content-Type: text/plain; charset="iso-8859-1" I thought I'd make up a new drinking game for Baypiggies like: 1. Feast your eyes upon the code snippet at http://thedailywtf.com/Articles/Python-Charmer.aspx 2. Take a shot of your beverage of choice every time you see the zen of python violated but on second thought this could well prove fatal. I don't know if anybody else reads the daily WTF but today's article is proof you can write ugly code in any language! I hope you find it as amusing as I did. -regards Simeon Franklin ps - I've perpetrated some atrocities in various programming languages myself (hopefully not quite so bad as this one) so I also related to Luke Plant's recent "Prayer to the programming gods". http://lukeplant.me.uk/blog/posts/a-prayer-to-the-programming-gods/ -------------- next part -------------- An HTML attachment was scrubbed... URL: < http://mail.python.org/pipermail/baypiggies/attachments/20110921/1957604a/attachment-0001.html > ------------------------------ Message: 3 Date: Wed, 21 Sep 2011 10:08:37 -0700 From: Hy Carrinski To: Simeon Franklin Cc: Baypiggies Subject: Re: [Baypiggies] Python is not immune to WTF Message-ID: <-965688184506095424 at unknownmsgid> Content-Type: text/plain; charset="utf-8" Simeon et al., Thank you for a post whose comments contain a link for goto for Python: http://entrian.com/goto/ I like the way Python allows wtf but only after making you work hard or set an intention to not-think. Hy On Sep 21, 2011, at 9:36 AM, Simeon Franklin wrote: I thought I'd make up a new drinking game for Baypiggies like: 1. Feast your eyes upon the code snippet at http://thedailywtf.com/Articles/Python-Charmer.aspx 2. Take a shot of your beverage of choice every time you see the zen of python violated but on second thought this could well prove fatal. I don't know if anybody else reads the daily WTF but today's article is proof you can write ugly code in any language! I hope you find it as amusing as I did. -regards Simeon Franklin ps - I've perpetrated some atrocities in various programming languages myself (hopefully not quite so bad as this one) so I also related to Luke Plant's recent "Prayer to the programming gods". http://lukeplant.me.uk/blog/posts/a-prayer-to-the-programming-gods/ _______________________________________________ Baypiggies mailing list Baypiggies at python.org To change your subscription options or unsubscribe: http://mail.python.org/mailman/listinfo/baypiggies -------------- next part -------------- An HTML attachment was scrubbed... URL: < http://mail.python.org/pipermail/baypiggies/attachments/20110921/2bb05663/attachment-0001.html > ------------------------------ Message: 4 Date: Wed, 21 Sep 2011 11:02:58 -0700 From: Nagappan Alagappan To: Baypiggies Subject: [Baypiggies] Announce: Linux Desktop Testing Project (LDTP) 2.2.0 released Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hello, About LDTP: Linux Desktop Testing Project is aimed at producing high quality test automation framework (using GNOME / Python) and cutting-edge tools that can be used to test Linux Desktop and improve it. It uses the Accessibility libraries to poke through the application's user interface. We strive to help in building a quality desktop. Changes in this release: Many fixes with respect to GTK3 Added new function rightclick Bugs fixed: Fixed bug#657290 - getpanelchildcount is not implemented Fixed bug#656801 - hasstate return wrong status result on solaris Check partial_match, compatible with LDTPv1 handle_table_cell when handletablecell function was called Handled exception: ResponseNotReady, noticed in VMware Automation environment, specific to Ubuntu 11.04 Added two new methods to LDTPv2 as per LDTPv1 API set - verifytoggled, verifypushbutton Patch to fix bug#654683 getallstates does not work with pyatspi2, thanks to Michael Terry for the patch Fixes bug#654685 Frequent LookupErrors, thanks Michael Terry < michael.terry at canonical.com> reporting the issue Special thanks: Tim Miao Jean-Baptiste Lallement Michael Terry Brain Nitz Download source: http://download.freedesktop.org/ldtp/2.x/2.2.x/ldtp-2.2.0.tar.gz Download RPM from http://download.opensuse.org/repositories/home:/anagappan:/ldtp2:/rpm/ Will schedule deb build in openSUSE build service later Documentation references: For detailed information on LDTP framework and latest updates visit http://ldtp.freedesktop.org For information on various APIs in LDTP including those added for this release can be got from http://ldtp.freedesktop.org/user-doc/index.html Report bugs - http://ldtp.freedesktop.org/wiki/Bugs To subscribe to LDTP mailing lists, visit http://ldtp.freedesktop.org/wiki/Mailing_20list IRC Channel - #ldtp on irc.freenode.net Thanks Nagappan -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: < http://mail.python.org/pipermail/baypiggies/attachments/20110921/ca4653bd/attachment.html > ------------------------------ _______________________________________________ Baypiggies mailing list Baypiggies at python.org To change your subscription options or unsubscribe: http://mail.python.org/mailman/listinfo/baypiggies End of Baypiggies Digest, Vol 71, Issue 18 ****************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From simeonf at gmail.com Wed Sep 21 23:01:57 2011 From: simeonf at gmail.com (Simeon Franklin) Date: Wed, 21 Sep 2011 14:01:57 -0700 Subject: [Baypiggies] Python is not immune to WTF In-Reply-To: References: Message-ID: On Wed, Sep 21, 2011 at 1:56 PM, Lucas Wiman wrote: > The "corrected" version in the comments is quite good. Also, you can > replace all 15 nested for loops with one call to itertools.product, and all > 15 if statements to one very compact line, so I'm not sure you can really > blame Python here. > Oh I'm definitely blaming the programmer on this one! You can write ugly code in any language - and beautiful code in most languages as well. Some languages work with you instead of against you - that's why I love Python! -regards Simeon Franklin -------------- next part -------------- An HTML attachment was scrubbed... URL: From bryceverdier at gmail.com Thu Sep 22 19:05:24 2011 From: bryceverdier at gmail.com (Bryce Verdier) Date: Thu, 22 Sep 2011 10:05:24 -0700 Subject: [Baypiggies] Python is not immune to WTF In-Reply-To: References: Message-ID: OH MY EYES!!! Bryce On Wed, Sep 21, 2011 at 2:01 PM, Simeon Franklin wrote: > On Wed, Sep 21, 2011 at 1:56 PM, Lucas Wiman wrote: > >> The "corrected" version in the comments is quite good. Also, you can >> replace all 15 nested for loops with one call to itertools.product, and all >> 15 if statements to one very compact line, so I'm not sure you can really >> blame Python here. >> > > Oh I'm definitely blaming the programmer on this one! You can write ugly > code in any language - and beautiful code in most languages as well. Some > languages work with you instead of against you - that's why I love Python! > > -regards > Simeon Franklin > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cappy2112 at gmail.com Thu Sep 22 22:43:19 2011 From: cappy2112 at gmail.com (Tony Cappellini) Date: Thu, 22 Sep 2011 13:43:19 -0700 Subject: [Baypiggies] Reminder: Baypiggies meeting tonight- 7:30PM at Symantec Corporation Vcafe 350 Ellis Street Mountain View, CA 94043 Message-ID: Tonight, Alex Martelli will give a presentation on * Api Design Anti-Patterns. * * * * * Toward the end of the meeting, we will be raffling off 1 ticket for Oreilly's Android Open conference http://androidopen.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rami.chowdhury at gmail.com Thu Sep 22 23:19:14 2011 From: rami.chowdhury at gmail.com (Rami Chowdhury) Date: Thu, 22 Sep 2011 22:19:14 +0100 Subject: [Baypiggies] Reminder: Baypiggies meeting tonight- 7:30PM at Symantec Corporation Vcafe 350 Ellis Street Mountain View, CA 94043 In-Reply-To: References: Message-ID: Really wish I could be there - any chance this will be recorded somehow? ---- Rami Chowdhury "A mind all logic is like a knife all blade - it makes the hand bleed that uses it." -- Rabindranath Tagore +44-7581-430-517 / +88-0189-245544 On Sep 22, 2011 9:43 PM, "Tony Cappellini" wrote: > Tonight, Alex Martelli will give a presentation on * > > Api Design Anti-Patterns. > * > * > > > * > * > > > * > Toward the end of the meeting, we will be raffling off 1 ticket for > Oreilly's Android Open conference > http://androidopen.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From hcarrinski at gmail.com Fri Sep 23 01:03:27 2011 From: hcarrinski at gmail.com (Hy Carrinski) Date: Thu, 22 Sep 2011 16:03:27 -0700 Subject: [Baypiggies] Reminder: Baypiggies meeting tonight- 7:30PM at Symantec Corporation Vcafe 350 Ellis Street Mountain View, CA 94043 In-Reply-To: References: Message-ID: I look forward to the meeting tonight. Would anyone either be accepting of a passenger from SF or like to join me on the 6:14pm Caltrain from 4th and King? I can be available to meet anytime after 5pm, and will be prepared to discuss the subject(s) of your choice! Hy On Thu, Sep 22, 2011 at 1:43 PM, Tony Cappellini wrote: > > Tonight, Alex Martelli will give a presentation on > > Api Design Anti-Patterns. > > Toward the end of the meeting, we will be raffling off 1 ticket for Oreilly's Android Open conference > http://androidopen.com From hcarrinski at gmail.com Fri Sep 23 03:05:14 2011 From: hcarrinski at gmail.com (Hy Carrinski) Date: Thu, 22 Sep 2011 18:05:14 -0700 Subject: [Baypiggies] Reminder: Baypiggies meeting tonight- 7:30PM at Symantec Corporation Vcafe 350 Ellis Street Mountain View, CA 94043 In-Reply-To: References: Message-ID: <9129049430036437010@unknownmsgid> I found a ride. Thank you for responses. See you soon! On Sep 22, 2011, at 2:19 PM, Rami Chowdhury wrote: Really wish I could be there - any chance this will be recorded somehow? ---- Rami Chowdhury "A mind all logic is like a knife all blade - it makes the hand bleed that uses it." -- Rabindranath Tagore +44-7581-430-517 / +88-0189-245544 On Sep 22, 2011 9:43 PM, "Tony Cappellini" wrote: > Tonight, Alex Martelli will give a presentation on * > > Api Design Anti-Patterns. > * > * > > > * > * > > > * > Toward the end of the meeting, we will be raffling off 1 ticket for > Oreilly's Android Open conference > http://androidopen.com _______________________________________________ Baypiggies mailing list Baypiggies at python.org To change your subscription options or unsubscribe: http://mail.python.org/mailman/listinfo/baypiggies -------------- next part -------------- An HTML attachment was scrubbed... URL: From janssen at parc.com Fri Sep 23 04:34:21 2011 From: janssen at parc.com (Bill Janssen) Date: Thu, 22 Sep 2011 19:34:21 PDT Subject: [Baypiggies] Reminder: Baypiggies meeting tonight- 7:30PM at Symantec Corporation Vcafe 350 Ellis Street Mountain View, CA 94043 In-Reply-To: References: Message-ID: <45303.1316745261@parc.com> Rami Chowdhury wrote: > Really wish I could be there - any chance this will be recorded somehow? http://vodpod.com/watch/5757194-pycon-2011-api-design-anti-patterns Bill From rami.chowdhury at gmail.com Fri Sep 23 05:06:30 2011 From: rami.chowdhury at gmail.com (Rami Chowdhury) Date: Fri, 23 Sep 2011 04:06:30 +0100 Subject: [Baypiggies] Reminder: Baypiggies meeting tonight- 7:30PM at Symantec Corporation Vcafe 350 Ellis Street Mountain View, CA 94043 In-Reply-To: <45303.1316745261@parc.com> References: <45303.1316745261@parc.com> Message-ID: Thank you! ---- Rami Chowdhury "A mind all logic is like a knife all blade - it makes the hand bleed that uses it." -- Rabindranath Tagore +44-7581-430-517 / +88-0189-245544 On Sep 23, 2011 3:34 AM, "Bill Janssen" wrote: > Rami Chowdhury wrote: > >> Really wish I could be there - any chance this will be recorded somehow? > > http://vodpod.com/watch/5757194-pycon-2011-api-design-anti-patterns > > Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: From hyperneato at gmail.com Mon Sep 26 18:15:22 2011 From: hyperneato at gmail.com (Isaac) Date: Mon, 26 Sep 2011 09:15:22 -0700 Subject: [Baypiggies] High-Resolution Mandelbrot in Obfuscated Python Message-ID: http://preshing.com/20110926/high-resolution-mandelbrot-in-obfuscated-python -------------- next part -------------- An HTML attachment was scrubbed... URL: From cappy2112 at gmail.com Mon Sep 26 20:18:06 2011 From: cappy2112 at gmail.com (Tony Cappellini) Date: Mon, 26 Sep 2011 11:18:06 -0700 Subject: [Baypiggies] Meeting date changes for November & December 2011 Message-ID: Hi everyone, Symantec has allowed us to move our meeting dates from Nov & Dec. The new dates are Nov 17 and Dec 15 Please, update your calendars -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.berthelot at gmail.com Tue Sep 27 01:54:37 2011 From: david.berthelot at gmail.com (David Berthelot) Date: Mon, 26 Sep 2011 16:54:37 -0700 Subject: [Baypiggies] High-Resolution Mandelbrot in Obfuscated Python In-Reply-To: References: Message-ID: Nice idea and nice realization ! On Mon, Sep 26, 2011 at 9:15 AM, Isaac wrote: > > > > http://preshing.com/20110926/high-resolution-mandelbrot-in-obfuscated-python > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hcarrinski at gmail.com Tue Sep 27 02:25:48 2011 From: hcarrinski at gmail.com (Hy Carrinski) Date: Mon, 26 Sep 2011 17:25:48 -0700 Subject: [Baypiggies] Alex Martelli's APIDA talk Message-ID: Dear Alex, The talk last Thursday on Api Design Anti-Patterns was inspiring, educational and entertaining. Thank you. I am in the process of developing one API (and using several) and am chewing over the concepts from your talk. I remember a self-referential link to the presentation on one of your first slides, but cannot find it in my notes. By any chance would you be willing to do either of the following? 1. Post the link to the BayPIGgies listserve. 2. Send the link to me either only for my own use or (if you prefer) to redistribute upon request. Thank you in advance, Hy Carrinski https://plus.google.com/110141696541687155112/about From wescpy at gmail.com Tue Sep 27 16:01:53 2011 From: wescpy at gmail.com (wesley chun) Date: Tue, 27 Sep 2011 11:01:53 -0300 Subject: [Baypiggies] ANN: Intro+Intermediate Python course, SF, Oct 18-20 In-Reply-To: References: Message-ID: ** FINAL CALL ** http://sfbay.craigslist.org/sfc/cls/2495963854.html ---------- Forwarded message ---------- From: wesley chun Date: Mon, Jul 25, 2011 at 12:32 PM Subject: ANN: Intro+Intermediate Python course, SF, Oct 18-20 Need to get up-to-speed with Python as quickly and as in-depth as possible? Already coding Python but still have areas of uncertainty you need to fill? Then come join me, Wesley Chun, author of Prentice-Hall's bestseller "Core Python" for a comprehensive intro/intermediate course coming up this May in Northern California, then enjoy a beautiful Fall weekend afterwards in San Francisco, the beautiful city by the bay. Please pass on this note to whomever you think may be interested. I look forward to meeting you and your colleagues! Feel free to pass around the PDF flyer linked down below. Write if you have questions. Since I hate spam, I'll only send out one reminder as the date gets closer. (Comprehensive) Intro+Intermediate Python Tue-Thu, 2011 Oct 18-20, 9am-5pm Hope to meet you soon! -Wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON Although this course may appear to those new to Python, it is also perfect for those who have tinkered with it and want to "fill in the gaps" and/or want to get more in-depth formal training. ?It combines the best of both an introduction to the language as well as a "Python Internals" training course. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. 3 hands-on labs each day will help hammer the concepts home. Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine, Jython, IronPython, and Mailman will also benefit! PREVIEW 1: you will find (and can download) a video clip of a class session recorded live to get an idea of my lecture style and the interactive classroom environment (as well as sign-up) at: http://cyberwebconsulting.com PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books Online has asked me to deliver a 1-hour webcast a couple of years ago called "What is Python?". This was an online seminar based on a session that I've delivered at numerous conferences in the past. It will give you an idea of lecture style as well as an overview of the material covered in the course. info:http://www.safaribooksonline.com/events/WhatIsPython.html download (reg req'd): http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA WEB: ? http://cyberwebconsulting.com FLYER: http://cyberwebconsulting.com/flyerPP1.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites See website for costs, venue info, and registration. There is a significant discounts available for full-time students, secondary teachers, and others. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2007,2001 "Python Fundamentals", Prentice Hall, (c)2009 ? ? http://corepython.com wesley.chun : wescpy-gmail.com : @wescpy python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com From Web at StevePiercy.com Tue Sep 27 22:00:37 2011 From: Web at StevePiercy.com (Steve Piercy - Web Site Builder) Date: Tue, 27 Sep 2011 13:00:37 -0700 Subject: [Baypiggies] PyCon 2012 Call for Talks and Tutorials Message-ID: PyCon 2012 is seeking proposals for talks, tutorials and poster sessions. Anyone can submit a proposal. http://us.pycon.org/2012/cfp/ The deadline to submit proposals for PyCon 2012 is Wednesday, October 12, 2011. You can submit a proposal at the following link. http://us.pycon.org/2012/speaker/ The sooner you submit your proposal, the more likely you will get feedback, which you can use to improve your proposal and its chances of getting accepted by the PyCon program committee. Two polls of the Python community were recently taken to determine topics of interest for tutorials and talks. Results are below. http://pycon.blogspot.com/2011/09/need-tutorial-ideas.html http://pycon.blogspot.com/2011/09/need-talk-ideas.html PyCon 2012 takes place in Santa Clara, California, from March 7 to March 15, 2012. --steve -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA From aleax at google.com Tue Sep 27 22:10:22 2011 From: aleax at google.com (Alex Martelli) Date: Tue, 27 Sep 2011 13:10:22 -0700 Subject: [Baypiggies] Alex Martelli's APIDA talk In-Reply-To: References: Message-ID: Hi Hy, and thanks for the kudos! The PDF with the slides is at http://www.aleax.it/bayp011_adap.pdf You can also see a video of me offering a similar presentation (at Pycon, earlier this year): http://vodpod.com/watch/5757194-pycon-2011-api-design-anti-patterns Alex On Mon, Sep 26, 2011 at 5:25 PM, Hy Carrinski wrote: > Dear Alex, > > The talk last Thursday on Api Design Anti-Patterns was inspiring, > educational and entertaining. Thank you. > > I am in the process of developing one API (and using several) and am > chewing over the concepts from your talk. > > I remember a self-referential link to the presentation on one of your > first slides, but cannot find it in my notes. > > By any chance would you be willing to do either of the following? > > 1. Post the link to the BayPIGgies listserve. > 2. Send the link to me either only for my own use or (if you prefer) > to redistribute upon request. > > Thank you in advance, > > Hy Carrinski > > https://plus.google.com/110141696541687155112/about > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From mvoorhie at yahoo.com Wed Sep 28 00:18:49 2011 From: mvoorhie at yahoo.com (Mark Voorhies) Date: Tue, 27 Sep 2011 15:18:49 -0700 Subject: [Baypiggies] Alex Martelli's APIDA talk In-Reply-To: References: Message-ID: <201109271518.50080.mvoorhie@yahoo.com> On Tuesday, September 27, 2011 01:10:22 pm Alex Martelli wrote: > Hi Hy, and thanks for the kudos! The PDF with the slides is at > > http://www.aleax.it/bayp011_adap.pdf --> http://www.aleax.it/bayp11_adap.pdf > > You can also see a video of me offering a similar presentation (at > Pycon, earlier this year): > > http://vodpod.com/watch/5757194-pycon-2011-api-design-anti-patterns > > > Alex > > On Mon, Sep 26, 2011 at 5:25 PM, Hy Carrinski wrote: > > Dear Alex, > > > > The talk last Thursday on Api Design Anti-Patterns was inspiring, > > educational and entertaining. Thank you. > > > > I am in the process of developing one API (and using several) and am > > chewing over the concepts from your talk. > > > > I remember a self-referential link to the presentation on one of your > > first slides, but cannot find it in my notes. > > > > By any chance would you be willing to do either of the following? > > > > 1. Post the link to the BayPIGgies listserve. > > 2. Send the link to me either only for my own use or (if you prefer) > > to redistribute upon request. > > > > Thank you in advance, > > > > Hy Carrinski > > > > https://plus.google.com/110141696541687155112/about > > _______________________________________________ > > Baypiggies mailing list > > Baypiggies at python.org > > To change your subscription options or unsubscribe: > > http://mail.python.org/mailman/listinfo/baypiggies > > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > From brian.curtin at gmail.com Wed Sep 28 00:51:26 2011 From: brian.curtin at gmail.com (Brian Curtin) Date: Tue, 27 Sep 2011 17:51:26 -0500 Subject: [Baypiggies] PyCon 2012 Proposals Due October 12 Message-ID: The deadline for PyCon 2012 tutorial, talk, and poster proposals is under 15 days away, so be sure to get your submissions in by October 12, 2011. Whether you?re a first-timer or an experienced veteran, PyCon is depends on you, the community, coming together to build the best conference schedule possible. Our call for proposals (http://us.pycon.org/2012/cfp/) lays out the details it takes to be included in the lineup for the conference in Santa Clara, CA on March 7-15, 2012. If you?re unsure of what to write about, our recent survey yielded a large list of potential talk topics (http://pycon.blogspot.com/2011/09/need-talk-ideas.html), and plenty of ideas for tutorials (INSERT TUTORIAL POST). We?ve also come up with general tips on proposal writing at http://pycon.blogspot.com/2011/08/writing-good-proposal.html to ensure everyone has the most complete proposal when it comes time for review. As always, the program committee wants to put together an incredible conference, so they?ll be working with submitters to fine tune proposal details and help you produce the best submissions. We?ve had plenty of great news to share since we first announced the call for proposals. Paul Graham of Y Combinator was recently announced as a keynote speaker (http://pycon.blogspot.com/2011/09/announcing-first-pycon-2012-keynote.html), making his return after a 2003 keynote. David Beazley, famous for his mind-blowing talks on CPython?s Global Interpreter Lock, was added to the plenary talk series (http://pycon.blogspot.com/2011/09/announcing-first-pycon-2012-plenary.html). Sponsors can now list their job openings on the ?Job Fair? section of the PyCon site (http://pycon.blogspot.com/2011/09/announcing-pycon-2012-fair-page-sponsor.html). We?re hard at work to bring you the best conference yet, so stay tuned to PyCon news at http://pycon.blogspot.com/ and on Twitter at https://twitter.com/#!/pycon. We recently eclipsed last year?s sponsorship count of 40 and are currently at a record 52 organizations supporting PyCon. If you or your organization are interested in sponsoring PyCon, we?d love to hear from you, so check out our sponsorship page (http://us.pycon.org/2012/sponsors/). A quick thanks to all of our awesome PyCon 2012 Sponsors: - Diamond Level: Google and Dropbox. - Platinum Level: New Relic, SurveyMonkey, Microsoft, Eventbrite, Nasuni and Gondor.io - Gold Level: Walt Disney Animation Studios, CCP Games, Linode, Enthought, Canonical, Dotcloud, Loggly, Revsys, ZeOmega, Bitly, ActiveState, JetBrains, Caktus, Disqus, Spotify, Snoball, Evite, and PlaidCloud - Silver Level: Imaginary Landscape, WiserTogether, Net-ng, Olark, AG Interactive, Bitbucket, Open Bastion, 10Gen, gocept, Lex Machina, fwix, github, toast driven, Aarki, Threadless, Cox Media, myYearBook, Accense Technology, Wingware, FreshBooks, and BigDoor - Lanyard: Dreamhost - Sprints: Reddit - FLOSS: OSU/OSL, OpenHatch The PyCon Organizers - http://us.pycon.org/2012 Jesse Noller - Chairman - jnoller at python.org Brian Curtin - Publicity Coordinator - brian at python.org From jjinux at gmail.com Wed Sep 28 21:21:28 2011 From: jjinux at gmail.com (Shannon -jj Behrens) Date: Wed, 28 Sep 2011 12:21:28 -0700 Subject: [Baypiggies] Video Hack Day in SF Message-ID: There's going to be a Video Hack Day in San Francisco this Saturday: See the following for more information: http://videohackdaysf.eventbrite.com/ http://twitter.com/#!/YouTubeDev/status/115934507286269952 Build a video-related application using Python (perhaps with the YouTube APIs), and you could win various prizes. Happy Hacking! -jj -- In this life we cannot do great things. We can only do small things with great love. -- Mother Teresa