Re: Turning string into object (name)

2015-06-27 Thread Rustom Mody
On Saturday, June 27, 2015 at 10:01:15 AM UTC+5:30, Chris Angelico wrote: > On Sat, Jun 27, 2015 at 2:11 PM, Rustom Mody wrote: > Beyond that, I don't think I can much help you. Yeah its more python-OT than I first thought... Need to go through the ropes of linking github with https://travis-ci.

Re: Turning string into object (name)

2015-06-26 Thread Chris Angelico
On Sat, Jun 27, 2015 at 2:11 PM, Rustom Mody wrote: > On Friday, June 26, 2015 at 9:30:38 AM UTC+5:30, Chris Angelico wrote: >> Incidentally, I would suggest not having the try/except at all, since >> all it does is print an error and terminate (which is the same result >> you'd get if that error

Re: Turning string into object (name)

2015-06-26 Thread Rustom Mody
On Friday, June 26, 2015 at 9:30:38 AM UTC+5:30, Chris Angelico wrote: > Incidentally, I would suggest not having the try/except at all, since > all it does is print an error and terminate (which is the same result > you'd get if that error bubbled all the way to top level). But if you > are going

Re: Turning string into object (name)

2015-06-25 Thread Chris Angelico
On Fri, Jun 26, 2015 at 12:51 PM, wrote: > def dbconn(): > #Establishes connection to local db > try: > conn = client() > db = conn.db_solar #dbname > collection = db.main # dbcollection / Table > print "Connected to