From abpillai at gmail.com Wed Sep 2 08:42:42 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 2 Sep 2009 12:12:42 +0530 Subject: [BangPypers] Looking for Linux / Python based jobs In-Reply-To: <980948.55322.qm@web111408.mail.gq1.yahoo.com> References: <20090827153840.GA8249@ubuntu.ubuntu-domain> <980948.55322.qm@web111408.mail.gq1.yahoo.com> Message-ID: <8548c5f30909012342u7a701335ia0cdcb883cc8c4d6@mail.gmail.com> http://pythonjobs.blogspot.com is updated (whenever I get the time) with job information crawled from archives of this list. As of now it is a bit behind schedule (last updated in May 09), but you can find older, but still relevant jobs there. --Anand On Fri, Aug 28, 2009 at 6:03 PM, Ashutosh Narayan wrote: > Hi Senthil, > > Apology for doing so. I will search the archives. > > Thanks !! > ~ Ashutosh > > > --- On *Thu, 8/27/09, Senthil Kumaran * wrote: > > > From: Senthil Kumaran > Subject: Re: [BangPypers] Looking for Linux / Python based jobs > To: "Bangalore Python Users Group - India" > Date: Thursday, August 27, 2009, 9:08 PM > > > On Thu, Aug 27, 2009 at 06:16:47AM -0700, Ashutosh Narayan wrote: > > I am a Linux guy with almost two years of experience. > > I am looking for Linux / Python / Bash Scripting / Sys Ad based jobs. > > Can anybody give me a pointer for these ? > > Please let me know and I shall forward my profile. > > I don't think it is a good idea to seek employment by advertising > oneself in a discussion mailing list. Many wont be able to help and > might stand clueless. > > Posting of advertisement is okay [They are marked as COMMERCIAL] and > might prove to helpful to the seeker. > So, Ashutosh, just search the archives and apply. > > > > -- > Senthil > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- --Anand -------------- next part -------------- An HTML attachment was scrubbed... URL: From vg at apple.com Wed Sep 2 12:13:49 2009 From: vg at apple.com (Vamsi) Date: Wed, 2 Sep 2009 15:43:49 +0530 Subject: [BangPypers] Excel and Python Message-ID: <87178CBF-B19D-4E81-ACEC-F2B99520BBC5@apple.com> Hi, I need a help in Python. I want to pass the inputs from Excel through variables Which is declared in python script. Example: I given parameter and Value in Excel as : Parameter Value Test 5 Test1 6 I used same parameters in Python scripting Test + Test1 Result should be : 11 I am using Raft tool and Python scripting. Hope a good response for this. Thanks Vamsi From madhav.bnk at gmail.com Wed Sep 2 12:35:43 2009 From: madhav.bnk at gmail.com (B.Nanda Kishore) Date: Wed, 2 Sep 2009 16:05:43 +0530 Subject: [BangPypers] Excel and Python In-Reply-To: <87178CBF-B19D-4E81-ACEC-F2B99520BBC5@apple.com> References: <87178CBF-B19D-4E81-ACEC-F2B99520BBC5@apple.com> Message-ID: <26030bef0909020335i60870435i3ce61b6eddd5eafc@mail.gmail.com> You have a module called csv which I think can be used to accomplish what you want. It accepts a csv file, which is identical to .xls file. Try that. #code snippet: import csv csvreader = csv.reader(open(csv_file), delimiter = ',') for row in csvreader: print 'row:%s' % row Regards, Nandakishore On Wed, Sep 2, 2009 at 3:43 PM, Vamsi wrote: > Hi, > > I need a help in Python. I want to pass the inputs from Excel through > variables Which is declared in python script. > > Example: I given parameter and Value in Excel as : > > Parameter Value > Test 5 > Test1 6 > > I used same parameters in Python scripting > > Test + Test1 > > Result should be : 11 > > I am using Raft tool and Python scripting. > > Hope a good response for this. > > Thanks > Vamsi > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vsbabu at gmail.com Wed Sep 2 14:32:42 2009 From: vsbabu at gmail.com (Satheesh Babu Vattekkat) Date: Wed, 2 Sep 2009 18:02:42 +0530 Subject: [BangPypers] Excel and Python In-Reply-To: <26030bef0909020335i60870435i3ce61b6eddd5eafc@mail.gmail.com> References: <87178CBF-B19D-4E81-ACEC-F2B99520BBC5@apple.com> <26030bef0909020335i60870435i3ce61b6eddd5eafc@mail.gmail.com> Message-ID: Check out win32com (I am assuming you want to do this from a Windows machine). Here is a small snippet on reading the value from cell A1 in the active sheet. from win32com.client import Dispatch flxls = "c:\\my\\file.xls" xl = Dispatch ("Excel.Application") xl.Visible = True xl.Workbooks.Open(flxls) workbook = xl.ActiveWorkbook sheet = xl.ActiveSheet param_1 = sheet.Cells(1,1).Value workbook.Close() xl.Quit() -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbaiju at zeomega.com Wed Sep 2 15:09:42 2009 From: mbaiju at zeomega.com (Baiju M) Date: Wed, 2 Sep 2009 18:39:42 +0530 Subject: [BangPypers] Excel and Python In-Reply-To: <87178CBF-B19D-4E81-ACEC-F2B99520BBC5@apple.com> References: <87178CBF-B19D-4E81-ACEC-F2B99520BBC5@apple.com> Message-ID: These tools looks very good to deal with Excel files: http://pypi.python.org/pypi/xlrd (read http://pypi.python.org/pypi/xlwt http://pypi.python.org/pypi/xlutils These are pure Python packages and it works in all platforms. Regards, Baiju M From noufal at gmail.com Wed Sep 2 16:52:55 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 2 Sep 2009 20:22:55 +0530 Subject: [BangPypers] Excel and Python In-Reply-To: References: <87178CBF-B19D-4E81-ACEC-F2B99520BBC5@apple.com> Message-ID: <9963e56e0909020752g52125b16i6beacc7d79b64e07@mail.gmail.com> and http://pypi.python.org/pypi/pyExcelerator/ On Wed, Sep 2, 2009 at 6:39 PM, Baiju M wrote: > These tools looks very good to deal with Excel files: > > http://pypi.python.org/pypi/xlrd (read > http://pypi.python.org/pypi/xlwt > http://pypi.python.org/pypi/xlutils > > These are pure Python packages and it works in all platforms. > > Regards, > Baiju M > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in From ideamonk at gmail.com Thu Sep 3 15:57:27 2009 From: ideamonk at gmail.com (Abhishek Mishra) Date: Thu, 3 Sep 2009 19:27:27 +0530 Subject: [BangPypers] Why the None ? Message-ID: <64160c70909030657t670385ebmf04469b5f0a73ede@mail.gmail.com> Hi, I'm trying to pass 5 as default value for this function... ------------------------------------------------ def gimmetaste(length=5): print length if __name__ == '__main__': print gimmetaste() ------------------------------------------------ Output - 5 None I wonder why I get a None in the output? From venkat83 at gmail.com Thu Sep 3 15:59:20 2009 From: venkat83 at gmail.com (Venkatraman S) Date: Thu, 3 Sep 2009 19:29:20 +0530 Subject: [BangPypers] Why the None ? In-Reply-To: <64160c70909030657t670385ebmf04469b5f0a73ede@mail.gmail.com> References: <64160c70909030657t670385ebmf04469b5f0a73ede@mail.gmail.com> Message-ID: On Thu, Sep 3, 2009 at 7:27 PM, Abhishek Mishra wrote: > > ------------------------------------------------ > def gimmetaste(length=5): > print length > > if __name__ == '__main__': > print gimmetaste() > ------------------------------------------------ > > Output - > 5 > None > > I wonder why I get a None in the output? > Hint : Think 'scoping rules' -V- http://twitter.com/venkasub -------------- next part -------------- An HTML attachment was scrubbed... URL: From carl at personnelware.com Thu Sep 3 15:59:58 2009 From: carl at personnelware.com (Carl Karsten) Date: Thu, 3 Sep 2009 08:59:58 -0500 Subject: [BangPypers] Why the None ? In-Reply-To: <64160c70909030657t670385ebmf04469b5f0a73ede@mail.gmail.com> References: <64160c70909030657t670385ebmf04469b5f0a73ede@mail.gmail.com> Message-ID: <549053140909030659s60b343adx5c6fc95574c92e8f@mail.gmail.com> Try this, it should all become clear: ------------------------------------------------ def gimmetaste(length=5): print "A", length return length * 2 if __name__ == '__main__': print "B", gimmetaste() ------------------------------------------------ On Thu, Sep 3, 2009 at 8:57 AM, Abhishek Mishra wrote: > Hi, I'm trying to pass 5 as default value for this function... > > ------------------------------------------------ > def gimmetaste(length=5): > ? ? ? ?print length > > if __name__ == '__main__': > ? ? ? ?print gimmetaste() > ------------------------------------------------ > > Output - > 5 > None > > I wonder why I get a None in the output? > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Carl K From abpillai at gmail.com Thu Sep 3 16:25:42 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 3 Sep 2009 19:55:42 +0530 Subject: [BangPypers] Why the None ? In-Reply-To: <549053140909030659s60b343adx5c6fc95574c92e8f@mail.gmail.com> References: <64160c70909030657t670385ebmf04469b5f0a73ede@mail.gmail.com> <549053140909030659s60b343adx5c6fc95574c92e8f@mail.gmail.com> Message-ID: <8548c5f30909030725x736b778eje70671f085087558@mail.gmail.com> On Thu, Sep 3, 2009 at 7:29 PM, Carl Karsten wrote: > Try this, it should all become clear: > ------------------------------------------------ > def gimmetaste(length=5): > print "A", length > return length * 2 > > if __name__ == '__main__': > print "B", gimmetaste() > ------------------------------------------------ > > On Thu, Sep 3, 2009 at 8:57 AM, Abhishek Mishra wrote: > > Hi, I'm trying to pass 5 as default value for this function... > > > > ------------------------------------------------ > > def gimmetaste(length=5): > > print length > > > > if __name__ == '__main__': > > print gimmetaste() > > ------------------------------------------------ > > > > Output - > > 5 > > None > > > > I wonder why I get a None in the output? > Since your function returns nothing, i.e "None" :) Python is almost like the English language you see... > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > -- > Carl K > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand -------------- next part -------------- An HTML attachment was scrubbed... URL: From noufal at gmail.com Thu Sep 3 16:52:35 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 3 Sep 2009 20:22:35 +0530 Subject: [BangPypers] Why the None ? In-Reply-To: <64160c70909030657t670385ebmf04469b5f0a73ede@mail.gmail.com> References: <64160c70909030657t670385ebmf04469b5f0a73ede@mail.gmail.com> Message-ID: <9963e56e0909030752u3f960c7cgd47523fc65f31277@mail.gmail.com> On Thu, Sep 3, 2009 at 7:27 PM, Abhishek Mishra wrote: > Hi, I'm trying to pass 5 as default value for this function... > > ------------------------------------------------ > def gimmetaste(length=5): > ? ? ? ?print length > > if __name__ == '__main__': > ? ? ? ?print gimmetaste() > ------------------------------------------------ check this http://python.pastebin.com/m57fee658 The 5 is from the output of line 2 The None is line 5 printing the return value of gimmetaste. Since you're not 'return'ing anything, it's Non -- ~noufal http://nibrahim.net.in From sibtey.mehndi at genpact.com Thu Sep 3 16:03:14 2009 From: sibtey.mehndi at genpact.com (Mehndi, Sibtey) Date: Thu, 3 Sep 2009 19:33:14 +0530 Subject: [BangPypers] Why the None ? In-Reply-To: <64160c70909030657t670385ebmf04469b5f0a73ede@mail.gmail.com> References: <64160c70909030657t670385ebmf04469b5f0a73ede@mail.gmail.com> Message-ID: <1A343A98C8DAE44A8D9D1BF310F90D5E01D6479BB7@GCPWINGGN2EVS11.IND.CORP.AD> Any python function by default return None in your gimmetaste function you are not returning any value. That's why gimmetaste returns None -----Original Message----- From: bangpypers-bounces+sibtey.mehndi=genpact.com at python.org [mailto:bangpypers-bounces+sibtey.mehndi=genpact.com at python.org] On Behalf Of Abhishek Mishra Sent: Thursday, September 03, 2009 7:27 PM To: bangpypers at python.org Subject: [BangPypers] Why the None ? Hi, I'm trying to pass 5 as default value for this function... ------------------------------------------------ def gimmetaste(length=5): print length if __name__ == '__main__': print gimmetaste() ------------------------------------------------ Output - 5 None I wonder why I get a None in the output? _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person. From bhaskar.jain2002 at gmail.com Thu Sep 3 19:13:07 2009 From: bhaskar.jain2002 at gmail.com (bhaskar jain) Date: Thu, 3 Sep 2009 22:43:07 +0530 Subject: [BangPypers] link Message-ID: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> Nice link - http://aymanh.com/python-debugging-techniques We can have this thread were we discuss our own debugging techniques. I uses syslog :( and kind of like 'inspect' and 'traceback' modules. --Bhaskar. -------------- next part -------------- An HTML attachment was scrubbed... URL: From noufal at gmail.com Thu Sep 3 19:16:50 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 3 Sep 2009 22:46:50 +0530 Subject: [BangPypers] link In-Reply-To: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> References: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> Message-ID: <9963e56e0909031016p62cc4e3bg68b1cc37e550a320@mail.gmail.com> On Thu, Sep 3, 2009 at 10:43 PM, bhaskar jain wrote: > Nice link - ?http://aymanh.com/python-debugging-techniques > We can have this thread were we discuss our own debugging techniques. > I uses syslog :( > and kind of like 'inspect' and 'traceback' modules. * Debugging: Guido uses print statements for 90% of his debugging and a debugger for the times when his brain stops working or he has to debug some wierd code that someone else wrote. http://panela.blog-city.com/a_talk_by_guido_van_rossum.htm -- ~noufal http://nibrahim.net.in From ideamonk at gmail.com Thu Sep 3 19:17:51 2009 From: ideamonk at gmail.com (Abhishek Mishra) Date: Thu, 3 Sep 2009 22:47:51 +0530 Subject: [BangPypers] Why the None ? In-Reply-To: <1A343A98C8DAE44A8D9D1BF310F90D5E01D6479BB7@GCPWINGGN2EVS11.IND.CORP.AD> References: <64160c70909030657t670385ebmf04469b5f0a73ede@mail.gmail.com> <1A343A98C8DAE44A8D9D1BF310F90D5E01D6479BB7@GCPWINGGN2EVS11.IND.CORP.AD> Message-ID: <64160c70909031017g2e368696vbfa92f18d5c03172@mail.gmail.com> damn, where did i forget the "return". This is a big Oops! thanks anyways :) Abhishek Mishra From bhaskar.jain2002 at gmail.com Thu Sep 3 19:20:12 2009 From: bhaskar.jain2002 at gmail.com (bhaskar jain) Date: Thu, 3 Sep 2009 22:50:12 +0530 Subject: [BangPypers] link In-Reply-To: <9963e56e0909031016p62cc4e3bg68b1cc37e550a320@mail.gmail.com> References: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> <9963e56e0909031016p62cc4e3bg68b1cc37e550a320@mail.gmail.com> Message-ID: <7f2cbc970909031020m35c56bb1oc4377f6cbdc49213@mail.gmail.com> :) He is Guido! I am a mere mortal! On Thu, Sep 3, 2009 at 10:46 PM, Noufal Ibrahim wrote: > On Thu, Sep 3, 2009 at 10:43 PM, bhaskar jain > wrote: > > Nice link - http://aymanh.com/python-debugging-techniques > > We can have this thread were we discuss our own debugging techniques. > > I uses syslog :( > > and kind of like 'inspect' and 'traceback' modules. > > > * Debugging: Guido uses print statements for 90% of his debugging and > a debugger for the times when his brain stops working or he has to > debug some wierd code that someone else wrote. > > http://panela.blog-city.com/a_talk_by_guido_van_rossum.htm > > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From noufal at gmail.com Thu Sep 3 19:27:13 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 3 Sep 2009 22:57:13 +0530 Subject: [BangPypers] link In-Reply-To: <7f2cbc970909031020m35c56bb1oc4377f6cbdc49213@mail.gmail.com> References: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> <9963e56e0909031016p62cc4e3bg68b1cc37e550a320@mail.gmail.com> <7f2cbc970909031020m35c56bb1oc4377f6cbdc49213@mail.gmail.com> Message-ID: <9963e56e0909031027q2cd45dabkc7597c4f9cb7ee95@mail.gmail.com> On Thu, Sep 3, 2009 at 10:50 PM, bhaskar jain wrote: > ?:) > He is Guido! > I am a mere mortal! It is an interesting point though. Back when I used to code in C, I always jumped for gdb and GUD whenever I needed chase a bug. WIth Python, I don't really know how to use pdb. Truly, the nature of language affects your style of debugging. -- ~noufal http://nibrahim.net.in From steve at lonetwin.net Thu Sep 3 21:43:28 2009 From: steve at lonetwin.net (steve) Date: Fri, 04 Sep 2009 01:13:28 +0530 Subject: [BangPypers] link In-Reply-To: <9963e56e0909031016p62cc4e3bg68b1cc37e550a320@mail.gmail.com> References: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> <9963e56e0909031016p62cc4e3bg68b1cc37e550a320@mail.gmail.com> Message-ID: <4AA01C60.8080808@lonetwin.net> On 09/03/2009 10:46 PM, Noufal Ibrahim wrote: > On Thu, Sep 3, 2009 at 10:43 PM, bhaskar jain wrote: >> Nice link - http://aymanh.com/python-debugging-techniques >> We can have this thread were we discuss our own debugging techniques. >> I uses syslog :( >> and kind of like 'inspect' and 'traceback' modules. > > > * Debugging: Guido uses print statements for 90% of his debugging and > a debugger for the times when his brain stops working or he has to > debug some wierd code that someone else wrote. > Of course the primary difference, IMHO is most python programmers are debugging application/modules written in python whereas Gudio debugs the language itself and the standard library. I wonder how many regular python users ever need to put a print statement in any of python's standard modules (I've done it a couple of times, just because the docs seemed too obscure/complicated/vague to be bothered with and it was faster for me just to use print). Anyways, regarding the question, I find that most python programmers I've met either use print (and other variations like traceback.print_*) or a custom coded logging/debuging module. Recently, i've come across these two which might be useful, but I haven't had a reason to try them out yet: http://wordaligned.org/svn/etc/echo/echo.py http://codeinvestigator.googlepages.com/main ...and lastly, I've used pdb occasionally (actually, the most frequent use was when being dropped in the built in pdb prompt when anaconda (the Red Hat/fedora installer) barfs) and even then, I didn't really find it all that useful from a 'debugging' perspective. It works well only to examine state. cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From sridhar.ratna at gmail.com Fri Sep 4 04:03:19 2009 From: sridhar.ratna at gmail.com (srid) Date: Thu, 3 Sep 2009 19:03:19 -0700 Subject: [BangPypers] link In-Reply-To: <9963e56e0909031016p62cc4e3bg68b1cc37e550a320@mail.gmail.com> References: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> <9963e56e0909031016p62cc4e3bg68b1cc37e550a320@mail.gmail.com> Message-ID: <7c73a13a0909031903o73e4ba2id7e4185b8ce549ae@mail.gmail.com> On Thu, Sep 3, 2009 at 10:16 AM, Noufal Ibrahim wrote: > * Debugging: Guido uses print statements for 90% of his debugging and > a debugger for the times when his brain stops working or he has to > debug some wierd code that someone else wrote. > > http://panela.blog-city.com/a_talk_by_guido_van_rossum.htm I too use print statements almost all the time. Even for debugging CPython code. I guess it is due to my own laziness. Putting `print` or `LOG.debug` is much easier/quicker compared to firing up a debugging console (and remembering how to use it). -srid From rmathews at gmail.com Fri Sep 4 05:09:21 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Fri, 4 Sep 2009 08:39:21 +0530 Subject: [BangPypers] link In-Reply-To: <7c73a13a0909031903o73e4ba2id7e4185b8ce549ae@mail.gmail.com> References: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> <9963e56e0909031016p62cc4e3bg68b1cc37e550a320@mail.gmail.com> <7c73a13a0909031903o73e4ba2id7e4185b8ce549ae@mail.gmail.com> Message-ID: <1c4dc2780909032009w4b2214f7of4c67abf1a9af874@mail.gmail.com> On Fri, Sep 4, 2009 at 7:33 AM, srid wrote: > I too use print statements almost all the time. Even for debugging > CPython code. I guess it is due to my own laziness. Putting `print` or > `LOG.debug` is much easier/quicker compared to firing up a debugging > console (and remembering how to use it). > Same reasons here, it's just faster to add prints and see if things are what they should be. But I also have logging statements in general, but don't usually add them for debugging. But I guess I must check out pdb. I recently read of an IDE for python which code-stepping and a fancy debugger. Don't remember which one it was though ... Roshan From sridhar.ratna at gmail.com Fri Sep 4 08:14:46 2009 From: sridhar.ratna at gmail.com (srid) Date: Thu, 3 Sep 2009 23:14:46 -0700 Subject: [BangPypers] link In-Reply-To: <1c4dc2780909032009w4b2214f7of4c67abf1a9af874@mail.gmail.com> References: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> <9963e56e0909031016p62cc4e3bg68b1cc37e550a320@mail.gmail.com> <7c73a13a0909031903o73e4ba2id7e4185b8ce549ae@mail.gmail.com> <1c4dc2780909032009w4b2214f7of4c67abf1a9af874@mail.gmail.com> Message-ID: <7c73a13a0909032314w3b637804v788705de5e1a7f70@mail.gmail.com> On Thu, Sep 3, 2009 at 8:09 PM, Roshan Mathews wrote: > I recently read of an IDE for python which > code-stepping and a fancy debugger. ?Don't remember which one it was > though ... Many of them exist - ActiveState Komodo, Wing IDE, Eric3 and so on. -srid From noufal at gmail.com Fri Sep 4 08:24:59 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 4 Sep 2009 11:54:59 +0530 Subject: [BangPypers] link In-Reply-To: <7c73a13a0909032314w3b637804v788705de5e1a7f70@mail.gmail.com> References: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> <9963e56e0909031016p62cc4e3bg68b1cc37e550a320@mail.gmail.com> <7c73a13a0909031903o73e4ba2id7e4185b8ce549ae@mail.gmail.com> <1c4dc2780909032009w4b2214f7of4c67abf1a9af874@mail.gmail.com> <7c73a13a0909032314w3b637804v788705de5e1a7f70@mail.gmail.com> Message-ID: <9963e56e0909032324r3449cf27i71df6d60d331ac91@mail.gmail.com> On Fri, Sep 4, 2009 at 11:44 AM, srid wrote: > On Thu, Sep 3, 2009 at 8:09 PM, Roshan Mathews wrote: >> I recently read of an IDE for python which >> code-stepping and a fancy debugger. ?Don't remember which one it was >> though ... > > Many of them exist - ActiveState Komodo, Wing IDE, Eric3 and so on. Emacs! -- ~noufal http://nibrahim.net.in From bhaskar.jain2002 at gmail.com Fri Sep 4 09:04:20 2009 From: bhaskar.jain2002 at gmail.com (bhaskar jain) Date: Fri, 4 Sep 2009 12:34:20 +0530 Subject: [BangPypers] link In-Reply-To: <9963e56e0909032324r3449cf27i71df6d60d331ac91@mail.gmail.com> References: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> <9963e56e0909031016p62cc4e3bg68b1cc37e550a320@mail.gmail.com> <7c73a13a0909031903o73e4ba2id7e4185b8ce549ae@mail.gmail.com> <1c4dc2780909032009w4b2214f7of4c67abf1a9af874@mail.gmail.com> <7c73a13a0909032314w3b637804v788705de5e1a7f70@mail.gmail.com> <9963e56e0909032324r3449cf27i71df6d60d331ac91@mail.gmail.com> Message-ID: <7f2cbc970909040004t1e5c659cl188bc91ee7dac31f@mail.gmail.com> vim! On Fri, Sep 4, 2009 at 11:54 AM, Noufal Ibrahim wrote: > On Fri, Sep 4, 2009 at 11:44 AM, srid wrote: > > On Thu, Sep 3, 2009 at 8:09 PM, Roshan Mathews > wrote: > >> I recently read of an IDE for python which > >> code-stepping and a fancy debugger. Don't remember which one it was > >> though ... > > > > Many of them exist - ActiveState Komodo, Wing IDE, Eric3 and so on. > > Emacs! > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ideamonk at gmail.com Fri Sep 4 09:13:45 2009 From: ideamonk at gmail.com (Abhishek Mishra) Date: Fri, 4 Sep 2009 12:43:45 +0530 Subject: [BangPypers] link In-Reply-To: <7f2cbc970909040004t1e5c659cl188bc91ee7dac31f@mail.gmail.com> References: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> <9963e56e0909031016p62cc4e3bg68b1cc37e550a320@mail.gmail.com> <7c73a13a0909031903o73e4ba2id7e4185b8ce549ae@mail.gmail.com> <1c4dc2780909032009w4b2214f7of4c67abf1a9af874@mail.gmail.com> <7c73a13a0909032314w3b637804v788705de5e1a7f70@mail.gmail.com> <9963e56e0909032324r3449cf27i71df6d60d331ac91@mail.gmail.com> <7f2cbc970909040004t1e5c659cl188bc91ee7dac31f@mail.gmail.com> Message-ID: <64160c70909040013o83e90dela0760fada4279001@mail.gmail.com> Vim! + NERDTree + Pydiction http://twitpic.com/fnopf http://twitpic.com/fnsvb From lawgon at au-kbc.org Fri Sep 4 09:38:25 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 4 Sep 2009 13:08:25 +0530 Subject: [BangPypers] link In-Reply-To: <7f2cbc970909040004t1e5c659cl188bc91ee7dac31f@mail.gmail.com> References: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> <9963e56e0909032324r3449cf27i71df6d60d331ac91@mail.gmail.com> <7f2cbc970909040004t1e5c659cl188bc91ee7dac31f@mail.gmail.com> Message-ID: <200909041308.25841.lawgon@au-kbc.org> On Friday 04 Sep 2009 12:34:20 pm bhaskar jain wrote: > vim! geany! -- regards Kenneth Gonsalves Associate NRC-FOSS http://nrcfosshelpline.in/web/ From sahasr at naman.ms Fri Sep 4 09:43:20 2009 From: sahasr at naman.ms (Sahasranaman MS) Date: Fri, 4 Sep 2009 13:13:20 +0530 Subject: [BangPypers] link In-Reply-To: <200909041308.25841.lawgon@au-kbc.org> References: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> <9963e56e0909032324r3449cf27i71df6d60d331ac91@mail.gmail.com> <7f2cbc970909040004t1e5c659cl188bc91ee7dac31f@mail.gmail.com> <200909041308.25841.lawgon@au-kbc.org> Message-ID: On Fri, Sep 4, 2009 at 1:08 PM, Kenneth Gonsalves wrote: > On Friday 04 Sep 2009 12:34:20 pm bhaskar jain wrote: > > vim! > geany! > NetBeans! -------------- next part -------------- An HTML attachment was scrubbed... URL: From noufal at gmail.com Fri Sep 4 09:56:18 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 4 Sep 2009 13:26:18 +0530 Subject: [BangPypers] link In-Reply-To: References: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> <9963e56e0909032324r3449cf27i71df6d60d331ac91@mail.gmail.com> <7f2cbc970909040004t1e5c659cl188bc91ee7dac31f@mail.gmail.com> <200909041308.25841.lawgon@au-kbc.org> Message-ID: <9963e56e0909040056w3e1c048evd8d2409a20601239@mail.gmail.com> Anyone used http://pythonide.blogspot.com/? It's special purpose but it's got a bit of reputation from what I hear. -- ~noufal http://nibrahim.net.in From lawgon at au-kbc.org Fri Sep 4 10:14:10 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 4 Sep 2009 13:44:10 +0530 Subject: [BangPypers] link In-Reply-To: <9963e56e0909040056w3e1c048evd8d2409a20601239@mail.gmail.com> References: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> <9963e56e0909040056w3e1c048evd8d2409a20601239@mail.gmail.com> Message-ID: <200909041344.11062.lawgon@au-kbc.org> On Friday 04 Sep 2009 1:26:18 pm Noufal Ibrahim wrote: > Anyone used http://pythonide.blogspot.com/? > > It's special purpose but it's got a bit of reputation from what I hear. stani is a great guy - he won a prize for designing the dutch 5 euro commemorative coin a couple of years back. I have tried spe a few times, never got it to work properly -- regards Kenneth Gonsalves Associate NRC-FOSS http://nrcfosshelpline.in/web/ From carl at personnelware.com Fri Sep 4 14:46:01 2009 From: carl at personnelware.com (Carl Karsten) Date: Fri, 4 Sep 2009 07:46:01 -0500 Subject: [BangPypers] link In-Reply-To: <200909041344.11062.lawgon@au-kbc.org> References: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> <9963e56e0909040056w3e1c048evd8d2409a20601239@mail.gmail.com> <200909041344.11062.lawgon@au-kbc.org> Message-ID: <549053140909040546n48c71af5m9e8d46c9497262b7@mail.gmail.com> On Fri, Sep 4, 2009 at 3:14 AM, Kenneth Gonsalves wrote: > On Friday 04 Sep 2009 1:26:18 pm Noufal Ibrahim wrote: >> Anyone used http://pythonide.blogspot.com/? >> >> It's special purpose but it's got a bit of reputation from what I hear. > > stani is a great guy - he won a prize for designing the dutch 5 euro > commemorative coin a couple of years back. I have tried spe a few times, never > got it to work properly SPE (Stani's Python Editor) is just a wx python app, soo.... I use it now and then, works-for-me. for some reason I use vim more. -- Carl K From vsapre80 at gmail.com Fri Sep 4 21:37:43 2009 From: vsapre80 at gmail.com (Vishal) Date: Sat, 5 Sep 2009 01:07:43 +0530 Subject: [BangPypers] Excel and Python In-Reply-To: <9963e56e0909020752g52125b16i6beacc7d79b64e07@mail.gmail.com> References: <87178CBF-B19D-4E81-ACEC-F2B99520BBC5@apple.com> <9963e56e0909020752g52125b16i6beacc7d79b64e07@mail.gmail.com> Message-ID: I would advice you to take hints from the existing tools and then devise a module specific to your requirements. Working with excel depends a lot on what you want to do with the data that you are working on and so a single module is rarely all that you need. If you are on a windows machine, win32com is your best friend, because it will allow you to do almost everything with excel (charts, pivot tables etc etc, apart from regular row/col data management) tip: on some versions of excel, the excel specific constants (xlFirstRow, xlFirstColumn etc) are not available readily after creation of the excel object in Python. You would be better off maintaining these variables and their values in your module separately. For more info on these constants, try MSDN. Take care, Vishal On Wed, Sep 2, 2009 at 8:22 PM, Noufal Ibrahim wrote: > and http://pypi.python.org/pypi/pyExcelerator/ > > On Wed, Sep 2, 2009 at 6:39 PM, Baiju M wrote: > > These tools looks very good to deal with Excel files: > > > > http://pypi.python.org/pypi/xlrd (read > > http://pypi.python.org/pypi/xlwt > > http://pypi.python.org/pypi/xlutils > > > > These are pure Python packages and it works in all platforms. > > > > Regards, > > Baiju M > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Thanks and best regards, Vishal Sapre --- "So say...Day by day, in every way, I am getting better, better and better !!!" "A Strong and Positive attitude creates more miracles than anything else. Because...Life is 10% how you make it, and 90% how you take it" "Diamond is another piece of coal that did well under pressure? "Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human, Failure Keeps u Humble, Success keeps u Glowing, But only God Keeps u Going.....Keep Going....." -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmathews at gmail.com Sat Sep 5 04:14:55 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Sat, 5 Sep 2009 07:44:55 +0530 Subject: [BangPypers] link In-Reply-To: <9963e56e0909032324r3449cf27i71df6d60d331ac91@mail.gmail.com> References: <7f2cbc970909031013k69caa23bo886374d971437e4c@mail.gmail.com> <9963e56e0909031016p62cc4e3bg68b1cc37e550a320@mail.gmail.com> <7c73a13a0909031903o73e4ba2id7e4185b8ce549ae@mail.gmail.com> <1c4dc2780909032009w4b2214f7of4c67abf1a9af874@mail.gmail.com> <7c73a13a0909032314w3b637804v788705de5e1a7f70@mail.gmail.com> <9963e56e0909032324r3449cf27i71df6d60d331ac91@mail.gmail.com> Message-ID: <1c4dc2780909041914yeaadcard8b82b06e74ca114@mail.gmail.com> On Fri, Sep 4, 2009 at 11:54 AM, Noufal Ibrahim wrote: > On Fri, Sep 4, 2009 at 11:44 AM, srid wrote: >> On Thu, Sep 3, 2009 at 8:09 PM, Roshan Mathews wrote: >>> I recently read of an IDE for python which >>> code-stepping and a fancy debugger. ?Don't remember which one it was >>> though ... >> >> Many of them exist - ActiveState Komodo, Wing IDE, Eric3 and so on. > > Emacs! > That's interesting, I use Emacs for my editing needs, but I wasn't aware of pdb integration with gud (I just googled) ... must check out. Roshan From bharat_pathak at hotmail.com Sat Sep 5 01:48:38 2009 From: bharat_pathak at hotmail.com (Bharat Pathak) Date: Sat, 5 Sep 2009 05:18:38 +0530 Subject: [BangPypers] hardware access using python In-Reply-To: <87178CBF-B19D-4E81-ACEC-F2B99520BBC5@apple.com> <9963e56e0909020752g52125b16i6beacc7d79b64e07@mail.gmail.com> References: <87178CBF-B19D-4E81-ACEC-F2B99520BBC5@apple.com> <9963e56e0909020752g52125b16i6beacc7d79b64e07@mail.gmail.com> Message-ID: Dear Friends, Where can I get information on how to access serial and parallel port in python? I have tried pyserial and pyparallel package. but it in turn looks for "java communications" and jython I guess. also giveio.sys package needs to be installed. since I don?t know the procedure and also java, I am facing issues at multiple levels. anyone for rescue? Rgds Bharat From: Vishal Sent: Saturday, September 05, 2009 1:07 AM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Excel and Python I would advice you to take hints from the existing tools and then devise a module specific to your requirements. Working with excel depends a lot on what you want to do with the data that you are working on and so a single module is rarely all that you need. If you are on a windows machine, win32com is your best friend, because it will allow you to do almost everything with excel (charts, pivot tables etc etc, apart from regular row/col data management) tip: on some versions of excel, the excel specific constants (xlFirstRow, xlFirstColumn etc) are not available readily after creation of the excel object in Python. You would be better off maintaining these variables and their values in your module separately. For more info on these constants, try MSDN. Take care, Vishal On Wed, Sep 2, 2009 at 8:22 PM, Noufal Ibrahim wrote: and http://pypi.python.org/pypi/pyExcelerator/ On Wed, Sep 2, 2009 at 6:39 PM, Baiju M wrote: > These tools looks very good to deal with Excel files: > > http://pypi.python.org/pypi/xlrd (read > http://pypi.python.org/pypi/xlwt > http://pypi.python.org/pypi/xlutils > > These are pure Python packages and it works in all platforms. > > Regards, > Baiju M > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers -- Thanks and best regards, Vishal Sapre --- "So say...Day by day, in every way, I am getting better, better and better !!!" "A Strong and Positive attitude creates more miracles than anything else. Because...Life is 10% how you make it, and 90% how you take it" "Diamond is another piece of coal that did well under pressure? "Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human, Failure Keeps u Humble, Success keeps u Glowing, But only God Keeps u Going.....Keep Going....." -------------------------------------------------------------------------------- _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers -------------- next part -------------- An HTML attachment was scrubbed... URL: From srijayanth at gmail.com Sat Sep 5 08:24:52 2009 From: srijayanth at gmail.com (Srijayanth Sridhar) Date: Sat, 5 Sep 2009 11:54:52 +0530 Subject: [BangPypers] hardware access using python In-Reply-To: References: <87178CBF-B19D-4E81-ACEC-F2B99520BBC5@apple.com> <9963e56e0909020752g52125b16i6beacc7d79b64e07@mail.gmail.com> Message-ID: <5ead360a0909042324q20fa556cha39bb41c2245dedb@mail.gmail.com> On Sat, Sep 5, 2009 at 5:18 AM, Bharat Pathak wrote: > Dear Friends, > > Where can I get information on how to access serial > and parallel port in python? > > I have tried pyserial and pyparallel package. but it in > turn looks for "java communications" and jython I guess. > also giveio.sys package needs to be installed. since > I don?t know the procedure and also java, I am facing > issues at multiple levels. anyone for rescue? > > Rgds > Bharat > > Hello, What Python implementation are you using? I use pyserial and have had no problems connecting or communicating with a serial port. Jayanth -------------- next part -------------- An HTML attachment was scrubbed... URL: From venkat83 at gmail.com Mon Sep 7 07:39:27 2009 From: venkat83 at gmail.com (Venkatraman S) Date: Mon, 7 Sep 2009 11:09:27 +0530 Subject: [BangPypers] Fwd: [Baypiggies] A reminder: Why to type slowly when going to python.org In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Glen Jarvis Date: Mon, Sep 7, 2009 at 1:18 AM Subject: [Baypiggies] A reminder: Why to type slowly when going to python.org To: Baypiggies :) http://pythong.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmathews at gmail.com Mon Sep 7 07:44:51 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Mon, 7 Sep 2009 11:14:51 +0530 Subject: [BangPypers] Fwd: [Baypiggies] A reminder: Why to type slowly when going to python.org In-Reply-To: References: Message-ID: <1c4dc2780909062244l34e65902k12f74bd89c7fd850@mail.gmail.com> On Mon, Sep 7, 2009 at 11:09 AM, Venkatraman S wrote: > http://pythong.org/ > :D There's also the NSFW http://python.com .... From vsapre80 at gmail.com Mon Sep 7 08:10:18 2009 From: vsapre80 at gmail.com (Vishal) Date: Mon, 7 Sep 2009 11:40:18 +0530 Subject: [BangPypers] hardware access using python In-Reply-To: <5ead360a0909042324q20fa556cha39bb41c2245dedb@mail.gmail.com> References: <87178CBF-B19D-4E81-ACEC-F2B99520BBC5@apple.com> <9963e56e0909020752g52125b16i6beacc7d79b64e07@mail.gmail.com> <5ead360a0909042324q20fa556cha39bb41c2245dedb@mail.gmail.com> Message-ID: Same here too. Pyserial doesnot use anything else...its standalone. On Sat, Sep 5, 2009 at 11:54 AM, Srijayanth Sridhar wrote: > On Sat, Sep 5, 2009 at 5:18 AM, Bharat Pathak wrote: > >> Dear Friends, >> >> Where can I get information on how to access serial >> and parallel port in python? >> >> I have tried pyserial and pyparallel package. but it in >> turn looks for "java communications" and jython I guess. >> also giveio.sys package needs to be installed. since >> I don?t know the procedure and also java, I am facing >> issues at multiple levels. anyone for rescue? >> >> Rgds >> Bharat >> >> > Hello, > > What Python implementation are you using? I use pyserial and have had no > problems connecting or communicating with a serial port. > > Jayanth > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Thanks and best regards, Vishal Sapre --- "So say...Day by day, in every way, I am getting better, better and better !!!" "A Strong and Positive attitude creates more miracles than anything else. Because...Life is 10% how you make it, and 90% how you take it" "Diamond is another piece of coal that did well under pressure? "Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human, Failure Keeps u Humble, Success keeps u Glowing, But only God Keeps u Going.....Keep Going....." -------------- next part -------------- An HTML attachment was scrubbed... URL: From ctrachte at gmail.com Tue Sep 8 01:57:19 2009 From: ctrachte at gmail.com (Carl Trachte) Date: Mon, 7 Sep 2009 17:57:19 -0600 Subject: [BangPypers] Python Doc or Examples in Hindi In-Reply-To: <426ada670909060649u3fa2fad5idba05112d389d583@mail.gmail.com> References: <426ada670909042251k12ab57e9k481fd1f937627c04@mail.gmail.com> <8548c5f30909052350w437274dbg1ce6935b2a3daef@mail.gmail.com> <426ada670909060649u3fa2fad5idba05112d389d583@mail.gmail.com> Message-ID: <426ada670909071657r49f5f4b7l70216618536269eb@mail.gmail.com> bangpypers and indlinux-hindi, I am taking up Anands suggestions below and writing you with a request for help in providing some links or simple examples of Python scripts that show Hindi Language and script. The general idea is to make Python accessible to people who do not speak English as their first language, particularly ones who speak languages not written in ASCII or Latin text. Our HindiLanguage page is here: http://wiki.python.org/moin/HindiLanguage Any links to Python tutorials or explanations of code examples in Hindi would be most appreciated. The same goes for other languages spoken in the area of the Indian subcontinent. Thank you for taking this request into consideration. Carl Trachte Las Cruces, New Mexico, USA ---------- Forwarded message ---------- From: Carl Trachte Date: Sun, Sep 6, 2009 at 7:49 AM Subject: Re: Python Doc or Examples in Hindi To: Anand Balachandran Pillai Cc: sree at mahiti.org, bharath.kheshav at gmail.com, ramkrsna at gmail.com, pradeep.gowda at gmail.com, jeff at taupro.com On Sun, Sep 6, 2009 at 12:50 AM, Anand Balachandran Pillai wrote: > Hi Carl, > > ??? This is a very good initiative. > > Personally I am not into Indic documentation and translation though I think > this > is a very good way to popularize Python more in the Indian context. I think > there > might be guys who are working in Indic translation and contributing to > projects > such as Ind Linux in BangPypers, though I personally know of none. > > I think you should send the email to BangPypers, which is okay and is not > any kind of spam, you have better chance of getting responses. > > Anyway, try the IndLinux mailing lists also. There might be people there > who can help and/or guide you. > > http://www.indlinux.org/wiki/index.php/MailingLists > > Regards > > --Anand > > > > On Sat, Sep 5, 2009 at 11:21 AM, Carl Trachte wrote: >> >> Bangpyper admins, >> >> The Diversity in Python list has identified a lack of documentation >> and examples in non-ASCII, non-Latin font languages. >> >> We're trying to fill this gap. ?One of the list members speaks Bengali >> natively, and we've got a page up in that language at >> http://wiki.python.org/moin/BengaliLanguage (there is always room for >> expansion of the page). >> >> I put up a Hindi page (http://wiki.python.org/moin/HindiLanguage), but >> I don't have anything to link to on it, not even a Wikipedia page. >> >> Python code snippets with explanations in Hindi, links to Python >> documentation in Hindi, links to quality blogs on Python in Hindi - >> all would be welcome. >> >> India has several official languages other than English. ?We could use >> similar resources for them. ?We just don't have pages for them or >> anything to link to yet. >> >> I don't want to post to the entire list, because it might open the >> wiki up to spam. ?If you could take this request into consideration >> and contact interested individuals, I would be most grateful. >> >> Thank you very much. >> >> Carl Trachte >> Las Cruces, New Mexico, USA > > > > -- > --Anand > > > > Anand, Thanks for taking the time to reply, and for the suggestions. I'll follow through on both of them. ?I had no idea there was an Indic mailing list, so thank you! Carl T. From mailzico at gmail.com Tue Sep 8 20:03:59 2009 From: mailzico at gmail.com (Zico) Date: Wed, 9 Sep 2009 00:03:59 +0600 Subject: [BangPypers] python manage.py syncdb problem Message-ID: <69621d830909081103l6e4113c5m6905140454f66ffc@mail.gmail.com> Hi, I have been trying to install fixmystreet in one of my Fedora 11 machine. In one step, i need to enter the command to sync my database. Command is: *python manage.py syncdb *But, here, i get the error: *psycopg2.InternalError: current transaction is aborted, commands ignored until end of transaction block * Here is the full error: [root at fedora fixmystreet]# python manage.py syncdb local_settings.py not set; using default settings local_settings.py not set; using default settings Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File "/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line 362, in execute_manager utility.execute() File "/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line 303, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.6/site-packages/django/core/management/base.py", line 195, in run_from_argv self.execute(*args, **options.__dict__) File "/usr/lib/python2.6/site-packages/django/core/management/base.py", line 221, in execute self.validate() File "/usr/lib/python2.6/site-packages/django/core/management/base.py", line 249, in validate num_errors = get_validation_errors(s, app) File "/usr/lib/python2.6/site-packages/django/core/management/validation.py", line 28, in get_validation_errors for (app_name, error) in get_app_errors().items(): File "/usr/lib/python2.6/site-packages/django/db/models/loading.py", line 131, in get_app_errors self._populate() File "/usr/lib/python2.6/site-packages/django/db/models/loading.py", line 58, in _populate self.load_app(app_name, True) File "/usr/lib/python2.6/site-packages/django/db/models/loading.py", line 74, in load_app models = import_module('.models', app_name) File "/usr/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/opt/fixmystreet/mainapp/models.py", line 3, in from django.contrib.gis.db import models File "/usr/lib/python2.6/site-packages/django/contrib/gis/db/models/__init__.py", line 5, in from django.contrib.gis.db.models.aggregates import * File "/usr/lib/python2.6/site-packages/django/contrib/gis/db/models/aggregates.py", line 2, in from django.contrib.gis.db.backend import SpatialBackend File "/usr/lib/python2.6/site-packages/django/contrib/gis/db/backend/__init__.py", line 12, in from django.contrib.gis.db.backend.postgis import create_test_spatial_db, get_geo_where_clause, SpatialBackend File "/usr/lib/python2.6/site-packages/django/contrib/gis/db/backend/postgis/__init__.py", line 4, in from django.contrib.gis.db.backend.postgis.adaptor import PostGISAdaptor File "/usr/lib/python2.6/site-packages/django/contrib/gis/db/backend/postgis/adaptor.py", line 5, in from django.contrib.gis.db.backend.postgis.query import GEOM_FROM_WKB File "/usr/lib/python2.6/site-packages/django/contrib/gis/db/backend/postgis/query.py", line 27, in version_tuple = postgis_version_tuple() File "/usr/lib/python2.6/site-packages/django/contrib/gis/db/backend/postgis/management.py", line 45, in postgis_version_tuple version = postgis_lib_version() File "/usr/lib/python2.6/site-packages/django/contrib/gis/db/backend/postgis/management.py", line 25, in postgis_lib_version return _get_postgis_func('postgis_lib_version') File "/usr/lib/python2.6/site-packages/django/contrib/gis/db/backend/postgis/management.py", line 13, in _get_postgis_func cursor.execute('SELECT %s()' % func) *psycopg2.InternalError: current transaction is aborted, commands ignored until end of transaction block * -- Best, Zico -------------- next part -------------- An HTML attachment was scrubbed... URL: From indudhar at gmail.com Wed Sep 9 14:14:59 2009 From: indudhar at gmail.com (Indudhar Devanath) Date: Wed, 9 Sep 2009 17:44:59 +0530 Subject: [BangPypers] python manage.py syncdb problem (Zico) Message-ID: <8850b55c0909090514j54dbe6afxdd707fb6e7f1ce68@mail.gmail.com> Did you check local_settings.py file and have you specified the right DB connection settings? Indu 2009/9/9 > From: Zico > To: bangpypers at python.org > Subject: [BangPypers] python manage.py syncdb problem > Message-ID: > <69621d830909081103l6e4113c5m6905140454f66ffc at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi, > > I have been trying to install fixmystreet in one of my Fedora 11 machine. > In > one step, i need to enter the command to sync my database. Command is: > *python > manage.py syncdb > > *But, here, i get the error: > > *psycopg2.InternalError: current transaction is aborted, commands ignored > until end of transaction block > * > Here is the full error: > > [root at fedora fixmystreet]# python manage.py syncdb > local_settings.py not set; using default settings > local_settings.py not set; using default settings > Traceback (most recent call last): > File "manage.py", line 11, in > execute_manager(settings) > File > "/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line > 362, in execute_manager > utility.execute() > File > "/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line > 303, in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File "/usr/lib/python2.6/site-packages/django/core/management/base.py", > line 195, in run_from_argv > self.execute(*args, **options.__dict__) > File "/usr/lib/python2.6/site-packages/django/core/management/base.py", > line 221, in execute > self.validate() > File "/usr/lib/python2.6/site-packages/django/core/management/base.py", > line 249, in validate > num_errors = get_validation_errors(s, app) > File > "/usr/lib/python2.6/site-packages/django/core/management/validation.py", > line 28, in get_validation_errors > for (app_name, error) in get_app_errors().items(): > File "/usr/lib/python2.6/site-packages/django/db/models/loading.py", line > 131, in get_app_errors > self._populate() > File "/usr/lib/python2.6/site-packages/django/db/models/loading.py", line > 58, in _populate > self.load_app(app_name, True) > File "/usr/lib/python2.6/site-packages/django/db/models/loading.py", line > 74, in load_app > models = import_module('.models', app_name) > File "/usr/lib/python2.6/site-packages/django/utils/importlib.py", line > 35, in import_module > __import__(name) > File "/opt/fixmystreet/mainapp/models.py", line 3, in > from django.contrib.gis.db import models > File > > "/usr/lib/python2.6/site-packages/django/contrib/gis/db/models/__init__.py", > line 5, in > from django.contrib.gis.db.models.aggregates import * > File > > "/usr/lib/python2.6/site-packages/django/contrib/gis/db/models/aggregates.py", > line 2, in > from django.contrib.gis.db.backend import SpatialBackend > File > > "/usr/lib/python2.6/site-packages/django/contrib/gis/db/backend/__init__.py", > line 12, in > from django.contrib.gis.db.backend.postgis import > create_test_spatial_db, get_geo_where_clause, SpatialBackend > File > > "/usr/lib/python2.6/site-packages/django/contrib/gis/db/backend/postgis/__init__.py", > line 4, in > from django.contrib.gis.db.backend.postgis.adaptor import PostGISAdaptor > File > > "/usr/lib/python2.6/site-packages/django/contrib/gis/db/backend/postgis/adaptor.py", > line 5, in > from django.contrib.gis.db.backend.postgis.query import GEOM_FROM_WKB > File > > "/usr/lib/python2.6/site-packages/django/contrib/gis/db/backend/postgis/query.py", > line 27, in > version_tuple = postgis_version_tuple() > File > > "/usr/lib/python2.6/site-packages/django/contrib/gis/db/backend/postgis/management.py", > line 45, in postgis_version_tuple > version = postgis_lib_version() > File > > "/usr/lib/python2.6/site-packages/django/contrib/gis/db/backend/postgis/management.py", > line 25, in postgis_lib_version > return _get_postgis_func('postgis_lib_version') > File > > "/usr/lib/python2.6/site-packages/django/contrib/gis/db/backend/postgis/management.py", > line 13, in _get_postgis_func > cursor.execute('SELECT %s()' % func) > *psycopg2.InternalError: current transaction is aborted, commands ignored > until end of transaction block > * > -- > Best, > Zico > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailzico at gmail.com Wed Sep 9 16:17:07 2009 From: mailzico at gmail.com (Zico) Date: Wed, 9 Sep 2009 20:17:07 +0600 Subject: [BangPypers] python manage.py syncdb problem (Zico) In-Reply-To: <8850b55c0909090514j54dbe6afxdd707fb6e7f1ce68@mail.gmail.com> References: <8850b55c0909090514j54dbe6afxdd707fb6e7f1ce68@mail.gmail.com> Message-ID: <69621d830909090717l6762ae35x6534d3bf549d99f0@mail.gmail.com> On Wed, Sep 9, 2009 at 6:14 PM, Indudhar Devanath wrote: > > Did you check local_settings.py file and have you specified the right DB > connection settings? > Actually there is no local_settings.py file written by me. So, it is using the default one. And, DB connection settings? I am afraid that, i don`t know how to do that. But, i have checked that *manage.py *file with: *python manage.py dbshell, it can connect! *So, what more can i do? Any suggestion? -- Best, Zico -------------- next part -------------- An HTML attachment was scrubbed... URL: From brahmadaddy at gmail.com Thu Sep 10 04:14:07 2009 From: brahmadaddy at gmail.com (Brian Le Blanc) Date: Wed, 9 Sep 2009 22:14:07 -0400 Subject: [BangPypers] google app engine and python Message-ID: <86ac25a20909091914q39d7ea76t8507269d5fc43862@mail.gmail.com> I am very interested in developing applications for google app engine. Python and Java are currently supported languages. Has anyone created apps for this platform yet? Which Bangalore companies will accept outsourced development projects for app engine using Python? I would be interested in any freelancers too. Cheers, Brian brahmadaddy at gmail.com From ssquery at gmail.com Thu Sep 10 06:32:45 2009 From: ssquery at gmail.com (sudhakar s) Date: Thu, 10 Sep 2009 10:02:45 +0530 Subject: [BangPypers] python-sap webservices Message-ID: <1528d2590909092132k44a20594o7172e099edeee375@mail.gmail.com> Hi, This is sudhakar, i am using python frame work and now concentrating on working on web services in python. I installed SOAPpy-0.12.0 on mac but getting errors as below: venj:SOAPpy-0.12.0 venkata$ python setup.py build Traceback (most recent call last): File "setup.py", line 8, in from SOAPpy.version import __version__ File "/Applications/SOAPpy-0.12.0/SOAPpy/__init__.py", line 5, in from Client import * File "/Applications/SOAPpy-0.12.0/SOAPpy/Client.py", line 46 from __future__ import nested_scopes SyntaxError: from __future__ imports must occur at the beginning of the file venj:SOAPpy-0.12.0 venkata$ python setup.py install Traceback (most recent call last): File "setup.py", line 8, in from SOAPpy.version import __version__ File "/Applications/SOAPpy-0.12.0/SOAPpy/__init__.py", line 5, in from Client import * File "/Applications/SOAPpy-0.12.0/SOAPpy/Client.py", line 46 from __future__ import nested_scopes SyntaxError: from __future__ imports must occur at the beginning of the file Hey please suggest me how to solve this error. Hey actually whats my requirement is i need to gather information from SAP system and Store it in Python appliction server. For this i am thinking to construct a web service on python in order to get the data from SAP system. Is this the correct way or is there any other possibility get in formation and store it in python application and i use mysql database for python. Please give your valuable suggestion. Waiting for early reply. with regards S Sudhakar. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bhaskar.jain2002 at gmail.com Thu Sep 10 06:55:07 2009 From: bhaskar.jain2002 at gmail.com (bhaskar jain) Date: Thu, 10 Sep 2009 10:25:07 +0530 Subject: [BangPypers] python-sap webservices In-Reply-To: <1528d2590909092132k44a20594o7172e099edeee375@mail.gmail.com> References: <1528d2590909092132k44a20594o7172e099edeee375@mail.gmail.com> Message-ID: <7f2cbc970909092155t29610750k31187232116b9079@mail.gmail.com> "__future__ is a special module used to change the behaviour of the parser, so it is extremely important that it occur in the beginning of your module. Just move the imports to the top of your code, and that's all there is to it." On Thu, Sep 10, 2009 at 10:02 AM, sudhakar s wrote: > Hi, This is sudhakar, i am using python frame work and now concentrating > on working on web services in python. > I installed SOAPpy-0.12.0 on mac but getting errors as below: > > venj:SOAPpy-0.12.0 venkata$ python setup.py build > > Traceback (most recent call last): > > File "setup.py", line 8, in > from SOAPpy.version import __version__ > File "/Applications/SOAPpy-0.12.0/SOAPpy/__init__.py", line 5, in > > from Client import * > File "/Applications/SOAPpy-0.12.0/SOAPpy/Client.py", line 46 > from __future__ import nested_scopes > > SyntaxError: from __future__ imports must occur at the beginning of the > file > > venj:SOAPpy-0.12.0 venkata$ python setup.py install > > Traceback (most recent call last): > File "setup.py", line 8, in > from SOAPpy.version import __version__ > File "/Applications/SOAPpy-0.12.0/SOAPpy/__init__.py", line 5, in > > from Client import * > File "/Applications/SOAPpy-0.12.0/SOAPpy/Client.py", line 46 > from __future__ import nested_scopes > SyntaxError: from __future__ imports must occur at the beginning of the > file > > Hey please suggest me how to solve this error. > > Hey actually whats my requirement is i need to gather information from SAP > system and Store it in Python appliction server. > For this i am thinking to construct a web service on python in order to get > the data from SAP system. Is this the correct way or is there > any other possibility get in formation and store it in python application > and i use mysql database for python. > > Please give your valuable suggestion. > > Waiting for early reply. > > with regards > S Sudhakar. > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ganeshkumar.h at ccpu.com Mon Sep 7 08:42:05 2009 From: ganeshkumar.h at ccpu.com (Ganesh H. Kumar - QA) Date: Mon, 7 Sep 2009 12:12:05 +0530 Subject: [BangPypers] Python Training in Bangalore Message-ID: <2690213D5CBF0C479454EE80957DA8BD5037E8@in-exchange.ccpu.com> Greetings, Do you conduct python training, either open programs or in house sessions? Am looking for some good python trainers and came across your reference through a google search. Hence this mail. Incase this has caused any inconvenience to you, please ignore and sorry for that. Thanks. Regards, Ganesh Kumar Bangalore www.ccpu.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 2439 bytes Desc: image001.jpg URL: From jaganadhg at gmail.com Thu Sep 10 08:18:09 2009 From: jaganadhg at gmail.com (JAGANADH G) Date: Thu, 10 Sep 2009 11:48:09 +0530 Subject: [BangPypers] Python Training in Bangalore In-Reply-To: <2690213D5CBF0C479454EE80957DA8BD5037E8@in-exchange.ccpu.com> References: <2690213D5CBF0C479454EE80957DA8BD5037E8@in-exchange.ccpu.com> Message-ID: On Mon, Sep 7, 2009 at 12:12 PM, Ganesh H. Kumar - QA < ganeshkumar.h at ccpu.com> wrote: > Greetings, > > > > Do you conduct python training, either open programs or in house sessions? > Am looking for some good python trainers and came across your reference > through a google search. Hence this mail. > > > > Incase this has caused any inconvenience to you, please ignore and sorry > for that. > > > > > > Thanks. > > Regards, > > Ganesh Kumar > > Bangalore > > www.ccpu.com > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > There will be a tutorial in the Indian Python Conference. Details can be found http://in.pycon.org/2009/talkfull/15/ http://in.pycon.org/2009/ It is in Bangalore only. -- ********************************** JAGANADH G http://jaganadhg.freeflux.net/blog Sent from Chennai, TN, India -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 2439 bytes Desc: not available URL: From lawgon at au-kbc.org Thu Sep 10 04:31:39 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 10 Sep 2009 08:01:39 +0530 Subject: [BangPypers] google app engine and python In-Reply-To: <86ac25a20909091914q39d7ea76t8507269d5fc43862@mail.gmail.com> References: <86ac25a20909091914q39d7ea76t8507269d5fc43862@mail.gmail.com> Message-ID: <200909100801.40258.lawgon@au-kbc.org> On Thursday 10 Sep 2009 7:44:07 am Brian Le Blanc wrote: > I am very interested in developing applications for google app engine. > Python and Java are currently supported languages. > Has anyone created apps for this platform yet? Which Bangalore > companies will accept outsourced development projects for app engine > using Python? > I would be interested in any freelancers too. is this a job offer? are you planning to outsource apps? Actually anyone who does django will have no difficulty in creating apps for google app engine. -- regards Kenneth Gonsalves Associate NRC-FOSS http://nrcfosshelpline.in/web/ From lawgon at au-kbc.org Thu Sep 10 07:04:21 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 10 Sep 2009 10:34:21 +0530 Subject: [BangPypers] python-sap webservices In-Reply-To: <1528d2590909092132k44a20594o7172e099edeee375@mail.gmail.com> References: <1528d2590909092132k44a20594o7172e099edeee375@mail.gmail.com> Message-ID: <200909101034.21735.lawgon@au-kbc.org> On Thursday 10 Sep 2009 10:02:45 am sudhakar s wrote: > Hi, This is sudhakar, i am using python frame work what is python frame work? -- regards Kenneth Gonsalves Associate NRC-FOSS http://nrcfosshelpline.in/web/ From look4puneet at gmail.com Thu Sep 10 10:59:45 2009 From: look4puneet at gmail.com (Puneet Aggarwal) Date: Thu, 10 Sep 2009 14:29:45 +0530 Subject: [BangPypers] HTML Parsing in python Message-ID: <9a1343d10909100159v24192079q303e2ff9fdef211f@mail.gmail.com> Hi BangPypers, Can anyone suggest me a good library for html parsing in python ? I googled a found few libararies BeautifulSoup, HTMLParser, SGMLParser etc. Can anyone suggest me which should I go for from your experience. Thanks, Puneet -------------- next part -------------- An HTML attachment was scrubbed... URL: From anandology at gmail.com Thu Sep 10 12:11:31 2009 From: anandology at gmail.com (Anand Chitipothu) Date: Thu, 10 Sep 2009 15:41:31 +0530 Subject: [BangPypers] HTML Parsing in python In-Reply-To: <9a1343d10909100159v24192079q303e2ff9fdef211f@mail.gmail.com> References: <9a1343d10909100159v24192079q303e2ff9fdef211f@mail.gmail.com> Message-ID: <41139fcb0909100311t15885a02ke98442dc2b7a5a00@mail.gmail.com> 2009/9/10 Puneet Aggarwal : > Hi BangPypers, > > Can anyone suggest me a good library for html parsing in python ? > I googled a found few libararies BeautifulSoup, HTMLParser, SGMLParser etc. > > Can anyone suggest me which should I go for from your experience. I recommend BeautifulSoup. Anand From mbaiju at zeomega.com Thu Sep 10 12:18:34 2009 From: mbaiju at zeomega.com (Baiju M) Date: Thu, 10 Sep 2009 15:48:34 +0530 Subject: [BangPypers] HTML Parsing in python In-Reply-To: <9a1343d10909100159v24192079q303e2ff9fdef211f@mail.gmail.com> References: <9a1343d10909100159v24192079q303e2ff9fdef211f@mail.gmail.com> Message-ID: On Thu, Sep 10, 2009 at 2:29 PM, Puneet Aggarwal wrote: > Hi BangPypers, > > Can anyone suggest me a good library for html parsing in python ? http://code.google.com/p/html5lib/ -- Baiju M From noufal at gmail.com Thu Sep 10 12:25:04 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 10 Sep 2009 15:55:04 +0530 Subject: [BangPypers] HTML Parsing in python In-Reply-To: <41139fcb0909100311t15885a02ke98442dc2b7a5a00@mail.gmail.com> References: <9a1343d10909100159v24192079q303e2ff9fdef211f@mail.gmail.com> <41139fcb0909100311t15885a02ke98442dc2b7a5a00@mail.gmail.com> Message-ID: <9963e56e0909100325u56a0cc26i8178bcfe61c6b024@mail.gmail.com> On Thu, Sep 10, 2009 at 3:41 PM, Anand Chitipothu wrote: > 2009/9/10 Puneet Aggarwal : >> Hi BangPypers, >> >> Can anyone suggest me a good library for html parsing in python ? >> I googled a found few libararies BeautifulSoup, HTMLParser, SGMLParser etc. >> >> Can anyone suggest me which should I go for from your experience. > > I recommend BeautifulSoup +1 Beautiful Soup -- ~noufal http://nibrahim.net.in From artagnon at gmail.com Thu Sep 10 14:54:59 2009 From: artagnon at gmail.com (Ramkumar R) Date: Thu, 10 Sep 2009 18:24:59 +0530 Subject: [BangPypers] HTML Parsing in python In-Reply-To: References: <9a1343d10909100159v24192079q303e2ff9fdef211f@mail.gmail.com> <41139fcb0909100311t15885a02ke98442dc2b7a5a00@mail.gmail.com> <9963e56e0909100325u56a0cc26i8178bcfe61c6b024@mail.gmail.com> Message-ID: > or use cElementTree (the ElementTree implementation in C). ElementTree is an XML parser. Forget that I mentioned it if you're only going to be parsing HTML. From artagnon at gmail.com Thu Sep 10 14:49:13 2009 From: artagnon at gmail.com (Ramkumar R) Date: Thu, 10 Sep 2009 18:19:13 +0530 Subject: [BangPypers] HTML Parsing in python In-Reply-To: <9963e56e0909100325u56a0cc26i8178bcfe61c6b024@mail.gmail.com> References: <9a1343d10909100159v24192079q303e2ff9fdef211f@mail.gmail.com> <41139fcb0909100311t15885a02ke98442dc2b7a5a00@mail.gmail.com> <9963e56e0909100325u56a0cc26i8178bcfe61c6b024@mail.gmail.com> Message-ID: > +1 Beautiful Soup The author is no longer interested in maintaining BeautifulSoup (see http://www.crummy.com/software/BeautifulSoup/3.1-problems.html). The BeautifulSoup port to Python 3.x is pretty terrible, as it's based on the error intolerant HTMLParser. While it's a fantastic library for beginners (I recall that my first Python program was a BeautifulSoup screen scraper), I wouldn't recommend that you use it on production. You might want to check out html5lib which is still at its infancy stages, or use cElementTree (the ElementTree implementation in C). From srsy70 at gmail.com Thu Sep 10 15:35:51 2009 From: srsy70 at gmail.com (S.Ramaswamy) Date: Thu, 10 Sep 2009 19:05:51 +0530 Subject: [BangPypers] HTML Parsing in python In-Reply-To: <9a1343d10909100159v24192079q303e2ff9fdef211f@mail.gmail.com> References: <9a1343d10909100159v24192079q303e2ff9fdef211f@mail.gmail.com> Message-ID: On Thu, Sep 10, 2009 at 2:29 PM, Puneet Aggarwal wrote: > Hi BangPypers, > > Can anyone suggest me a good library for html parsing in python ? > I googled a found few libararies BeautifulSoup, HTMLParser, SGMLParser > etc. > > Can anyone suggest me which should I go for from your experience. > > Recent versions of BeautifulSoup are awfully slow. I had to switch from 3.1.0 to an older 3.0.7a for an app that I wrote recently. The author explains the issues here: http://www.crummy.com/software/BeautifulSoup/3.1-problems.html . I'm sticking with it since I am used to it; but if you are starting fresh it, makes sense to explore other libs. Ramaswamy -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.ghose at gmail.com Thu Sep 10 15:37:38 2009 From: b.ghose at gmail.com (Baishampayan Ghose) Date: Thu, 10 Sep 2009 19:07:38 +0530 Subject: [BangPypers] HTML Parsing in python In-Reply-To: <9a1343d10909100159v24192079q303e2ff9fdef211f@mail.gmail.com> References: <9a1343d10909100159v24192079q303e2ff9fdef211f@mail.gmail.com> Message-ID: > Can anyone suggest me a good library for html parsing in python ? > I googled a found few libararies BeautifulSoup, HTMLParser, SGMLParser etc. > > Can anyone suggest me which should I go for from your experience. BeautifulSoup was OK, but now it's broken. Use lxml, it's very good. http://codespeak.net/lxml/ Regards, BG -- Baishampayan Ghose b.ghose at gmail.com From dhananjay.nene at gmail.com Thu Sep 10 16:03:31 2009 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Thu, 10 Sep 2009 19:33:31 +0530 Subject: [BangPypers] HTML Parsing in python In-Reply-To: References: <9a1343d10909100159v24192079q303e2ff9fdef211f@mail.gmail.com> Message-ID: Do you require tolerance for non well formed xml / html ? If y, you may consider sgmlop http://effbot.org/zone/sgmlop-index.htm On Thu, Sep 10, 2009 at 7:07 PM, Baishampayan Ghose wrote: > > Can anyone suggest me a good library for html parsing in python ? > > I googled a found few libararies BeautifulSoup, HTMLParser, SGMLParser > etc. > > > > Can anyone suggest me which should I go for from your experience. > > BeautifulSoup was OK, but now it's broken. Use lxml, it's very good. > > http://codespeak.net/lxml/ > > Regards, > BG > > > -- > Baishampayan Ghose > b.ghose at gmail.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene -------------- next part -------------- An HTML attachment was scrubbed... URL: From look4puneet at gmail.com Thu Sep 10 16:14:02 2009 From: look4puneet at gmail.com (Puneet Aggarwal) Date: Thu, 10 Sep 2009 19:44:02 +0530 Subject: [BangPypers] HTML Parsing in python In-Reply-To: References: <9a1343d10909100159v24192079q303e2ff9fdef211f@mail.gmail.com> Message-ID: <9a1343d10909100714g348e26f0w577108bf49c89856@mail.gmail.com> Thanks all for the suggestions. I think I will start with BeautifulSoup (3.0.7a) and will experiment with other suggested libs if it does not fit into my requirement or if I face issues with this. On Thu, Sep 10, 2009 at 7:07 PM, Baishampayan Ghose wrote: > > Can anyone suggest me a good library for html parsing in python ? > > I googled a found few libararies BeautifulSoup, HTMLParser, SGMLParser > etc. > > > > Can anyone suggest me which should I go for from your experience. > > BeautifulSoup was OK, but now it's broken. Use lxml, it's very good. > > http://codespeak.net/lxml/ > > Regards, > BG > > > -- > Baishampayan Ghose > b.ghose at gmail.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From look4puneet at gmail.com Thu Sep 10 16:16:47 2009 From: look4puneet at gmail.com (Puneet Aggarwal) Date: Thu, 10 Sep 2009 19:46:47 +0530 Subject: [BangPypers] HTML Parsing in python In-Reply-To: References: <9a1343d10909100159v24192079q303e2ff9fdef211f@mail.gmail.com> Message-ID: <9a1343d10909100716t15a9d3v1ee9029623e77137@mail.gmail.com> Hi Dhananjay, My requirement is simple. I need to extract information from a page. But the pages can be malformed html or it can be any junk html. So the tolerance required. Thanks, Puneet On Thu, Sep 10, 2009 at 7:33 PM, Dhananjay Nene wrote: > Do you require tolerance for non well formed xml / html ? If y, you may > consider sgmlop http://effbot.org/zone/sgmlop-index.htm > > > On Thu, Sep 10, 2009 at 7:07 PM, Baishampayan Ghose wrote: > >> > Can anyone suggest me a good library for html parsing in python ? >> > I googled a found few libararies BeautifulSoup, HTMLParser, SGMLParser >> etc. >> > >> > Can anyone suggest me which should I go for from your experience. >> >> BeautifulSoup was OK, but now it's broken. Use lxml, it's very good. >> >> http://codespeak.net/lxml/ >> >> Regards, >> BG >> >> >> -- >> Baishampayan Ghose >> b.ghose at gmail.com >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > -------------------------------------------------------- > blog: http://blog.dhananjaynene.com > twitter: http://twitter.com/dnene > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ideamonk at gmail.com Thu Sep 10 16:39:12 2009 From: ideamonk at gmail.com (Abhishek Mishra) Date: Thu, 10 Sep 2009 20:09:12 +0530 Subject: [BangPypers] google app engine and python In-Reply-To: <86ac25a20909091914q39d7ea76t8507269d5fc43862@mail.gmail.com> References: <86ac25a20909091914q39d7ea76t8507269d5fc43862@mail.gmail.com> Message-ID: <64160c70909100739j5bdefd0cs3c4c7b8572715ee@mail.gmail.com> I had done a very tiny tryout of appengine last week - http://tastypasses.appspot.com/ its a very small script, that does nothing more than processing some get requests and uses templates... I'm yet to try out many other features like datastore, xmpp etc... I found O'Reilly's 'Using Google App Engine' much better than Apress' 'Developing with App Engine', and I recommend that for anyone to begin with... Lets see what cool apps bangpypers come up with :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From srsy70 at gmail.com Thu Sep 10 17:07:18 2009 From: srsy70 at gmail.com (S.Ramaswamy) Date: Thu, 10 Sep 2009 20:37:18 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting Message-ID: "Top-posting complaints is the old timers trying to assert their power over the newer generation who takes everything for granted." http://twitter.com/gvanrossum/status/2403974538 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pradeep at btbytes.com Thu Sep 10 18:15:40 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Thu, 10 Sep 2009 12:15:40 -0400 Subject: [BangPypers] google app engine and python In-Reply-To: <64160c70909100739j5bdefd0cs3c4c7b8572715ee@mail.gmail.com> References: <86ac25a20909091914q39d7ea76t8507269d5fc43862@mail.gmail.com> <64160c70909100739j5bdefd0cs3c4c7b8572715ee@mail.gmail.com> Message-ID: <3e3294b70909100915g4bb7fd4eu418b5a32176b4c14@mail.gmail.com> On Thu, Sep 10, 2009 at 10:39 AM, Abhishek Mishra wrote: > Lets see what cool apps bangpypers come up with :) I have built a blogging engine: http://teh.appspot.com code: http://github.com/btbytes/teh/tree a "Djangosites.com" clone: http://www.zopesites.org code: http://github.com/btbytes/gappsites/tree (which I used for my PyOhio-2008 talk) A fun, little iPhone Raffle app for IndyPy . http:://rufflecat.appspot.com looks best on iphone only. code: http://github.com/btbytes/rufflecat/tree +PG From dg288_mits at yahoo.co.in Thu Sep 10 19:31:18 2009 From: dg288_mits at yahoo.co.in (deepak gupta) Date: Thu, 10 Sep 2009 10:31:18 -0700 (PDT) Subject: [BangPypers] How to send 1 GB Zip file to some remote machine using HTTP/HTTPS? Message-ID: <977253.41954.qm@web8408.mail.in.yahoo.com> Hi All, ? How to send 1 GB Zip file to some remote machine using HTTP/HTTPS? ? As of now : I?am running a http listner in to remote machine. I want to copy a file from local system to the remote machine where my HTTP/HTTPS Listner is running. Currently i am comressing the file, then reading the file and sending the contents to the remote agent as a string. At Remote agent , i am reading the string content and writing the same in to the file. ? this methord is OK when the file size is small ,like 100 MB or 200 MB. ? But it?will give problem when i will transfer the large file say 1GB or 2 GB. because till the file writing?contents will be in the memory, so possible errors can come as out of memory or it may not be able to send the large file so socket error can also come. ? So is there any other way to transfer the large file, size i have mention above using HTTP/HTTPS. ? Please mention if i can do it by using some other protocol. ? Thanks and Regards, Deepak ? ? Looking for local information? Find it on Yahoo! Local http://in.local.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From noufal at gmail.com Thu Sep 10 19:35:49 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 10 Sep 2009 23:05:49 +0530 Subject: [BangPypers] How to send 1 GB Zip file to some remote machine using HTTP/HTTPS? In-Reply-To: <977253.41954.qm@web8408.mail.in.yahoo.com> References: <977253.41954.qm@web8408.mail.in.yahoo.com> Message-ID: <9963e56e0909101035v6733b8a1peeecf526aeeed597@mail.gmail.com> On Thu, Sep 10, 2009 at 11:01 PM, deepak gupta wrote: > > [..] > Please mention if i can do it by using some other protocol. > > [..] Perhaps you should consider something more tuned to handle file transfers like rsync or even just sftp/scp. Is there a reason you *have* to use HTTP? -- ~noufal http://nibrahim.net.in From dg288_mits at yahoo.co.in Thu Sep 10 19:46:59 2009 From: dg288_mits at yahoo.co.in (deepak gupta) Date: Thu, 10 Sep 2009 10:46:59 -0700 (PDT) Subject: [BangPypers] How to send 1 GB Zip file to some remote machine using HTTP/HTTPS? In-Reply-To: <9963e56e0909101035v6733b8a1peeecf526aeeed597@mail.gmail.com> Message-ID: <389728.49290.qm@web8408.mail.in.yahoo.com> Hi Noufal, ? Thanks for your quick reply. Actually at remote site we can not open the other ports except 443. thats why i am using HTTPS for this. I don't know exaxtly, how to use rsync or even just sftp/scp or how to create the listner for these. ? Thanks, Deepak ? --- On Thu, 10/9/09, Noufal Ibrahim wrote: From: Noufal Ibrahim Subject: Re: [BangPypers] How to send 1 GB Zip file to some remote machine using HTTP/HTTPS? To: "Bangalore Python Users Group - India" Date: Thursday, 10 September, 2009, 11:05 PM On Thu, Sep 10, 2009 at 11:01 PM, deepak gupta wrote: > > [..] > Please mention if i can do it by using some other protocol. > > [..] Perhaps you should consider something more tuned to handle file transfers like rsync or even just sftp/scp. Is there a reason you *have* to use HTTP? -- ~noufal http://nibrahim.net.in _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From noufal at gmail.com Thu Sep 10 19:49:48 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 10 Sep 2009 23:19:48 +0530 Subject: [BangPypers] How to send 1 GB Zip file to some remote machine using HTTP/HTTPS? In-Reply-To: <389728.49290.qm@web8408.mail.in.yahoo.com> References: <9963e56e0909101035v6733b8a1peeecf526aeeed597@mail.gmail.com> <389728.49290.qm@web8408.mail.in.yahoo.com> Message-ID: <9963e56e0909101049s3e4e89e1ne0ffbcd0927fe2a3@mail.gmail.com> On Thu, Sep 10, 2009 at 11:16 PM, deepak gupta wrote: > > Hi Noufal, > > Thanks for your quick reply. > Actually at remote site we can not open the other ports except 443. > thats why i am using HTTPS for this. > I don't know exaxtly, how to use rsync or even just sftp/scp or how to create the listner for these. Are your remote end servers written in Python? If not, you can setup servers on the remote end for rsync or ssh. From dg288_mits at yahoo.co.in Thu Sep 10 19:54:27 2009 From: dg288_mits at yahoo.co.in (deepak gupta) Date: Thu, 10 Sep 2009 10:54:27 -0700 (PDT) Subject: [BangPypers] How to send 1 GB Zip file to some remote machine using HTTP/HTTPS? In-Reply-To: <9963e56e0909101049s3e4e89e1ne0ffbcd0927fe2a3@mail.gmail.com> Message-ID: <408816.39378.qm@web8404.mail.in.yahoo.com> Yes it is return in python. --- On Thu, 10/9/09, Noufal Ibrahim wrote: From: Noufal Ibrahim Subject: Re: [BangPypers] How to send 1 GB Zip file to some remote machine using HTTP/HTTPS? To: "Bangalore Python Users Group - India" Date: Thursday, 10 September, 2009, 11:19 PM On Thu, Sep 10, 2009 at 11:16 PM, deepak gupta wrote: > > Hi Noufal, > > Thanks for your quick reply. > Actually at remote site we can not open the other ports except 443. > thats why i am using HTTPS for this. > I don't know exaxtly, how to use rsync or even just sftp/scp or how to create the listner for these. Are your remote end servers written in Python? If not, you can setup servers on the remote end for rsync or ssh. _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From noufal at gmail.com Thu Sep 10 20:20:48 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 10 Sep 2009 23:50:48 +0530 Subject: [BangPypers] How to send 1 GB Zip file to some remote machine using HTTP/HTTPS? In-Reply-To: <408816.39378.qm@web8404.mail.in.yahoo.com> References: <9963e56e0909101049s3e4e89e1ne0ffbcd0927fe2a3@mail.gmail.com> <408816.39378.qm@web8404.mail.in.yahoo.com> Message-ID: <9963e56e0909101120i3c8f95f6x5726f5ee49de78bb@mail.gmail.com> On Thu, Sep 10, 2009 at 11:24 PM, deepak gupta wrote: > > Yes it is return in python.[..] I expect it will be slow then. If you can install an rsync server on the remote end, it would be nice. Then you can just rsync the files over. If you can't do that, one option is to split your compressed file into pieces and transfer them over one by one and assemble them on the remote end. -- ~noufal http://nibrahim.net.in From sriramnrn at gmail.com Thu Sep 10 20:28:25 2009 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Thu, 10 Sep 2009 23:58:25 +0530 Subject: [BangPypers] How to send 1 GB Zip file to some remote machine using HTTP/HTTPS? In-Reply-To: <9963e56e0909101120i3c8f95f6x5726f5ee49de78bb@mail.gmail.com> References: <9963e56e0909101049s3e4e89e1ne0ffbcd0927fe2a3@mail.gmail.com> <408816.39378.qm@web8404.mail.in.yahoo.com> <9963e56e0909101120i3c8f95f6x5726f5ee49de78bb@mail.gmail.com> Message-ID: <49977f270909101128o3b9e419fw92277c65710ef73d@mail.gmail.com> On Thu, Sep 10, 2009 at 11:50 PM, Noufal Ibrahim wrote: > On Thu, Sep 10, 2009 at 11:24 PM, deepak gupta wrote: >> >> Yes it is return in python.[..] > > I expect it will be slow then. If you can install an rsync server on > the remote end, it would be nice. Then you can just rsync the files > over. +1. It's worth having rsync. Here's what you'd do the first time: rsync -W -t --progress --partial datafile.zip user at server:/export/home/user/data/datafile.zip What that does is: -W -> Just transfer, don't check for any existing file on the receiving side -t -> Use timestamps to compare and decide whether the file has even changed or not. --progress -> Display progress --partial -> Keep partially transferred files. The next time you want to transfer the same file, or in case you need to resume the transfer: rsync -t --progress --partial datafile.zip user at server:/export/home/user/data/datafile.zip Simply remove the -W command line argument. > > If you can't do that, one option is to split your compressed file into > pieces and transfer them over one by one and assemble them on the > remote end. > In such a case, remember to generate md5sums of the split parts, and then verify the checksums on the server side. > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Sriram From hiddenharmony at gmail.com Thu Sep 10 22:46:16 2009 From: hiddenharmony at gmail.com (Vivek Khurana) Date: Fri, 11 Sep 2009 02:16:16 +0530 Subject: [BangPypers] Facebook open source a python framework Message-ID: <91bea30d0909101346n19142c9ap8a038a3f1c3777f@mail.gmail.com> Hi! Face book open sourced Tornado, a python based framework which is the power horse for friend feed. Official news and details here http://developers.facebook.com/news.php?blog=1&story=301 regards Vivek -- The hidden harmony is better than the obvious!! From sridhar.ratna at gmail.com Fri Sep 11 07:21:42 2009 From: sridhar.ratna at gmail.com (srid) Date: Thu, 10 Sep 2009 22:21:42 -0700 Subject: [BangPypers] google app engine and python In-Reply-To: <3e3294b70909100915g4bb7fd4eu418b5a32176b4c14@mail.gmail.com> References: <86ac25a20909091914q39d7ea76t8507269d5fc43862@mail.gmail.com> <64160c70909100739j5bdefd0cs3c4c7b8572715ee@mail.gmail.com> <3e3294b70909100915g4bb7fd4eu418b5a32176b4c14@mail.gmail.com> Message-ID: <7c73a13a0909102221o48a390f7l58b277fa24e19ff0@mail.gmail.com> On Thu, Sep 10, 2009 at 9:15 AM, Pradeep Gowda wrote: > On Thu, Sep 10, 2009 at 10:39 AM, Abhishek Mishra wrote: >> Lets see what cool apps bangpypers come up with :) > > I have built a blogging engine: http://teh.appspot.com code: > http://github.com/btbytes/teh/tree > a "Djangosites.com" clone: http://www.zopesites.org code: > http://github.com/btbytes/gappsites/tree (which I used for my > PyOhio-2008 talk) > A fun, little iPhone Raffle app for IndyPy . > http:://rufflecat.appspot.com looks best on iphone only. code: > http://github.com/btbytes/rufflecat/tree Here's mine: http://weeklyreddit.appspot.com/ -srid From sridhar.ratna at gmail.com Fri Sep 11 07:24:27 2009 From: sridhar.ratna at gmail.com (srid) Date: Thu, 10 Sep 2009 22:24:27 -0700 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: References: Message-ID: <7c73a13a0909102224i7573adf8u865696c1c063e7b8@mail.gmail.com> >From Wikipedia: """ Objections to top-posting on newsgroups, as a rule, seem to come from persons who first went online in the earlier days of Usenet, and in communities that date to Usenet's early days. Until the mid-90s, top-posting was unknown and interleaved posting an obvious standard that all net.newcomers had to learn. Among the most vehement communities are those in the Usenet comp.lang hierarchy, especially comp.lang.c and comp.lang.c++. Top-posting is more tolerated on the alt hierarchy. Newer online participants, especially those with limited experience of Usenet, tend to be less sensitive to arguments about posting style. """ http://en.wikipedia.org/wiki/Topposting#Top-posting -srid On Thu, Sep 10, 2009 at 8:07 AM, S.Ramaswamy wrote: > "Top-posting complaints is the old timers trying to assert their power over > the newer generation who takes everything for granted." > > http://twitter.com/gvanrossum/status/2403974538 > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > From lawgon at au-kbc.org Fri Sep 11 07:30:41 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 11 Sep 2009 11:00:41 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <7c73a13a0909102224i7573adf8u865696c1c063e7b8@mail.gmail.com> References: <7c73a13a0909102224i7573adf8u865696c1c063e7b8@mail.gmail.com> Message-ID: <200909111100.41833.lawgon@au-kbc.org> On Friday 11 Sep 2009 10:54:27 am srid wrote: > >From Wikipedia: > > """ > Objections to top-posting on newsgroups, as a rule, seem to come from > persons who first went online in the earlier days of Usenet, and in > communities that date to Usenet's early days. Until the mid-90s, > top-posting was unknown and interleaved posting an obvious standard > that all net.newcomers had to learn. Among the most vehement > communities are those in the Usenet comp.lang hierarchy, especially > comp.lang.c and comp.lang.c++. Top-posting is more tolerated on the > alt hierarchy. Newer online participants, especially those with > limited experience of Usenet, tend to be less sensitive to arguments > about posting style. > """ BS -- regards Kenneth Gonsalves Associate NRC-FOSS http://nrcfosshelpline.in/web/ From sridhar.ratna at gmail.com Fri Sep 11 07:26:55 2009 From: sridhar.ratna at gmail.com (srid) Date: Thu, 10 Sep 2009 22:26:55 -0700 Subject: [BangPypers] HTML Parsing in python In-Reply-To: References: <9a1343d10909100159v24192079q303e2ff9fdef211f@mail.gmail.com> Message-ID: <7c73a13a0909102226ge6fe21nac2c30bab684cbde@mail.gmail.com> On Thu, Sep 10, 2009 at 6:37 AM, Baishampayan Ghose BeautifulSoup was OK, but now it's broken. Use lxml, it's very good. > > http://codespeak.net/lxml/ IanB has an interesting blog post on using lxml to parse HTML: http://blog.ianbicking.org/2008/12/10/lxml-an-underappreciated-web-scraping-library/ -srid From noufal at gmail.com Fri Sep 11 07:39:52 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 11 Sep 2009 11:09:52 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <200909111100.41833.lawgon@au-kbc.org> References: <7c73a13a0909102224i7573adf8u865696c1c063e7b8@mail.gmail.com> <200909111100.41833.lawgon@au-kbc.org> Message-ID: <9963e56e0909102239v5f8bcb38uc42ebeb5b83704b6@mail.gmail.com> Why? On Fri, Sep 11, 2009 at 11:00 AM, Kenneth Gonsalves wrote: > On Friday 11 Sep 2009 10:54:27 am srid wrote: >> >From Wikipedia: >> >> """ >> Objections to top-posting on newsgroups, as a rule, seem to come from >> persons who first went online in the earlier days of Usenet, and in >> communities that date to Usenet's early days. Until the mid-90s, >> top-posting was unknown and interleaved posting an obvious standard >> that all net.newcomers had to learn. Among the most vehement >> communities are those in the Usenet comp.lang hierarchy, especially >> comp.lang.c and comp.lang.c++. Top-posting is more tolerated on the >> alt hierarchy. Newer online participants, especially those with >> limited experience of Usenet, tend to be less sensitive to arguments >> about posting style. >> """ > > BS > -- > regards > Kenneth Gonsalves > Associate > NRC-FOSS > http://nrcfosshelpline.in/web/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in From lawgon at au-kbc.org Fri Sep 11 08:22:55 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 11 Sep 2009 11:52:55 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <9963e56e0909102239v5f8bcb38uc42ebeb5b83704b6@mail.gmail.com> References: <200909111100.41833.lawgon@au-kbc.org> <9963e56e0909102239v5f8bcb38uc42ebeb5b83704b6@mail.gmail.com> Message-ID: <200909111152.55607.lawgon@au-kbc.org> On Friday 11 Sep 2009 11:09:52 am Noufal Ibrahim wrote: > Why? do you mean why does wikipedia contains BS? or why do I think that the quotation is BS? -- regards Kenneth Gonsalves Associate NRC-FOSS http://nrcfosshelpline.in/web/ From noufal at gmail.com Fri Sep 11 08:51:48 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 11 Sep 2009 12:21:48 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <200909111152.55607.lawgon@au-kbc.org> References: <200909111100.41833.lawgon@au-kbc.org> <9963e56e0909102239v5f8bcb38uc42ebeb5b83704b6@mail.gmail.com> <200909111152.55607.lawgon@au-kbc.org> Message-ID: <9963e56e0909102351v58e91b37vb8dc3ddd2639bd91@mail.gmail.com> Why do you consider the quotation to be BS? I assume from your first question that you *do* consider it to be BS. On Fri, Sep 11, 2009 at 11:52 AM, Kenneth Gonsalves wrote: > On Friday 11 Sep 2009 11:09:52 am Noufal Ibrahim wrote: >> Why? > > do you mean why does wikipedia contains BS? or why do I think that the > quotation is BS? > -- > regards > Kenneth Gonsalves > Associate > NRC-FOSS > http://nrcfosshelpline.in/web/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in From lawgon at au-kbc.org Fri Sep 11 09:05:30 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 11 Sep 2009 12:35:30 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <9963e56e0909102351v58e91b37vb8dc3ddd2639bd91@mail.gmail.com> References: <200909111152.55607.lawgon@au-kbc.org> <9963e56e0909102351v58e91b37vb8dc3ddd2639bd91@mail.gmail.com> Message-ID: <200909111235.30217.lawgon@au-kbc.org> On Friday 11 Sep 2009 12:21:48 pm Noufal Ibrahim wrote: > Why do you consider the quotation to be BS? I assume from your first > question that you do consider it to be BS. yes I do - but since your top post has removed the context I will have to go searching in the archives for it - so will reply separately in another part of the thread ;-) -- regards Kenneth Gonsalves Associate NRC-FOSS http://nrcfosshelpline.in/web/ From lawgon at au-kbc.org Fri Sep 11 09:54:34 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 11 Sep 2009 13:24:34 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting Message-ID: <200909111324.34689.lawgon@au-kbc.org> On Friday 11 Sep 2009 11:00:41 am Kenneth Gonsalves wrote: > On Friday 11 Sep 2009 10:54:27 am srid wrote: > > >From Wikipedia: > > > > """ > > Objections to top-posting on newsgroups, as a rule, seem to come from > > persons who first went online in the earlier days of Usenet, and in > > communities that date to Usenet's early days. Until the mid-90s, > > top-posting was unknown and interleaved posting an obvious standard > > that all net.newcomers had to learn. Among the most vehement > > communities are those in the Usenet comp.lang hierarchy, especially > > comp.lang.c and comp.lang.c++. Top-posting is more tolerated on the > > alt hierarchy. Newer online participants, especially those with > > limited experience of Usenet, tend to be less sensitive to arguments > > about posting style. > > """ > > BS why? in the first place I am extremely sensitive to top posting, but have never used usenet or been in a C forum. I only learned about interleaved posting in about 2002 or so. And the vast majority of people online now have similar experience to mine. And also the vast majority of top posters do so not out of choice, but because they are not aware of the benefits of inter leaved posting. And if they are gently reminded of this, they take to it like ducks to water. Therefore 'Newer online participants, especially those with limited experience of Usenet, tend to be less sensitive to arguments about posting style.' is sheer BS. The majority of people online are just as sensitive to arguments about good manners as the old timers. The only thing is that they are ignorant. another reason is that applications like gmail appear to be extremely clever in hiding unnecessary material so people are not aware of the horrible mess they are making of the archives by top posting. btw, I am not talking of the general non-IT mailing lists. -- regards Kenneth Gonsalves Associate NRC-FOSS http://nrcfosshelpline.in/web/ From steve at lonetwin.net Fri Sep 11 10:14:50 2009 From: steve at lonetwin.net (steve) Date: Fri, 11 Sep 2009 13:44:50 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <200909111324.34689.lawgon@au-kbc.org> References: <200909111324.34689.lawgon@au-kbc.org> Message-ID: <4AAA06FA.9000305@lonetwin.net> On 09/11/2009 01:24 PM, Kenneth Gonsalves wrote: > On Friday 11 Sep 2009 11:00:41 am Kenneth Gonsalves wrote: >> On Friday 11 Sep 2009 10:54:27 am srid wrote: >> > > From Wikipedia: >> > >> > """ >> > Objections to top-posting on newsgroups, as a rule, seem to come from >> > persons who first went online in the earlier days of Usenet, and in >> > communities that date to Usenet's early days. Until the mid-90s, >> > top-posting was unknown and interleaved posting an obvious standard >> > that all net.newcomers had to learn. Among the most vehement >> > communities are those in the Usenet comp.lang hierarchy, especially >> > comp.lang.c and comp.lang.c++. Top-posting is more tolerated on the >> > alt hierarchy. Newer online participants, especially those with >> > limited experience of Usenet, tend to be less sensitive to arguments >> > about posting style. >> > """ >> >> BS > > why? in the first place I am extremely sensitive to top posting, but have never > used usenet or been in a C forum. I only learned about interleaved posting in > [...snip...] > Therefore 'Newer online participants, especially those with > limited experience of Usenet, tend to be less sensitive to arguments about > posting style.' is sheer BS. The majority of people online are just as > sensitive to arguments about good manners as the old timers. The only thing is > that they are ignorant. > [...snip...] > btw, I am not talking of the general non-IT mailing lists. Just to be a pedant, I should point out that the quoted paragraph clearly states that "Objections to top-posting on /newsgroups/..." The entire paragraph is in the context of newsgroups (and Usenet in particular). Also, about the original tweet -- That is possibly just an off hand remark (directed at one particular person) by a guy, just the fact that the guy is gvr and is saying something unexpected when taken out of context is not reason enough to post it to a python mailing list, IMHO. Doing that is plain stupid but unfortunately it happens all the time with twitter. This is exactly what I hate about twitter -- there is no context. cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From lawgon at au-kbc.org Fri Sep 11 10:21:56 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 11 Sep 2009 13:51:56 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <4AAA06FA.9000305@lonetwin.net> References: <200909111324.34689.lawgon@au-kbc.org> <4AAA06FA.9000305@lonetwin.net> Message-ID: <200909111351.56235.lawgon@au-kbc.org> On Friday 11 Sep 2009 1:44:50 pm steve wrote: > Just to be a pedant, I should point out that the quoted paragraph clearly > states that "Objections to top-posting on /newsgroups/..." > > The entire paragraph is in the context of newsgroups (and Usenet in > particular). who knows what the context is - the OP did not provide the link > > Also, about the original tweet -- That is possibly just an off hand remark > (directed at one particular person) by a guy, just the fact that the guy is > gvr and is saying something unexpected when taken out of context is not > reason enough to post it to a python mailing list, IMHO. Doing that is > plain stupid but unfortunately it happens all the time with twitter. This > is exactly what I hate about twitter -- there is no context. does GVR top post? -- regards Kenneth Gonsalves Associate NRC-FOSS http://nrcfosshelpline.in/web/ From noufal at gmail.com Fri Sep 11 10:32:19 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 11 Sep 2009 14:02:19 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <200909111324.34689.lawgon@au-kbc.org> References: <200909111324.34689.lawgon@au-kbc.org> Message-ID: <9963e56e0909110132w31901af6oaa3a0c5aca385a8b@mail.gmail.com> On Fri, Sep 11, 2009 at 1:24 PM, Kenneth Gonsalves wrote: [..] > why? in the first place I am extremely sensitive to top posting, [..] I noticed. You need to chill a little. :) -- ~noufal http://nibrahim.net.in From lawgon at au-kbc.org Fri Sep 11 10:34:38 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 11 Sep 2009 14:04:38 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <9963e56e0909110132w31901af6oaa3a0c5aca385a8b@mail.gmail.com> References: <200909111324.34689.lawgon@au-kbc.org> <9963e56e0909110132w31901af6oaa3a0c5aca385a8b@mail.gmail.com> Message-ID: <200909111404.39170.lawgon@au-kbc.org> On Friday 11 Sep 2009 2:02:19 pm Noufal Ibrahim wrote: > On Fri, Sep 11, 2009 at 1:24 PM, Kenneth Gonsalves > wrote: [..] > > > why? in the first place I am extremely sensitive to top posting, > > [..] > > I noticed. You need to chill a little. :) AFAIK this list does not enforce the 'no top post rule' - so I do not flame any one for top posting here. I used to long ago, but now I just ignore it. -- regards Kenneth Gonsalves Associate NRC-FOSS http://nrcfosshelpline.in/web/ From b.ghose at gmail.com Fri Sep 11 10:42:50 2009 From: b.ghose at gmail.com (Baishampayan Ghose) Date: Fri, 11 Sep 2009 14:12:50 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <200909111324.34689.lawgon@au-kbc.org> References: <200909111324.34689.lawgon@au-kbc.org> Message-ID: > why? in the first place I am extremely sensitive to top posting, but have never > used usenet or been in a C forum. I only learned about interleaved posting in > about 2002 or so. And the vast majority of people online now have similar > experience to mine. And also the vast majority of top posters do so not out of Just because you came late does not mean you can't have the same sensibilities of the Usenet era. In short, many people who joined the mailing list bandwagon recently have learnt the right etiquette from others and by noticing how inline, contextual postings are much better than top posting. Others, unfortunately fail to accept it; they are simply too lazy to be courteous to others. I would blame the webmail clients for that though. They are simply not smart enough to put the cursor in the right place (which is below the quote). Thunderbird does that nicely. Regards, BG -- Baishampayan Ghose b.ghose at gmail.com From srsy70 at gmail.com Fri Sep 11 11:05:58 2009 From: srsy70 at gmail.com (S.Ramaswamy) Date: Fri, 11 Sep 2009 14:35:58 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <200909111351.56235.lawgon@au-kbc.org> References: <200909111324.34689.lawgon@au-kbc.org> <4AAA06FA.9000305@lonetwin.net> <200909111351.56235.lawgon@au-kbc.org> Message-ID: > > who knows what the context is - the OP did not provide the link > > > > The "in reply to" link in the tweet provides the context. I am using the Twitter web ui, not sure how it works with various Twitter clients. Context: ================================= http://twitter.com/jtauber/status/2403953604 Just got chastised for top-posting. I've never really understood the issue tbh (especially when giving one word answer to Q in subject) jtauber James Tauber ================================= Ramaswamy -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhananjay.nene at gmail.com Fri Sep 11 11:11:48 2009 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Fri, 11 Sep 2009 14:41:48 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: References: <200909111324.34689.lawgon@au-kbc.org> Message-ID: Comments inline On Fri, Sep 11, 2009 at 2:12 PM, Baishampayan Ghose wrote: > > why? in the first place I am extremely sensitive to top posting, but have > never > > used usenet or been in a C forum. I only learned about interleaved > posting in > > about 2002 or so. And the vast majority of people online now have similar > > experience to mine. And also the vast majority of top posters do so not > out of > > Just because you came late does not mean you can't have the same > sensibilities of the Usenet era. In short, many people who joined the > mailing list bandwagon recently have learnt the right etiquette from > others and by noticing how inline, contextual postings are much better > than top posting. > I haven't since a convincing argument either way on the topic why should newer folks adopt or not adopt a Usenet sensibility. IMO the usenet "pattern" is simply fighting a losing battle (one I gave up ages ago before shifting to top posting). > > Others, unfortunately fail to accept it; they are simply too lazy to > be courteous to others. I would blame the webmail clients for that > though. They are simply not smart enough to put the cursor in the > right place (which is below the quote). Thunderbird does that nicely. > Bottom posting is exactly that - a courtesy. But it is also a courtesy which is increasingly hard to offer as most people use top posting. One can even use a greasemonkey script to bottom post in gmail. But the issue is that most people get unnerved by bottom posting - its simply not consistent with their expectations. IMO, at the end of the day it really doesn't matter and probably the best thing is to simply get comfortable with both and move beyond the issue. On a similar note, I continue to use British spellings but really don't get surprised or disturbed when the people around me increasingly use American spellings or pronunciation. I do not insist on people using British spellings when the email me stuff (isn't that the "real" correct english ?), but do not switch to American spellings since I do not feel comfortable using them. I suspect courtesy really extends both ways - and I choose to top post by default (to be courteous to the maximum number of readers) and also be ambivalent to the top or bottom posting - I will read an interesting message either ways and not worry about whether the sender was courteous to me. The simple reason is that the message matters to me and as I reader, at least I do not have issues with the sender formatting it the way he or she chooses it - it really is largely irrelevant. -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene -------------- next part -------------- An HTML attachment was scrubbed... URL: From noufal at gmail.com Fri Sep 11 11:17:09 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 11 Sep 2009 14:47:09 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: References: <200909111324.34689.lawgon@au-kbc.org> Message-ID: <9963e56e0909110217g422670c5h53708b60c28b432a@mail.gmail.com> On Fri, Sep 11, 2009 at 2:41 PM, Dhananjay Nene wrote: [..] > IMO, at the end of the day it really doesn't matter and probably the best > thing is to simply get comfortable with both and move beyond the issue. On a > similar note, I continue to use British spellings but really don't get > surprised or disturbed when the people around me increasingly use American > spellings or pronunciation. I do not insist on people using British > spellings when the email me stuff (isn't that the "real" correct english ?), > but do not switch to American spellings since I do not feel comfortable > using them. I don't think you can really get 'comfortable' with both. Busting a vein when things don't confirm is another matter. It's important to be consistent though. It's quite annoying in a top posting thread to suddenly see the whole message trimmed. -- ~noufal http://nibrahim.net.in From noufal at gmail.com Fri Sep 11 10:51:48 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 11 Sep 2009 14:21:48 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: References: <200909111324.34689.lawgon@au-kbc.org> Message-ID: <9963e56e0909110151v8567a8axc3244e83064cdaee@mail.gmail.com> On Fri, Sep 11, 2009 at 2:12 PM, Baishampayan Ghose wrote: [..] > Others, unfortunately fail to accept it; they are simply too lazy to > be courteous to others. I would blame the webmail clients for that > though. They are simply not smart enough to put the cursor in the > right place (which is below the quote). Thunderbird does that nicely. [..] Outlook comes to mind here. Most offices actively *encourage* people to top post and those who don't get chastised. I don't know if Outlook threads properly either. It's nice to see a 'thread' by those kind of people where the size of mail increases with each message since they requote the whole thing. -- ~noufal http://nibrahim.net.in From lawgon at au-kbc.org Fri Sep 11 11:20:14 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 11 Sep 2009 14:50:14 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: References: <200909111324.34689.lawgon@au-kbc.org> Message-ID: <200909111450.14571.lawgon@au-kbc.org> On Friday 11 Sep 2009 2:41:48 pm Dhananjay Nene wrote: > I haven't since a convincing argument either way on the topic why should > newer folks > adopt or not adopt a Usenet sensibility. IMO the usenet "pattern" is simply > fighting > a losing battle (one I gave up ages ago before shifting to top posting). this is interesting. I never knew there were *any* arguments for top posting - apart from the default 'it is the easiest way of doing things'. Could you point out these arguments? > > > Others, unfortunately fail to accept it; they are simply too lazy to > > be courteous to others. I would blame the webmail clients for that > > though. They are simply not smart enough to put the cursor in the > > right place (which is below the quote). Thunderbird does that nicely. > > Bottom posting is exactly that - a courtesy. But it is also a courtesy > which is increasingly hard to offer as most people use top posting. bottom posting is worse than top posting - interleaved posting in context is what we are talking about > I suspect courtesy really extends both ways - and I choose to top post by > default (to be courteous to the maximum number of readers) and also be > ambivalent to the top or bottom posting - I will read an interesting > message either ways and not worry about whether the sender was courteous to > me. The simple reason is that the message matters to me and as I reader, at > least I do not have issues with the sender formatting it the way he or she > chooses it - it really is largely irrelevant. anyway thanks for interleaving your posts here - I personally appreciate the trouble you have taken -- regards Kenneth Gonsalves Associate NRC-FOSS http://nrcfosshelpline.in/web/ From lawgon at au-kbc.org Fri Sep 11 11:23:51 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 11 Sep 2009 14:53:51 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <9963e56e0909110151v8567a8axc3244e83064cdaee@mail.gmail.com> References: <200909111324.34689.lawgon@au-kbc.org> <9963e56e0909110151v8567a8axc3244e83064cdaee@mail.gmail.com> Message-ID: <200909111453.51438.lawgon@au-kbc.org> On Friday 11 Sep 2009 2:21:48 pm Noufal Ibrahim wrote: > On Fri, Sep 11, 2009 at 2:12 PM, Baishampayan Ghose > wrote: [..] > > > Others, unfortunately fail to accept it; they are simply too lazy to > > be courteous to others. I would blame the webmail clients for that > > though. They are simply not smart enough to put the cursor in the > > right place (which is below the quote). Thunderbird does that nicely. > > [..] > > Outlook comes to mind here. > Most offices actively encourage people to top post and those who > don't get chastised. I don't know if Outlook threads properly either. > top posting with full context below is the best form in all mail exchanges where the mails are not archived - interleaved posting in a mail exchange where 2 or more people are participating quickly winds up as an ungodly mess. > It's nice to see a 'thread' by those kind of people where the size of > mail increases with each message since they requote the whole thing. yes - a 50 message thread where the 1st message is repeated 49 times, the second 48 times and so on. This adds to the garbage on the internet - especially when the mailing list has 10000 members and contributes to global warming. -- regards Kenneth Gonsalves Associate NRC-FOSS http://nrcfosshelpline.in/web/ From dhananjay.nene at gmail.com Fri Sep 11 11:39:27 2009 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Fri, 11 Sep 2009 15:09:27 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <200909111450.14571.lawgon@au-kbc.org> References: <200909111324.34689.lawgon@au-kbc.org> <200909111450.14571.lawgon@au-kbc.org> Message-ID: Kenneth, Comments inline, On Fri, Sep 11, 2009 at 2:50 PM, Kenneth Gonsalves wrote: > On Friday 11 Sep 2009 2:41:48 pm Dhananjay Nene wrote: > > I haven't since a convincing argument either way on the topic why should > > newer folks > > adopt or not adopt a Usenet sensibility. IMO the usenet "pattern" is > simply > > fighting > > a losing battle (one I gave up ages ago before shifting to top posting). > > this is interesting. I never knew there were *any* arguments for top > posting - > apart from the default 'it is the easiest way of doing things'. Could you > point out these arguments? > Mails get used to communicate very diverse levels of detail. For a thread of short bursts (typically useful for managing tasks) - top posting is convenient since in most cases, most people are already conversant with the context and can reader the sender's thought immediately without moving their eyes down any further or moving the mouse scroll button any more than the bare minimum. For non-in-depth arguments (basically quick and rapid communication) imo bottom posting just sucks while interleaved posting is simply quite unnecessary. While bottom/interleaved posting has sound arguments, I think top posting also has some very good arguments for it as well. Just that I haven't seen a convincing argument for any one of them. > > > > > Others, unfortunately fail to accept it; they are simply too lazy to > > > be courteous to others. I would blame the webmail clients for that > > > though. They are simply not smart enough to put the cursor in the > > > right place (which is below the quote). Thunderbird does that nicely. > > > > Bottom posting is exactly that - a courtesy. But it is also a courtesy > > which is increasingly hard to offer as most people use top posting. > > bottom posting is worse than top posting - interleaved posting in context > is > what we are talking about > I used to use interleaved posting intensely. But thats really only when you get into an indepth argument on the merits or demerits of an issue where the arguments continuation of context is very relevant. I continue to use interleaved posting but always begin with a "Comments inline" phrase at the top (for all those conversant with top posters). But quite frankly I use interleaved posting in less than 1 out of every 25 mails I send. Probably speaks volumes about the intellectual quotient and content of the mails I send :). Most of my mails are 2-5 liners and they are all top posted since it allows the reader who is familiar with the context quickly (they can always read further down if unfamiliar with the context - which is a relatively infrequent occurrence). > I suspect courtesy really extends both ways - and I choose to top post by > > default (to be courteous to the maximum number of readers) and also be > > ambivalent to the top or bottom posting - I will read an interesting > > message either ways and not worry about whether the sender was courteous > to > > me. The simple reason is that the message matters to me and as I reader, > at > > least I do not have issues with the sender formatting it the way he or > she > > chooses it - it really is largely irrelevant. > > anyway thanks for interleaving your posts here - I personally appreciate > the > trouble you have taken > > No trouble .. thats what I used to do by default throughout the 90s. :) > -- > regards > Kenneth Gonsalves > Associate > NRC-FOSS > http://nrcfosshelpline.in/web/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhananjay.nene at gmail.com Fri Sep 11 11:41:24 2009 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Fri, 11 Sep 2009 15:11:24 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: References: <200909111324.34689.lawgon@au-kbc.org> <200909111450.14571.lawgon@au-kbc.org> Message-ID: Correction inline (sorry for one more post just for that) On Fri, Sep 11, 2009 at 3:09 PM, Dhananjay Nene wrote: > Kenneth, > > Comments inline, > > On Fri, Sep 11, 2009 at 2:50 PM, Kenneth Gonsalves wrote: > >> On Friday 11 Sep 2009 2:41:48 pm Dhananjay Nene wrote: >> > I haven't since a convincing argument either way on the topic why should >> > newer folks >> > adopt or not adopt a Usenet sensibility. IMO the usenet "pattern" is >> simply >> > fighting >> > a losing battle (one I gave up ages ago before shifting to top posting). >> >> this is interesting. I never knew there were *any* arguments for top >> posting - >> apart from the default 'it is the easiest way of doing things'. Could you >> point out these arguments? >> > > Mails get used to communicate very diverse levels of detail. For a thread > of short bursts (typically useful for managing tasks) - top posting is > convenient since in most cases, most people are already conversant with the > context and can reader the sender's thought immediately without moving their > eyes down any further or moving the mouse scroll button any more than the > bare minimum. For non-in-depth arguments (basically quick and rapid > communication) imo bottom posting just sucks while interleaved posting is > simply quite unnecessary. While bottom/interleaved posting has sound > arguments, I think top posting also has some very good arguments for it as > well. Just that I haven't seen a convincing argument for any one of them. > > >> > >> > > Others, unfortunately fail to accept it; they are simply too lazy to >> > > be courteous to others. I would blame the webmail clients for that >> > > though. They are simply not smart enough to put the cursor in the >> > > right place (which is below the quote). Thunderbird does that nicely. >> > >> > Bottom posting is exactly that - a courtesy. But it is also a courtesy >> > which is increasingly hard to offer as most people use top posting. >> >> bottom posting is worse than top posting - interleaved posting in context >> is >> what we are talking about >> > > I used to use interleaved posting intensely. But thats really only when you > get into an indepth argument on the merits or demerits of an issue where the > arguments continuation of context is very relevant. I continue to use > interleaved posting but always begin with a "Comments inline" phrase at the > top (for all those conversant with top posters). But quite frankly I use > interleaved posting in less than 1 out of every 25 mails I send. Probably > speaks volumes about the intellectual quotient and content of the mails I > send :). Most of my mails are 2-5 liners and they are all top posted since > it allows the reader who is familiar with the context quickly (they can > always read further down if unfamiliar with the context - which is a > relatively infrequent occurrence). > Most of my mails are 2-5 liners and they are all top posted since it allows the reader who is familiar with the context quickly scan and comprehend my response and move on (they can always read further down if unfamiliar with the context - which is a relatively infrequent occurrence). > > > I suspect courtesy really extends both ways - and I choose to top post by >> > default (to be courteous to the maximum number of readers) and also be >> > ambivalent to the top or bottom posting - I will read an interesting >> > message either ways and not worry about whether the sender was courteous >> to >> > me. The simple reason is that the message matters to me and as I reader, >> at >> > least I do not have issues with the sender formatting it the way he or >> she >> > chooses it - it really is largely irrelevant. >> >> anyway thanks for interleaving your posts here - I personally appreciate >> the >> trouble you have taken >> >> No trouble .. thats what I used to do by default throughout the 90s. :) > >> -- >> regards >> Kenneth Gonsalves >> Associate >> NRC-FOSS >> http://nrcfosshelpline.in/web/ >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > -------------------------------------------------------- > blog: http://blog.dhananjaynene.com > twitter: http://twitter.com/dnene > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhananjay.nene at gmail.com Fri Sep 11 12:05:32 2009 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Fri, 11 Sep 2009 15:35:32 +0530 Subject: [BangPypers] Recommendation of hotels nr Pycon event Message-ID: Just did my travel reservations for travelling to banglore for Pycon. Need recommendations on hotels that are relatively near the event premises (its in IISc right ?). Preferably looking for something less than 3k per night (though I am told such a price category no longer exists in Bangalore hotels). Would be grateful for any recommendations. -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramdas at developeriq.com Fri Sep 11 12:14:40 2009 From: ramdas at developeriq.com (Ramdas S) Date: Fri, 11 Sep 2009 15:44:40 +0530 Subject: [BangPypers] Recommendation of hotels nr Pycon event In-Reply-To: References: Message-ID: <6e38f9f00909110314m8ff6fd5l294b330a3f5b1241@mail.gmail.com> There are quite a few service apartments in and around the place, which should be within the budget. I think that'll be comfortable for you too.... On Fri, Sep 11, 2009 at 3:35 PM, Dhananjay Nene wrote: > Just did my travel reservations for travelling to banglore for Pycon. Need > recommendations on hotels that are relatively near the event premises (its > in IISc right ?). Preferably looking for something less than 3k per night > (though I am told such a price category no longer exists in Bangalore > hotels). Would be grateful for any recommendations. > > -- > -------------------------------------------------------- > blog: http://blog.dhananjaynene.com > twitter: http://twitter.com/dnene > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Ramdas S +91 9342 583 065 -------------- next part -------------- An HTML attachment was scrubbed... URL: From noufal at gmail.com Fri Sep 11 12:33:37 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 11 Sep 2009 16:03:37 +0530 Subject: [BangPypers] Recommendation of hotels nr Pycon event In-Reply-To: References: Message-ID: <9963e56e0909110333o55d752d4ue6b4be1fe3b360ab@mail.gmail.com> On Fri, Sep 11, 2009 at 3:35 PM, Dhananjay Nene wrote: > Just did my travel reservations for travelling to banglore for Pycon. Need > recommendations on hotels that are relatively near the event premises (its > in IISc right ?). Preferably looking for something less than 3k per night > (though I am told such a price category no longer exists in Bangalore > hotels). Would be grateful for any recommendations. We have a page on the site for accommodations but it's user contributed and not very detailed. Please take a look. http://wiki.python.org/moin/PyConIndiaAccommodation -- ~noufal http://nibrahim.net.in From dhananjay.nene at gmail.com Fri Sep 11 12:36:12 2009 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Fri, 11 Sep 2009 16:06:12 +0530 Subject: [BangPypers] Recommendation of hotels nr Pycon event In-Reply-To: <9963e56e0909110333o55d752d4ue6b4be1fe3b360ab@mail.gmail.com> References: <9963e56e0909110333o55d752d4ue6b4be1fe3b360ab@mail.gmail.com> Message-ID: Noufal, Thanks - yes that was a page I did look at since it was posted in one of the eariler threads. and also looked at YHAI - its all booked through the end of the month. Dhananjay On Fri, Sep 11, 2009 at 4:03 PM, Noufal Ibrahim wrote: > On Fri, Sep 11, 2009 at 3:35 PM, Dhananjay Nene > wrote: > > Just did my travel reservations for travelling to banglore for Pycon. > Need > > recommendations on hotels that are relatively near the event premises > (its > > in IISc right ?). Preferably looking for something less than 3k per night > > (though I am told such a price category no longer exists in Bangalore > > hotels). Would be grateful for any recommendations. > > We have a page on the site for accommodations but it's user > contributed and not very detailed. Please take a look. > > http://wiki.python.org/moin/PyConIndiaAccommodation > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene -------------- next part -------------- An HTML attachment was scrubbed... URL: From ideamonk at gmail.com Fri Sep 11 13:30:48 2009 From: ideamonk at gmail.com (Abhishek Mishra) Date: Fri, 11 Sep 2009 17:00:48 +0530 Subject: [BangPypers] google app engine and python In-Reply-To: <7c73a13a0909102221o48a390f7l58b277fa24e19ff0@mail.gmail.com> References: <86ac25a20909091914q39d7ea76t8507269d5fc43862@mail.gmail.com> <64160c70909100739j5bdefd0cs3c4c7b8572715ee@mail.gmail.com> <3e3294b70909100915g4bb7fd4eu418b5a32176b4c14@mail.gmail.com> <7c73a13a0909102221o48a390f7l58b277fa24e19ff0@mail.gmail.com> Message-ID: <64160c70909110430v10dc3aeya6a5d4a850220869@mail.gmail.com> Here is another one from me - http://web2hunter.appspot.com/ It generates web2.0 domain names which are actually available to be registered :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssquery at gmail.com Fri Sep 11 13:40:49 2009 From: ssquery at gmail.com (sudhakar s) Date: Fri, 11 Sep 2009 17:10:49 +0530 Subject: [BangPypers] webservice Message-ID: <1528d2590909110440w49e23766l3f25791b99ca2fa9@mail.gmail.com> HI, Can any one suggest me how to create a simple web service. i heared ZSI but i was getting error when i import SOAPpy , i was unable to install SOAPpy on my mac. with regards S Sudhakar. -------------- next part -------------- An HTML attachment was scrubbed... URL: From anandology at gmail.com Fri Sep 11 13:42:18 2009 From: anandology at gmail.com (Anand Chitipothu) Date: Fri, 11 Sep 2009 17:12:18 +0530 Subject: [BangPypers] webservice In-Reply-To: <1528d2590909110440w49e23766l3f25791b99ca2fa9@mail.gmail.com> References: <1528d2590909110440w49e23766l3f25791b99ca2fa9@mail.gmail.com> Message-ID: <41139fcb0909110442l71c4ee1dg959c486bee85ef07@mail.gmail.com> > ?? Can any one suggest me how to create a simple web service. Doing what? From dhananjay.nene at gmail.com Fri Sep 11 15:51:08 2009 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Fri, 11 Sep 2009 19:21:08 +0530 Subject: [BangPypers] Friendfeed's web server framework open sourced Message-ID: Friendfeed's web server framework has been open sourced. http://bret.appspot.com/entry/tornado-web-server One of the exciting things about it (that I look forward to testing it out) is the fact that mod_wsgi never really seemed like a good gateway standard for event driven web servers such as nginx. While I am not sure, I do hope that this framework allows the capability to combine tornado with nginx to achieve concurrent client support substantially in excess of what apache + mod_wsgi can achieve and with much lesser resource utilisation. -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene , http://twitter.com/_pythonic -------------- next part -------------- An HTML attachment was scrubbed... URL: From anandology at gmail.com Fri Sep 11 16:27:15 2009 From: anandology at gmail.com (Anand Chitipothu) Date: Fri, 11 Sep 2009 19:57:15 +0530 Subject: [BangPypers] Friendfeed's web server framework open sourced In-Reply-To: References: Message-ID: <41139fcb0909110727h74a1590ai9f6edfe07d6b051a@mail.gmail.com> 2009/9/11 Dhananjay Nene : > Friendfeed's web server framework has been open sourced. > > http://bret.appspot.com/entry/tornado-web-server > > One of the exciting things about it (that I look forward to testing it out) > is the fact that mod_wsgi never really seemed like a good gateway standard > for event driven web servers such as nginx. While I am not sure, I do hope > that this framework allows the capability to combine tornado with nginx to > achieve concurrent client support substantially in excess of what apache + > mod_wsgi can achieve and with much lesser resource utilisation. I managed to make tornado web server work with web.py applications. http://github.com/anandology/sandbox/blob/master/webtornado.py It can be used to run any wsgi app using tornado http server. Anand From dhananjay.nene at gmail.com Fri Sep 11 16:57:12 2009 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Fri, 11 Sep 2009 20:27:12 +0530 Subject: [BangPypers] Friendfeed's web server framework open sourced In-Reply-To: <41139fcb0909110727h74a1590ai9f6edfe07d6b051a@mail.gmail.com> References: <41139fcb0909110727h74a1590ai9f6edfe07d6b051a@mail.gmail.com> Message-ID: I am curious about the objective .. to the best of my knowledge wsgi is essentially blocking (unless my understanding is incorrect), whereas tornado is primarily non-blocking. So would you see any specific advantages of deploying a wsgi app with tornado ? On Fri, Sep 11, 2009 at 7:57 PM, Anand Chitipothu wrote: > 2009/9/11 Dhananjay Nene : > > Friendfeed's web server framework has been open sourced. > > > > http://bret.appspot.com/entry/tornado-web-server > > > > One of the exciting things about it (that I look forward to testing it > out) > > is the fact that mod_wsgi never really seemed like a good gateway > standard > > for event driven web servers such as nginx. While I am not sure, I do > hope > > that this framework allows the capability to combine tornado with nginx > to > > achieve concurrent client support substantially in excess of what apache > + > > mod_wsgi can achieve and with much lesser resource utilisation. > > I managed to make tornado web server work with web.py applications. > > http://github.com/anandology/sandbox/blob/master/webtornado.py > > It can be used to run any wsgi app using tornado http server. > > Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene http://twitter.com/_pythonic -------------- next part -------------- An HTML attachment was scrubbed... URL: From pradeep at btbytes.com Fri Sep 11 17:33:19 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Fri, 11 Sep 2009 11:33:19 -0400 Subject: [BangPypers] Friendfeed's web server framework open sourced In-Reply-To: References: <41139fcb0909110727h74a1590ai9f6edfe07d6b051a@mail.gmail.com> Message-ID: <3e3294b70909110833tad7985bq5bda91bbf4dcf1aa@mail.gmail.com> On Fri, Sep 11, 2009 at 10:57 AM, Dhananjay Nene wrote: > I am curious about the objective .. to the best of my knowledge wsgi is > essentially blocking (unless my understanding is incorrect), whereas tornado > is primarily non-blocking. So would you see any specific advantages of > deploying a wsgi app with tornado ? The tornado doc says as much .. "Tornado comes with limited support for WSGI. However, since WSGI does not support non-blocking requests, you cannot use any of the asynchronous/non-blocking features of Tornado in your application if you choose to use WSGI instead of Tornado's HTTP server. " -- http://www.tornadoweb.org/documentation#wsgi-and-google-appengine From harish.mallipeddi at gmail.com Fri Sep 11 18:17:07 2009 From: harish.mallipeddi at gmail.com (Harish Mallipeddi) Date: Fri, 11 Sep 2009 21:47:07 +0530 Subject: [BangPypers] Friendfeed's web server framework open sourced In-Reply-To: <3e3294b70909110833tad7985bq5bda91bbf4dcf1aa@mail.gmail.com> References: <41139fcb0909110727h74a1590ai9f6edfe07d6b051a@mail.gmail.com> <3e3294b70909110833tad7985bq5bda91bbf4dcf1aa@mail.gmail.com> Message-ID: On Fri, Sep 11, 2009 at 9:03 PM, Pradeep Gowda wrote: > On Fri, Sep 11, 2009 at 10:57 AM, Dhananjay Nene > wrote: > > I am curious about the objective .. to the best of my knowledge wsgi is > > essentially blocking (unless my understanding is incorrect), whereas > tornado > > is primarily non-blocking. So would you see any specific advantages of > > deploying a wsgi app with tornado ? > > The way FriendFeed guys have worded it makes it a bit confusing I guess. In short, WSGI or not does not matter. You can write your web server the regular multi-threaded way (one-thread-per-request) or you can make your webserver do non-blocking I/O with an event loop and serve all incoming requests within a single process (running a single thread). The only problem with WSGI is it does not support (at least the spec does not accommodate) long-live continuous streaming responses (the kind FriendFeed would use in their COMET implementation to continuously send updates to the client on-demand instead of polling). This is the only limitation of using tornado with WSGI. > The tornado doc says as much .. > > "Tornado comes with limited support for WSGI. However, since WSGI does > not support non-blocking requests, you cannot use any of the > asynchronous/non-blocking features of Tornado in your application if > you choose to use WSGI instead of Tornado's HTTP server. " > -- http://www.tornadoweb.org/documentation#wsgi-and-google-appengine > > I don't even know why they even bring up AppEngine here. AppEngine will spawn a new process on a random node in their cloud to serve a request to your webapp. As an AppEngine user, you don't even have to worry about scaling this kind of low-level infrastructure pieces - that's the whole point of AppEngine! You push that responsibility to the cloud provider (Google) and hope they do a good job. Cheers, -- Harish Mallipeddi http://blog.poundbang.in -------------- next part -------------- An HTML attachment was scrubbed... URL: From anandology at gmail.com Fri Sep 11 18:51:50 2009 From: anandology at gmail.com (Anand Chitipothu) Date: Fri, 11 Sep 2009 22:21:50 +0530 Subject: [BangPypers] Friendfeed's web server framework open sourced In-Reply-To: <3e3294b70909110833tad7985bq5bda91bbf4dcf1aa@mail.gmail.com> References: <41139fcb0909110727h74a1590ai9f6edfe07d6b051a@mail.gmail.com> <3e3294b70909110833tad7985bq5bda91bbf4dcf1aa@mail.gmail.com> Message-ID: <41139fcb0909110951h223bf586yd0a68454ef32c8d4@mail.gmail.com> > The tornado doc says as much .. > > "Tornado comes with limited support for WSGI. However, since WSGI does > not support non-blocking requests, you cannot use any of the > asynchronous/non-blocking features of Tornado in your application if > you choose to use WSGI instead of Tornado's HTTP server. " > -- ?http://www.tornadoweb.org/documentation#wsgi-and-google-appengine They are taking about running Tornado applications as wsgi. I'm trying to do the other way. Anand From anandology at gmail.com Fri Sep 11 19:02:43 2009 From: anandology at gmail.com (Anand Chitipothu) Date: Fri, 11 Sep 2009 22:32:43 +0530 Subject: [BangPypers] Friendfeed's web server framework open sourced In-Reply-To: References: <41139fcb0909110727h74a1590ai9f6edfe07d6b051a@mail.gmail.com> Message-ID: <41139fcb0909111002t4ddada5co1dab1230792ac8bd@mail.gmail.com> 2009/9/11 Dhananjay Nene : > I am curious about the objective .. to the best of my knowledge wsgi is > essentially blocking (unless my understanding is incorrect), whereas tornado > is primarily non-blocking. So would you see any specific advantages of > deploying a wsgi app with tornado ? yes. quite a lot. In a multi-threaded server, as your concurrency increases thread context-switching overhead will become very high. Since Tornado uses epoll + callbacks it can handle thousands of requests. Performance Results for helloworld: tornado: 1414 req/sec tornado + web.py: 802 req/sec lighttpd + fastcgi + web.py: 354 req/sec Tests were run using: ab -n 1000 -c 25 'http://0.0.0.0:8080/' Anand From sridhar.ratna at gmail.com Fri Sep 11 19:19:55 2009 From: sridhar.ratna at gmail.com (srid) Date: Fri, 11 Sep 2009 10:19:55 -0700 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <200909111324.34689.lawgon@au-kbc.org> References: <200909111324.34689.lawgon@au-kbc.org> Message-ID: <7c73a13a0909111019l20c44c20jbdd7275911b5d96e@mail.gmail.com> On Fri, Sep 11, 2009 at 12:54 AM, Kenneth Gonsalves wrote: > On Friday 11 Sep 2009 11:00:41 am Kenneth Gonsalves wrote: >> On Friday 11 Sep 2009 10:54:27 am srid wrote: >> > >From Wikipedia: >> > >> > """ >> > Objections to top-posting on newsgroups, as a rule, seem to come from >> > persons who first went online in the earlier days of Usenet, and in >> > communities that date to Usenet's early days. Until the mid-90s, >> > top-posting was unknown and interleaved posting an obvious standard >> > that all net.newcomers had to learn. Among the most vehement >> > communities are those in the Usenet comp.lang hierarchy, especially >> > comp.lang.c and comp.lang.c++. Top-posting is more tolerated on the >> > alt hierarchy. Newer online participants, especially those with >> > limited experience of Usenet, tend to be less sensitive to arguments >> > about posting style. >> > """ >> >> BS > > why? in the first place I am extremely sensitive to top posting, [...] It is mostly a sensitiveness issue .. which is why I found Wikipedia's quote relevant. Indeed the words "vehement", "tolerated", "less sensitive", etc.. should give a clue. -srid From sridhar.ratna at gmail.com Fri Sep 11 19:26:09 2009 From: sridhar.ratna at gmail.com (srid) Date: Fri, 11 Sep 2009 10:26:09 -0700 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <200909111351.56235.lawgon@au-kbc.org> References: <200909111324.34689.lawgon@au-kbc.org> <4AAA06FA.9000305@lonetwin.net> <200909111351.56235.lawgon@au-kbc.org> Message-ID: <7c73a13a0909111026t1a31f760k8cbf8dc40a03beb7@mail.gmail.com> On Fri, Sep 11, 2009 at 1:21 AM, Kenneth Gonsalves wrote: > does GVR top post? I have seen him doing both. An example of him top-posting, http://aspn.activestate.com/ASPN/Mail/Message/python-dev/3743554 and here, for instance, he does not use top-posting, http://aspn.activestate.com/ASPN/Mail/Message/python-dev/3743452 Did the first instance of top-posting hamper communication in python-dev@ any way? Objections to top-posting *as a rule* is silly. -srid From venkat83 at gmail.com Fri Sep 11 19:33:25 2009 From: venkat83 at gmail.com (Venkatraman S) Date: Fri, 11 Sep 2009 23:03:25 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <7c73a13a0909111026t1a31f760k8cbf8dc40a03beb7@mail.gmail.com> References: <200909111324.34689.lawgon@au-kbc.org> <4AAA06FA.9000305@lonetwin.net> <200909111351.56235.lawgon@au-kbc.org> <7c73a13a0909111026t1a31f760k8cbf8dc40a03beb7@mail.gmail.com> Message-ID: On Fri, Sep 11, 2009 at 10:56 PM, srid wrote: > I have seen him doing both. An example of him top-posting, > > http://aspn.activestate.com/ASPN/Mail/Message/python-dev/3743554 > > and here, for instance, he does not use top-posting, > > http://aspn.activestate.com/ASPN/Mail/Message/python-dev/3743452 > > Did the first instance of top-posting hamper communication in > python-dev@ any way? Objections to top-posting *as a rule* is silly. > > @srid: Wow. How do you manage to find time to search these things? Did you go via each of the posts by Guido? If yes, tell him :) Appreciate that. -V- http://twitter.com/venkasub -------------- next part -------------- An HTML attachment was scrubbed... URL: From harish.mallipeddi at gmail.com Fri Sep 11 19:34:21 2009 From: harish.mallipeddi at gmail.com (Harish Mallipeddi) Date: Fri, 11 Sep 2009 23:04:21 +0530 Subject: [BangPypers] Friendfeed's web server framework open sourced In-Reply-To: <41139fcb0909111002t4ddada5co1dab1230792ac8bd@mail.gmail.com> References: <41139fcb0909110727h74a1590ai9f6edfe07d6b051a@mail.gmail.com> <41139fcb0909111002t4ddada5co1dab1230792ac8bd@mail.gmail.com> Message-ID: On Fri, Sep 11, 2009 at 10:32 PM, Anand Chitipothu wrote: > 2009/9/11 Dhananjay Nene : > > I am curious about the objective .. to the best of my knowledge wsgi is > > essentially blocking (unless my understanding is incorrect), whereas > tornado > > is primarily non-blocking. So would you see any specific advantages of > > deploying a wsgi app with tornado ? > > yes. quite a lot. In a multi-threaded server, as your concurrency > increases thread context-switching overhead will become very high. > Since Tornado uses epoll + callbacks it can handle thousands of > requests. > > Performance Results for helloworld: > > tornado: 1414 req/sec > tornado + web.py: 802 req/sec > lighttpd + fastcgi + web.py: 354 req/sec > > Tests were run using: ab -n 1000 -c 25 'http://0.0.0.0:8080/' > > Anand > The results look good Anand. Although I would argue that using a helloworld page is a little dubious here - it favors the epoll server. A good test will be taking a more complicated page which involves quite a bit of processing. With an epoll server, you would have to process each request extremely quickly, be careful not to do any other blocking I/O (your DB client, memcached client, etc should be non-blocking as well). If your callbacks are not quick enough, you won't be processing events as fast as you would like to and throughput will go down. This is why I think people resort to spawning a few threads even with an epoll server instead of a single thread (memcached also does the same in more recent versions again thanks to facebook's contributions IIRC). -- Harish Mallipeddi http://blog.poundbang.in -------------- next part -------------- An HTML attachment was scrubbed... URL: From sridhar.ratna at gmail.com Fri Sep 11 19:40:45 2009 From: sridhar.ratna at gmail.com (srid) Date: Fri, 11 Sep 2009 10:40:45 -0700 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: References: <200909111324.34689.lawgon@au-kbc.org> <4AAA06FA.9000305@lonetwin.net> <200909111351.56235.lawgon@au-kbc.org> <7c73a13a0909111026t1a31f760k8cbf8dc40a03beb7@mail.gmail.com> Message-ID: <7c73a13a0909111040p2ea5a4bfwe7603accc076ae92@mail.gmail.com> On Fri, Sep 11, 2009 at 10:33 AM, Venkatraman S wrote: > @srid: Wow. How do you manage to find time to search these things? Did you > go via each of the posts by Guido? If yes, tell him :) Actually since I follow python-dev@ (and occasionally python-ideas@), I have already seen GvR using both styles when replying. It did not took me more than a couple of minutes to find example posts by searching Google (I used the query - Guido van Rossum python-dev). -srid From noufal at gmail.com Fri Sep 11 22:21:57 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 12 Sep 2009 01:51:57 +0530 Subject: [BangPypers] Low level Python Message-ID: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> Hello everyone, Are there any people here who are interested and who've worked on the actual CPython (or any other) interpreter directly? The whole idea of unladen swallow is appealing to me and if there are others who are into that kind of thing, it'd be great to collaborate on something on that front. -- ~noufal http://nibrahim.net.in From lawgon at au-kbc.org Sat Sep 12 00:59:28 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sat, 12 Sep 2009 04:29:28 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <7c73a13a0909111026t1a31f760k8cbf8dc40a03beb7@mail.gmail.com> References: <200909111324.34689.lawgon@au-kbc.org> <200909111351.56235.lawgon@au-kbc.org> <7c73a13a0909111026t1a31f760k8cbf8dc40a03beb7@mail.gmail.com> Message-ID: <200909120429.28244.lawgon@au-kbc.org> On Friday 11 Sep 2009 10:56:09 pm srid wrote: > > does GVR top post? > > I have seen him doing both. An example of him top-posting, > > http://aspn.activestate.com/ASPN/Mail/Message/python-dev/3743554 > > and here, for instance, he does not use top-posting, > > http://aspn.activestate.com/ASPN/Mail/Message/python-dev/3743452 > > Did the first instance of top-posting hamper communication in > python-dev@ any way? if you read the post you will find that he is closing the discussion by dismissing the idea - looks like an administrative post to me, the idea is to hamper communication on this point. > Objections to top-posting *as a rule* is silly. please be polite - invective never wins arguments -- regards Kenneth Gonsalves Associate NRC-FOSS http://nrcfosshelpline.in/web/ From lawgon at au-kbc.org Sat Sep 12 01:13:45 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sat, 12 Sep 2009 04:43:45 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: References: <200909111324.34689.lawgon@au-kbc.org> <200909111450.14571.lawgon@au-kbc.org> Message-ID: <200909120443.45749.lawgon@au-kbc.org> On Friday 11 Sep 2009 3:09:27 pm Dhananjay Nene wrote: > > this is interesting. I never knew there were any arguments for top > > posting - > > apart from the default 'it is the easiest way of doing things'. Could you > > point out these arguments? > > Mails get used to communicate very diverse levels of detail. For a thread > of short bursts (typically useful for managing tasks) - top posting is > convenient since in most cases, most people are already conversant with the > context and can reader the sender's thought immediately without moving > their eyes down any further or moving the mouse scroll button any more than > the bare minimum. For non-in-depth arguments (basically quick and rapid > communication) imo bottom posting just sucks while interleaved posting is > simply quite unnecessary. While bottom/interleaved posting has sound > arguments, I think top posting also has some very good arguments for it as > well. Just that I haven't seen a convincing argument for any one of them. I have already pointed out that top posting is objectionable in discussion mailing lists. In these lists we tend to have long and leisurely discussions and there is nothing mission critical about it. In a list like this I can choose to refuse to reply to top posts - I can also filter out chronic top posters' posts to my spam folder. The world will not collapse. However I would not dream of doing this on the inpycon mailing list - there I do not care how a person posts, because that is an action list. A newbie asks a silly question in a hijacked thread with a top post - I reply politely giving him the instructions he needs. Same thing on django users - I ask a question, I get a top posted reply - I would be a fool to refuse to read the reply because it is top posted. Or offlist an employee asks a question - probably the reply would be one word. And anyway, outside mailing lists where mail is not archived, top post is the way to go (as I have already mentioned). -- regards Kenneth Gonsalves Associate NRC-FOSS http://nrcfosshelpline.in/web/ From anand.shashwat at gmail.com Sat Sep 12 01:57:47 2009 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Sat, 12 Sep 2009 05:27:47 +0530 Subject: [BangPypers] A doubt in list comprehension Message-ID: We can pack multiple if-loops and if-else within a list generators. Here is an example : >>> [i*j for i in range(1,10) for j in range(1,10) if i==j ] [1, 4, 9, 16, 25, 36, 49, 64, 81] Another one: >>> noprimes = [j for i in range(2, 8) for j in range(i*2, 50, i)] >>> primes = [x for x in range(2, 50) if x not in noprimes] >>> print primes [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47] The first code print squares and second print primes until 50. First code show a nested for-loop in list-comprehension and second code shows a multiple if-else loop in noprimes[] and for-loop with an if-loop in prime[]. However what if I want an if-else loop in nested for loop. example ( http://codepad.org/oshZLAbE ), the code is crappy..made it just for the heck of it but want to know the syntax and the way of approaching. -------------- next part -------------- An HTML attachment was scrubbed... URL: From carl at personnelware.com Sat Sep 12 03:03:57 2009 From: carl at personnelware.com (Carl Karsten) Date: Fri, 11 Sep 2009 20:03:57 -0500 Subject: [BangPypers] How to send 1 GB Zip file to some remote machine using HTTP/HTTPS? In-Reply-To: <977253.41954.qm@web8408.mail.in.yahoo.com> References: <977253.41954.qm@web8408.mail.in.yahoo.com> Message-ID: <549053140909111803k710e5893p2e8fd26a610748e0@mail.gmail.com> On Thu, Sep 10, 2009 at 12:31 PM, deepak gupta wrote: > Hi All, > > How to send 1 GB Zip file to some remote machine using HTTP/HTTPS? > > As of now : > I am running a http listner in to remote machine. > I want to copy a file from local system to the remote machine where my > HTTP/HTTPS Listner is running. > Currently i am comressing the file, then reading the file and sending the > contents to the remote agent as a string. > At Remote agent , i am reading the string content and writing the same in > to the file. > > this methord is OK when the file size is small ,like 100 MB or 200 MB. > > But it will give problem when i will transfer the large file say 1GB or 2 > GB. > because till the file writing contents will be in the memory, so possible > errors can come as out of memory or it may not be able to send the large > file so socket error can also come. > > I just wrote some code to do something very similar: http://github.com/CarlFK/veyepar/blob/master/dj/scripts/blip_uploader.py It is a bit messy, mainly because it has to send the size of the whole post including the metadata. but it does not do x+=file('foo.ogg','rb').read() h = httplib.HTTPConnection(host) h.putheader("content-length",len(x) ) h.send(x) which was crashing when foo.avi 600meg The part that actually transferes the file: f = open(filename,'rb') block=f.read(10000) while block: h.send(block) bytes_sent += len(block) if progress: progress(bytes_sent,datalen) block=f.read(10000) If someone can figure out how to refacter PostMultipart so it isn't so messy... So is there any other way to transfer the large file, size i have mention > above using HTTP/HTTPS. > > Please mention if i can do it by using some other protocol. > > Thanks and Regards, > Deepak > > > > ------------------------------ > See the Web's breaking stories, chosen by people like you. Check out Yahoo! > Buzz . > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Carl K -------------- next part -------------- An HTML attachment was scrubbed... URL: From sridhar.ratna at gmail.com Sat Sep 12 03:55:52 2009 From: sridhar.ratna at gmail.com (srid) Date: Fri, 11 Sep 2009 18:55:52 -0700 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <200909120429.28244.lawgon@au-kbc.org> References: <200909111324.34689.lawgon@au-kbc.org> <200909111351.56235.lawgon@au-kbc.org> <7c73a13a0909111026t1a31f760k8cbf8dc40a03beb7@mail.gmail.com> <200909120429.28244.lawgon@au-kbc.org> Message-ID: <7c73a13a0909111855y5d8de131q82f783244dc64444@mail.gmail.com> On Fri, Sep 11, 2009 at 3:59 PM, Kenneth Gonsalves wrote: > On Friday 11 Sep 2009 10:56:09 pm srid wrote: >> > does GVR top post? >> >> I have seen him doing both. An example of him top-posting, >> >> ? http://aspn.activestate.com/ASPN/Mail/Message/python-dev/3743554 >> >> and here, for instance, he does not use top-posting, >> >> ? http://aspn.activestate.com/ASPN/Mail/Message/python-dev/3743452 >> >> Did the first instance of top-posting hamper communication in >> python-dev@ any way? > > if you read the post you will find that ?he is closing the discussion by > dismissing the idea - looks like an administrative post to me, the idea is to > hamper communication on this point. This is a straw man. Perhaps, I should rephrase it: Did the first instance of top-posting made the post significantly less readable, with context, than bottom-posting? >> Objections to top-posting *as a rule* is silly. > > please be polite - invective never wins arguments. Please explain what is "invective" (insulting, abusive, or highly critical language) about anything said here. And what would be a polite alternative, according to you? Would you consider the following to be polite? "Objections to top-posting *as a rule* is BS." -srid From rajeev.sebastian at gmail.com Sat Sep 12 04:04:27 2009 From: rajeev.sebastian at gmail.com (Rajeev J Sebastian) Date: Sat, 12 Sep 2009 07:34:27 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <7c73a13a0909111855y5d8de131q82f783244dc64444@mail.gmail.com> References: <200909111324.34689.lawgon@au-kbc.org> <200909111351.56235.lawgon@au-kbc.org> <7c73a13a0909111026t1a31f760k8cbf8dc40a03beb7@mail.gmail.com> <200909120429.28244.lawgon@au-kbc.org> <7c73a13a0909111855y5d8de131q82f783244dc64444@mail.gmail.com> Message-ID: <79a035420909111904s4ca11311yd2c049153c461a2e@mail.gmail.com> On Sat, Sep 12, 2009 at 7:25 AM, srid wrote: >>> Objections to top-posting *as a rule* is silly. >> >> please be polite - invective never wins arguments. > > Please explain what is "invective" (insulting, abusive, or highly > critical language) about anything said here. And what would be a > polite alternative, according to you? Would you consider the following > to be polite? > > ?"Objections to top-posting *as a rule* is BS." ROFL. Regards Rajeev J Sebastian From sridhar.ratna at gmail.com Sat Sep 12 04:18:49 2009 From: sridhar.ratna at gmail.com (srid) Date: Fri, 11 Sep 2009 19:18:49 -0700 Subject: [BangPypers] A doubt in list comprehension In-Reply-To: References: Message-ID: <7c73a13a0909111918s4a7209f9xac7543589d9eaa26@mail.gmail.com> On Fri, Sep 11, 2009 at 4:57 PM, Shashwat Anand wrote: > However what if I want an if-else loop in nested for loop. Are you referring to this: ['EVEN' if x%2==0 else 'ODD' for x in range(10)] > for i in range(10): > for j in range(10): > for k in range(10): > if i == j and j == k: > print "All equal" > elif (i == j and j != k) or (i == k and j != k): > print "2 equal" > else: > print "None equal" If you are asking how to achieve the above code using list comprehensions, then try return ["All equal" if i==j and j==k else ( "2 equal" if (i==j and j!=k) or (i==k and j!=k) \ else "None equal") for i in range(10) for j in range(10) for k in range(10)] For convenience, I pasted the code here: http://gist.github.com/185695 Speaking personally, your original code is just fine - it is simpler than the list comprehension version above. -srid From venkat83 at gmail.com Sat Sep 12 04:40:36 2009 From: venkat83 at gmail.com (venkat83 at gmail.com) Date: Sat, 12 Sep 2009 02:40:36 +0000 Subject: [BangPypers] Low level Python In-Reply-To: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> Message-ID: <1402866346-1252723249-cardhu_decombobulator_blackberry.rim.net-287682661-@bda105.bisx.produk.on.blackberry> I was looking at some bytecode optimizations last year. Tlee had some work already done on that front ; he had a branch. (But, I was not able to reach him and get to know about the stuff.) I mailed python-dev and Raymond replied back on this -- there are some good bugs in bytecode optimizations that you can have a look at to start off. Also, hang around in #python -- there are some really brilliant guys there. "@verve" helped me a lot on this front. I did not make any commits, but it continues to be a great learning experience. Reg unladen -- when I followed them in mar/apr this year , they were making some good progress. But the team was big I was not able to assimilate all the knowledge(it was too fast for me). There is tonne of learning to be done. OTOH, start with The Dragon Book, to understand the parlance. Venkat Sent from BlackBerry? on Airtel -----Original Message----- From: Noufal Ibrahim Date: Sat, 12 Sep 2009 01:51:57 To: Bangalore Python Users Group - India Subject: [BangPypers] Low level Python Hello everyone, Are there any people here who are interested and who've worked on the actual CPython (or any other) interpreter directly? The whole idea of unladen swallow is appealing to me and if there are others who are into that kind of thing, it'd be great to collaborate on something on that front. -- ~noufal http://nibrahim.net.in _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From lawgon at au-kbc.org Sat Sep 12 04:41:45 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sat, 12 Sep 2009 08:11:45 +0530 Subject: [BangPypers] [OT] Guido's Tweet on Top Posting In-Reply-To: <7c73a13a0909111855y5d8de131q82f783244dc64444@mail.gmail.com> References: <200909111324.34689.lawgon@au-kbc.org> <200909120429.28244.lawgon@au-kbc.org> <7c73a13a0909111855y5d8de131q82f783244dc64444@mail.gmail.com> Message-ID: <200909120811.45714.lawgon@au-kbc.org> On Saturday 12 Sep 2009 7:25:52 am srid wrote: > >> Objections to top-posting *as a rule* is silly. > > > > please be polite - invective never wins arguments. > > Please explain what is "invective" (insulting, abusive, or highly > critical language) about anything said here. And what would be a > polite alternative, according to you? Would you consider the following > to be polite? > > "Objections to top-posting *as a rule* is BS." fair call - apologies -- regards Kenneth Gonsalves Associate NRC-FOSS http://nrcfosshelpline.in/web/ From anand.shashwat at gmail.com Sat Sep 12 04:54:01 2009 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Sat, 12 Sep 2009 08:24:01 +0530 Subject: [BangPypers] A doubt in list comprehension In-Reply-To: <7c73a13a0909111918s4a7209f9xac7543589d9eaa26@mail.gmail.com> References: <7c73a13a0909111918s4a7209f9xac7543589d9eaa26@mail.gmail.com> Message-ID: @srid: got it, thanks normal codes are just nice, it's like i wanted to go through some list-comprehension which makes the code a bit obsfucated. Atleast i should be able to write my own and understand others. Got a nice link too, wanted to share it :) Thanks for the help ! """ A list comprehension has the following syntax: [ *expression* for *target* in *iterable* *lc-clauses* ] *target* and *iterable* are the same as in a regular for statement. You must enclose the *expression* in parentheses if it indicates a tuple. *lc-clauses* is a series of zero or more clauses, each with one of the following forms: for *target* in *iterable* if *expression* *target* and *iterable* in each for clause of a list comprehension have the same syntax as those in a regular for statement, and the *expression* in each if clause of a list comprehension has the same syntax as the * expression* in a regular if statement. courtesy ~ http://docstore.mik.ua/orelly/other/python/0596001886_pythonian-chp-4-sect-9.html """ On Sat, Sep 12, 2009 at 7:48 AM, srid wrote: > On Fri, Sep 11, 2009 at 4:57 PM, Shashwat Anand > wrote: > > However what if I want an if-else loop in nested for loop. > > Are you referring to this: > > ['EVEN' if x%2==0 else 'ODD' for x in range(10)] > > > for i in range(10): > > for j in range(10): > > for k in range(10): > > if i == j and j == k: > > print "All equal" > > elif (i == j and j != k) or (i == k and j != k): > > print "2 equal" > > else: > > print "None equal" > > If you are asking how to achieve the above code using list > comprehensions, then try > > return ["All equal" if i==j and j==k else ( > "2 equal" if (i==j and j!=k) or (i==k and j!=k) \ > else "None equal") > for i in range(10) > for j in range(10) > for k in range(10)] > > For convenience, I pasted the code here: http://gist.github.com/185695 > > Speaking personally, your original code is just fine - it is simpler > than the list comprehension version above. > > -srid > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssquery at gmail.com Sat Sep 12 08:39:34 2009 From: ssquery at gmail.com (sudhakar s) Date: Sat, 12 Sep 2009 12:09:34 +0530 Subject: [BangPypers] .exe r .dmg install Message-ID: <1528d2590909112339t3d45ab86j49bf14bed101d837@mail.gmail.com> Hi, Can we install a .exe or .dmg file from python program itself... -- With Regards, S Sudhakar. -------------- next part -------------- An HTML attachment was scrubbed... URL: From half.italian at gmail.com Sat Sep 12 08:50:50 2009 From: half.italian at gmail.com (Sean DiZazzo) Date: Fri, 11 Sep 2009 23:50:50 -0700 Subject: [BangPypers] [Pythonmac-SIG] .exe r .dmg install In-Reply-To: <1528d2590909112339t3d45ab86j49bf14bed101d837@mail.gmail.com> References: <1528d2590909112339t3d45ab86j49bf14bed101d837@mail.gmail.com> Message-ID: <7baa94f60909112350v68be56efp388fc0c182f4d9d6@mail.gmail.com> Yes. py2exe (http://www.py2exe.org/) and py2app ( http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html) These will take a Python program and create an executable file that doesn't rely on any installation of Python or the required libraries. (If the package is created correctly) Is that what you mean?!? ~Sean On Fri, Sep 11, 2009 at 11:39 PM, sudhakar s wrote: > Hi, > Can we install a .exe or .dmg file from python program itself... > > > -- > With Regards, > S Sudhakar. > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From half.italian at gmail.com Sat Sep 12 09:26:11 2009 From: half.italian at gmail.com (Sean DiZazzo) Date: Sat, 12 Sep 2009 00:26:11 -0700 Subject: [BangPypers] [Pythonmac-SIG] .exe r .dmg install In-Reply-To: <7baa94f60909112350v68be56efp388fc0c182f4d9d6@mail.gmail.com> References: <1528d2590909112339t3d45ab86j49bf14bed101d837@mail.gmail.com> <7baa94f60909112350v68be56efp388fc0c182f4d9d6@mail.gmail.com> Message-ID: <7baa94f60909120026j6b269633n55b12618316a07e6@mail.gmail.com> >>What i actually my query is there is a .exe file exists in some directory and i need to install that .exe file from my pthon script >>itself either by execution or an by an interactive application.... >>suppose i had an application with button labeled "install" and when i press the button installation of a .exe file or .dmg file should start. ~~~~~ Are you looking for an installer?? Here's one for windows that you can easily adapt to python programs. http://www.jrsoftware.org/isinfo.php If you need a multi-platform installer, you are on your own, but it shouldn't be too difficult. hmm... Cant you do a bit of searching yourself? ~Sean On Fri, Sep 11, 2009 at 11:50 PM, Sean DiZazzo wrote: > Yes. py2exe (http://www.py2exe.org/) and py2app ( > http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html) > > These will take a Python program and create an executable file that doesn't > rely on any installation of Python or the required libraries. (If the > package is created correctly) > > Is that what you mean?!? > > ~Sean > > On Fri, Sep 11, 2009 at 11:39 PM, sudhakar s wrote: > >> Hi, >> Can we install a .exe or .dmg file from python program itself... >> >> >> -- >> With Regards, >> S Sudhakar. >> >> _______________________________________________ >> Pythonmac-SIG maillist - Pythonmac-SIG at python.org >> http://mail.python.org/mailman/listinfo/pythonmac-sig >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhananjay.nene at gmail.com Sat Sep 12 15:14:21 2009 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Sat, 12 Sep 2009 18:44:21 +0530 Subject: [BangPypers] Friendfeed's web server framework open sourced In-Reply-To: <41139fcb0909111002t4ddada5co1dab1230792ac8bd@mail.gmail.com> References: <41139fcb0909110727h74a1590ai9f6edfe07d6b051a@mail.gmail.com> <41139fcb0909111002t4ddada5co1dab1230792ac8bd@mail.gmail.com> Message-ID: On Fri, Sep 11, 2009 at 10:32 PM, Anand Chitipothu wrote: > 2009/9/11 Dhananjay Nene : > > I am curious about the objective .. to the best of my knowledge wsgi is > > essentially blocking (unless my understanding is incorrect), whereas > tornado > > is primarily non-blocking. So would you see any specific advantages of > > deploying a wsgi app with tornado ? > > yes. quite a lot. In a multi-threaded server, as your concurrency > increases thread context-switching overhead will become very high. > Since Tornado uses epoll + callbacks it can handle thousands of > requests. > > The question I was really asking is if an application is modeled as a wsgi application - would it be able to leverage tornado's async / epoll based design. Another post which talks at length about the issue in the context of mod_wsgi + wsgi apps is http://blog.dscpl.com.au/2009/05/blocking-requests-and-nginx-version-of.html > Performance Results for helloworld: > > tornado: 1414 req/sec > tornado + web.py: 802 req/sec > lighttpd + fastcgi + web.py: 354 req/sec > > Tests were run using: ab -n 1000 -c 25 'http://0.0.0.0:8080/' > > Anand > > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene http://twitter.com/_pythonic -------------- next part -------------- An HTML attachment was scrubbed... URL: From sidharth.kuruvila at gmail.com Sat Sep 12 15:17:55 2009 From: sidharth.kuruvila at gmail.com (Sidharth Kuruvila) Date: Sat, 12 Sep 2009 18:47:55 +0530 Subject: [BangPypers] Low level Python In-Reply-To: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> Message-ID: What's on your mind? On Sat, 12 Sep 2009 01:51:57 +0530, Noufal Ibrahim wrote: > Hello everyone, > Are there any people here who are interested and who've worked on > the actual CPython (or any other) interpreter directly? The whole idea > of unladen swallow is appealing to me and if there are others who are > into that kind of thing, it'd be great to collaborate on something on > that front. > > > -- From my desktop to yours. From noufal at gmail.com Sat Sep 12 16:11:46 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 12 Sep 2009 19:41:46 +0530 Subject: [BangPypers] Low level Python In-Reply-To: References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> Message-ID: <9963e56e0909120711t3a8807vefa5ad36b6157a12@mail.gmail.com> On Sat, Sep 12, 2009 at 6:47 PM, Sidharth Kuruvila wrote: > What's on your mind? Study the internals and contribute to Unladen swallow. The speed of Python is something that keeps comng up. -- ~noufal http://nibrahim.net.in From pradeep at btbytes.com Sat Sep 12 16:32:56 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Sat, 12 Sep 2009 10:32:56 -0400 Subject: [BangPypers] Low level Python In-Reply-To: <9963e56e0909120711t3a8807vefa5ad36b6157a12@mail.gmail.com> References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> <9963e56e0909120711t3a8807vefa5ad36b6157a12@mail.gmail.com> Message-ID: <3e3294b70909120732p4edfa662t73739b8b2e9de419@mail.gmail.com> On Sat, Sep 12, 2009 at 10:11 AM, Noufal Ibrahim wrote: > The speed of Python is something that keeps comng up. I see what you did there. From noufal at gmail.com Sat Sep 12 16:43:43 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 12 Sep 2009 20:13:43 +0530 Subject: [BangPypers] Low level Python In-Reply-To: <3e3294b70909120732p4edfa662t73739b8b2e9de419@mail.gmail.com> References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> <9963e56e0909120711t3a8807vefa5ad36b6157a12@mail.gmail.com> <3e3294b70909120732p4edfa662t73739b8b2e9de419@mail.gmail.com> Message-ID: <9963e56e0909120743s5fc8b7a7ubc1d59f34ec51227@mail.gmail.com> On Sat, Sep 12, 2009 at 8:02 PM, Pradeep Gowda wrote: > On Sat, Sep 12, 2009 at 10:11 AM, Noufal Ibrahim wrote: >> The speed of Python is something that keeps comng up. > I see what you did there. ? -- ~noufal http://nibrahim.net.in From pradeep at btbytes.com Sat Sep 12 16:50:44 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Sat, 12 Sep 2009 10:50:44 -0400 Subject: [BangPypers] Low level Python In-Reply-To: <9963e56e0909120743s5fc8b7a7ubc1d59f34ec51227@mail.gmail.com> References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> <9963e56e0909120711t3a8807vefa5ad36b6157a12@mail.gmail.com> <3e3294b70909120732p4edfa662t73739b8b2e9de419@mail.gmail.com> <9963e56e0909120743s5fc8b7a7ubc1d59f34ec51227@mail.gmail.com> Message-ID: <3e3294b70909120750q25a609a9u7fb6de4154a0a575@mail.gmail.com> On Sat, Sep 12, 2009 at 10:43 AM, Noufal Ibrahim wrote: > On Sat, Sep 12, 2009 at 8:02 PM, Pradeep Gowda wrote: >> On Sat, Sep 12, 2009 at 10:11 AM, Noufal Ibrahim wrote: >>> The speed of Python is something that keeps comng up. >> I see what you did there. > > ? I thought it was a clever pun on Python's speed :) From noufal at gmail.com Sat Sep 12 17:19:19 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 12 Sep 2009 20:49:19 +0530 Subject: [BangPypers] Low level Python In-Reply-To: <3e3294b70909120750q25a609a9u7fb6de4154a0a575@mail.gmail.com> References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> <9963e56e0909120711t3a8807vefa5ad36b6157a12@mail.gmail.com> <3e3294b70909120732p4edfa662t73739b8b2e9de419@mail.gmail.com> <9963e56e0909120743s5fc8b7a7ubc1d59f34ec51227@mail.gmail.com> <3e3294b70909120750q25a609a9u7fb6de4154a0a575@mail.gmail.com> Message-ID: <9963e56e0909120819m1cd7c4d9j377e0381ab97ef32@mail.gmail.com> On Sat, Sep 12, 2009 at 8:20 PM, Pradeep Gowda wrote: > On Sat, Sep 12, 2009 at 10:43 AM, Noufal Ibrahim wrote: >> On Sat, Sep 12, 2009 at 8:02 PM, Pradeep Gowda wrote: >>> On Sat, Sep 12, 2009 at 10:11 AM, Noufal Ibrahim wrote: >>>> The speed of Python is something that keeps comng up. >>> I see what you did there. >> >> ? > I thought it was a clever pun ?on Python's speed :) yes....yes it was. I must be smarter than I thought I was. :} -- ~noufal http://nibrahim.net.in From ardsrk at gmail.com Sat Sep 12 20:01:18 2009 From: ardsrk at gmail.com (Arvind Jamuna Dixit) Date: Sat, 12 Sep 2009 23:31:18 +0530 Subject: [BangPypers] Low level Python In-Reply-To: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> Message-ID: <3d62196a0909121101u5ab42b4bm1b3fca6355de9ab1@mail.gmail.com> Noufal, learning how things work under the hood has always appealed to me. I am very much interested in working on this. Arvind. On Sat, Sep 12, 2009 at 1:51 AM, Noufal Ibrahim wrote: > Hello everyone, > Are there any people here who are interested and who've worked on > the actual CPython (or any other) interpreter directly? The whole idea > of unladen swallow is appealing to me and if there are others who are > into that kind of thing, it'd be great to collaborate on something on > that front. > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vsapre80 at gmail.com Sat Sep 12 21:00:24 2009 From: vsapre80 at gmail.com (Vishal) Date: Sun, 13 Sep 2009 00:30:24 +0530 Subject: [BangPypers] Low level Python In-Reply-To: <3d62196a0909121101u5ab42b4bm1b3fca6355de9ab1@mail.gmail.com> References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> <3d62196a0909121101u5ab42b4bm1b3fca6355de9ab1@mail.gmail.com> Message-ID: me too :) I second this proposal. Best regards, Vishal Sapre On Sat, Sep 12, 2009 at 11:31 PM, Arvind Jamuna Dixit wrote: > Noufal, learning how things work under the hood has always appealed to me. > I am very much interested in working on this. > > Arvind. > > > On Sat, Sep 12, 2009 at 1:51 AM, Noufal Ibrahim wrote: > >> Hello everyone, >> Are there any people here who are interested and who've worked on >> the actual CPython (or any other) interpreter directly? The whole idea >> of unladen swallow is appealing to me and if there are others who are >> into that kind of thing, it'd be great to collaborate on something on >> that front. >> >> >> >> -- >> ~noufal >> http://nibrahim.net.in >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Thanks and best regards, Vishal Sapre --- "So say...Day by day, in every way, I am getting better, better and better !!!" "A Strong and Positive attitude creates more miracles than anything else. Because...Life is 10% how you make it, and 90% how you take it" "Diamond is another piece of coal that did well under pressure? "Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human, Failure Keeps u Humble, Success keeps u Glowing, But only God Keeps u Going.....Keep Going....." -------------- next part -------------- An HTML attachment was scrubbed... URL: From anand.shashwat at gmail.com Sat Sep 12 22:42:47 2009 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Sun, 13 Sep 2009 02:12:47 +0530 Subject: [BangPypers] Google CodeJam in python Message-ID: Google CodeJam doesn't have a feature where we can sort solutions by language and almost all the solutions I checked are in C++. Are there any python coders on this list who tried GCJ. Can they share their codes ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From orsenthil at gmail.com Sun Sep 13 04:21:49 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Sun, 13 Sep 2009 07:51:49 +0530 Subject: [BangPypers] Google CodeJam in python In-Reply-To: References: Message-ID: <20090913022149.GA4003@ubuntu.ubuntu-domain> On Sun, Sep 13, 2009 at 02:12:47AM +0530, Shashwat Anand wrote: > Google CodeJam doesn't have a feature where we can sort solutions by language Go here http://www.go-hero.net/jam/09/solutions and find the solutions which are in Python. People use a variety of languages. -- Senthil From dg288_mits at yahoo.co.in Sun Sep 13 07:36:32 2009 From: dg288_mits at yahoo.co.in (deepak gupta) Date: Sat, 12 Sep 2009 22:36:32 -0700 (PDT) Subject: [BangPypers] [Pythonmac-SIG] .exe r .dmg install In-Reply-To: <7baa94f60909120026j6b269633n55b12618316a07e6@mail.gmail.com> Message-ID: <515273.91187.qm@web8405.mail.in.yahoo.com> Well if i am not wrong you are asking abt , How to call installer file through Python. ? If i got it right then , You can directly use os.system(" ") For silent installation , you have to pass switch,if installer supports.If you want intractive installation then just file name and file path is enough. --- On Sat, 12/9/09, Sean DiZazzo wrote: From: Sean DiZazzo Subject: Re: [BangPypers] [Pythonmac-SIG] .exe r .dmg install To: "sudhakar s" Cc: pythonmac-sig at python.org, bangpypers at python.org Date: Saturday, 12 September, 2009, 12:56 PM >>What i actually my query is there is a .exe file exists in some directory and i need to install that .exe file from my pthon script >>itself either by execution or an by an interactive application.... >>suppose i had an application with? button labeled "install"? and when i press the button installation of a .exe file or .dmg file should start. ~~~~~ Are you looking for an installer??? Here's one for windows that you can easily adapt to python programs.? http://www.jrsoftware.org/isinfo.php If you need a multi-platform installer, you are on your own, but it shouldn't be too difficult. hmm... Cant you do a bit of searching yourself? ~Sean On Fri, Sep 11, 2009 at 11:50 PM, Sean DiZazzo wrote: Yes.? py2exe (http://www.py2exe.org/) and py2app (http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html) These will take a Python program and create an executable file that doesn't rely on any installation of Python or the required libraries. (If the package is created correctly) Is that what you mean?!? ~Sean On Fri, Sep 11, 2009 at 11:39 PM, sudhakar s wrote: Hi, ???? Can we install a .exe or .dmg file from python program itself.... ???? -- With Regards, S Sudhakar. _______________________________________________ Pythonmac-SIG maillist ?- ?Pythonmac-SIG at python.org http://mail.python.org/mailman/listinfo/pythonmac-sig -----Inline Attachment Follows----- _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From noufal at gmail.com Sun Sep 13 10:32:32 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 13 Sep 2009 14:02:32 +0530 Subject: [BangPypers] Low level Python In-Reply-To: <1402866346-1252723249-cardhu_decombobulator_blackberry.rim.net-287682661-@bda105.bisx.produk.on.blackberry> References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> <1402866346-1252723249-cardhu_decombobulator_blackberry.rim.net-287682661-@bda105.bisx.produk.on.blackberry> Message-ID: <9963e56e0909130132n69357056s6b3ab36501e63a07@mail.gmail.com> On Sat, Sep 12, 2009 at 8:10 AM, wrote: > I was looking at some bytecode optimizations last year. Tlee had some work already done on that front ; he had a branch. (But, I was not able to reach him and get to know about the stuff.) I mailed python-dev and Raymond replied back on this -- there are some good bugs in bytecode optimizations that you can have a look at to start off. Also, hang around in #python -- there are some really brilliant guys there. "@verve" helped me a lot on this front. > > I did not make any commits, but it continues to be a great learning experience. > > Reg unladen -- when I followed them in mar/apr this year , they were making some good progress. But the team was big I was not able to ?assimilate all the knowledge(it was too fast for me). There is tonne of learning to be done. > > OTOH, start with The Dragon Book, to understand the parlance. Would you have the time to give a small presentation on your work at one of the BangPypers meetings? I for one would be very interested. -- ~noufal http://nibrahim.net.in From urskarthiksp at gmail.com Sun Sep 13 11:16:19 2009 From: urskarthiksp at gmail.com (Karthik) Date: Sun, 13 Sep 2009 14:46:19 +0530 Subject: [BangPypers] Python Coding Standards In-Reply-To: <9963e56e0909130132n69357056s6b3ab36501e63a07@mail.gmail.com> References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> <1402866346-1252723249-cardhu_decombobulator_blackberry.rim.net-287682661-@bda105.bisx.produk.on.blackberry> <9963e56e0909130132n69357056s6b3ab36501e63a07@mail.gmail.com> Message-ID: <000001ca3452$ded2ccc0$9c786640$@com> Hello Friends, Can anybody please let me know if there are any coding standards for python coding? Thanks. Regards, Karthik SP From noufal at gmail.com Sun Sep 13 11:19:02 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 13 Sep 2009 14:49:02 +0530 Subject: [BangPypers] Python Coding Standards In-Reply-To: <000001ca3452$ded2ccc0$9c786640$@com> References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> <1402866346-1252723249-cardhu_decombobulator_blackberry.rim.net-287682661-@bda105.bisx.produk.on.blackberry> <9963e56e0909130132n69357056s6b3ab36501e63a07@mail.gmail.com> <000001ca3452$ded2ccc0$9c786640$@com> Message-ID: <9963e56e0909130219g3b8c947ak45c8148baf09f19f@mail.gmail.com> On Sun, Sep 13, 2009 at 2:46 PM, Karthik wrote: > Hello Friends, Can anybody please let me know if there are any coding > standards for python coding? Thanks. http://python.org/dev/peps/pep-0008/ It looks obvious that you didn't try googling for this. Please do. -- ~noufal http://nibrahim.net.in From pradeep at btbytes.com Sun Sep 13 11:20:59 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Sun, 13 Sep 2009 05:20:59 -0400 Subject: [BangPypers] Python Coding Standards In-Reply-To: <000001ca3452$ded2ccc0$9c786640$@com> References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> <1402866346-1252723249-cardhu_decombobulator_blackberry.rim.net-287682661-@bda105.bisx.produk.on.blackberry> <9963e56e0909130132n69357056s6b3ab36501e63a07@mail.gmail.com> <000001ca3452$ded2ccc0$9c786640$@com> Message-ID: <3e3294b70909130220m4f798f05rd787db35c0cb917d@mail.gmail.com> On Sun, Sep 13, 2009 at 5:16 AM, Karthik wrote: > Hello Friends, Can anybody please let me know if there are any coding > standards for python coding? Thanks. Sure, why not : http://tinyurl.com/qxeylp From anand.shashwat at gmail.com Sun Sep 13 14:21:23 2009 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Sun, 13 Sep 2009 17:51:23 +0530 Subject: [BangPypers] Google CodeJam in python In-Reply-To: <20090913022149.GA4003@ubuntu.ubuntu-domain> References: <20090913022149.GA4003@ubuntu.ubuntu-domain> Message-ID: @Senthil the link is amazing, thanks :) PS. the thing which i missed was showcase of py codes. We can see much better C++/java codes on TopCoder but on OJs where python is allowed like SPOJ, we can't see other people codes, thereby we miss the chance of learning through seeing other codes. GCJ is a fresh breeze regarding the current scenario :) On Sun, Sep 13, 2009 at 7:51 AM, Senthil Kumaran wrote: > On Sun, Sep 13, 2009 at 02:12:47AM +0530, Shashwat Anand wrote: > > Google CodeJam doesn't have a feature where we can sort solutions by > language > > Go here http://www.go-hero.net/jam/09/solutions and find the solutions > which are in Python. People use a variety of languages. > > > -- > Senthil > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ideamonk at gmail.com Sun Sep 13 14:39:44 2009 From: ideamonk at gmail.com (Abhishek Mishra) Date: Sun, 13 Sep 2009 18:09:44 +0530 Subject: [BangPypers] Google CodeJam in python In-Reply-To: References: <20090913022149.GA4003@ubuntu.ubuntu-domain> Message-ID: <64160c70909130539h53913ecbob7746abd9de53e82@mail.gmail.com> OT: Codechef too shows sources of successful submissions but, that in a way, is diluting the value of problems on SPOJ as codechef's practice problems are rip off of SPOJ. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmathews at gmail.com Sun Sep 13 13:20:48 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Sun, 13 Sep 2009 16:50:48 +0530 Subject: [BangPypers] Python Coding Standards In-Reply-To: <000001ca3452$ded2ccc0$9c786640$@com> References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> <1402866346-1252723249-cardhu_decombobulator_blackberry.rim.net-287682661-@bda105.bisx.produk.on.blackberry> <9963e56e0909130132n69357056s6b3ab36501e63a07@mail.gmail.com> <000001ca3452$ded2ccc0$9c786640$@com> Message-ID: <1c4dc2780909130420g2bd224cel3709bce4d356c9c0@mail.gmail.com> On Sun, Sep 13, 2009 at 2:46 PM, Karthik wrote: > Hello Friends, Can anybody please let me know if there are any coding > standards for python coding? Thanks. > http://google-styleguide.googlecode.com/svn/trunk/pyguide.html From ranganaths at gmail.com Sun Sep 13 18:20:29 2009 From: ranganaths at gmail.com (Ranganath s) Date: Sun, 13 Sep 2009 21:50:29 +0530 Subject: [BangPypers] PyLucid +GAE Message-ID: <77bb36840909130920t1118e1e3ub1b0c1cbfa61d8c7@mail.gmail.com> Hi all, Is it possible to upload the PyLucid CMS to the GAE . If so please share the procedure. Thank you Ranganath.S -- I blog at http://ranganaths.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sridhar.ratna at gmail.com Sun Sep 13 19:24:14 2009 From: sridhar.ratna at gmail.com (srid) Date: Sun, 13 Sep 2009 10:24:14 -0700 Subject: [BangPypers] Python Coding Standards In-Reply-To: <3e3294b70909130220m4f798f05rd787db35c0cb917d@mail.gmail.com> References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> <1402866346-1252723249-cardhu_decombobulator_blackberry.rim.net-287682661-@bda105.bisx.produk.on.blackberry> <9963e56e0909130132n69357056s6b3ab36501e63a07@mail.gmail.com> <000001ca3452$ded2ccc0$9c786640$@com> <3e3294b70909130220m4f798f05rd787db35c0cb917d@mail.gmail.com> Message-ID: <7c73a13a0909131024v6a2f71a8u5e453c95f762dfb@mail.gmail.com> On Sun, Sep 13, 2009 at 2:20 AM, Pradeep Gowda wrote: > On Sun, Sep 13, 2009 at 5:16 AM, Karthik wrote: >> Hello Friends, Can anybody please let me know if there are any coding >> standards for python coding? Thanks. > > Sure, why not : http://tinyurl.com/qxeylp Wonderful! I stumbled upon lmgtfy.com sometime ago but totally forgot the URL. Thanks for posting it. I suggest we use lmgtfy.com for questions like this. -srid From carl at personnelware.com Mon Sep 14 01:37:29 2009 From: carl at personnelware.com (Carl Karsten) Date: Sun, 13 Sep 2009 18:37:29 -0500 Subject: [BangPypers] [Pythonmac-SIG] .exe r .dmg install In-Reply-To: <515273.91187.qm@web8405.mail.in.yahoo.com> References: <7baa94f60909120026j6b269633n55b12618316a07e6@mail.gmail.com> <515273.91187.qm@web8405.mail.in.yahoo.com> Message-ID: <549053140909131637r745719c7o5ed78622a83fc9a6@mail.gmail.com> On Sun, Sep 13, 2009 at 12:36 AM, deepak gupta wrote: > Well if i am not wrong you are asking abt , How to call installer file > through Python. > > If i got it right then , You can directly use > os.system(" ") > I think subprocess.Popen is preferred: p = subprocess.Popen( ['dvgrab', '-d', '1', '-I', dvfilename, '/tmp/dvg'], stderr=subprocess.PIPE ) out,err = p.communicate() For silent installation , you have to pass switch,if installer supports.If > you want intractive installation then just file name and file path is > enough. > > --- On *Sat, 12/9/09, Sean DiZazzo * wrote: > > > From: Sean DiZazzo > Subject: Re: [BangPypers] [Pythonmac-SIG] .exe r .dmg install > To: "sudhakar s" > Cc: pythonmac-sig at python.org, bangpypers at python.org > Date: Saturday, 12 September, 2009, 12:56 PM > > >>What i actually my query is there is a .exe file exists in some directory > and i need to install that .exe file from my pthon script > >>itself either by execution or an by an interactive application.... > > >>suppose i had an application with button labeled "install" and when i > press the button installation of a .exe file or .dmg file should start. > > ~~~~~ > Are you looking for an installer?? Here's one for windows that you can > easily adapt to python programs. http://www.jrsoftware.org/isinfo.php > > If you need a multi-platform installer, you are on your own, but it > shouldn't be too difficult. > > hmm... Cant you do a bit of searching yourself? > > ~Sean > > On Fri, Sep 11, 2009 at 11:50 PM, Sean DiZazzo > > wrote: > >> Yes. py2exe (http://www.py2exe.org/) and py2app ( >> http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html) >> >> These will take a Python program and create an executable file that >> doesn't rely on any installation of Python or the required libraries. (If >> the package is created correctly) >> >> Is that what you mean?!? >> >> ~Sean >> >> On Fri, Sep 11, 2009 at 11:39 PM, sudhakar s >> > wrote: >> >>> Hi, >>> Can we install a .exe or .dmg file from python program itself... >>> >>> >>> -- >>> With Regards, >>> S Sudhakar. >>> >>> _______________________________________________ >>> Pythonmac-SIG maillist - Pythonmac-SIG at python.org >>> http://mail.python.org/mailman/listinfo/pythonmac-sig >>> >>> >> > > -----Inline Attachment Follows----- > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > ------------------------------ > See the Web's breaking stories, chosen by people like you. Check out Yahoo! > Buzz . > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Carl K -------------- next part -------------- An HTML attachment was scrubbed... URL: From abpillai at gmail.com Mon Sep 14 14:50:35 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 14 Sep 2009 18:20:35 +0530 Subject: [BangPypers] Low level Python In-Reply-To: <9963e56e0909130132n69357056s6b3ab36501e63a07@mail.gmail.com> References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> <1402866346-1252723249-cardhu_decombobulator_blackberry.rim.net-287682661-@bda105.bisx.produk.on.blackberry> <9963e56e0909130132n69357056s6b3ab36501e63a07@mail.gmail.com> Message-ID: <8548c5f30909140550r6d803c1v53920c32e0c4c6a9@mail.gmail.com> On Sun, Sep 13, 2009 at 2:02 PM, Noufal Ibrahim wrote: > On Sat, Sep 12, 2009 at 8:10 AM, wrote: > > I was looking at some bytecode optimizations last year. Tlee had some > work already done on that front ; he had a branch. (But, I was not able to > reach him and get to know about the stuff.) I mailed python-dev and Raymond > replied back on this -- there are some good bugs in bytecode optimizations > that you can have a look at to start off. Also, hang around in #python -- > there are some really brilliant guys there. "@verve" helped me a lot on this > front. > > > > I did not make any commits, but it continues to be a great learning > experience. > > > > Reg unladen -- when I followed them in mar/apr this year , they were > making some good progress. But the team was big I was not able to > assimilate all the knowledge(it was too fast for me). There is tonne of > learning to be done. > > > > OTOH, start with The Dragon Book, to understand the parlance. > > Would you have the time to give a small presentation on your work at > one of the BangPypers meetings? I for one would be very interested. > +1. This is of some interest to me. I had contributed some test cases to another effort (parallel , not similar) named ShedSkin which was an effort to convert Python code to C++ by Mark Dufour. I got interested in the low level stuff through this. If we can have some ideas to share on Unladen Swallow, let us have a meet for it. > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand -------------- next part -------------- An HTML attachment was scrubbed... URL: From venkat83 at gmail.com Mon Sep 14 14:56:29 2009 From: venkat83 at gmail.com (Venkatraman S) Date: Mon, 14 Sep 2009 18:26:29 +0530 Subject: [BangPypers] Low level Python In-Reply-To: <8548c5f30909140550r6d803c1v53920c32e0c4c6a9@mail.gmail.com> References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> <1402866346-1252723249-cardhu_decombobulator_blackberry.rim.net-287682661-@bda105.bisx.produk.on.blackberry> <9963e56e0909130132n69357056s6b3ab36501e63a07@mail.gmail.com> <8548c5f30909140550r6d803c1v53920c32e0c4c6a9@mail.gmail.com> Message-ID: On Mon, Sep 14, 2009 at 6:20 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > > On Sun, Sep 13, 2009 at 2:02 PM, Noufal Ibrahim wrote: > >> On Sat, Sep 12, 2009 at 8:10 AM, wrote: >> > I was looking at some bytecode optimizations last year. Tlee had some >> work already done on that front ; he had a branch. (But, I was not able to >> reach him and get to know about the stuff.) I mailed python-dev and Raymond >> replied back on this -- there are some good bugs in bytecode optimizations >> that you can have a look at to start off. Also, hang around in #python -- >> there are some really brilliant guys there. "@verve" helped me a lot on this >> front. >> > >> > I did not make any commits, but it continues to be a great learning >> experience. >> > >> > Reg unladen -- when I followed them in mar/apr this year , they were >> making some good progress. But the team was big I was not able to >> assimilate all the knowledge(it was too fast for me). There is tonne of >> learning to be done. >> > >> > OTOH, start with The Dragon Book, to understand the parlance. >> >> Would you have the time to give a small presentation on your work at >> one of the BangPypers meetings? I for one would be very interested. >> > > +1. This is of some interest to me. I had contributed some test cases to > another effort (parallel , not similar) named ShedSkin which was an effort > to convert Python code to C++ by Mark Dufour. I got interested in the low > level stuff through this. > Thanks for the interest. I will try sometime in Nov/Dec. Probably will try to cover Effect Typing (this is something that i stumbled on recently and was interesting) -V- http://twitter.com/venkasub -------------- next part -------------- An HTML attachment was scrubbed... URL: From abpillai at gmail.com Mon Sep 14 14:57:55 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 14 Sep 2009 18:27:55 +0530 Subject: [BangPypers] Friendfeed's web server framework open sourced In-Reply-To: <41139fcb0909111002t4ddada5co1dab1230792ac8bd@mail.gmail.com> References: <41139fcb0909110727h74a1590ai9f6edfe07d6b051a@mail.gmail.com> <41139fcb0909111002t4ddada5co1dab1230792ac8bd@mail.gmail.com> Message-ID: <8548c5f30909140557j64369ee0hcc933beb163f4616@mail.gmail.com> On Fri, Sep 11, 2009 at 10:32 PM, Anand Chitipothu wrote: > 2009/9/11 Dhananjay Nene : > > I am curious about the objective .. to the best of my knowledge wsgi is > > essentially blocking (unless my understanding is incorrect), whereas > tornado > > is primarily non-blocking. So would you see any specific advantages of > > deploying a wsgi app with tornado ? > > yes. quite a lot. In a multi-threaded server, as your concurrency > increases thread context-switching overhead will become very high. > Since Tornado uses epoll + callbacks it can handle thousands of > requests. > > Performance Results for helloworld: > > tornado: 1414 req/sec > tornado + web.py: 802 req/sec > lighttpd + fastcgi + web.py: 354 req/sec > Amazing... I wonder how this compares with twisted/nevow... > > Tests were run using: ab -n 1000 -c 25 'http://0.0.0.0:8080/' > > Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand -------------- next part -------------- An HTML attachment was scrubbed... URL: From anand.shashwat at gmail.com Mon Sep 14 15:06:57 2009 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Mon, 14 Sep 2009 18:36:57 +0530 Subject: [BangPypers] Implementing a fast factorial function in python Message-ID: How do we calculate last 5-digits of 10**12 ignoring trailing zeros. The code i wrote works good until 10**8 and after that take ages. The source of problem is Project Euler : http://projecteuler.net/index.php?section=problems&id=160 The code is pasted here : http://paste.pocoo.org/show/139745/ 1 ''' 2 For any N, let f(N) be the last five digits before the trailing zeroes in N!. 3 For example, 4 5 9! = 362880 so f(9)=36288 6 10! = 3628800 so f(10)=36288 7 20! = 2432902008176640000 so f(20)=17664 8 9 Find f(1,000,000,000,000) 10 ''' 11 def f(n): 12 fac = 1 13 i = 1 14 #for i in range(1, n+1): 15 while i < n + 1: 16 fac = int(str(fac * i).strip('0')) % 100000 17 i += 1 18 return fac 19 20 print f(1000000000000) PS. hope posting algorithmic doubts will not be considered spamming :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhananjay.nene at gmail.com Mon Sep 14 15:13:12 2009 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Mon, 14 Sep 2009 18:43:12 +0530 Subject: [BangPypers] Friendfeed's web server framework open sourced In-Reply-To: <8548c5f30909140557j64369ee0hcc933beb163f4616@mail.gmail.com> References: <41139fcb0909110727h74a1590ai9f6edfe07d6b051a@mail.gmail.com> <41139fcb0909111002t4ddada5co1dab1230792ac8bd@mail.gmail.com> <8548c5f30909140557j64369ee0hcc933beb163f4616@mail.gmail.com> Message-ID: http://www.apparatusproject.org/blog/2009/09/twisted-web-vs-tornado-performance-test/ On Mon, Sep 14, 2009 at 6:27 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > > > On Fri, Sep 11, 2009 at 10:32 PM, Anand Chitipothu wrote: > >> 2009/9/11 Dhananjay Nene : >> > I am curious about the objective .. to the best of my knowledge wsgi is >> > essentially blocking (unless my understanding is incorrect), whereas >> tornado >> > is primarily non-blocking. So would you see any specific advantages of >> > deploying a wsgi app with tornado ? >> >> yes. quite a lot. In a multi-threaded server, as your concurrency >> increases thread context-switching overhead will become very high. >> Since Tornado uses epoll + callbacks it can handle thousands of >> requests. >> >> Performance Results for helloworld: >> >> tornado: 1414 req/sec >> tornado + web.py: 802 req/sec >> lighttpd + fastcgi + web.py: 354 req/sec >> > > Amazing... I wonder how this compares with twisted/nevow... > > > >> >> Tests were run using: ab -n 1000 -c 25 'http://0.0.0.0:8080/' >> >> Anand >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > --Anand > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene http://twitter.com/_pythonic -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhananjay.nene at gmail.com Mon Sep 14 15:20:51 2009 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Mon, 14 Sep 2009 18:50:51 +0530 Subject: [BangPypers] Friendfeed's web server framework open sourced In-Reply-To: References: <41139fcb0909110727h74a1590ai9f6edfe07d6b051a@mail.gmail.com> <41139fcb0909111002t4ddada5co1dab1230792ac8bd@mail.gmail.com> <8548c5f30909140557j64369ee0hcc933beb163f4616@mail.gmail.com> Message-ID: One more study with slightly different results hyperlinked below inline On Mon, Sep 14, 2009 at 6:43 PM, Dhananjay Nene wrote: > > http://www.apparatusproject.org/blog/2009/09/twisted-web-vs-tornado-performance-test/ > > > On Mon, Sep 14, 2009 at 6:27 PM, Anand Balachandran Pillai < > abpillai at gmail.com> wrote: > >> >> >> On Fri, Sep 11, 2009 at 10:32 PM, Anand Chitipothu wrote: >> >>> 2009/9/11 Dhananjay Nene : >>> > I am curious about the objective .. to the best of my knowledge wsgi is >>> > essentially blocking (unless my understanding is incorrect), whereas >>> tornado >>> > is primarily non-blocking. So would you see any specific advantages of >>> > deploying a wsgi app with tornado ? >>> >>> yes. quite a lot. In a multi-threaded server, as your concurrency >>> increases thread context-switching overhead will become very high. >>> Since Tornado uses epoll + callbacks it can handle thousands of >>> requests. >>> >>> Performance Results for helloworld: >>> >>> tornado: 1414 req/sec >>> tornado + web.py: 802 req/sec >>> lighttpd + fastcgi + web.py: 354 req/sec >>> >> >> Amazing... I wonder how this compares with twisted/nevow... >> > http://antoniocangiano.com/2009/09/13/benchmarking-tornado-vs-twisted-web-vs-tornado-on-twisted/ > >> >> >>> >>> Tests were run using: ab -n 1000 -c 25 'http://0.0.0.0:8080/' >>> >>> Anand >>> _______________________________________________ >>> BangPypers mailing list >>> BangPypers at python.org >>> http://mail.python.org/mailman/listinfo/bangpypers >>> >> >> >> >> -- >> --Anand >> >> >> >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> >> > > > -- > -------------------------------------------------------- > blog: http://blog.dhananjaynene.com > twitter: http://twitter.com/dnene http://twitter.com/_pythonic > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene http://twitter.com/_pythonic -------------- next part -------------- An HTML attachment was scrubbed... URL: From anandology at gmail.com Mon Sep 14 15:21:35 2009 From: anandology at gmail.com (Anand Chitipothu) Date: Mon, 14 Sep 2009 18:51:35 +0530 Subject: [BangPypers] Implementing a fast factorial function in python In-Reply-To: References: Message-ID: <41139fcb0909140621m4d173ffaw1c4c09e51759562c@mail.gmail.com> > ?16???????? fac = int(str(fac * i).strip('0')) % 100000 This is ugly hack. Can you think of something more mathematical? Anand From navin.kabra at gmail.com Mon Sep 14 15:21:58 2009 From: navin.kabra at gmail.com (Navin Kabra) Date: Mon, 14 Sep 2009 18:51:58 +0530 Subject: [BangPypers] Implementing a fast factorial function in python In-Reply-To: References: Message-ID: > print f(1000000000000) > > This is a HUGE number. I don't think you are expected to get the answer by direct calculation. I would guess that you are expected to use mathematical reasoning to figure out the answer (and not computation) -------------- next part -------------- An HTML attachment was scrubbed... URL: From noufal at gmail.com Mon Sep 14 15:47:08 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 14 Sep 2009 19:17:08 +0530 Subject: [BangPypers] Low level Python In-Reply-To: References: <9963e56e0909111321l71c15de9p48e90f1d28e86785@mail.gmail.com> <1402866346-1252723249-cardhu_decombobulator_blackberry.rim.net-287682661-@bda105.bisx.produk.on.blackberry> <9963e56e0909130132n69357056s6b3ab36501e63a07@mail.gmail.com> <8548c5f30909140550r6d803c1v53920c32e0c4c6a9@mail.gmail.com> Message-ID: <9963e56e0909140647o58408c96u16e5c2ecefe2f42c@mail.gmail.com> On Mon, Sep 14, 2009 at 6:26 PM, Venkatraman S wrote: [..] > Thanks for the interest. I will try sometime in Nov/Dec. > Probably will try to cover Effect Typing (this is something that i stumbled > on recently and was interesting) [..] Excellent! I eagerly look forward to this. -- ~noufal http://nibrahim.net.in From anand.shashwat at gmail.com Mon Sep 14 15:43:04 2009 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Mon, 14 Sep 2009 19:13:04 +0530 Subject: [BangPypers] Implementing a fast factorial function in python In-Reply-To: References: Message-ID: The thought which comes to my mind is Modular exponentiation : for a ** b % r ( if a ** b very large ) I had coded it in C++ but in python the pow() have inbuilt modular-function made. so pow(a ,b, r) does the trick Here for factorial : F(n) = n * n-1 * n-2 ...* 2 * 1 Just like in earlier case where we needed to do was, a * a * a ..(b times) % r, modulation at each step help reduce computation since what we need is F(n) % 10**5 The key point i think is we do not need factorial but modulus 10**5 without trailing zeros. Didn't helped though :( may be a better implementation could help On Mon, Sep 14, 2009 at 6:51 PM, Navin Kabra wrote: > > print f(1000000000000) >> >> > This is a HUGE number. I don't think you are expected to get the answer by > direct calculation. I would guess that you are expected to use mathematical > reasoning to figure out the answer (and not computation) > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anandology at gmail.com Mon Sep 14 16:39:51 2009 From: anandology at gmail.com (Anand Chitipothu) Date: Mon, 14 Sep 2009 20:09:51 +0530 Subject: [BangPypers] Implementing a fast factorial function in python In-Reply-To: References: Message-ID: <41139fcb0909140739g408e28d9k693b34f88b227fe4@mail.gmail.com> > The key point i think is we do not need factorial but modulus 10**5 without > trailing zeros. Didn't helped though :( may be a better implementation could > help I think the right solution will NOT involve 10**12 computations. Think about it. From ideamonk at gmail.com Mon Sep 14 16:44:31 2009 From: ideamonk at gmail.com (Abhishek Mishra) Date: Mon, 14 Sep 2009 20:14:31 +0530 Subject: [BangPypers] Implementing a fast factorial function in python In-Reply-To: References: Message-ID: <64160c70909140744o3ccea029gb5f9fec869c910eb@mail.gmail.com> I remember doing something?very inaccurate a long time ago for this - 1. find everything in a loop 2. everytime you encounter some zeros, strip them 3. everytime after stripping it exceeds say 7 digits, take out rightmost 7 digits for accuracy's sake 4. proceed till loop ends 5. print out the rightmost 5 digits of what remains Highly inaccurate but helped crossing icpc prelims in 1st year because there were humans who checked my solution with smaller inputs :) On Mon, Sep 14, 2009 at 6:36 PM, Shashwat Anand wrote: > > How do we calculate last 5-digits of 10**12 ignoring trailing zeros. The code i wrote works good until 10**8 and after that take ages. > The source of problem is Project Euler : http://projecteuler.net/index.php?section=problems&id=160 > > The code is pasted here : http://paste.pocoo.org/show/139745/ > > ?1 ''' > ? 2 For any N, let f(N) be the last five digits before the trailing zeroes in N!. > ? 3 For example, > ? 4 > ? 5 9! = 362880 so f(9)=36288 > ? 6 10! = 3628800 so f(10)=36288 > ? 7 20! = 2432902008176640000 so f(20)=17664 > ? 8 > ? 9 Find f(1,000,000,000,000) > ?10 ''' > ?11 def f(n): > ?12???? fac = 1 > ?13???? i = 1 > ?14???? #for i in range(1, n+1): > ?15???? while i < n + 1: > ?16???????? fac = int(str(fac * i).strip('0')) % 100000 > ?17 ??????? i += 1 > ?18 ??? return fac > ?19 > ?20 print f(1000000000000) > > PS. hope posting algorithmic doubts will not be considered spamming :) > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From anand.shashwat at gmail.com Mon Sep 14 16:01:21 2009 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Mon, 14 Sep 2009 19:31:21 +0530 Subject: [BangPypers] Implementing a fast factorial function in python In-Reply-To: References: Message-ID: @anand: There is a way to calculate number of leading zeros in n! Here i had implemented it : >>> x = 100 # number whose factorial is to be taken out >>> s = 0 #initial count of zeros >>> n = 1 >>> while x / 5**n: ... s += x / 5**n ... n +=1 ... >>> s 24 >>> import math >>> len(str(math.factorial(100))) - len(str(math.factorial(100)).strip('0')) 24 >>> On Mon, Sep 14, 2009 at 7:13 PM, Shashwat Anand wrote: > The thought which comes to my mind is Modular exponentiation : > for a ** b % r ( if a ** b very large ) > > I had coded it in C++ but in python the pow() have inbuilt modular-function > made. > so pow(a ,b, r) does the trick > > Here for factorial : > F(n) = n * n-1 * n-2 ...* 2 * 1 > Just like in earlier case where we needed to do was, > a * a * a ..(b times) % r, modulation at each step help reduce computation > since what we need is F(n) % 10**5 > > The key point i think is we do not need factorial but modulus 10**5 without > trailing zeros. Didn't helped though :( may be a better implementation could > help > > > > On Mon, Sep 14, 2009 at 6:51 PM, Navin Kabra wrote: > >> >> print f(1000000000000) >>> >>> >> This is a HUGE number. I don't think you are expected to get the answer by >> direct calculation. I would guess that you are expected to use mathematical >> reasoning to figure out the answer (and not computation) >> >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anand.shashwat at gmail.com Mon Sep 14 17:07:55 2009 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Mon, 14 Sep 2009 20:37:55 +0530 Subject: [BangPypers] Implementing a fast factorial function in python In-Reply-To: <64160c70909140744o3ccea029gb5f9fec869c910eb@mail.gmail.com> References: <64160c70909140744o3ccea029gb5f9fec869c910eb@mail.gmail.com> Message-ID: @abhishek : Can you show me the code ? 10**12 is way too much. My code gives output within a minute for 10**8 and fails. Ofcourse I need to apply some algo here. What do you exactly mean by taking out rightmost 7 digits ? On Mon, Sep 14, 2009 at 8:14 PM, Abhishek Mishra wrote: > I remember doing something very inaccurate a long time ago for this - > 1. find everything in a loop > 2. everytime you encounter some zeros, strip them > 3. everytime after stripping it exceeds say 7 digits, take out > rightmost 7 digits for accuracy's sake > 4. proceed till loop ends > 5. print out the rightmost 5 digits of what remains > > Highly inaccurate but helped crossing icpc prelims in 1st year because > there were humans who checked my solution with smaller inputs :) > > On Mon, Sep 14, 2009 at 6:36 PM, Shashwat Anand > wrote: > > > > How do we calculate last 5-digits of 10**12 ignoring trailing zeros. The > code i wrote works good until 10**8 and after that take ages. > > The source of problem is Project Euler : > http://projecteuler.net/index.php?section=problems&id=160 > > > > The code is pasted here : http://paste.pocoo.org/show/139745/ > > > > 1 ''' > > 2 For any N, let f(N) be the last five digits before the trailing > zeroes in N!. > > 3 For example, > > 4 > > 5 9! = 362880 so f(9)=36288 > > 6 10! = 3628800 so f(10)=36288 > > 7 20! = 2432902008176640000 so f(20)=17664 > > 8 > > 9 Find f(1,000,000,000,000) > > 10 ''' > > 11 def f(n): > > 12 fac = 1 > > 13 i = 1 > > 14 #for i in range(1, n+1): > > 15 while i < n + 1: > > 16 fac = int(str(fac * i).strip('0')) % 100000 > > 17 i += 1 > > 18 return fac > > 19 > > 20 print f(1000000000000) > > > > PS. hope posting algorithmic doubts will not be considered spamming :) > > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sidharth.kuruvila at gmail.com Mon Sep 14 17:35:30 2009 From: sidharth.kuruvila at gmail.com (Sidharth Kuruvila) Date: Mon, 14 Sep 2009 21:05:30 +0530 Subject: [BangPypers] Implementing a fast factorial function in python In-Reply-To: References: Message-ID: This should work, find f(6)**(10 raised to 7) On Mon, 14 Sep 2009 18:36:57 +0530, Shashwat Anand wrote: > How do we calculate last 5-digits of 10**12 ignoring trailing zeros. The > code i wrote works good until 10**8 and after that take ages. > The source of problem is Project Euler : > http://projecteuler.net/index.php?section=problems&id=160 > > The code is pasted here : http://paste.pocoo.org/show/139745/ > > 1 ''' > > > 2 For any N, let f(N) be the last five digits before the trailing > zeroes > in N!. > 3 For example, > 4 > 5 9! = 362880 so f(9)=36288 > 6 10! = 3628800 so f(10)=36288 > 7 20! = 2432902008176640000 so f(20)=17664 > 8 > 9 Find f(1,000,000,000,000) > 10 ''' > 11 def f(n): > 12 fac = 1 > 13 i = 1 > 14 #for i in range(1, n+1): > 15 while i < n + 1: > 16 fac = int(str(fac * i).strip('0')) % 100000 > 17 i += 1 > 18 return fac > 19 > 20 print f(1000000000000) > > PS. hope posting algorithmic doubts will not be considered spamming :) -- From my desktop to yours. From lists.amitsaha at gmail.com Mon Sep 14 18:36:36 2009 From: lists.amitsaha at gmail.com (Amit Saha) Date: Mon, 14 Sep 2009 22:06:36 +0530 Subject: [BangPypers] Implementing a fast factorial function in python In-Reply-To: References: Message-ID: <4AAE7114.8030205@gmail.com> Shashwat Anand wrote: > How do we calculate last 5-digits of 10**12 ignoring trailing zeros. The > code i wrote works good until 10**8 and after that take ages. > The source of problem is Project Euler : > http://projecteuler.net/index.php?section=problems&id=160 You might consider using the Stirling's Approximation (http://en.wikipedia.org/wiki/Stirling%27s_approximation) to calculate the factorial of a large N. You will still have to figure out a good way to find the trailing zeros, ofcourse. HTH -Amit > > The code is pasted here : http://paste.pocoo.org/show/139745/ > > 1 ''' > > > 2 For any N, let f(N) be the last five digits before the trailing zeroes > in N!. > 3 For example, > 4 > 5 9! = 362880 so f(9)=36288 > 6 10! = 3628800 so f(10)=36288 > 7 20! = 2432902008176640000 so f(20)=17664 > 8 > 9 Find f(1,000,000,000,000) > 10 ''' > 11 def f(n): > 12 fac = 1 > 13 i = 1 > 14 #for i in range(1, n+1): > 15 while i < n + 1: > 16 fac = int(str(fac * i).strip('0')) % 100000 > 17 i += 1 > 18 return fac > 19 > 20 print f(1000000000000) > > PS. hope posting algorithmic doubts will not be considered spamming :) > > > > ------------------------------------------------------------------------ > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers -- Journal: http://amitksaha.wordpress.com ?-blog: http://twitter.com/amitsaha IRC: cornucopic on #scheme, #lisp, #math, #linux From bhaskar.jain2002 at gmail.com Mon Sep 14 20:34:01 2009 From: bhaskar.jain2002 at gmail.com (bhaskar jain) Date: Tue, 15 Sep 2009 00:04:01 +0530 Subject: [BangPypers] SWIG Message-ID: <7f2cbc970909141134t1e40722bsd7299631cc0af8c1@mail.gmail.com> Hello, I have an external library which uses SWIG to generate bindings for many languages like python, perl etc. So they have the interface (.i files) present and also a 'binding' directory and separate dirs for diff languages. So for 'Python', they have the wrapper functions (.c files) in the bindings/python dir. So on installing this library, i can use the python bindings. Problem is that there was a bug and they have changed a few lines in one of the C files. So my question is - will just applying the patch and installing the library again, will i get a fresh good python binding or do i need to regenerate the wrapper_ *.c files using SWIG. Any tips in working with SWIG, using the python bindings will be appreciated. Also is it a frequent problem of segmentation faults using the python bindings of C programs which employ lot of pointers. Sorry, I am new to SWIG. Is it advisable to use SWIG at all? Thanks. --Bhaskar. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gora at srijan.in Mon Sep 14 20:55:19 2009 From: gora at srijan.in (Gora Mohanty) Date: Tue, 15 Sep 2009 00:25:19 +0530 Subject: [BangPypers] SWIG In-Reply-To: <7f2cbc970909141134t1e40722bsd7299631cc0af8c1@mail.gmail.com> References: <7f2cbc970909141134t1e40722bsd7299631cc0af8c1@mail.gmail.com> Message-ID: <20090915002519.64529f93@anubis> On Tue, 15 Sep 2009 00:04:01 +0530 bhaskar jain wrote: [...] > Problem is that there was a bug and they have changed a few lines > in one of the C files. So my question is - will just applying the > patch and installing the library again, will i get a fresh good > python binding or do i need to regenerate the wrapper_ *.c files > using SWIG. It depends on what was changed, but it is best to regenerate everything. Is this that much of a concern in terms of time, etc. It is quite easy to set up a Makefile to do this. > Any tips in working with SWIG, using the python bindings will be > appreciated. Also is it a frequent problem of segmentation faults > using the python bindings of C programs which employ lot of > pointers. Sorry, I am new to SWIG. > > Is it advisable to use SWIG at all? [...] I would enthusiastically advocate SWIG, but have had arguments with people who take a different view, and whose opinions I respect. The best counter-arguments I have heard is cleanness of the generated code, and efficiency, but at least for a non-pedal-to-the-metal coder like me, SWIG definitely does the job. So, I would say that if you can take a look at the generated SWIG code, and think that you can do better, please do that, and contribute your approach back to SWIG. Regards, Gora From carl at personnelware.com Mon Sep 14 21:53:01 2009 From: carl at personnelware.com (Carl Karsten) Date: Mon, 14 Sep 2009 14:53:01 -0500 Subject: [BangPypers] teach me SWIG Message-ID: <549053140909141253p7b50b721g76158b25cf9762a6@mail.gmail.com> On Mon, Sep 14, 2009 at 1:55 PM, Gora Mohanty wrote: > On Tue, 15 Sep 2009 00:04:01 +0530 > bhaskar jain wrote: > [...] >> Problem is that there was a bug and they have changed a few lines >> in one of the C files. So my question is - will just applying the >> patch and installing the library again, will i get a fresh good >> python binding or do i need to regenerate the wrapper_ *.c files >> using SWIG. > > It depends on what was changed, but it is best to regenerate > everything. Is this that much of a concern in terms of time, > etc. It is quite easy to set up a Makefile to do this. > >> Any tips in working with SWIG, using the python bindings will be >> appreciated. Also is it a frequent problem of segmentation faults >> using the python bindings of C programs which employ lot of >> pointers. Sorry, I am new to SWIG. >> >> Is it advisable to use SWIG at all? > [...] > > I would enthusiastically advocate SWIG, but have had arguments with > people who take a different view, and whose opinions I respect. The > best counter-arguments I have heard is cleanness of the generated > code, and efficiency, but at least for a non-pedal-to-the-metal > coder like me, SWIG definitely does the job. So, I would say that > if you can take a look at the generated SWIG code, and think that > you can do better, please do that, and contribute your approach > back to SWIG. This is really "do this for me" but the hope is that it is easy and I will learn how it was done and can later expand on it myself. I need to read the time stamp from the first and last frame of a .dv file. frames are 120000 bytes (or some fixed amount if it is some other format that has a different frame size), so I can do frame=open('foo.dv','rb').read(120000) and pass frame somewhere. or pass a file object, or whatever binding stuff is easiest to implement. libdv can do it, here are bindings, but it doesn't include anything to return the timestamp : https://dev.interhost.no/pylibdv/browser/src/pylibdv.c Here is where dvgrab does it - line 836 http://kino.cvs.sourceforge.net/viewvc/kino/dvgrab/dvgrab.cc?revision=1.72&view=markup I don't need any of the "if invalid month, use system date". -- Carl K From bhaskar.jain2002 at gmail.com Tue Sep 15 04:56:26 2009 From: bhaskar.jain2002 at gmail.com (bhaskar jain) Date: Tue, 15 Sep 2009 08:26:26 +0530 Subject: [BangPypers] SWIG In-Reply-To: <20090915002519.64529f93@anubis> References: <7f2cbc970909141134t1e40722bsd7299631cc0af8c1@mail.gmail.com> <20090915002519.64529f93@anubis> Message-ID: <7f2cbc970909141956u6298854an67c768398def8403@mail.gmail.com> Thanks for the response. What i faced was intentionally passing unexpected/nonsense data cause segmentation fault in one case. Was wondering if this is because of SWIG or because of the underlying library (which in turn uses glib). But the underlying library looks ok. Have you faced such issues while working with SWIG. Is it reliable to be used in production level code which will be pretty load intensive. Also who frees the pointers in case of python binding? Some functions say the caller should free the pointer but in case of python binding does the python memory manager frees it using the standard reference count. I believed the interface file (.i file) has to be hand-written. Can you please elaborate on the Makefile approach. --Bhaskar. On Tue, Sep 15, 2009 at 12:25 AM, Gora Mohanty wrote: > On Tue, 15 Sep 2009 00:04:01 +0530 > bhaskar jain wrote: > [...] > > Problem is that there was a bug and they have changed a few lines > > in one of the C files. So my question is - will just applying the > > patch and installing the library again, will i get a fresh good > > python binding or do i need to regenerate the wrapper_ *.c files > > using SWIG. > > It depends on what was changed, but it is best to regenerate > everything. Is this that much of a concern in terms of time, > etc. It is quite easy to set up a Makefile to do this. > > > Any tips in working with SWIG, using the python bindings will be > > appreciated. Also is it a frequent problem of segmentation faults > > using the python bindings of C programs which employ lot of > > pointers. Sorry, I am new to SWIG. > > > > Is it advisable to use SWIG at all? > [...] > > I would enthusiastically advocate SWIG, but have had arguments with > people who take a different view, and whose opinions I respect. The > best counter-arguments I have heard is cleanness of the generated > code, and efficiency, but at least for a non-pedal-to-the-metal > coder like me, SWIG definitely does the job. So, I would say that > if you can take a look at the generated SWIG code, and think that > you can do better, please do that, and contribute your approach > back to SWIG. > > Regards, > Gora > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From venkat83 at gmail.com Tue Sep 15 09:01:13 2009 From: venkat83 at gmail.com (Venkatraman S) Date: Tue, 15 Sep 2009 12:31:13 +0530 Subject: [BangPypers] Fwd: [Baypiggies] FWD: [PSF-Members] GHOP to run again In-Reply-To: <20090914200542.GA11690@panix.com> References: <20090914200542.GA11690@panix.com> Message-ID: ---------- Forwarded message ---------- From: Aahz Date: Tue, Sep 15, 2009 at 1:35 AM Subject: [Baypiggies] FWD: [PSF-Members] GHOP to run again To: baypiggies at python.org ----- Forwarded message from "C. Titus Brown" ----- Date: Mon, 14 Sep 2009 07:01:58 -0700 From: "C. Titus Brown" To: psf-members at python.org Subject: [PSF-Members] GHOP to run again Reply-To: titus at idyll.org Hi folks, the Google Highly Open Participation contest ('GHOP') is going to run again this year, assuming they can get some help with the Melange app. It will run in December starting ~Dec 7th, and closer to Dec I will buzz this list again with some suggestions and thoughts on how to make GHOP work well for the PSF and Python. (Note that this should be a great opportunity for the diversity list folk to both lead by example AND to encourage young underrepresented students to get involved with Python, hint.) --- If you're not familiar with GHOP, it is a contest framework that lets Google pay students for doing small units of work (coding, testing, doc writing, etc.) on a wide variety of projects. It was a success for the PSFlast time, http://code.google.com/opensource/ghop/2007-8/ in that tons of doc changes and test fixes got committed to core, many other projects benefitted, and most of the people involved had a pretty good time. However, BEFORE GHOP CAN RUN AGAIN, we (Google + GHOP enthusiasts) need help with the Melange application. It's a bit clunky, it hasn't been used for GHOP before, and it needs some development and a lot of testing. Since it's written in Python/Django, and I happen to know there are a lot of good testing tools available for both Python and Django, I hope the Python community can help out. What can I do? -------------- Forward this message on to people you know. Forward it on or post it publicly, or suggest places for me to post it. Get involved! How do I get involved? ---------------------- Join melange dev: http://groups.google.com/group/melange-soc-dev Areas where melange could use some help: http://groups.google.com/group/melange-soc-dev/msg/7a57c798441fd0e8 My blog posts on the subject: http://ivory.idyll.org/blog/sep-09/ghop-to-run-again.html http://ivory.idyll.org/blog/sep-09/ghop-conference-call.html --titus -- C. Titus Brown, ctb at msu.edu _______________________________________________ PSF-Members mailing list PSF-Members at python.org http://mail.python.org/mailman/listinfo/psf-members ----- End forwarded message ----- -- Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ "It's 106 miles to Chicago. We have a full tank of gas, a half-pack of cigarettes, it's dark, and we're wearing sunglasses." "Hit it." _______________________________________________ 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 girishmsampath at gmail.com Tue Sep 15 08:03:12 2009 From: girishmsampath at gmail.com (Sampath Girish) Date: Tue, 15 Sep 2009 11:33:12 +0530 Subject: [BangPypers] How to validate a String with spaces using inbuilt validate function Message-ID: Hi all, Can anyone please tell me how to validate a String with spaces provided in between using inbuilt validate function. Please give me a solution for this. For e.g., Name: Python_India. The yellow one is the space. When i use 'validate' function in entry field, it must be able to detect spaces and text only and accept that. Thanks in advance, Sampath Girish M -------------- next part -------------- An HTML attachment was scrubbed... URL: From girishmsampath at gmail.com Tue Sep 15 08:08:00 2009 From: girishmsampath at gmail.com (Sampath Girish) Date: Tue, 15 Sep 2009 11:38:00 +0530 Subject: [BangPypers] Fwd: How to validate a String with spaces using inbuilt validate function In-Reply-To: References: Message-ID: Hi all, Can anyone please tell me how to validate a String with spaces provided in between using inbuilt validate function. Please give me a solution for this. For e.g., Name: *Python**_**India.* The '_ ' is the space. When i use 'validate' function in entry field, it must be able to detect spaces and text only and accept that. Thanks in advance, Sampath Girish M -------------- next part -------------- An HTML attachment was scrubbed... URL: From abpillai at gmail.com Tue Sep 15 09:30:39 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 15 Sep 2009 13:00:39 +0530 Subject: [BangPypers] Fwd: How to validate a String with spaces using inbuilt validate function In-Reply-To: References: Message-ID: <8548c5f30909150030k1b6c06ado85179c51456c7605@mail.gmail.com> On Tue, Sep 15, 2009 at 11:38 AM, Sampath Girish wrote: > > > Hi all, Can anyone please tell me how to validate a String with > spaces provided in between using inbuilt validate function. Please give me a > solution for this. > Did not understand what you meant by inbuilt validate function. There is nothing like that in Python. >>> s='Python' >>> s.validate Traceback (most recent call last): File "", line 1, in AttributeError: 'str' object has no attribute 'validate' >>> validate Traceback (most recent call last): File "", line 1, in NameError: name 'validate' is not defined > > For e.g., Name: *Python**_**India.* The '_ ' is the space. When i use > 'validate' function in entry field, it must be able to detect spaces and > text only and accept that. > Use a regular expression. For example, the following does the job for matching a string with space in between 2 words. >>> import re >>> r=re.compile(r'\w+\s+\w+', re.IGNORECASE|re.LOCALE) >>> r.match('PythonIndia') >>> r.match('Python India') <_sre.SRE_Match object at 0x7f0d17909168 > > Thanks in advance, > Sampath Girish M > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- --Anand -------------- next part -------------- An HTML attachment was scrubbed... URL: From hiddenharmony at gmail.com Tue Sep 15 10:34:11 2009 From: hiddenharmony at gmail.com (Vivek Khurana) Date: Tue, 15 Sep 2009 14:04:11 +0530 Subject: [BangPypers] Implementing a fast factorial function in python In-Reply-To: References: Message-ID: <91bea30d0909150134u2ec1dc47g4aa24d21d703009@mail.gmail.com> On Mon, Sep 14, 2009 at 6:36 PM, Shashwat Anand wrote: > How do we calculate last 5-digits of 10**12 ignoring trailing zeros. The > code i wrote works good until 10**8 and after that take ages. > The source of problem is Project Euler : > http://projecteuler.net/index.php?section=problems&id=160 > > The code is pasted here : http://paste.pocoo.org/show/139745/ I cant understand why are you not using Scipy ? regards Vivek -- The hidden harmony is better than the obvious!! From carl at personnelware.com Tue Sep 15 12:52:25 2009 From: carl at personnelware.com (Carl Karsten) Date: Tue, 15 Sep 2009 05:52:25 -0500 Subject: [BangPypers] teach me SWIG Message-ID: <549053140909150352t4d10a6e5j1b88f20b0d2e5f7c@mail.gmail.com> On Mon, Sep 14, 2009 at 1:55 PM, Gora Mohanty wrote: > On Tue, 15 Sep 2009 00:04:01 +0530 > bhaskar jain wrote: > [...] >> Problem is that there was a bug and they have changed a few lines >> in one of the C files. So my question is - will just applying the >> patch and installing the library again, will i get a fresh good >> python binding or do i need to regenerate the wrapper_ *.c files >> using SWIG. > > It depends on what was changed, but it is best to regenerate > everything. Is this that much of a concern in terms of time, > etc. It is quite easy to set up a Makefile to do this. > >> Any tips in working with SWIG, using the python bindings will be >> appreciated. Also is it a frequent problem of segmentation faults >> using the python bindings of C programs which employ lot of >> pointers. Sorry, I am new to SWIG. >> >> Is it advisable to use SWIG at all? > [...] > > I would enthusiastically advocate SWIG, but have had arguments with > people who take a different view, and whose opinions I respect. The > best counter-arguments I have heard is cleanness of the generated > code, and efficiency, but at least for a non-pedal-to-the-metal > coder like me, SWIG definitely does the job. So, I would say that > if you can take a look at the generated SWIG code, and think that > you can do better, please do that, and contribute your approach > back to SWIG. This is really "do this for me" but the hope is that it is easy and I will learn how it was done and can later expand on it myself. I need to read the time stamp from the first and last frame of a .dv file. frames are 120000 bytes (or some fixed amount if it is some other format that has a different frame size), so I can do frame=open('foo.dv','rb').read(120000) and pass frame somewhere. or pass a file object, or whatever binding stuff is easiest to implement libdv can do it, here are bindings, but it doesn't include anything to return the timestamp : https://dev.interhost.no/pylibdv/browser/src/pylibdv.c Here is where dvgrab does it - line 836 http://kino.cvs.sourceforge.net/viewvc/kino/dvgrab/dvgrab.cc?revision=1.72&view=markup I don't need any of the "if invalid month, use system date". -- Carl K From anand.shashwat at gmail.com Tue Sep 15 14:05:28 2009 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Tue, 15 Sep 2009 17:35:28 +0530 Subject: [BangPypers] Fwd: How to validate a String with spaces using inbuilt validate function In-Reply-To: <8548c5f30909150030k1b6c06ado85179c51456c7605@mail.gmail.com> References: <8548c5f30909150030k1b6c06ado85179c51456c7605@mail.gmail.com> Message-ID: Please be a little more precise as to what do you exactly mean by 'validat' ? What exactly do you want to achieve with it. Sample Input and desired output will help. On Tue, Sep 15, 2009 at 1:00 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > > > On Tue, Sep 15, 2009 at 11:38 AM, Sampath Girish > wrote: > >> >> >> Hi all, Can anyone please tell me how to validate a String with >> spaces provided in between using inbuilt validate function. Please give me a >> solution for this. >> > > Did not understand what you meant by inbuilt validate function. There is > nothing like that in Python. > > >>> s='Python' > >>> s.validate > Traceback (most recent call last): > File "", line 1, in > AttributeError: 'str' object has no attribute 'validate' > >>> validate > Traceback (most recent call last): > File "", line 1, in > NameError: name 'validate' is not defined > > > >> >> For e.g., Name: *Python**_**India.* The '_ ' is the space. When i use >> 'validate' function in entry field, it must be able to detect spaces and >> text only and accept that. >> > > Use a regular expression. For example, the following does the job for > matching a string with space in between 2 words. > >>> import re > >>> r=re.compile(r'\w+\s+\w+', re.IGNORECASE|re.LOCALE) > >>> r.match('PythonIndia') > >>> r.match('Python India') > <_sre.SRE_Match object at 0x7f0d17909168 > > >> >> Thanks in advance, >> Sampath Girish M >> >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> >> > > > -- > --Anand > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vsapre80 at gmail.com Tue Sep 15 17:26:03 2009 From: vsapre80 at gmail.com (Vishal) Date: Tue, 15 Sep 2009 20:56:03 +0530 Subject: [BangPypers] suppressing the exception stack trace Message-ID: Hello, I would like to raise an exception of type Exception(), however the regular exception stack trace needs to be supressed. This is needed in a function that takes raw_input() from the user and based on 'Y' or 'N', the function suspends further execution and returns to the python prompt or continues. An exit() brings it out of the python process....where as what is needed is coming back to the python prompt. I want a custom message to appear instead of a regular exception stack trace message. How to do this? any pointers...? -- Thanks and best regards, Vishal Sapre --- "So say...Day by day, in every way, I am getting better, better and better !!!" "A Strong and Positive attitude creates more miracles than anything else. Because...Life is 10% how you make it, and 90% how you take it" "Diamond is another piece of coal that did well under pressure? "Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human, Failure Keeps u Humble, Success keeps u Glowing, But only God Keeps u Going.....Keep Going....." -------------- next part -------------- An HTML attachment was scrubbed... URL: From noufal at gmail.com Tue Sep 15 17:35:54 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 15 Sep 2009 21:05:54 +0530 Subject: [BangPypers] suppressing the exception stack trace In-Reply-To: References: Message-ID: <9963e56e0909150835l4a0f428du632dca104b5ba076@mail.gmail.com> On Tue, Sep 15, 2009 at 8:56 PM, Vishal wrote: > Hello, > > I would like to raise an exception of type Exception(), however the regular > exception stack trace needs to be supressed. > > This is needed in a function that takes raw_input() from the user and based > on 'Y' or 'N', the function suspends further execution and returns to the > python prompt or continues. An exit() brings it out of the python > process....where as what is needed is coming back to the python prompt. If you want to embed the interactive interpreter at any point in your program, you can do this import code code.interact() > I want a custom message to appear instead of a regular exception stack trace > message. I'm not sure I understand. How is this related to your original question? In any case, you want to catch exceptions and do something, the patter is something like this try: # Your code except Exception,m: # Your custom message and action -- ~noufal http://nibrahim.net.in From steve at lonetwin.net Tue Sep 15 17:37:27 2009 From: steve at lonetwin.net (steve) Date: Tue, 15 Sep 2009 21:07:27 +0530 Subject: [BangPypers] suppressing the exception stack trace In-Reply-To: References: Message-ID: <4AAFB4B7.9010609@lonetwin.net> On 09/15/2009 08:56 PM, Vishal wrote: > Hello, > > I would like to raise an exception of type Exception(), however the > regular exception stack trace needs to be supressed. > > This is needed in a function that takes raw_input() from the user and > based on 'Y' or 'N', the function suspends further execution and returns > to the python prompt or continues. An exit() brings it out of the python > process....where as what is needed is coming back to the python prompt. > > I want a custom message to appear instead of a regular exception stack > trace message. > > How to do this? any pointers...? Python 2.6 (r26:66714, Jun 8 2009, 16:07:29) [GCC 4.4.0 20090506 (Red Hat 4.4.0-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import traceback >>> try: ... 1 + "foo" ... except Exception, e: ... traceback.format_stack(limit=1) ... [' File "", line 4, in \n'] >>> help(traceback) .... HTH, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From bhaskar.jain2002 at gmail.com Wed Sep 16 02:30:19 2009 From: bhaskar.jain2002 at gmail.com (bhaskar jain) Date: Wed, 16 Sep 2009 06:00:19 +0530 Subject: [BangPypers] SWIG In-Reply-To: <7f2cbc970909141956u6298854an67c768398def8403@mail.gmail.com> References: <7f2cbc970909141134t1e40722bsd7299631cc0af8c1@mail.gmail.com> <20090915002519.64529f93@anubis> <7f2cbc970909141956u6298854an67c768398def8403@mail.gmail.com> Message-ID: <7f2cbc970909151730q2da7554aj8ed307078d883356@mail.gmail.com> The SWIG documentation is pretty detailed - http://www.swig.org/Doc1.3/Sections.html SWIG has a concept of pointer ownership which it uses to manager pointers. The interface files contain the C function declarations and variable declarations. The wrapper function generated is the 'glue' between the scripting language and the underlying C function. Only concern is there may be some 'code bloat' --Bhaskar. On Tue, Sep 15, 2009 at 8:26 AM, bhaskar jain wrote: > Thanks for the response. > > What i faced was intentionally passing unexpected/nonsense data cause > segmentation fault in one case. Was wondering if this is because of SWIG or > because of the underlying library (which in turn uses glib). But the > underlying library looks ok. Have you faced such issues while working with > SWIG. Is it reliable to be used in production level code which will be > pretty load intensive. > > Also who frees the pointers in case of python binding? Some functions say > the caller should free the pointer but in case of python binding does the > python memory manager frees it using the standard reference count. > > I believed the interface file (.i file) has to be hand-written. Can you > please elaborate on the Makefile approach. > > --Bhaskar. > > > > > > On Tue, Sep 15, 2009 at 12:25 AM, Gora Mohanty wrote: > >> On Tue, 15 Sep 2009 00:04:01 +0530 >> bhaskar jain wrote: >> [...] >> > Problem is that there was a bug and they have changed a few lines >> > in one of the C files. So my question is - will just applying the >> > patch and installing the library again, will i get a fresh good >> > python binding or do i need to regenerate the wrapper_ *.c files >> > using SWIG. >> >> It depends on what was changed, but it is best to regenerate >> everything. Is this that much of a concern in terms of time, >> etc. It is quite easy to set up a Makefile to do this. >> >> > Any tips in working with SWIG, using the python bindings will be >> > appreciated. Also is it a frequent problem of segmentation faults >> > using the python bindings of C programs which employ lot of >> > pointers. Sorry, I am new to SWIG. >> > >> > Is it advisable to use SWIG at all? >> [...] >> >> I would enthusiastically advocate SWIG, but have had arguments with >> people who take a different view, and whose opinions I respect. The >> best counter-arguments I have heard is cleanness of the generated >> code, and efficiency, but at least for a non-pedal-to-the-metal >> coder like me, SWIG definitely does the job. So, I would say that >> if you can take a look at the generated SWIG code, and think that >> you can do better, please do that, and contribute your approach >> back to SWIG. >> >> Regards, >> Gora >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vsapre80 at gmail.com Wed Sep 16 08:09:56 2009 From: vsapre80 at gmail.com (Vishal) Date: Wed, 16 Sep 2009 11:39:56 +0530 Subject: [BangPypers] suppressing the exception stack trace In-Reply-To: <4AAFB4B7.9010609@lonetwin.net> References: <4AAFB4B7.9010609@lonetwin.net> Message-ID: On Tue, Sep 15, 2009 at 9:07 PM, steve wrote: > On 09/15/2009 08:56 PM, Vishal wrote: > >> Hello, >> >> I would like to raise an exception of type Exception(), however the >> regular exception stack trace needs to be supressed. >> >> This is needed in a function that takes raw_input() from the user and >> based on 'Y' or 'N', the function suspends further execution and returns >> to the python prompt or Hicontinues. An exit() brings it out of the python >> process....where as what is needed is coming back to the python prompt. >> >> I want a custom message to appear instead of a regular exception stack >> trace message. >> >> How to do this? any pointers...? >> > Python 2.6 (r26:66714, Jun 8 2009, 16:07:29) > [GCC 4.4.0 20090506 (Red Hat 4.4.0-4)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import traceback > >>> try: > ... 1 + "foo" > ... except Exception, e: > ... traceback.format_stack(limit=1) > ... > [' File "", line 4, in \n'] > >>> help(traceback) > .... > > HTH, > - steve > > > Forgot to mention that we are currently stuck with python2.5.2 As part of a debug/test hook, I would like to suspend further action of a program, after a certain point in the procedure. What I had come up with is a function named testHook() which does this: def testHook(): """ """ choice = raw_input("Would you like to continue (Y or N): ") try: if(str(choice).lower() != 'y'): print("You chose not to go ahead. Ok!!\nAborting Now...") raise Exception("User initiated Abort...") except Exception: raise # re-raise it..so we come out of execution loop In this case, a stack trace gets printed out, before the string 'user initiated abort' comes up. I want to remove that stack trace...so it looks more clean to a user. What can be done in this case? or any other way of creating such a hook? -- Thanks and best regards, Vishal Sapre -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashok.raavi at gmail.com Wed Sep 16 08:25:51 2009 From: ashok.raavi at gmail.com (ashok raavi) Date: Wed, 16 Sep 2009 11:55:51 +0530 Subject: [BangPypers] suppressing the exception stack trace In-Reply-To: References: <4AAFB4B7.9010609@lonetwin.net> Message-ID: <2aa122da0909152325w1d6a4f2eoa15c2ee648f1aa0f@mail.gmail.com> On Wed, Sep 16, 2009 at 11:39 AM, Vishal wrote: > > > On Tue, Sep 15, 2009 at 9:07 PM, steve wrote: > >> On 09/15/2009 08:56 PM, Vishal wrote: >> >>> Hello, >>> >>> I would like to raise an exception of type Exception(), however the >>> regular exception stack trace needs to be supressed. >>> >>> This is needed in a function that takes raw_input() from the user and >>> based on 'Y' or 'N', the function suspends further execution and returns >>> to the python prompt or Hicontinues. An exit() brings it out of the >>> python >>> process....where as what is needed is coming back to the python prompt. >>> >>> I want a custom message to appear instead of a regular exception stack >>> trace message. >>> >>> How to do this? any pointers...? >>> >> Python 2.6 (r26:66714, Jun 8 2009, 16:07:29) >> [GCC 4.4.0 20090506 (Red Hat 4.4.0-4)] on linux2 >> Type "help", "copyright", "credits" or "license" for more information. >> >>> import traceback >> >>> try: >> ... 1 + "foo" >> ... except Exception, e: >> ... traceback.format_stack(limit=1) >> ... >> [' File "", line 4, in \n'] >> >>> help(traceback) >> .... >> >> HTH, >> - steve >> >> >> > Forgot to mention that we are currently stuck with python2.5.2 > As part of a debug/test hook, I would like to suspend further action of a > program, after a certain point in the procedure. What I had come up with is > a function named testHook() which does this: > > def testHook(): > """ > """ > choice = raw_input("Would you like to continue (Y or N): ") > try: > if(str(choice).lower() != 'y'): > print("You chose not to go ahead. Ok!!\nAborting Now...") > raise Exception("User initiated Abort...") > except Exception: > raise # re-raise it..so we come out of execution loop > > is this what you want, def testHook(): """ """ choice = raw_input("Would you like to continue (Y or N): ") try: if(str(choice).lower() != 'y'): print("You chose not to go ahead. Ok!!\nAborting Now...") raise Exception("User initiated Abort...") except Exception, e: print e.message > In this case, a stack trace gets printed out, before the string 'user > initiated abort' comes up. I want to remove that stack trace...so it looks > more clean to a user. > > What can be done in this case? or any other way of creating such a hook? > > -- > Thanks and best regards, > Vishal Sapre > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- ashok raavi -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at lonetwin.net Wed Sep 16 09:01:34 2009 From: steve at lonetwin.net (steve) Date: Wed, 16 Sep 2009 12:31:34 +0530 Subject: [BangPypers] suppressing the exception stack trace In-Reply-To: References: <4AAFB4B7.9010609@lonetwin.net> Message-ID: <4AB08D4E.5000401@lonetwin.net> On 09/16/2009 11:39 AM, Vishal wrote: > > > On Tue, Sep 15, 2009 at 9:07 PM, steve > wrote: > > On 09/15/2009 08:56 PM, Vishal wrote: > > Hello, > > I would like to raise an exception of type Exception(), however the > regular exception stack trace needs to be supressed. > > This is needed in a function that takes raw_input() from the > user and > based on 'Y' or 'N', the function suspends further execution and > returns > to the python prompt or Hicontinues. An exit() brings it out of > the python > process....where as what is needed is coming back to the python > prompt. > > I want a custom message to appear instead of a regular exception > stack > trace message. > > How to do this? any pointers...? > > Python 2.6 (r26:66714, Jun 8 2009, 16:07:29) > [GCC 4.4.0 20090506 (Red Hat 4.4.0-4)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > > >> import traceback > > >> try: > ... 1 + "foo" > ... except Exception, e: > ... traceback.format_stack(limit=1) > ... > [' File "", line 4, in \n'] > > >> help(traceback) > .... > > HTH, > - steve > > > > Forgot to mention that we are currently stuck with python2.5.2 > > As part of a debug/test hook, I would like to suspend further action of > a program, after a certain point in the procedure. What I had come up > with is a function named testHook() which does this: > > def testHook(): > """ > """ > choice = raw_input("Would you like to continue (Y or N): ") > try: > if(str(choice).lower() != 'y'): > print("You chose not to go ahead. Ok!!\nAborting Now...") > raise Exception("User initiated Abort...") > except Exception: > raise # re-raise it..so we come out of execution loop > > In this case, a stack trace gets printed out, before the string 'user > initiated abort' comes up. I want to remove that stack trace...so it > looks more clean to a user. > > What can be done in this case? Well, I don't understand how and from what context you are calling testHook(). My first instinct is to ask, why you can't simply return instead of 'raise' on an abort ? like so ... def testHook(exc): choice = raw_input("Would you like to continue (Y or N): ") if(str(choice).lower() != 'y'): print("You chose not to go ahead. Ok!!\nAborting Now...") print "User initiated Abort..." return -1 # ...or any other value that makes sense to your app. else: raise exc # re-raise the passed exception In which case, I am assuming testHook() called like this: try: 1 + "foo" except Exception, e: return testHook(e) > or any other way of creating such a hook? Yes. The way I would do this sort of this is by using decorators: >>> def testHook(func): ... def wrap_exception(*args): ... try: ... func(*args) ... except Exception, e: ... choice = raw_input("Would you like to continue (Y or N): ") ... if (str(choice).lower() != 'y'): ... print("You chose not to go ahead. Ok!!\nAborting Now...") ... print "User initiated abort ..." ... print "on recieving %s" % e.message ... return ... else: ... print "redirect to debugger in this block ..." ... return wrap_exception ... >>> @testHook ... def main(a, b): ... return a + b ... >>> main(1, "foo") Would you like to continue (Y or N): n You chose not to go ahead. Ok!! Aborting Now... User initiated abort ... on recieving unsupported operand type(s) for +: 'int' and 'str' >>> Here is a good article for introducing decorators: http://www.ibm.com/developerworks/linux/library/l-cpdecor.html HTH, cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From shivraj.ms at gmail.com Wed Sep 16 11:17:43 2009 From: shivraj.ms at gmail.com (Shivaraj M S) Date: Wed, 16 Sep 2009 14:47:43 +0530 Subject: [BangPypers] Fwd: Join Us for Mozilla Service Week In-Reply-To: References: Message-ID: <2c1c314c0909160217p6697d64aj1314e2a0d2eaa1ab@mail.gmail.com> ---------- Forwarded message ---------- From: SourceForge.net Team Date: Wed, Sep 16, 2009 at 6:20 AM Subject: Join Us for Mozilla Service Week To: shivraj.ms at gmail.com Helping others - it comes naturally to people who write open source software. Now the Mozilla Foundation is trying to employ the power of the community in a more direct and hands-on way during Mozilla Service Week (http://mozillaservice.org/learn_more/volunteer/en_US). During this week, Mozilla (and SourceForge) encourage you to volunteer in your community. Tech savvy folks can apply their skills in a variety of ways. Some ideas from the foundation: . Teach senior citizens how to use the Web. . Show a non-profit how to use social networking to grow its base of supporters. . Help install a wireless network at a school. . Create Web how-to materials for a library's computer cluster. . Refurbish hardware for a local computer center. . Update a non-profit organization's web site. Organizations and projects that need assistance can also register to get help. As a company and as individuals, we at SourceForge will be participating in Mozilla Service Week. We encourage you to get out there in your own community and make a difference! ---------------------------------------------------------------------- This message was sent on behalf of SourceForge.net. To unsubscribe from future mailings, login to the SourceForge.net site and modify your subscription preferences at: https://sourceforge.net/account/ Or contact us by postal mail at: Attn: SourceForge.net Legal Services - Unsubscribe SourceForge, Inc. 650 Castro Street, Suite 450 Mountain View, CA 94041 Unsubscribe requests will be processed within 10 days of receipt. -- Regards _______________ Shivaraj -------------- next part -------------- An HTML attachment was scrubbed... URL: From jinsthomas at gmail.com Wed Sep 16 16:18:44 2009 From: jinsthomas at gmail.com (Jins Thomas) Date: Wed, 16 Sep 2009 19:48:44 +0530 Subject: [BangPypers] Help Python framework for report creation (bar graph, pie etc) Message-ID: Hi all, I'm relatively a newbie to python. But i do read most of the posts in this list. Currently I'm doing a study on developing one reporting framework to pull the data from the database and project in appealing way like pie charts, normal charts, bar graphs etc. Would any body please comment on some good frameworks in python (web based GUI), which is already available on which i can add my customizations. This is to replace one of the reporting frameworks provided by Business Objects Web Intelligence. Any comments on where to start, how to start are much appreciated. Please help. Many Thanks Jins Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From santhosh.divakar at gmail.com Wed Sep 16 16:24:19 2009 From: santhosh.divakar at gmail.com (Santhosh Divakar) Date: Wed, 16 Sep 2009 19:54:19 +0530 Subject: [BangPypers] Help Python framework for report creation (bar graph, pie etc) In-Reply-To: References: Message-ID: <8557029f0909160724o1ecd27d2sb65ec146464cf436@mail.gmail.com> For plotting you can use gnuplot or pychart. Now for my project I used both gnuplot and pychart , but went with pychart since the latter is easier to integrate with a web-framework. I can ask pychart to give me the output in a PNG format and I can use that in a web page. The documentation of pychart are pretty simple and straightforward. -Hope This Helps Santhosh On Wed, Sep 16, 2009 at 7:48 PM, Jins Thomas wrote: > I'm relatively a newbie to python. But i do read most of the posts in this > list. Currently I'm doing a study on developing one reporting framework to > pull the data from the database and project in appealing way like pie > charts, normal charts, bar graphs etc. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssquery at gmail.com Wed Sep 16 16:32:41 2009 From: ssquery at gmail.com (sudhakar s) Date: Wed, 16 Sep 2009 20:02:41 +0530 Subject: [BangPypers] Help Python framework for report creation (bar graph, pie etc) In-Reply-To: References: Message-ID: <1528d2590909160732g50a860bav458460a0d343908@mail.gmail.com> For generating reports u can use ReportLab. you can easily generate pie charts, normal charts, bar graph based on the data present in database..... >From report u can incorporate into web based application. On Wed, Sep 16, 2009 at 7:48 PM, Jins Thomas wrote: > Hi all, > > I'm relatively a newbie to python. But i do read most of the posts in this > list. Currently I'm doing a study on developing one reporting framework to > pull the data from the database and project in appealing way like pie > charts, normal charts, bar graphs etc. > > Would any body please comment on some good frameworks in python (web based > GUI), which is already available on which i can add my customizations. This > is to replace one of the reporting frameworks provided by Business Objects > Web Intelligence. > > Any comments on where to start, how to start are much appreciated. Please > help. > > > Many Thanks > Jins Thomas > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- With Regards, S Sudhakar. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pradeep at btbytes.com Wed Sep 16 16:37:12 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Wed, 16 Sep 2009 10:37:12 -0400 Subject: [BangPypers] Help Python framework for report creation (bar graph, pie etc) In-Reply-To: <8557029f0909160724o1ecd27d2sb65ec146464cf436@mail.gmail.com> References: <8557029f0909160724o1ecd27d2sb65ec146464cf436@mail.gmail.com> Message-ID: <3e3294b70909160737h7c44f7d2r8d6b15ccbe9dfad9@mail.gmail.com> On Wed, Sep 16, 2009 at 10:24 AM, Santhosh Divakar wrote: > For plotting you can use gnuplot or pychart. > > Now for my project I used both gnuplot and pychart , but went with pychart > since the latter is easier to integrate with a web-framework. I can ask > pychart to give me the output in a PNG format and I can use that in a web > page. The documentation of pychart are pretty simple and straightforward. > > -Hope This Helps > Santhosh > > On Wed, Sep 16, 2009 at 7:48 PM, Jins Thomas wrote: > >> >> I'm relatively a newbie to python. But i do read most of the posts in this >> list.? Currently I'm doing a study on developing one reporting framework to >> pull the data from the database and project in appealing way like pie >> charts, normal charts, bar graphs etc. If you are looking for "Web" charts, with some level of interactivity, look at Open Flash Charts 2 http://teethgrinder.co.uk/open-flash-chart-2/ You can Use Python on the server side (regardless of the web framework you choose) with the PyOFC2 library (I wrote it). http://btbytes.github.com/pyofc2/ Example of using PyOFC2 with Django: http://github.com/btbytes/djofc2_demo/tree/master If you need more interactivity/options look at FusionCharts Version 2 (free) V3 ($) or Adobe Flex charts (many $$). +PG From noufal at gmail.com Wed Sep 16 17:31:53 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 16 Sep 2009 21:01:53 +0530 Subject: [BangPypers] Help Python framework for report creation (bar graph, pie etc) In-Reply-To: References: Message-ID: <9963e56e0909160831g40a5fa99i862525d7e2414132@mail.gmail.com> On Wed, Sep 16, 2009 at 7:48 PM, Jins Thomas wrote: > Hi all, > > I'm relatively a newbie to python. But i do read most of the posts in this > list.? Currently I'm doing a study on developing one reporting framework to > pull the data from the database and project in appealing way like pie > charts, normal charts, bar graphs etc. [..] One option for charts is pygooglechart which is a thin layer around the Google charts API. -- ~noufal http://nibrahim.net.in From pradeep at btbytes.com Wed Sep 16 17:40:14 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Wed, 16 Sep 2009 11:40:14 -0400 Subject: [BangPypers] Help Python framework for report creation (bar graph, pie etc) In-Reply-To: <9963e56e0909160831g40a5fa99i862525d7e2414132@mail.gmail.com> References: <9963e56e0909160831g40a5fa99i862525d7e2414132@mail.gmail.com> Message-ID: <3e3294b70909160840p7ab599fdl4df8f77d3f566071@mail.gmail.com> On Wed, Sep 16, 2009 at 11:31 AM, Noufal Ibrahim wrote: > On Wed, Sep 16, 2009 at 7:48 PM, Jins Thomas wrote: >> Hi all, >> >> I'm relatively a newbie to python. But i do read most of the posts in this >> list.? Currently I'm doing a study on developing one reporting framework to >> pull the data from the database and project in appealing way like pie >> charts, normal charts, bar graphs etc. > > [..] > > One option for charts is pygooglechart which is a thin layer around > the Google charts API. Doesn't pygooglechart require you to fetch images from google severs every time? This also reminds me of YUI charts which recently(v2.8) added Dual axis chart support. YUI is flash based. http://developer.yahoo.com/yui/charts/ http://www.yuiblog.com/blog/2009/09/14/yui-2-8-0/ +PG From carl at personnelware.com Wed Sep 16 18:45:20 2009 From: carl at personnelware.com (Carl Karsten) Date: Wed, 16 Sep 2009 11:45:20 -0500 Subject: [BangPypers] Help Python framework for report creation (bar graph, pie etc) In-Reply-To: <1528d2590909160732g50a860bav458460a0d343908@mail.gmail.com> References: <1528d2590909160732g50a860bav458460a0d343908@mail.gmail.com> Message-ID: <549053140909160945k33957ce3i6148566db817247b@mail.gmail.com> For the row/column text reports, http://dabodev.com/wiki/ReportDesigner (if there were docs, thats where they would be. there is a .mov somewhere on the site) dabo is meant for making wx apps, but I have used the wx based report IDE to generate the .rfxml layout files and hook those into websites to generate pdfs. Here are 2 examples of "make pdf on webserver" code: http://bazaar.launchpad.net/~yarkot1/web2conf/badge_support/annotate/head%3A/controllers/badge.py#L142 https://pycon.coderanger.net/browser/django/trunk/pycon/badges/views.py#L157 On Wed, Sep 16, 2009 at 9:32 AM, sudhakar s wrote: > For generating reports u can use ReportLab. you can easily generate pie > charts, normal charts, bar graph based on the data present in database..... > > From report u can incorporate into web based application. > > > > On Wed, Sep 16, 2009 at 7:48 PM, Jins Thomas wrote: >> >> Hi all, >> >> I'm relatively a newbie to python. But i do read most of the posts in this >> list.? Currently I'm doing a study on developing one reporting framework to >> pull the data from the database and project in appealing way like pie >> charts, normal charts, bar graphs etc. >> >> Would any body please comment on some good frameworks in python (web >> based? GUI), which is already available on which i can add my >> customizations. This is to replace one of the reporting frameworks provided >> by Business Objects Web Intelligence. >> >> Any comments on where to start, how to start are much appreciated. Please >> help. >> >> >> Many Thanks >> Jins Thomas >> >> >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > With Regards, > S Sudhakar. > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Carl K From carl at personnelware.com Wed Sep 16 18:55:32 2009 From: carl at personnelware.com (Carl Karsten) Date: Wed, 16 Sep 2009 11:55:32 -0500 Subject: [BangPypers] Help Python framework for report creation (bar graph, pie etc) In-Reply-To: <549053140909160945k33957ce3i6148566db817247b@mail.gmail.com> References: <1528d2590909160732g50a860bav458460a0d343908@mail.gmail.com> <549053140909160945k33957ce3i6148566db817247b@mail.gmail.com> Message-ID: <549053140909160955q1c92a20er8fd4ee5acdf0fd97@mail.gmail.com> On Wed, Sep 16, 2009 at 11:45 AM, Carl Karsten wrote: > For the row/column text reports, > http://dabodev.com/wiki/ReportDesigner (if there were docs, thats > where they would be. ?there is a .mov somewhere on the site) http://dabodev.com/documentation # Report Designer Overview, Part 2 (Paul, 2006-02-17, 10 minutes) # Report Designer Overview (Paul, 2006-02-13, 23 minutes) > > dabo is meant for making wx apps, but I have used the wx based report > IDE to generate the .rfxml layout files and hook those into websites > to generate pdfs. > > Here are 2 examples of "make pdf on webserver" code: > > http://bazaar.launchpad.net/~yarkot1/web2conf/badge_support/annotate/head%3A/controllers/badge.py#L142 > > https://pycon.coderanger.net/browser/django/trunk/pycon/badges/views.py#L157 > > > > On Wed, Sep 16, 2009 at 9:32 AM, sudhakar s wrote: >> For generating reports u can use ReportLab. you can easily generate pie >> charts, normal charts, bar graph based on the data present in database..... >> >> From report u can incorporate into web based application. >> >> >> >> On Wed, Sep 16, 2009 at 7:48 PM, Jins Thomas wrote: >>> >>> Hi all, >>> >>> I'm relatively a newbie to python. But i do read most of the posts in this >>> list.? Currently I'm doing a study on developing one reporting framework to >>> pull the data from the database and project in appealing way like pie >>> charts, normal charts, bar graphs etc. >>> >>> Would any body please comment on some good frameworks in python (web >>> based? GUI), which is already available on which i can add my >>> customizations. This is to replace one of the reporting frameworks provided >>> by Business Objects Web Intelligence. >>> >>> Any comments on where to start, how to start are much appreciated. Please >>> help. >>> >>> >>> Many Thanks >>> Jins Thomas >>> >>> >>> >>> _______________________________________________ >>> BangPypers mailing list >>> BangPypers at python.org >>> http://mail.python.org/mailman/listinfo/bangpypers >>> >> >> >> >> -- >> With Regards, >> S Sudhakar. >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> >> > > > > -- > Carl K > -- Carl K From abpillai at gmail.com Thu Sep 17 05:16:35 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 17 Sep 2009 08:46:35 +0530 Subject: [BangPypers] [Inpycon] PyCon blog In-Reply-To: <9963e56e0909151119o142a6d62m3bc09f1c023c5e4b@mail.gmail.com> References: <9963e56e0909151119o142a6d62m3bc09f1c023c5e4b@mail.gmail.com> Message-ID: <8548c5f30909162016l768b5d2vb0c0d49328dc4c37@mail.gmail.com> Done. http://pycon.blogspot.com/2009/09/just-one-week-to-go-for-pycon-india.html Can others also spread the word around ? If you have twitter accounts, please use it to the fullest. Also guys with blogs on planet python etc, please make noise. Those on facebook can post articles on PyCon. Ramdas, have we talked with any newspapers yet ? Thanks --Anand PS: X-posted to BangPypers also. On Tue, Sep 15, 2009 at 11:49 PM, Noufal Ibrahim wrote: > Can someone update the PyCon blog with a "one week to go" kind of post? > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > Inpycon mailing list > Inpycon at python.org > http://mail.python.org/mailman/listinfo/inpycon > -- --Anand -------------- next part -------------- An HTML attachment was scrubbed... URL: From kgthegreat at gmail.com Thu Sep 17 06:16:06 2009 From: kgthegreat at gmail.com (Kumar Gaurav) Date: Thu, 17 Sep 2009 09:46:06 +0530 Subject: [BangPypers] [Inpycon] PyCon blog In-Reply-To: <8548c5f30909162016l768b5d2vb0c0d49328dc4c37@mail.gmail.com> References: <9963e56e0909151119o142a6d62m3bc09f1c023c5e4b@mail.gmail.com> <8548c5f30909162016l768b5d2vb0c0d49328dc4c37@mail.gmail.com> Message-ID: <56bf8e090909162116y5e96eb92yd4d32c92c413d8b2@mail.gmail.com> The dates on the blog have to be corrected. On the blog it is NOV 26,27. On Thu, Sep 17, 2009 at 8:46 AM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > Done. > > http://pycon.blogspot.com/2009/09/just-one-week-to-go-for-pycon-india.html > > Can others also spread the word around ? If you have twitter accounts, > please use it to the fullest. Also guys with blogs on planet python etc, > please make noise. Those on facebook can post articles on PyCon. > > Ramdas, have we talked with any newspapers yet ? > > Thanks > > --Anand > > PS: X-posted to BangPypers also. > > On Tue, Sep 15, 2009 at 11:49 PM, Noufal Ibrahim wrote: > >> Can someone update the PyCon blog with a "one week to go" kind of post? >> >> -- >> ~noufal >> http://nibrahim.net.in >> _______________________________________________ >> Inpycon mailing list >> Inpycon at python.org >> http://mail.python.org/mailman/listinfo/inpycon >> > > > > -- > --Anand > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Kumar Gaurav Developer http://www.kumargaurav.info Latest Post -- Gitting things right http://wp.me/pbU2Q-2j -------------- next part -------------- An HTML attachment was scrubbed... URL: From balamurugan.sekar at gmail.com Thu Sep 17 06:23:02 2009 From: balamurugan.sekar at gmail.com (Balamurugan S) Date: Thu, 17 Sep 2009 09:53:02 +0530 Subject: [BangPypers] Help Python framework for report creation (bar graph, pie etc) In-Reply-To: References: Message-ID: On Wed, Sep 16, 2009 at 7:48 PM, Jins Thomas wrote: > Would any body please comment on some good frameworks in python (web based > GUI), which is already available on which i can add my customizations. This > is to replace one of the reporting frameworks provided by Business Objects > Web Intelligence. You can try python-gdchart2 which is relatively easy to use. More information at, http://archive.nexenta.org/elatte-unstable/python/python-gdchart2 -- Regards, S.Balamurugan Free the code, Free the User From abpillai at gmail.com Thu Sep 17 08:06:37 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 17 Sep 2009 11:36:37 +0530 Subject: [BangPypers] [Inpycon] PyCon blog In-Reply-To: <56bf8e090909162116y5e96eb92yd4d32c92c413d8b2@mail.gmail.com> References: <9963e56e0909151119o142a6d62m3bc09f1c023c5e4b@mail.gmail.com> <8548c5f30909162016l768b5d2vb0c0d49328dc4c37@mail.gmail.com> <56bf8e090909162116y5e96eb92yd4d32c92c413d8b2@mail.gmail.com> Message-ID: <8548c5f30909162306w397cda7anff4b718e9d92a41a@mail.gmail.com> On Thu, Sep 17, 2009 at 9:46 AM, Kumar Gaurav wrote: > The dates on the blog have to be corrected. On the blog it is NOV 26,27. > Good catch. Fixed. > > > -- --Anand -------------- next part -------------- An HTML attachment was scrubbed... URL: From jinsthomas at gmail.com Thu Sep 17 16:29:20 2009 From: jinsthomas at gmail.com (Jins Thomas) Date: Thu, 17 Sep 2009 19:59:20 +0530 Subject: [BangPypers] Help Python framework for report creation (bar graph, pie etc) In-Reply-To: References: Message-ID: On Thu, Sep 17, 2009 at 9:53 AM, Balamurugan S wrote: > On Wed, Sep 16, 2009 at 7:48 PM, Jins Thomas wrote: > > Would any body please comment on some good frameworks in python (web > based > > GUI), which is already available on which i can add my customizations. > This > > is to replace one of the reporting frameworks provided by Business > Objects > > Web Intelligence. > > You can try python-gdchart2 which is relatively easy to use. More > information at, > http://archive.nexenta.org/elatte-unstable/python/python-gdchart2 > > Thanks alot for the wonderful suggestions... i'll keep updating.. Thanks Jins -------------- next part -------------- An HTML attachment was scrubbed... URL: From vg at apple.com Fri Sep 18 12:03:07 2009 From: vg at apple.com (Vamsi) Date: Fri, 18 Sep 2009 15:33:07 +0530 Subject: [BangPypers] Place the timer in Python script Message-ID: <7C1ADA5C-20C1-4ECD-8BA3-CE6A415798B5@apple.com> How to place the timer in python code. I want calculate the python script execution time. ex : Start Timer : End Timer Execution Time : End Timer - Start Timer. How can we write the python code for this. Help would be appreciable. Thanks in Advance. Vamsi From lists.amitsaha at gmail.com Fri Sep 18 12:09:57 2009 From: lists.amitsaha at gmail.com (Amit Saha) Date: Fri, 18 Sep 2009 15:39:57 +0530 Subject: [BangPypers] Place the timer in Python script In-Reply-To: <7C1ADA5C-20C1-4ECD-8BA3-CE6A415798B5@apple.com> References: <7C1ADA5C-20C1-4ECD-8BA3-CE6A415798B5@apple.com> Message-ID: <4AB35C75.1030700@gmail.com> Vamsi wrote: > How to place the timer in python code. > > I want calculate the python script execution time. > > ex : Start Timer > : End Timer > > Execution Time : End Timer - Start Timer. > > How can we write the python code for this. > > Help would be appreciable. http://stackoverflow.com/questions/156330/get-timer-ticks-in-python might help. -Amit -- Journal: http://amitksaha.wordpress.com ?-blog: http://twitter.com/amitsaha IRC: cornucopic on #scheme, #lisp, #math, #linux From steve at lonetwin.net Fri Sep 18 12:13:25 2009 From: steve at lonetwin.net (steve) Date: Fri, 18 Sep 2009 15:43:25 +0530 Subject: [BangPypers] Place the timer in Python script In-Reply-To: <7C1ADA5C-20C1-4ECD-8BA3-CE6A415798B5@apple.com> References: <7C1ADA5C-20C1-4ECD-8BA3-CE6A415798B5@apple.com> Message-ID: <4AB35D45.70808@lonetwin.net> On 09/18/2009 03:33 PM, Vamsi wrote: > How to place the timer in python code. > > I want calculate the python script execution time. > > ex : Start Timer > : End Timer > > Execution Time : End Timer - Start Timer. > > How can we write the python code for this. http://docs.python.org/library/debug.html Specifically, the timeit module http://docs.python.org/library/timeit.html btw, dunno if you've heard about this really neat web application. It is a simple text box with a couple of buttons that answers questions such as these. I forgot it's name. It's something like golgol or some such. cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From bhaskar.jain2002 at gmail.com Fri Sep 18 12:29:27 2009 From: bhaskar.jain2002 at gmail.com (bhaskar jain) Date: Fri, 18 Sep 2009 15:59:27 +0530 Subject: [BangPypers] Place the timer in Python script In-Reply-To: <4AB35D45.70808@lonetwin.net> References: <7C1ADA5C-20C1-4ECD-8BA3-CE6A415798B5@apple.com> <4AB35D45.70808@lonetwin.net> Message-ID: <7f2cbc970909180329w4b421e2dle8d18cce84bde416@mail.gmail.com> >>>btw, dunno if you've heard about this really neat web application. It is a simple text box with a couple of buttons that answers questions such as these. I >>>forgot it's name. It's something like golgol or some such Great answer! http://lmgtfy.com/ On Fri, Sep 18, 2009 at 3:43 PM, steve wrote: > On 09/18/2009 03:33 PM, Vamsi wrote: > >> How to place the timer in python code. >> >> I want calculate the python script execution time. >> >> ex : Start Timer >> : End Timer >> >> Execution Time : End Timer - Start Timer. >> >> How can we write the python code for this. >> > http://docs.python.org/library/debug.html > > Specifically, the timeit module > http://docs.python.org/library/timeit.html > > btw, dunno if you've heard about this really neat web application. It is a > simple text box with a couple of buttons that answers questions such as > these. I forgot it's name. It's something like golgol or some such. > > cheers, > - steve > > -- > random non tech spiel: http://lonetwin.blogspot.com/ > tech randomness: http://lonehacks.blogspot.com/ > what i'm stumbling into: http://lonetwin.stumbleupon.com/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vsapre80 at gmail.com Fri Sep 18 12:32:11 2009 From: vsapre80 at gmail.com (Vishal) Date: Fri, 18 Sep 2009 16:02:11 +0530 Subject: [BangPypers] Place the timer in Python script In-Reply-To: <4AB35D45.70808@lonetwin.net> References: <7C1ADA5C-20C1-4ECD-8BA3-CE6A415798B5@apple.com> <4AB35D45.70808@lonetwin.net> Message-ID: On Fri, Sep 18, 2009 at 3:43 PM, steve wrote: > On 09/18/2009 03:33 PM, Vamsi wrote: > >> How to place the timer in python code. >> >> I want calculate the python script execution time. >> >> ex : Start Timer >> : End Timer >> >> Execution Time : End Timer - Start Timer. >> >> How can we write the python code for this. >> > http://docs.python.org/library/debug.html > > Specifically, the timeit module > http://docs.python.org/library/timeit.html > > btw, dunno if you've heard about this really neat web application. It is a > simple text box with a couple of buttons that answers questions such as > these. I forgot it's name. It's something like golgol or some such. > > cheers, > - steve > > -- > random non tech spiel: http://lonetwin.blogspot.com/ > tech randomness: http://lonehacks.blogspot.com/ > what i'm stumbling into: http://lonetwin.stumbleupon.com/ > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > Here's what I usually do on windows: from time import clock, strftime, gmtime start = clock() ... do you work here... end = clock() elapsed = end - start print "Time Taken to finish: %s" % (strftime("%Hhrs: %Mmins: %ssecs", gmtime(elapsed)) If you wish to record in miliseconds, you'll have to do some math on the 'elapsed' value. -- Thanks and best regards, Vishal Sapre --- "So say...Day by day, in every way, I am getting better, better and better !!!" "A Strong and Positive attitude creates more miracles than anything else. Because...Life is 10% how you make it, and 90% how you take it" "Diamond is another piece of coal that did well under pressure? "Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human, Failure Keeps u Humble, Success keeps u Glowing, But only God Keeps u Going.....Keep Going....." -------------- next part -------------- An HTML attachment was scrubbed... URL: From anand.shashwat at gmail.com Fri Sep 18 13:52:06 2009 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Fri, 18 Sep 2009 17:22:06 +0530 Subject: [BangPypers] Place the timer in Python script In-Reply-To: References: <7C1ADA5C-20C1-4ECD-8BA3-CE6A415798B5@apple.com> <4AB35D45.70808@lonetwin.net> Message-ID: One really simple way is to do : $ time code.py Works for me for simple codes. For accuracy there is timeit :) On Fri, Sep 18, 2009 at 4:02 PM, Vishal wrote: > On Fri, Sep 18, 2009 at 3:43 PM, steve wrote: > >> On 09/18/2009 03:33 PM, Vamsi wrote: >> >>> How to place the timer in python code. >>> >>> I want calculate the python script execution time. >>> >>> ex : Start Timer >>> : End Timer >>> >>> Execution Time : End Timer - Start Timer. >>> >>> How can we write the python code for this. >>> >> http://docs.python.org/library/debug.html >> >> Specifically, the timeit module >> http://docs.python.org/library/timeit.html >> >> btw, dunno if you've heard about this really neat web application. It is a >> simple text box with a couple of buttons that answers questions such as >> these. I forgot it's name. It's something like golgol or some such. >> >> cheers, >> - steve >> >> -- >> random non tech spiel: http://lonetwin.blogspot.com/ >> tech randomness: http://lonehacks.blogspot.com/ >> what i'm stumbling into: http://lonetwin.stumbleupon.com/ >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > Here's what I usually do on windows: > > from time import clock, strftime, gmtime > > start = clock() > > ... do you work here... > > end = clock() > > elapsed = end - start > print "Time Taken to finish: %s" % (strftime("%Hhrs: %Mmins: %ssecs", > gmtime(elapsed)) > > If you wish to record in miliseconds, you'll have to do some math on the > 'elapsed' value. > > > -- > Thanks and best regards, > Vishal Sapre > > --- > > "So say...Day by day, in every way, I am getting better, better and better > !!!" > "A Strong and Positive attitude creates more miracles than anything else. > Because...Life is 10% how you make it, and 90% how you take it" > "Diamond is another piece of coal that did well under pressure? > "Happiness keeps u Sweet, Trials keep u Strong, > Sorrow keeps u Human, Failure Keeps u Humble, > Success keeps u Glowing, But only God Keeps u Going.....Keep Going....." > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nkhalasi at vayana.in Fri Sep 18 13:52:43 2009 From: nkhalasi at vayana.in (Naresh Khalasi) Date: Fri, 18 Sep 2009 17:22:43 +0530 Subject: [BangPypers] Place the timer in Python script In-Reply-To: References: <7C1ADA5C-20C1-4ECD-8BA3-CE6A415798B5@apple.com> <4AB35D45.70808@lonetwin.net> Message-ID: <7fb1edae0909180452g1856e5e3s45f56c5e7c5732bd@mail.gmail.com> I used this when I first explored....but now I prefer "timeit" from datetime import datetime as dt session = Session() try: log.debug('Creating all enterprise users at once') start_time = dt.now() session.add_all(list_of_users) session.commit() end_time = dt.now() log.debug('Time taken to store data in database: %s' %(end_time - start_time)) except IntegrityError, interr: session.rollback() return ['Problems storing the user data'] You won't have to format the difference. It gives you in hh:mm:ss:milisec format. On Fri, Sep 18, 2009 at 4:02 PM, Vishal wrote: > On Fri, Sep 18, 2009 at 3:43 PM, steve wrote: > >> On 09/18/2009 03:33 PM, Vamsi wrote: >> >>> How to place the timer in python code. >>> >>> I want calculate the python script execution time. >>> >>> ex : Start Timer >>> : End Timer >>> >>> Execution Time : End Timer - Start Timer. >>> >>> How can we write the python code for this. >>> >> http://docs.python.org/library/debug.html >> >> Specifically, the timeit module >> http://docs.python.org/library/timeit.html >> >> btw, dunno if you've heard about this really neat web application. It is a >> simple text box with a couple of buttons that answers questions such as >> these. I forgot it's name. It's something like golgol or some such. >> >> cheers, >> - steve >> >> -- >> random non tech spiel: http://lonetwin.blogspot.com/ >> tech randomness: http://lonehacks.blogspot.com/ >> what i'm stumbling into: http://lonetwin.stumbleupon.com/ >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > Here's what I usually do on windows: > > from time import clock, strftime, gmtime > > start = clock() > > ... do you work here... > > end = clock() > > elapsed = end - start > print "Time Taken to finish: %s" % (strftime("%Hhrs: %Mmins: %ssecs", > gmtime(elapsed)) > > If you wish to record in miliseconds, you'll have to do some math on the > 'elapsed' value. > > > -- > Thanks and best regards, > Vishal Sapre > > --- > > "So say...Day by day, in every way, I am getting better, better and better > !!!" > "A Strong and Positive attitude creates more miracles than anything else. > Because...Life is 10% how you make it, and 90% how you take it" > "Diamond is another piece of coal that did well under pressure? > "Happiness keeps u Sweet, Trials keep u Strong, > Sorrow keeps u Human, Failure Keeps u Humble, > Success keeps u Glowing, But only God Keeps u Going.....Keep Going....." > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sridhar.ratna at gmail.com Sat Sep 19 07:07:37 2009 From: sridhar.ratna at gmail.com (srid) Date: Fri, 18 Sep 2009 22:07:37 -0700 Subject: [BangPypers] Place the timer in Python script In-Reply-To: <7C1ADA5C-20C1-4ECD-8BA3-CE6A415798B5@apple.com> References: <7C1ADA5C-20C1-4ECD-8BA3-CE6A415798B5@apple.com> Message-ID: <7c73a13a0909182207r678c157dv43f08eb04b338277@mail.gmail.com> http://tinyurl.com/nz73fd The OP's post in c.l.py appears as the first result. Is this what you call recursion? :-) -srid On Fri, Sep 18, 2009 at 3:03 AM, Vamsi wrote: > How to place the timer in python code. > > I want calculate the python script execution time. > > ex : Start Timer > ? ?: End Timer > > Execution Time : End Timer - Start Timer. > > How can we write the python code for this. > > Help would be appreciable. > > Thanks in Advance. > > Vamsi > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From steve at lonetwin.net Sat Sep 19 07:54:11 2009 From: steve at lonetwin.net (steve) Date: Sat, 19 Sep 2009 11:24:11 +0530 Subject: [BangPypers] Place the timer in Python script In-Reply-To: <7c73a13a0909182207r678c157dv43f08eb04b338277@mail.gmail.com> References: <7C1ADA5C-20C1-4ECD-8BA3-CE6A415798B5@apple.com> <7c73a13a0909182207r678c157dv43f08eb04b338277@mail.gmail.com> Message-ID: <4AB47203.4040000@lonetwin.net> On 09/19/2009 10:37 AM, srid wrote: > http://tinyurl.com/nz73fd > > The OP's post in c.l.py appears as the first result. Is this what you > call recursion? :-) No, this is: http://www.google.com/search?q=recursion cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From navin.kabra at gmail.com Mon Sep 21 10:00:05 2009 From: navin.kabra at gmail.com (Navin Kabra) Date: Mon, 21 Sep 2009 13:30:05 +0530 Subject: [BangPypers] Fwd: Workshop on Python at Bhaskaracharya Pratishthan, Pune on 10-11 Oct.09 Message-ID: FYI. ---------- Forwarded message ---------- From: Manjusha Joshi Date: Mon, Sep 21, 2009 at 12:57 PM Subject: [PLUG] Workshop on Python at Bp on 10-11 Oct.09 To: Pune GNU/Linux Users Group Mailing List Dear All, We are happy to announce the 2 days workshop on Python programming in BP (www.bprim.org), Pune jointly organised with IIT, Bomaby Dates of the workshop: 10th and 11th October, 2009 Time: 10 am to 5 pm Venue: Bhaskaracharya Pratishthana, Pune. Intended audience College and University Teachers/Professors/Lecturers from any Engineering or Science domain, and Engineering students who would like to use Python for their basic computing and plotting needs. A few seats will be available for participants from Industry. Workshop will be completely hands on. Lab sessions will be arranged to make participants familiar with Python. Speakers: Prof. Prabhu Ramachandran and Asokan P. from IIT Bombay The workshop is a part of the National mission for the use of Open Source software in Education. Registration: There will be no registration fee. How ever prior registration is required. Further details are available: Website: http://www.bprim.org/mathsoftwk/pythonwk09.php Regards, Manjusha Joshi -- Manjusha Joshi _______________________________________ Pune GNU/Linux Users Group Mailing List -------------- next part -------------- An HTML attachment was scrubbed... URL: From abpillai at gmail.com Tue Sep 22 08:41:44 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 22 Sep 2009 12:11:44 +0530 Subject: [BangPypers] [Inpycon] Accommodation In-Reply-To: References: Message-ID: <8548c5f30909212341m1ee433c0u6b4e9b74417a6d75@mail.gmail.com> Forwarding to BangPypers. Anyone who has a contact for "Hidden Reflex" here who can address the following issue ? If so, please get in touch with "Hidden Reflex" and Mahesh and find out what went wrong. Thanks --Anand On Mon, Sep 21, 2009 at 10:09 PM, Mahesh Mohan wrote: > Me and my friend contacted Hidden Reflex for accomodations one month > earlier. But, yesterday, they told us that, they can't provide it. What will > we do? Can anyone get us a solution? It is too late, otherwise, we can > cancel our trip. > > ================================= > Q: How many Bell Labs Vice Presidents > does it take to change a light bulb? > > A: That's proprietary information. Answer > available from AT&T on payment > of license fee (binary only)! > > http://maheshmohan.co.cc > > http://maheshmohanmu.blog.co.in > ????? ?????? ??.?? > > ================================= > > _______________________________________________ > Inpycon mailing list > Inpycon at python.org > http://mail.python.org/mailman/listinfo/inpycon > > -- --Anand -------------- next part -------------- An HTML attachment was scrubbed... URL: From bharath.keshav at gmail.com Wed Sep 23 05:08:19 2009 From: bharath.keshav at gmail.com (Bharath Keshav) Date: Wed, 23 Sep 2009 08:38:19 +0530 Subject: [BangPypers] [Inpycon] Accommodation In-Reply-To: <8548c5f30909212341m1ee433c0u6b4e9b74417a6d75@mail.gmail.com> References: <8548c5f30909212341m1ee433c0u6b4e9b74417a6d75@mail.gmail.com> Message-ID: On Tue, Sep 22, 2009 at 12:11 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > Forwarding to BangPypers. Anyone who has a contact for "Hidden Reflex" here > who can address the following issue ? If so, please get in touch with > "Hidden Reflex" and Mahesh and find out what went wrong. > > Thanks > > --Anand > > On Mon, Sep 21, 2009 at 10:09 PM, Mahesh Mohan wrote: > >> Me and my friend contacted Hidden Reflex for accomodations one month >> earlier. But, yesterday, they told us that, they can't provide it. What will >> we do? Can anyone get us a solution? It is too late, otherwise, we can >> cancel our trip. >> > > > >> ================================= >> Q: How many Bell Labs Vice Presidents >> does it take to change a light bulb? >> >> A: That's proprietary information. Answer >> available from AT&T on payment >> of license fee (binary only)! >> >> http://maheshmohan.co.cc >> >> http://maheshmohanmu.blog.co.in >> ????? ?????? ??.?? >> >> ================================= >> >> _______________________________________________ >> Inpycon mailing list >> Inpycon at python.org >> http://mail.python.org/mailman/listinfo/inpycon >> >> > > > -- > --Anand > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bharath.keshav at gmail.com Wed Sep 23 05:14:35 2009 From: bharath.keshav at gmail.com (Bharath Keshav) Date: Wed, 23 Sep 2009 08:44:35 +0530 Subject: [BangPypers] [Inpycon] Accommodation In-Reply-To: <8548c5f30909212341m1ee433c0u6b4e9b74417a6d75@mail.gmail.com> References: <8548c5f30909212341m1ee433c0u6b4e9b74417a6d75@mail.gmail.com> Message-ID: Sorry for the previous blank email. These guys have talked to Alok from Hiddenreflex, who had offered them an accommodation. Unfortunately, he'd be travelling during the time of conference. He asked me to request on his behalf if anyone else can take the responsibility of offering accommodation to these guys. -Bharath On Tue, Sep 22, 2009 at 12:11 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > Forwarding to BangPypers. Anyone who has a contact for "Hidden Reflex" here > who can address the following issue ? If so, please get in touch with > "Hidden Reflex" and Mahesh and find out what went wrong. > > Thanks > > --Anand > > On Mon, Sep 21, 2009 at 10:09 PM, Mahesh Mohan wrote: > >> Me and my friend contacted Hidden Reflex for accomodations one month >> earlier. But, yesterday, they told us that, they can't provide it. What will >> we do? Can anyone get us a solution? It is too late, otherwise, we can >> cancel our trip. >> > > > >> ================================= >> Q: How many Bell Labs Vice Presidents >> does it take to change a light bulb? >> >> A: That's proprietary information. Answer >> available from AT&T on payment >> of license fee (binary only)! >> >> http://maheshmohan.co.cc >> >> http://maheshmohanmu.blog.co.in >> ????? ?????? ??.?? >> >> ================================= >> >> _______________________________________________ >> Inpycon mailing list >> Inpycon at python.org >> http://mail.python.org/mailman/listinfo/inpycon >> >> > > > -- > --Anand > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anandology at gmail.com Wed Sep 23 12:46:47 2009 From: anandology at gmail.com (Anand Chitipothu) Date: Wed, 23 Sep 2009 16:16:47 +0530 Subject: [BangPypers] volunteers required In-Reply-To: <41139fcb0909230329h3ec754c0v847c1af9ae8585ef@mail.gmail.com> References: <41139fcb0909230329h3ec754c0v847c1af9ae8585ef@mail.gmail.com> Message-ID: <41139fcb0909230346j416130b2w62fbbd7103b0745b@mail.gmail.com> We require some volunteers during the PyCon conference for the tasks given below. Please signup. * Registration support We need 2-3 people to help at the registration desk during first half of day 1. * Food coordination We need 2-3 people to coordinate food at tea and lunch times. * Direction support We need 2-3 people to answer phone calls and give directions to people coming from other places. * Infrastructure support We need 2-3 volunteers to make sure all the rooms have power strips, wifi and make sure PA system and video recording are functioning well. They should also check from time to time that the quality of recorded video is good. They will be point of contact for any infrastructure related failures. * Session Chairs We need volunteers to act as session chairs to make sure sessions are running on time. The session chair should give a signal to the presenter 5 min in advance and make sure the next speaker is ready. He will be responsible to make sure the talks are running on time. We divide the total time into 6 sessions and we need session chairs for each session in each hall. S1: Day 1 Start - Tea break S2: Day 1 Tea break - Lunch S3: Day 1 Lunch - Tea break S4: Day 1 Tea break - FInish S5: Day 2 Start - Tea break S6: Day 2 Tea break - Lunch Volunteers can signup as session chair for more than one session. It is easier if you plan to become session chair for the sessions that you are going to attend. Anand From kadambari.devarajan at gmail.com Wed Sep 23 15:21:32 2009 From: kadambari.devarajan at gmail.com (Kadambari Devarajan) Date: Wed, 23 Sep 2009 18:51:32 +0530 Subject: [BangPypers] [ANN][X-Post] Two Day Workshop on Python Message-ID: Hello, As part of the MHRD funded open source mission at IITB, Asokan P and Prabhu Ramachandran are planning a 2 day Python workshop, along with Bhaskaracharya Pratishthan: Topic: Programming with Python Date : Oct 10th and 11th, 2009 Time : 10 am to 5 pm Venue : Bhaskaracharya Pratishthan Instructors: Prabhu Ramachandran and Asokan P. Website : http://www.bprim.org/mathsoftwk/python/pythonwk09.php Intended audience: College and University Teachers/Professors/Lecturers from any Engineering or Science domain, and Engineering students who would like to use Python for their basic computing and plotting needs. Prerequisites: Participants should be comfortable computer users and be familiar with programming constructs such as loops, conditionals. Familiarity with programming editors-- scite, notepad++, vi, emacs- will be a plus. Familiarity with using the commandline will be another plus. Objectives: At the end of the program the participants will have a good understanding of the Python language, and selected libraries. They will be able to write good modular procedural code and use objects. They will get a overview of the other major topics, features and libraries and be able to learn these on their own if required. Coverage: * Motivation, background and design philosophy. * Basic data types: int, float and string * Core data structures: lists, tuples and dictionaries * Functions * Tool chain * Overview of the standard library * Matplotlib * NumPy and Scipy * 3D plotting * Debugging and testing Methodology: Completely hands on, exploratory mode with minimal lectures introducing essential concepts and techniques. Typically we will have short 10-15 minute lectures, followed by series of graduated problems. The participants will solve them exploring the documentation to do so and the solutions will be discussed. Laptops can be brought by participants, and additional laptops/computers can be provided for use for those required. Charging points will be available. As far as installations go, you would require the following: -- For Debian/ Ubuntu and the like: (a) IPython (b) Python doc (c) the Python Profiler (d) Scipy/Numpy (e) Matplotlib (f) Mayavi2 (optional) -- For Windows XP (x86), Windows Vista (x86), Mac OS X 10.4+ (x86), RedHat 3 (x86, amd64), RedHat 4 (x86, amd64), RedHat 5 (x86, amd64), and Solaris 10 (x86, amd64) : (a) get the EPD (http://www.enthought.com/products/epd.php) bundle and you'll have everything you need! This is available for free for those in academia and others can utilize the free 30 day trial version for now. In any case, we will be providing live DVDs containing all the required installations and some additional tools on site. Registration : You are requested to fill up the form on the website with signature and a stamp from your college. Alternatively you can mail the form by email and submit the hard copy at the time of the workshop. There is no registration fee. Admission will be on first come first serve basis. The number of seats is limited. Travel and Accommodation : Travel support will also be provided for second class train fare/bus for outstation participants who are college teachers. Accommodation will be provided at the venue. Lodging and boarding will be provided free of charge for outstation participants. Arrangement of lunch for all participants will be taken care of by the organisers. All participants will get a DVD containing Python and other Open Source software. Details of the workshop will be updated on the website periodically. The number of seats is limited. Contact: Those who intend to participate should send an e-mail to bhaskara_p at vsnl.com, or call Mrs. Manjusha Joshi, Coordinator, Ph. No. 9822 319328 (4 pm - 7 pm) or the Bhaskaracharya Pratishthana Office (020- 25434547,25410724) between (12-6). Thank you. Regards, Kadambari Devarajan. -- Check out my blog at http://kadambarid.livejournal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From maheshmohan.mu at gmail.com Wed Sep 23 18:32:28 2009 From: maheshmohan.mu at gmail.com (Mahesh Mohan) Date: Wed, 23 Sep 2009 22:02:28 +0530 Subject: [BangPypers] [Inpycon] Accommodation In-Reply-To: References: <8548c5f30909212341m1ee433c0u6b4e9b74417a6d75@mail.gmail.com> Message-ID: No. We have got accomodation from a relatives house in KR puram. ================================= Q: How many Bell Labs Vice Presidents does it take to change a light bulb? A: That's proprietary information. Answer available from AT&T on payment of license fee (binary only)! http://maheshmohan.co.cc http://maheshmohanmu.blog.co.in ????? ?????? ??.?? ================================= On Wed, Sep 23, 2009 at 8:44 AM, Bharath Keshav wrote: > Sorry for the previous blank email. > These guys have talked to Alok from Hiddenreflex, who had offered them > an accommodation. Unfortunately, he'd be travelling during the time of > conference. He asked me to request on his behalf if anyone else can take the > responsibility of offering accommodation to these guys. > > -Bharath > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ravi.uma at gmail.com Fri Sep 25 05:15:35 2009 From: ravi.uma at gmail.com (Ravi Shankar-Uma Iyer) Date: Fri, 25 Sep 2009 08:45:35 +0530 Subject: [BangPypers] volunteers required In-Reply-To: <41139fcb0909230346j416130b2w62fbbd7103b0745b@mail.gmail.com> References: <41139fcb0909230329h3ec754c0v847c1af9ae8585ef@mail.gmail.com> <41139fcb0909230346j416130b2w62fbbd7103b0745b@mail.gmail.com> Message-ID: On 9/23/09, Anand Chitipothu wrote: > We require some volunteers during the PyCon conference for the tasks > given below. Please signup. > > * Registration support > > We need 2-3 people to help at the registration desk during first half of day > 1. > > * Food coordination > > We need 2-3 people to coordinate food at tea and lunch times. > > * Direction support > > We need 2-3 people to answer phone calls and give directions to people > coming from other places. > > * Infrastructure support > > We need 2-3 volunteers to make sure all the rooms have power strips, > wifi and make sure PA system and video recording are functioning well. > They should also check from time to time that the quality of recorded > video is good. They will be point of contact for any infrastructure > related failures. > > * Session Chairs > > We need volunteers to act as session chairs to make sure sessions are > running on time. The session chair should give a signal to the > presenter 5 min in advance and make sure the next speaker is ready. He > will be responsible to make sure the talks are running on time. > > We divide the total time into 6 sessions and we need session chairs > for each session in each hall. > > S1: Day 1 Start - Tea break > S2: Day 1 Tea break - Lunch > S3: Day 1 Lunch - Tea break > S4: Day 1 Tea break - FInish > S5: Day 2 Start - Tea break > S6: Day 2 Tea break - Lunch > > Volunteers can signup as session chair for more than one session. It > is easier if you plan to become session chair for the sessions that > you are going to attend. > > Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Sent from my mobile device From noufal at gmail.com Fri Sep 25 08:42:50 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 25 Sep 2009 12:12:50 +0530 Subject: [BangPypers] Session chair volunteers Message-ID: <9963e56e0909242342k4ad39845s23fee278b4779dfc@mail.gmail.com> X-posted to BangPypers. We need a few more people to fill up http://wiki.python.org/moin/PyConIndia2009/SessionChairs Any volunteers? -- ~noufal http://nibrahim.net.in -------------- next part -------------- An HTML attachment was scrubbed... URL: From arunpython at ymail.com Sat Sep 26 21:15:27 2009 From: arunpython at ymail.com (Arun Python) Date: Sun, 27 Sep 2009 00:45:27 +0530 (IST) Subject: [BangPypers] Can we create proprietary database in Python Message-ID: <403565.16944.qm@web95011.mail.in2.yahoo.com> Hi all, ? I am a novice to Python.? I have a few doubts. a) How useful is python in the development of database applications when compared to C++. b)?Can we able to create proprietary or sequential database like in C++ in python for?database applications which are not so huge. ? Regards, ? Arun? Now, send attachments up to 25MB with Yahoo! India Mail. Learn how. http://in.overview.mail.yahoo.com/photos -------------- next part -------------- An HTML attachment was scrubbed... URL: From pradeep at btbytes.com Sat Sep 26 21:57:10 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Sat, 26 Sep 2009 15:57:10 -0400 Subject: [BangPypers] Can we create proprietary database in Python In-Reply-To: <403565.16944.qm@web95011.mail.in2.yahoo.com> References: <403565.16944.qm@web95011.mail.in2.yahoo.com> Message-ID: <3e3294b70909261257q1979fdd4s2ec83ddbf0452854@mail.gmail.com> On Sat, Sep 26, 2009 at 3:15 PM, Arun Python wrote: > I am a novice to Python. I have a few doubts. > a) How useful is python in the development of database applications when > compared to C++. > b) Can we able to create proprietary or sequential database like in C++ in > python for database applications which are not so huge. > > I would say Python is even more suited to develop database applications than C++. 0) Python dynamic typing, built-in datatypes and huge standard library will make application development far more easier than bit-twiddling with C/C++. 1) Python has excellent libraries for all mainstream (and not so mainstream) databases 2) in a DB-based app, the performance bottleneck is mostly due to the db & network and not the run time speed of the language itself. "sequential database" -- can you give an example? If you mean Object Databases (viz., ZODB, Durus, DB4o) or key-value databases (viz., TokyoDB, Mongo, Couch), python has plenty of such native libraries/drivers. A specific problem you are trying to solve will yield better responses, IMO. Happy hacking, Pradeep -------------- next part -------------- An HTML attachment was scrubbed... URL: From ideamonk at gmail.com Sun Sep 27 04:29:13 2009 From: ideamonk at gmail.com (Abhishek Mishra) Date: Sun, 27 Sep 2009 07:59:13 +0530 Subject: [BangPypers] Python at Schools Message-ID: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com> At Pycon India Day 1, "National Mission on Education through ICT & Python" was a great talk, and mission is seriously something which is the need of the hour. What I like best about the mission is, engineering students would actually be _utilizing_ computers to do a whole variety of tasks which Python makes as easy as pie, by attaching wings to our imaginations rather than restricting it by [ language specific rules, conventions, the need to understand things at core level ] The impact, sooner or later is going to be huge. As one of the people already questioned about schools, and it was announced that this initiative aims just colleges - engineering and sciences. I would like to ask, are there any parallel initiatives which aim at schools? I wish there are some... one aspect of Python which I appreciate most is - There is very less time between imagination and implementation for short programs. Secondly, being an interpreter, you can always execute on the fly and you can always make live mistakes and know what went wrong. There is inbuilt help as we saw it. What could be more perfect to begin programming. I've heard about how kids in European countries begin with Python. Let's compare that to India, I started with GW-BASIC, which is a very good language to begin with. But don't you think it has become pretty old, and is hardly readily available. People start with LOGO at some places, but that limits them to drawing, though it does introduce one to joy of programming. I don't think teaching C++ actually gets a normal kid excited about programming, rather than that, just like some of us developed maths phobia back then, some kids end up hating the word 'programming'. I've heard that many times from my peers at college. Python is something that can convince them more about the power of programming than C/C++ for sure. And instead of people developing a sort of resistance to programming, can actually appreciate how it actually gives them freedom over huge software suits and tools and instead get their work done the way they want, with outputs in format they want, without having to pay a penny as in case of Python. It happens that at ICSE schools java/c++ is offered for almost last 4 years of schooling, while my CBSE experience was horrible, with no programming in syllabus till class 11th. While way back in an ICSE school, programming started at class 6 with GW-BASIC and that language was fun. My whole point is, wherever programming is taught at school levels, I think Python must replace old almost dying pieces of GWBASIC/QuickBASIC or TurboC++. People usually tend to leave both BASIC, and TurboC++ when they don't realize, the ones who don't end up as teachers at colleges like mine. But had we a generation that knew basics of Python, things would've been different. For whome a TurboC++ IDE became something they depend on, like chain smokers depend on cigarettes, Python would've been a Jetpack they would've never forgotten. What I mean is that learning Python at school won't make Python vanish from your life after you leave school since you can possibly do anything with it. Anyways, So is MHRD/(Whoever cares) doing something at School Level? Wouldn't that solve the demand of Python teachers as needed by "National Mission on Education through ICT & Python" and actually reduce the friction to its adoptibility which I can obviously see at engineering level, I'm sure not many of the profs/teachers at my college would put efforts to try out Python. Regards, Abhishek Mishra out for Day 2 :) From vid at svaksha.com Sun Sep 27 04:56:00 2009 From: vid at svaksha.com (vid) Date: Sun, 27 Sep 2009 08:41:00 +0545 Subject: [BangPypers] [ilugb] Python at Schools In-Reply-To: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com> References: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com> Message-ID: <12470af00909261956j119b32r2676f151cf1159b@mail.gmail.com> Hmm... this is cross-posted to many lists. On Sun, Sep 27, 2009 at 08:14, Abhishek Mishra wrote: > > I'm sure not many of the profs/teachers at my > college would put efforts to try out Python. Here is my experience after a few interactions : The school teachers (i had met last year) were interested but the management does not trust volunteers. Besides, each school has its own idea of how to promote computer education in schools. Most of them force students to buy text-books all teaching proprietary software :( Also the word "computer education" preys on the parents desire --it is a money-spinner in the name of 'making the student computer literate' -- parents are charged extra money per month as part of "computer education", lab fees, etc... Students in grade1, grade2 were being taught computers -- their notebooks had nice colored pictures of a monitor, printer, laptop, with the teacher's red-ink ticked mark and "good" sign for the color not going out of the lines. I kid you not. One school principal lamented about Indians not writing their own OS/compilers, etc.... when I politely suggested that he would set a trend if he removed the pirated copies of a proprietary OS and installed the Ubuntu CD that I gave him. All this was about a year ago in Bangalore at the CBSE schools and one government aided school. I doubt if things have drastically changed for the better since. IIRC, recently there was another effort to train the government teachers : http://mailman.linuxchix.org/pipermail/indichix/2009-July/001674.html -- vid http://vid.svaksha.com || From arunpython at ymail.com Mon Sep 28 06:12:03 2009 From: arunpython at ymail.com (Arun Python) Date: Mon, 28 Sep 2009 09:42:03 +0530 (IST) Subject: [BangPypers] BangPypers Digest, Vol 25, Issue 53 In-Reply-To: Message-ID: <418083.64645.qm@web95008.mail.in2.yahoo.com> Dear Pradeep, Sequential database in the sense, like creating a data structure in the class and getting data from the user and storing it as a file. Regards, Arun --- On Sun, 27/9/09, bangpypers-request at python.org wrote: From: bangpypers-request at python.org Subject: BangPypers Digest, Vol 25, Issue 53 To: bangpypers at python.org Date: Sunday, 27 September, 2009, 10:00 AM Send BangPypers mailing list submissions to ??? bangpypers at python.org To subscribe or unsubscribe via the World Wide Web, visit ??? http://mail.python.org/mailman/listinfo/bangpypers or, via email, send a message with subject or body 'help' to ??? bangpypers-request at python.org You can reach the person managing the list at ??? bangpypers-owner at python.org When replying, please edit your Subject line so it is more specific than "Re: Contents of BangPypers digest..." Today's Topics: ???1. Can we create proprietary database in Python (Arun Python) ???2. Re: Can we create proprietary database in Python (Pradeep Gowda) ???3. Python at Schools (Abhishek Mishra) ???4. Re: [ilugb] Python at Schools (vid) ---------------------------------------------------------------------- Message: 1 Date: Sun, 27 Sep 2009 00:45:27 +0530 (IST) From: Arun Python To: bangpypers at python.org Subject: [BangPypers] Can we create proprietary database in Python Message-ID: <403565.16944.qm at web95011.mail.in2.yahoo.com> Content-Type: text/plain; charset="iso-8859-1" Hi all, ? I am a novice to Python.? I have a few doubts. a) How useful is python in the development of database applications when compared to C++. b)?Can we able to create proprietary or sequential database like in C++ in python for?database applications which are not so huge. ? Regards, ? Arun? ? ? ? Now, send attachments up to 25MB with Yahoo! India Mail. Learn how. http://in.overview.mail.yahoo.com/photos -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Sat, 26 Sep 2009 15:57:10 -0400 From: Pradeep Gowda To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Can we create proprietary database in Python Message-ID: ??? <3e3294b70909261257q1979fdd4s2ec83ddbf0452854 at mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" On Sat, Sep 26, 2009 at 3:15 PM, Arun Python wrote: > I am a novice to Python.? I have a few doubts. > a) How useful is python in the development of database applications when > compared to C++. > b) Can we able to create proprietary or sequential database like in C++ in > python for database applications which are not so huge. > > I would say Python is even more suited to develop database? applications than C++. 0) Python dynamic typing, built-in datatypes and huge standard library will make application development far more easier than bit-twiddling with C/C++. 1) Python has excellent libraries for all mainstream (and not so mainstream) databases 2) in a DB-based app, the performance bottleneck is mostly due to the db & network and not the run time speed of the language itself. "sequential database" -- can you give an example? If you mean Object Databases (viz., ZODB, Durus, DB4o) or key-value databases (viz., TokyoDB, Mongo, Couch), python has plenty of such native libraries/drivers. A specific problem you are trying to solve will yield better responses, IMO.. Happy hacking, Pradeep -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 3 Date: Sun, 27 Sep 2009 07:59:13 +0530 From: Abhishek Mishra To: Mailing list for the PyCon India conference , ??? Bangalore Python Users Group - India , ??? ilug-bengaluru at googlegroups.com Subject: [BangPypers] Python at Schools Message-ID: ??? <64160c70909261929t419abbfcs4b7b63548e4daee at mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 At Pycon India Day 1, "National Mission on Education through ICT & Python" was a great talk, and mission is seriously something which is the need of the hour. What I like best about the mission is, engineering students would actually be _utilizing_ computers to do a whole variety of tasks which Python makes as easy as pie, by attaching wings to our imaginations rather than restricting it by [ language specific rules, conventions, the need to understand things at core level ] The impact, sooner or later is going to be huge. As one of the people already questioned about schools, and it was announced that this initiative aims just colleges - engineering and sciences. I would like to ask, are there any parallel initiatives which aim at schools? I wish there are some... one aspect of Python which I appreciate most is - There is very less time between imagination and implementation for short programs. Secondly, being an interpreter, you can always execute on the fly and you can always make live mistakes and know what went wrong. There is inbuilt help as we saw it. What could be more perfect to begin programming. I've heard about how kids in European countries begin with Python. Let's compare that to India, I started with GW-BASIC, which is a very good language to begin with. But don't you think it has become pretty old, and is hardly readily available. People start with LOGO at some places, but that limits them to drawing, though it does introduce one to joy of programming. I don't think teaching C++ actually gets a normal kid excited about programming, rather than that, just like some of us developed maths phobia back then, some kids end up hating the word 'programming'. I've heard that many times from my peers at college. Python is something that can convince them more about the power of programming than C/C++ for sure. And instead of people developing a sort of resistance to programming, can actually appreciate how it actually gives them freedom over huge software suits and tools and instead get their work done the way they want, with outputs in format they want, without having to pay a penny as in case of Python. It happens that at ICSE schools java/c++ is offered for almost last 4 years of schooling, while my CBSE experience was horrible, with no programming in syllabus till class 11th. While way back in an ICSE school, programming started at class 6 with GW-BASIC and that language was fun. My whole point is, wherever programming is taught at school levels, I think Python must replace old almost dying pieces of GWBASIC/QuickBASIC or TurboC++. People usually tend to leave both BASIC, and TurboC++ when they don't realize, the ones who don't end up as teachers at colleges like mine. But had we a generation that knew basics of Python, things would've been different. For whome a TurboC++ IDE became something they depend on, like chain smokers depend on cigarettes, Python would've been a Jetpack they would've never forgotten. What I mean is that learning Python at school won't make Python vanish from your life after you leave school since you can possibly do anything with it. Anyways, So is MHRD/(Whoever cares) doing something at School Level? Wouldn't that solve the demand of Python teachers as needed by "National Mission on Education through ICT & Python" and actually reduce the friction to its adoptibility which I can obviously see at engineering level, I'm sure not many of the profs/teachers at my college would put efforts to try out Python. Regards, Abhishek Mishra out for Day 2 :) ------------------------------ Message: 4 Date: Sun, 27 Sep 2009 08:41:00 +0545 From: vid To: ilug-bengaluru at googlegroups.com Cc: Mailing list for the PyCon India conference , ??? Bangalore Python Users Group - India Subject: Re: [BangPypers] [ilugb] Python at Schools Message-ID: <12470af00909261956j119b32r2676f151cf1159b at mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Hmm... this is cross-posted to many lists. On Sun, Sep 27, 2009 at 08:14, Abhishek Mishra wrote: > > I'm sure not many of the profs/teachers at my > college would put efforts to try out Python. Here is my experience after a few interactions : The school teachers (i had met last year) were interested but the management does not trust volunteers. Besides, each school has its own idea of how to promote computer education in schools. Most of them force students to buy text-books all teaching proprietary software :( Also the word "computer education" preys on the parents desire --it is a money-spinner in the name of 'making the student computer literate' -- parents are charged extra money per month as part of "computer education", lab fees, etc... Students in grade1, grade2 were being taught computers -- their notebooks had nice colored pictures of a monitor, printer, laptop, with the teacher's red-ink ticked mark and "good" sign for the color not going out of the lines. I kid you not. One school principal lamented about Indians not writing their own OS/compilers, etc.... when I politely suggested that he would set a trend if he removed the pirated copies of a proprietary OS and installed the Ubuntu CD that I gave him. All this was about a year ago in Bangalore at the CBSE schools and one government aided school. I doubt if things have drastically changed for the better since. IIRC, recently there was another effort to train the government teachers : http://mailman.linuxchix.org/pipermail/indichix/2009-July/001674.html -- vid http://vid.svaksha.com || ------------------------------ _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers End of BangPypers Digest, Vol 25, Issue 53 ****************************************** Now, send attachments up to 25MB with Yahoo! India Mail. Learn how. http://in.overview.mail.yahoo.com/photos -------------- next part -------------- An HTML attachment was scrubbed... URL: From sridhar.ratna at gmail.com Mon Sep 28 06:46:27 2009 From: sridhar.ratna at gmail.com (srid) Date: Sun, 27 Sep 2009 21:46:27 -0700 Subject: [BangPypers] Can we create proprietary database in Python In-Reply-To: <403565.16944.qm@web95011.mail.in2.yahoo.com> References: <403565.16944.qm@web95011.mail.in2.yahoo.com> Message-ID: <7c73a13a0909272146q2aa998d5k48a8b57bcce2aef6@mail.gmail.com> On Sat, Sep 26, 2009 at 12:15 PM, Arun Python wrote: > > b)?Can we create proprietary or sequential database like in C++ > in python for?database applications which are not so huge. > Sequential database in the sense, like creating a data structure > in the class and getting data from the user and storing it as a file. sqlalchemy + sqlite may fit your use case. sqlalchemy provides this "datastructure in the class" (class mappers) and sqlite stores your database in a file (no servers). quick start: http://www.rmunn.com/sqlalchemy-tutorial/tutorial.html -srid From carl at personnelware.com Mon Sep 28 07:15:46 2009 From: carl at personnelware.com (Carl Karsten) Date: Mon, 28 Sep 2009 00:15:46 -0500 Subject: [BangPypers] Can we create proprietary database in Python In-Reply-To: <7c73a13a0909272146q2aa998d5k48a8b57bcce2aef6@mail.gmail.com> References: <403565.16944.qm@web95011.mail.in2.yahoo.com> <7c73a13a0909272146q2aa998d5k48a8b57bcce2aef6@mail.gmail.com> Message-ID: <549053140909272215q16231f20m643dc7554e2014bb@mail.gmail.com> On Sun, Sep 27, 2009 at 11:46 PM, srid wrote: > On Sat, Sep 26, 2009 at 12:15 PM, Arun Python wrote: >> >> b)?Can we create proprietary or sequential database like in C++ >> in python for?database applications which are not so huge. > >> Sequential database in the sense, like creating a data structure >> in the class and getting data from the user and storing it as a file. > > sqlalchemy + sqlite may fit your use case. sqlalchemy provides this > "datastructure in the class" (class mappers) and sqlite stores your > database in a file (no servers). quick start: > http://www.rmunn.com/sqlalchemy-tutorial/tutorial.html sqlalchemy + sqlite is probably the right thing, but given the description I think it is worth mentioning pickle and shelve: """ A ?shelf? is a persistent, dictionary-like object. The difference with ?dbm? databases is that the values (not the keys!) in a shelf can be essentially arbitrary Python objects ? anything that the pickle module can handle. This includes most class instances, recursive data types, and objects containing lots of shared sub-objects. The keys are ordinary strings. """ http://docs.python.org/library/shelve.html -- Carl K From jeff at taupro.com Mon Sep 28 09:20:09 2009 From: jeff at taupro.com (Jeff Rush) Date: Mon, 28 Sep 2009 02:20:09 -0500 Subject: [BangPypers] Can we create proprietary database in Python In-Reply-To: <549053140909272215q16231f20m643dc7554e2014bb@mail.gmail.com> References: <403565.16944.qm@web95011.mail.in2.yahoo.com> <7c73a13a0909272146q2aa998d5k48a8b57bcce2aef6@mail.gmail.com> <549053140909272215q16231f20m643dc7554e2014bb@mail.gmail.com> Message-ID: <4AC063A9.3060609@taupro.com> Carl Karsten wrote: > On Sun, Sep 27, 2009 at 11:46 PM, srid wrote: >> On Sat, Sep 26, 2009 at 12:15 PM, Arun Python wrote: >>> b) Can we create proprietary or sequential database like in C++ >>> in python for database applications which are not so huge. >>> Sequential database in the sense, like creating a data structure >>> in the class and getting data from the user and storing it as a file. >> sqlalchemy + sqlite may fit your use case. sqlalchemy provides this >> "datastructure in the class" (class mappers) and sqlite stores your >> database in a file (no servers). quick start: >> http://www.rmunn.com/sqlalchemy-tutorial/tutorial.html > > sqlalchemy + sqlite is probably the right thing, but given the > description I think it is worth mentioning pickle and shelve: Another good one is yserial, also using SQLite: http://yserial.sourceforge.net/ "Serialization + persistance :: in a few lines of code, compress and annotate Python objects into SQLite; then later retrieve them chronologically by keywords without any SQL. Most useful "standard" module for a database to store schema-less data. The module is instructive in the way it unifies the standard batteries: sqlite3 (as of Python v2.5), zlib (for compression), and cPickle (for serializing objects). If your Python program requires data persistance, then y-serial is a module which should be worth importing. All objects are warehoused in a single database file in the most compressed form possible. Tables are used to differentiate projects. Steps for insertion, organization by annotation, and finally retrieval are amazingly simple..." -Jeff From mails at anirudh.ind.in Wed Sep 23 14:41:22 2009 From: mails at anirudh.ind.in (Anirudh Asokan) Date: Wed, 23 Sep 2009 18:11:22 +0530 Subject: [BangPypers] volunteer Message-ID: <85f0a3230909230541m2fd3feb8k5986f2b6f3e76424@mail.gmail.com> hey, what is the plan for friday? when should i report for the 'volunteering'? I can reach JN Tata Auditorium by 5:30pm after collage or bunk second half(i really don't mind) and reach at 2:00pm. -- Cheers, Anirudh Asokan www.anirudh.ind.in -------------- next part -------------- An HTML attachment was scrubbed... URL: From shivraj.ms at gmail.com Wed Sep 30 06:50:15 2009 From: shivraj.ms at gmail.com (Shivaraj M S) Date: Tue, 29 Sep 2009 21:50:15 -0700 (PDT) Subject: [BangPypers] [ilugb] Python at Schools In-Reply-To: <12470af00909261956j119b32r2676f151cf1159b@mail.gmail.com> References: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com> <12470af00909261956j119b32r2676f151cf1159b@mail.gmail.com> Message-ID: <25674985.post@talk.nabble.com> > I started with GW-BASIC, which is a very > good language to begin with. I too, still like algorithms -> flowcharts -> step by step instructions -> BASIC for starting off. IMHO, the real issue is with continuity of programming space and not with any specific language. > Besides, each school has its own idea of how to > promote computer education in schools I think it's more of training and employment oriented statistical approach. -- View this message in context: http://www.nabble.com/Python-at-Schools-tp25630379p25674985.html Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com. From rajeev.sebastian at gmail.com Wed Sep 30 08:04:15 2009 From: rajeev.sebastian at gmail.com (Rajeev J Sebastian) Date: Wed, 30 Sep 2009 11:34:15 +0530 Subject: [BangPypers] Python at Schools In-Reply-To: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com> References: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com> Message-ID: <79a035420909292304m3ae1b8ceqa927b0d74ad455c5@mail.gmail.com> On Sun, Sep 27, 2009 at 7:59 AM, Abhishek Mishra wrote: > It happens that at ICSE schools java/c++ is offered for almost last 4 > years of schooling, while my CBSE experience was horrible, with no > programming in syllabus till class 11th. While way back in an ICSE > school, programming started at class 6 with GW-BASIC and that language > was fun. At Bharatiya Vidya Mandir school at Kochi, we started on BASIC in the 5th std. It was CBSE. Engineering First+Second Sem at CUSAT, it same thing BASIC .. after two years of C++ at school. Makes you wonder who the hell makes these things. So my opinion is, schools can and do change depending on how good the teachers/principal are. But whats really bad are the universities, where its not so easy. Regards Rajeev J Sebastian From yuvipanda at gmail.com Wed Sep 30 08:31:13 2009 From: yuvipanda at gmail.com (Yuvi Panda) Date: Wed, 30 Sep 2009 12:01:13 +0530 Subject: [BangPypers] Python at Schools In-Reply-To: <79a035420909292304m3ae1b8ceqa927b0d74ad455c5@mail.gmail.com> References: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com> <79a035420909292304m3ae1b8ceqa927b0d74ad455c5@mail.gmail.com> Message-ID: <45ec909c0909292331i1f372a12y7e4effb172978adc@mail.gmail.com> Anna University starts with C, then jumps to Bash (?!!?!) and then jumps back to C and C++. I've no idea where it is going (I'm in my third sem, and we're with a new curriculum), but I've seen glimpses of Flash(?!). 99% of my friends gave up on programming a month into the course - C isn't exactly the best first language, and Bash is just... curious. On Wed, Sep 30, 2009 at 11:34 AM, Rajeev J Sebastian < rajeev.sebastian at gmail.com> wrote: > On Sun, Sep 27, 2009 at 7:59 AM, Abhishek Mishra > wrote: > > It happens that at ICSE schools java/c++ is offered for almost last 4 > > years of schooling, while my CBSE experience was horrible, with no > > programming in syllabus till class 11th. While way back in an ICSE > > school, programming started at class 6 with GW-BASIC and that language > > was fun. > > At Bharatiya Vidya Mandir school at Kochi, we started on BASIC in the > 5th std. It was CBSE. > > Engineering First+Second Sem at CUSAT, it same thing BASIC .. after > two years of C++ at school. > > Makes you wonder who the hell makes these things. So my opinion is, > schools can and do change depending on how good the teachers/principal > are. But whats really bad are the universities, where its not so easy. > > Regards > Rajeev J Sebastian > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Yuvi Panda T http://yuvisense.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From yuvipanda at gmail.com Wed Sep 30 10:23:30 2009 From: yuvipanda at gmail.com (Yuvi Panda) Date: Wed, 30 Sep 2009 13:53:30 +0530 Subject: [BangPypers] Python at Schools In-Reply-To: <4AC2FED0.8090408@gmail.com> References: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com> <79a035420909292304m3ae1b8ceqa927b0d74ad455c5@mail.gmail.com> <45ec909c0909292331i1f372a12y7e4effb172978adc@mail.gmail.com> <4AC2FED0.8090408@gmail.com> Message-ID: <45ec909c0909300123v73bebe4dobf7c337d9c441952@mail.gmail.com> Oh yes, and I forgot to mention that we use TurboC (TurboC++ actually, but they save it under a .C extension and hope a C compiler kicks in) - DOS based but runnin on WinXP :) They do have Visual C++ 6 though - I wonder which semester will see me touching that. ICSE Schools do have a better syllabus - the only other guy who can actually code is from one. He had Java, and his staff was apparently good - so he picked up C in no time. The rest of the students' only interest is in getting short programs which are *easier to memorize*. Sigh. We're hoping to start a Python Course (free) next semester though :) On Wed, Sep 30, 2009 at 12:16 PM, Amit Saha wrote: > Yuvi Panda wrote: > >> Anna University starts with C, then jumps to Bash (?!!?!) and then jumps >> back to C and C++. I've no idea where it is going (I'm in my third sem, >> and >> we're with a new curriculum), but I've seen glimpses of Flash(?!). 99% of >> my >> friends gave up on programming a month into the course - C isn't exactly >> the >> best first language, and Bash is just... curious. >> > > That is a 'colorful' cornucopia of choices to make the future Software > engineers! > > The college, I studied in (under West Bengal Univ. of Tech), begins with C > in the 2nd semester, and for a lot of people, that is the first language- > and C programming is taught with Turbo C on MS-DOS. Going ahead, some C++, > Java, JSP, BASH scripting is taught. And what do the average student (by > avg. I would fine, the student who has no "deep" interest in programming, > but just wants to get the job done- which could mean, get marks!) finally > end up with? Programming Languages: C, Data Structures. > > Compared to that, the ICSE schools have a better programming syllabus these > days- they start with LOGO, then some BASIC( GW/QBasic), then C++ and then > some Java, but no Python. sigh. > > If I could, I would teach students Lisp after LOGO, after all LOGO is a > LISP dialect! > > my random bits. > > -Amit > > >> On Wed, Sep 30, 2009 at 11:34 AM, Rajeev J Sebastian < >> rajeev.sebastian at gmail.com> wrote: >> >> On Sun, Sep 27, 2009 at 7:59 AM, Abhishek Mishra >>> wrote: >>> >>>> It happens that at ICSE schools java/c++ is offered for almost last 4 >>>> years of schooling, while my CBSE experience was horrible, with no >>>> programming in syllabus till class 11th. While way back in an ICSE >>>> school, programming started at class 6 with GW-BASIC and that language >>>> was fun. >>>> >>> At Bharatiya Vidya Mandir school at Kochi, we started on BASIC in the >>> 5th std. It was CBSE. >>> >>> Engineering First+Second Sem at CUSAT, it same thing BASIC .. after >>> two years of C++ at school. >>> >>> Makes you wonder who the hell makes these things. So my opinion is, >>> schools can and do change depending on how good the teachers/principal >>> are. But whats really bad are the universities, where its not so easy. >>> >>> Regards >>> Rajeev J Sebastian >>> _______________________________________________ >>> BangPypers mailing list >>> BangPypers at python.org >>> http://mail.python.org/mailman/listinfo/bangpypers >>> >>> >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > -- > Journal: http://amitksaha.wordpress.com > ?-blog: http://twitter.com/amitsaha > IRC: cornucopic on #scheme, #lisp, #math, #linux > -- Yuvi Panda T http://yuvisense.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmathews at gmail.com Wed Sep 30 10:53:15 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Wed, 30 Sep 2009 14:23:15 +0530 Subject: [BangPypers] Python at Schools In-Reply-To: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com> References: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com> Message-ID: <1c4dc2780909300153s3c3107b1o1e16cb70e609a447@mail.gmail.com> On Sun, Sep 27, 2009 at 7:59 AM, Abhishek Mishra wrote: > I've heard about how kids in European countries begin with Python. > Let's compare that to India, I started with GW-BASIC, which is a very > good language to begin with. But don't you think it has become pretty > old, and is hardly readily available. People start with LOGO at some > places, but that limits them to drawing, though it does introduce one > to joy of programming. I don't think teaching C++ actually gets a > normal kid excited about programming, rather than that, just like some > of us developed maths phobia back then, some kids end up hating the > word 'programming'. I've heard that many times from my peers at > college. > My two paise follows. :) Python is just fantastic for beginners. It is used in the new introductory course at MIT (the replacing the legendary SICP). The OCW page (including videos) is here: http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-00Fall-2008/CourseHome/index.htm You can also download the lecture videos in some formats from: http://www.archive.org/details/MIT6.00F08 Someone had posted a link to an article about someone's experiences in teaching an introductory algorithm course using Python some time back, it should be there in the archives. It concluded that Python was pretty great for teaching since it allows you to focus on ideas instead of syntax. That said, in the University of Pune, when I was there a long time back, the syllabus was structured such that you weren't taught any language per se, different courses required work in different languages, with lots of assembly language courses in the first two years. I know some people from Anna Univ, and from what I saw they wrote a lot of code in C/C++ -- made them pretty good programmers too. While Python will be a good language to introduce people to programming, and I can see it being one of the best choices in the first year (when you're learning to program) and the final year of engineering (when you're probably digging into algos/ai/ml), I feel that students should spend a lot of time working in C, and assembly language in an engineering course. For schools, while I learned C++ at a rather enjoyably slow pace, maybe Python or Logo might be good choices. Or maybe Scheme via HtDP. http://www.htdp.org/ From lists.amitsaha at gmail.com Wed Sep 30 08:46:40 2009 From: lists.amitsaha at gmail.com (Amit Saha) Date: Wed, 30 Sep 2009 12:16:40 +0530 Subject: [BangPypers] Python at Schools In-Reply-To: <45ec909c0909292331i1f372a12y7e4effb172978adc@mail.gmail.com> References: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com> <79a035420909292304m3ae1b8ceqa927b0d74ad455c5@mail.gmail.com> <45ec909c0909292331i1f372a12y7e4effb172978adc@mail.gmail.com> Message-ID: <4AC2FED0.8090408@gmail.com> Yuvi Panda wrote: > Anna University starts with C, then jumps to Bash (?!!?!) and then jumps > back to C and C++. I've no idea where it is going (I'm in my third sem, and > we're with a new curriculum), but I've seen glimpses of Flash(?!). 99% of my > friends gave up on programming a month into the course - C isn't exactly the > best first language, and Bash is just... curious. That is a 'colorful' cornucopia of choices to make the future Software engineers! The college, I studied in (under West Bengal Univ. of Tech), begins with C in the 2nd semester, and for a lot of people, that is the first language- and C programming is taught with Turbo C on MS-DOS. Going ahead, some C++, Java, JSP, BASH scripting is taught. And what do the average student (by avg. I would fine, the student who has no "deep" interest in programming, but just wants to get the job done- which could mean, get marks!) finally end up with? Programming Languages: C, Data Structures. Compared to that, the ICSE schools have a better programming syllabus these days- they start with LOGO, then some BASIC( GW/QBasic), then C++ and then some Java, but no Python. sigh. If I could, I would teach students Lisp after LOGO, after all LOGO is a LISP dialect! my random bits. -Amit > > On Wed, Sep 30, 2009 at 11:34 AM, Rajeev J Sebastian < > rajeev.sebastian at gmail.com> wrote: > >> On Sun, Sep 27, 2009 at 7:59 AM, Abhishek Mishra >> wrote: >>> It happens that at ICSE schools java/c++ is offered for almost last 4 >>> years of schooling, while my CBSE experience was horrible, with no >>> programming in syllabus till class 11th. While way back in an ICSE >>> school, programming started at class 6 with GW-BASIC and that language >>> was fun. >> At Bharatiya Vidya Mandir school at Kochi, we started on BASIC in the >> 5th std. It was CBSE. >> >> Engineering First+Second Sem at CUSAT, it same thing BASIC .. after >> two years of C++ at school. >> >> Makes you wonder who the hell makes these things. So my opinion is, >> schools can and do change depending on how good the teachers/principal >> are. But whats really bad are the universities, where its not so easy. >> >> Regards >> Rajeev J Sebastian >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers -- Journal: http://amitksaha.wordpress.com ?-blog: http://twitter.com/amitsaha IRC: cornucopic on #scheme, #lisp, #math, #linux From sridhar.ratna at gmail.com Wed Sep 30 18:56:12 2009 From: sridhar.ratna at gmail.com (srid) Date: Wed, 30 Sep 2009 09:56:12 -0700 Subject: [BangPypers] Python at Schools In-Reply-To: <45ec909c0909292331i1f372a12y7e4effb172978adc@mail.gmail.com> References: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com> <79a035420909292304m3ae1b8ceqa927b0d74ad455c5@mail.gmail.com> <45ec909c0909292331i1f372a12y7e4effb172978adc@mail.gmail.com> Message-ID: <7c73a13a0909300956k7301b3f1t76421151bce6f2c6@mail.gmail.com> On Tue, Sep 29, 2009 at 11:31 PM, Yuvi Panda wrote: > C isn't exactly the best first language Not sure about C, but from http://us.pycon.org/2009/conference/schedule/event/8/ "No significant differences between CS1-Python and CS1-C++ were found." "CS1-Python was a far better terminal course for non-majors than CS1-C++" -srid PS: I haven't read the full presentation yet. From srijayanth at gmail.com Wed Sep 30 19:19:41 2009 From: srijayanth at gmail.com (Srijayanth Sridhar) Date: Wed, 30 Sep 2009 22:49:41 +0530 Subject: [BangPypers] Python at Schools In-Reply-To: <7c73a13a0909300956k7301b3f1t76421151bce6f2c6@mail.gmail.com> References: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com> <79a035420909292304m3ae1b8ceqa927b0d74ad455c5@mail.gmail.com> <45ec909c0909292331i1f372a12y7e4effb172978adc@mail.gmail.com> <7c73a13a0909300956k7301b3f1t76421151bce6f2c6@mail.gmail.com> Message-ID: <5ead360a0909301019o4eeeb243o9367a6e4be699363@mail.gmail.com> Not sure how many people here were taught Logo as their first language. I was, and most people regard it as a toy language because most teachers focus exclusively on the graphical aspects of the language. However, few know that Logo was inspired by Lisp and can handle fairly decent logical stuff too. I would really like to see Logo used more fully in this regard. Jayanth -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmathews at gmail.com Wed Sep 30 18:59:39 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Wed, 30 Sep 2009 22:29:39 +0530 Subject: [BangPypers] Python at Schools In-Reply-To: <7c73a13a0909300956k7301b3f1t76421151bce6f2c6@mail.gmail.com> References: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com> <79a035420909292304m3ae1b8ceqa927b0d74ad455c5@mail.gmail.com> <45ec909c0909292331i1f372a12y7e4effb172978adc@mail.gmail.com> <7c73a13a0909300956k7301b3f1t76421151bce6f2c6@mail.gmail.com> Message-ID: <1c4dc2780909300959h4b011e3cudab0bcef9a025d47@mail.gmail.com> On Wed, Sep 30, 2009 at 10:26 PM, srid wrote: > On Tue, Sep 29, 2009 at 11:31 PM, Yuvi Panda wrote: >> C isn't exactly the best first language > > Not sure about C, but from http://us.pycon.org/2009/conference/schedule/event/8/ > > ?"No significant differences between CS1-Python and CS1-C++ were found." > > ?"CS1-Python was a far better terminal course for non-majors than CS1-C++" > Interesting! This is why I like this list, there are always people throwing in cool new reads. :) Roshan Mathews From lists.amitsaha at gmail.com Wed Sep 30 19:46:41 2009 From: lists.amitsaha at gmail.com (Amit Saha) Date: Wed, 30 Sep 2009 23:16:41 +0530 Subject: [BangPypers] Python at Schools In-Reply-To: <5ead360a0909301019o4eeeb243o9367a6e4be699363@mail.gmail.com> References: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com> <79a035420909292304m3ae1b8ceqa927b0d74ad455c5@mail.gmail.com> <45ec909c0909292331i1f372a12y7e4effb172978adc@mail.gmail.com> <7c73a13a0909300956k7301b3f1t76421151bce6f2c6@mail.gmail.com> <5ead360a0909301019o4eeeb243o9367a6e4be699363@mail.gmail.com> Message-ID: <4AC39981.3090009@gmail.com> Srijayanth Sridhar wrote: > Not sure how many people here were taught Logo as their first language. I > was, and most people regard it as a toy language because most teachers focus > exclusively on the graphical aspects of the language. However, few know that > Logo was inspired by Lisp and can handle fairly decent logical stuff too. I > would really like to see Logo used more fully in this regard. I, for one came to know this, well after 6 years of finishing my Class 12! -Amit > > Jayanth > > > > ------------------------------------------------------------------------ > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers -- Journal: http://amitksaha.wordpress.com ?-blog: http://twitter.com/amitsaha IRC: cornucopic on #scheme, #lisp, #math, #linux From shameek09 at gmail.com Wed Sep 30 22:47:28 2009 From: shameek09 at gmail.com (shameek ghosh) Date: Thu, 1 Oct 2009 02:17:28 +0530 Subject: [BangPypers] Python at Schools In-Reply-To: <4AC39981.3090009@gmail.com> References: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com> <79a035420909292304m3ae1b8ceqa927b0d74ad455c5@mail.gmail.com> <45ec909c0909292331i1f372a12y7e4effb172978adc@mail.gmail.com> <7c73a13a0909300956k7301b3f1t76421151bce6f2c6@mail.gmail.com> <5ead360a0909301019o4eeeb243o9367a6e4be699363@mail.gmail.com> <4AC39981.3090009@gmail.com> Message-ID: <6c8d08a40909301347q5c769000pf8d42af6971d9bc@mail.gmail.com> Few months back I was tutoring a group of 6th standard studentss.So I introduced programming by teaching them Alice - www.alice.org. And then I realized that understanding "why to program?" was a lot more important than "how to program?" - a confusion I had when in the 6th standard.Though I enjoyed GWBASIC a lot then , I never really felt the greater importance of programming until I was in my 2nd year of college.So I retracked and instead started with teaching them effective ways of playing battleships using common search methods in algorithms etc....just wanted to share a personal experience.[:)] On 9/30/09, Amit Saha wrote: > Srijayanth Sridhar wrote: >> Not sure how many people here were taught Logo as their first language. I >> was, and most people regard it as a toy language because most teachers >> focus >> exclusively on the graphical aspects of the language. However, few know >> that >> Logo was inspired by Lisp and can handle fairly decent logical stuff too. >> I >> would really like to see Logo used more fully in this regard. > > I, for one came to know this, well after 6 years of finishing my Class 12! > > -Amit >> >> Jayanth >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers > > > -- > Journal: http://amitksaha.wordpress.com > ?-blog: http://twitter.com/amitsaha > IRC: cornucopic on #scheme, #lisp, #math, #linux > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- "A mind stretched to a new idea, never goes back to its original dimensions" From bharat_pathak at hotmail.com Wed Sep 30 07:17:31 2009 From: bharat_pathak at hotmail.com (Bharat Pathak) Date: Wed, 30 Sep 2009 10:47:31 +0530 Subject: [BangPypers] [ilugb] Python at Schools In-Reply-To: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com><12470af00909261956j119b32r2676f151cf1159b@mail.gmail.com> <25674985.post@talk.nabble.com> References: <64160c70909261929t419abbfcs4b7b63548e4daee@mail.gmail.com><12470af00909261956j119b32r2676f151cf1159b@mail.gmail.com> <25674985.post@talk.nabble.com> Message-ID: Dear All, We have made one RF Robot which can be interfaced with Python and can be a good platform to teach students interested in RF Robotics, Our youngest student is a 10th class boy who is interested in robotics. We showed one demo at BIT college yesterday and it was well received. Request Python community to have a look and comment on the possibilities. Secondly we are also working on one embedded platform using Python. This platform is targeted towards engineering students. It will be launched in 1 months time frame. Sorry, this is not a spam. I am myself a big fan of Python and using it for past 1 year for embedded design development. So I thought of Sharing the information with the user base. Thank you Guido Van Rossum for inventing such beautiful language. Regards Bharat -------------------------------------------------- From: "Shivaraj M S" Sent: Wednesday, September 30, 2009 10:20 AM To: Subject: Re: [BangPypers] [ilugb] Python at Schools > >> I started with GW-BASIC, which is a very >> good language to begin with. > > I too, still like algorithms -> flowcharts -> step by step instructions -> > BASIC for starting off. IMHO, the real issue is with continuity of > programming space and not with any specific language. > >> Besides, each school has its own idea of how to >> promote computer education in schools > > I think it's more of training and employment oriented statistical > approach. > -- > View this message in context: > http://www.nabble.com/Python-at-Schools-tp25630379p25674985.html > Sent from the BangPypers - Bangalore Python Users Group mailing list > archive at Nabble.com. > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- A non-text attachment was scrubbed... Name: RFbot.jpg Type: image/jpeg Size: 150996 bytes Desc: not available URL: