From srinivas_thatiparthy at akebonosoft.com Tue Dec 1 05:32:45 2009 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 1 Dec 2009 10:02:45 +0530 Subject: [BangPypers] Suggest me a book for ORM Message-ID: <4EF2BF691B890546B2694C99A2852F0C01CB4F7F@astserver3.akebonosoft.com> Hi all, Can anybody suggest me a good book for ORM(Object Relational Mapping) , better if it is language agnostic? Regards, Srinivas Reddy Thatiparthy. ------ "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....." From abpillai at gmail.com Tue Dec 1 07:19:11 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 1 Dec 2009 11:49:11 +0530 Subject: [BangPypers] BangPypers Digest, Vol 27, Issue 32 In-Reply-To: <35D47D6EB5A05A42886E5A338ECCFEC1010436@ausx3mps351.aus.amer.dell.com> References: <35D47D6EB5A05A42886E5A338ECCFEC1010436@ausx3mps351.aus.amer.dell.com> Message-ID: <8548c5f30911302219n2bb579f8u41787336d67b2715@mail.gmail.com> On Thu, Nov 26, 2009 at 5:03 PM, wrote: > I tried paramiko,but I am getting following error while importing > paramiko > ImportError: No module named Crypto.Util.randpool > > Subhan > > You need python-crypto package. --Anand From steve at lonetwin.net Tue Dec 1 07:26:06 2009 From: steve at lonetwin.net (steve) Date: Tue, 01 Dec 2009 11:56:06 +0530 Subject: [BangPypers] meta programming In-Reply-To: <35D47D6EB5A05A42886E5A338ECCFEC1010437@ausx3mps351.aus.amer.dell.com> References: <35D47D6EB5A05A42886E5A338ECCFEC1010437@ausx3mps351.aus.amer.dell.com> Message-ID: <4B14B6FE.70909@lonetwin.net> On 11/26/2009 05:06 PM, Mahaboob_Subhan at DellTeam.com wrote: > Hi All, > > > > Is there any good python Meta programming tutorial? > http://www.ibm.com/developerworks/linux/library/l-pymeta.html In fact, I recommend all of David Mertz's, 'Charming Python' articles http://gnosis.cx/publish/tech_index_cp.html (note: the icons are links to html versions of the plain text article links) 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 noufal at gmail.com Tue Dec 1 07:46:42 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 1 Dec 2009 06:46:42 +0000 Subject: [BangPypers] apycot In-Reply-To: References: <9963e56e0911300206l3a6a6781g9143fe41ce5b4758@mail.gmail.com> Message-ID: <9963e56e0911302246g1a1feab3yb2ac7ae6c840fd44@mail.gmail.com> On Mon, Nov 30, 2009 at 11:38 AM, Baiju M wrote: > On Mon, Nov 30, 2009 at 3:36 PM, Noufal Ibrahim wrote: > > Hi, > > Does anyone have any experience with using apycot > > http://www.logilab.org/project/apycot to automate a large batch of > tests? I > > basically need a framework to do all the accounting and paperwork for me. > > Alternative suggestions would be nice too. > > May be you are looking for continuous integration server like: > > http://hudson-ci.org/ or > http://buildbot.net/trac (try: > http://pypi.python.org/pypi/collective.buildbot ) > Not really. I am planning to use Buildbot for CI but as part of the build process, I'd like to run some tests as well. I need some flexibility with regards to accounting of the tests (how many passed, how many failed etc.). The tests will be disparate. Some will be shell scripts, some might be python programs. I need a framework to run all of them and report success/failure. -- ~noufal http://nibrahim.net.in From praveen.python.plone at gmail.com Tue Dec 1 07:52:45 2009 From: praveen.python.plone at gmail.com (Praveen Kumar) Date: Tue, 1 Dec 2009 12:22:45 +0530 Subject: [BangPypers] Suggest me a book for ORM In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01CB4F7F@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01CB4F7F@astserver3.akebonosoft.com> Message-ID: <6305ec600911302252r6b831c79i33faf91fae0bb25a@mail.gmail.com> *http://www.pdf-search-engine.com/object-relational-mapper-pdf.html* On Tue, Dec 1, 2009 at 10:02 AM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > Hi all, > Can anybody suggest me a good book for ORM(Object Relational > Mapping) , better if it is language agnostic? > > > Regards, > Srinivas Reddy Thatiparthy. > ------ > "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 > -- Praveen Kumar +91 9739854134 http://praveensunsetpoint.wordpress.com Bangalore From nishanth.amuluru at gmail.com Tue Dec 1 09:01:47 2009 From: nishanth.amuluru at gmail.com (Nishanth Amuluru) Date: Tue, 1 Dec 2009 13:31:47 +0530 Subject: [BangPypers] meta programming In-Reply-To: <4B14B6FE.70909@lonetwin.net> References: <35D47D6EB5A05A42886E5A338ECCFEC1010437@ausx3mps351.aus.amer.dell.com> <4B14B6FE.70909@lonetwin.net> Message-ID: On Tue, Dec 1, 2009 at 11:56 AM, steve wrote: > On 11/26/2009 05:06 PM, Mahaboob_Subhan at DellTeam.com wrote: > >> Hi All, >> >> >> >> Is there any good python Meta programming tutorial? >> > Here is a list of all the links to the articles I collected while learning metaprogramming http://delicious.com/nishi2rock/metaprogramming -- Thanks and Regards A Nishanth From dhananjay.nene at gmail.com Tue Dec 1 09:06:43 2009 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Tue, 01 Dec 2009 13:36:43 +0530 Subject: [BangPypers] Suggest me a book for ORM In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01CB4F7F@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01CB4F7F@astserver3.akebonosoft.com> Message-ID: <4B14CE93.8080606@gmail.com> Srinivas, While I am not aware of a book, some useful readings are likely to be found in the "Data" section at http://www.ambysoft.com/onlineWritings.html (I read a lot of his articles many years ago, and did find them quite useful then. Dhananjay Srinivas Reddy Thatiparthy wrote: > Hi all, > Can anybody suggest me a good book for ORM(Object Relational > Mapping) , better if it is language agnostic? > > > Regards, > Srinivas Reddy Thatiparthy. > ------ > "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 > > -- -------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene From srinivas_thatiparthy at akebonosoft.com Tue Dec 1 09:55:13 2009 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 1 Dec 2009 14:25:13 +0530 Subject: [BangPypers] Suggest me a book for ORM In-Reply-To: <4B14CE93.8080606@gmail.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01CB4FF1@astserver3.akebonosoft.com> Thanks for the link. Regards, Srinivas Reddy Thatiparthy. ------ "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....." -----Original Message----- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org [mailto:bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.o rg] On Behalf Of Dhananjay Nene Sent: Tuesday, December 01, 2009 1:37 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Suggest me a book for ORM Srinivas, While I am not aware of a book, some useful readings are likely to be found in the "Data" section at http://www.ambysoft.com/onlineWritings.html (I read a lot of his articles many years ago, and did find them quite useful then. Dhananjay -------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From nkhalasi at vayana.in Tue Dec 1 10:38:19 2009 From: nkhalasi at vayana.in (Naresh Khalasi) Date: Tue, 1 Dec 2009 15:08:19 +0530 Subject: [BangPypers] Suggest me a book for ORM In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01CB4FF1@astserver3.akebonosoft.com> References: <4B14CE93.8080606@gmail.com> <4EF2BF691B890546B2694C99A2852F0C01CB4FF1@astserver3.akebonosoft.com> Message-ID: <7fb1edae0912010138p780b1c4eic3e1b467cbd1af6d@mail.gmail.com> Check this out - http://www.agiledata.org/essays/mappingObjects.html On Tue, Dec 1, 2009 at 2:25 PM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > Thanks for the link. > > Regards, > Srinivas Reddy Thatiparthy. > ------ > "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....." > > -----Original Message----- > From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org > [mailto:bangpypers-bounces+srinivas_thatiparthy > =akebonosoft.com at python.o > rg] On Behalf Of Dhananjay Nene > Sent: Tuesday, December 01, 2009 1:37 PM > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] Suggest me a book for ORM > > Srinivas, > > While I am not aware of a book, some useful readings are likely to be > found in the "Data" section at > http://www.ambysoft.com/onlineWritings.html (I read a lot of his > articles many years ago, and did find them quite useful then. > > Dhananjay > > -------------------------------------- > blog: http://blog.dhananjaynene.com > twitter: http://twitter.com/dnene > > _______________________________________________ > 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 > From abpillai at gmail.com Wed Dec 2 05:41:26 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 2 Dec 2009 10:11:26 +0530 Subject: [BangPypers] Google Wave Presentation Message-ID: <8548c5f30912012041k744242d8k57234e5d4667dfe1@mail.gmail.com> Link to presentation gave in Python Colgone User Group recently on Google wave and extending it using robots by Alexander Benker. http://www.slideshare.net/abenker/20091014-google-wave -- --Anand From praveen.python.plone at gmail.com Wed Dec 2 06:33:09 2009 From: praveen.python.plone at gmail.com (Praveen Kumar) Date: Wed, 2 Dec 2009 11:03:09 +0530 Subject: [BangPypers] Future of XML Processing Message-ID: <6305ec600912012133u6d86ff58l7d1e0a341cf7de35@mail.gmail.com> *Virtual Token Descriptor for eXtensible Markup Language* (VTD-XML) refers to a collection of cross-platform XML processing technologies centered around a non-extractive XML "document-centric" parsing technique called Virtual Token Descriptor (VTD). Depending on the perspective, *http://vtd-xml.sourceforge.net/* -- Praveen Kumar +91 9739854134 *http://praveensunsetpoint.wordpress.com/2008/10/01/zope-xml-methods/* Bangalore From sridhar.ratna at gmail.com Wed Dec 2 07:02:13 2009 From: sridhar.ratna at gmail.com (Sridhar Ratnakumar) Date: Tue, 1 Dec 2009 22:02:13 -0800 Subject: [BangPypers] Multiple versions of Python In-Reply-To: <9963e56e0911112212u58c1f7c5k6563d06b7596a060@mail.gmail.com> References: <9963e56e0911112212u58c1f7c5k6563d06b7596a060@mail.gmail.com> Message-ID: <7c73a13a0912012202k3099741eg9c1b496a18fb9a47@mail.gmail.com> On Wed, Nov 11, 2009 at 10:12 PM, Noufal Ibrahim wrote: > Someone on this list asked a while ago about installing and using > different versions of Python on the same machine. Here's something > relevant that might be useful. > http://tartley.com/?p=883 This is not necessary for ActivePython [activestate.com/activepython] which installs a "python26.exe" along with "python.exe". -srid From siddharta.lists at gmail.com Wed Dec 2 08:29:54 2009 From: siddharta.lists at gmail.com (Siddharta) Date: Wed, 02 Dec 2009 12:59:54 +0530 Subject: [BangPypers] apycot In-Reply-To: <9963e56e0911302246g1a1feab3yb2ac7ae6c840fd44@mail.gmail.com> References: <9963e56e0911300206l3a6a6781g9143fe41ce5b4758@mail.gmail.com> <9963e56e0911302246g1a1feab3yb2ac7ae6c840fd44@mail.gmail.com> Message-ID: <4B161772.7050001@gmail.com> Noufal Ibrahim wrote: > Not really. I am planning to use Buildbot for CI but as part of the build > process, I'd like to run some tests as well. I need some flexibility with > regards to accounting of the tests (how many passed, how many failed etc.). > The tests will be disparate. Some will be shell scripts, some might be > python programs. I need a framework to run all of them and report > success/failure. > Why not use nose? You can create a wrapper test that runs your shell scripts and nose will execute it. -- Siddharta Govindaraj From noufal at gmail.com Wed Dec 2 09:04:19 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 2 Dec 2009 13:34:19 +0530 Subject: [BangPypers] apycot In-Reply-To: <4B161772.7050001@gmail.com> References: <9963e56e0911300206l3a6a6781g9143fe41ce5b4758@mail.gmail.com> <9963e56e0911302246g1a1feab3yb2ac7ae6c840fd44@mail.gmail.com> <4B161772.7050001@gmail.com> Message-ID: <9963e56e0912020004w2e3cfdb7qde322fb1ef58296f@mail.gmail.com> On Wed, Dec 2, 2009 at 12:59 PM, Siddharta wrote: > Noufal Ibrahim wrote: > >> Not really. I am planning to use Buildbot for CI but as part of the build >> process, I'd like to run some tests as well. I need some flexibility with >> regards to accounting of the tests (how many passed, how many failed >> etc.). >> The tests will be disparate. Some will be shell scripts, some might be >> python programs. I need a framework to run all of them and report >> success/failure. >> >> > Why not use nose? You can create a wrapper test that runs your shell > scripts and nose will execute it. > I thought of that but it sounds like a bit of a hack to run tests that way. I haven't used nose *that* much. Does it allow some form of extension which I can use to write custom test types (eg. with different reports etc.) -- ~noufal http://nibrahim.net.in From noufal at gmail.com Wed Dec 2 12:07:54 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 2 Dec 2009 16:37:54 +0530 Subject: [BangPypers] apycot In-Reply-To: <9963e56e0912020004w2e3cfdb7qde322fb1ef58296f@mail.gmail.com> References: <9963e56e0911300206l3a6a6781g9143fe41ce5b4758@mail.gmail.com> <9963e56e0911302246g1a1feab3yb2ac7ae6c840fd44@mail.gmail.com> <4B161772.7050001@gmail.com> <9963e56e0912020004w2e3cfdb7qde322fb1ef58296f@mail.gmail.com> Message-ID: <9963e56e0912020307k4b2ff132qea4986c820d64e53@mail.gmail.com> On Wed, Dec 2, 2009 at 1:34 PM, Noufal Ibrahim wrote: > > > On Wed, Dec 2, 2009 at 12:59 PM, Siddharta wrote: > >> Noufal Ibrahim wrote: >> >>> Not really. I am planning to use Buildbot for CI but as part of the build >>> process, I'd like to run some tests as well. I need some flexibility with >>> regards to accounting of the tests (how many passed, how many failed >>> etc.). >>> The tests will be disparate. Some will be shell scripts, some might be >>> python programs. I need a framework to run all of them and report >>> success/failure. >>> >>> >> Why not use nose? You can create a wrapper test that runs your shell >> scripts and nose will execute it. >> > > > I thought of that but it sounds like a bit of a hack to run tests that way. > I haven't used nose *that* much. Does it allow some form of extension which > I can use to write custom test types (eg. with different reports etc.) Nose (after reading the docs a bit) is a unit test framework for python code. While I might be able to wring it's hand (nose?) to make it do general test running, I don't think it was intended for that. I found something called pandokia http://stsdas.stsci.edu/pandokia/ which looks like what I want. Anyone have experience with it? -- ~noufal http://nibrahim.net.in From saju.pillai at gmail.com Fri Dec 4 07:24:52 2009 From: saju.pillai at gmail.com (Saju Pillai) Date: Fri, 4 Dec 2009 11:54:52 +0530 Subject: [BangPypers] Multiple versions of Python In-Reply-To: <9963e56e0911112212u58c1f7c5k6563d06b7596a060@mail.gmail.com> References: <9963e56e0911112212u58c1f7c5k6563d06b7596a060@mail.gmail.com> Message-ID: <13c255070912032224v320e2720r4b3a413c83856e5d@mail.gmail.com> 2009/11/12 Noufal Ibrahim : > Someone on this list asked a while ago about installing and using > different versions of Python on the same machine. Here's something > relevant that might be useful. > http://tartley.com/?p=883 All you need to do is to make sure your $PATH chooses the correct python. When you compile python, the --prefix= value gets compiled in Modules/getpath.c. This is how the python binary knows where to look for it's correct bits. Only thing you need to look out for is PYTHONPATH. If you have this set, make sure it points to the appropriate version of libraries you are trying to pickup. -srp From lgp171188 at gmail.com Sun Dec 6 08:48:45 2009 From: lgp171188 at gmail.com (Guruprasad) Date: Sun, 6 Dec 2009 13:18:45 +0530 Subject: [BangPypers] Issues with multiple instances of mod_python websites on the same machine In-Reply-To: <7c956f0c0912052343j35afa7c9led578f0e9c351595@mail.gmail.com> References: <7c956f0c0912051326r36a6b450qbc2885e76bd18ebc@mail.gmail.com> <7c956f0c0912052343j35afa7c9led578f0e9c351595@mail.gmail.com> Message-ID: <7c956f0c0912052348i6823506cof8b5f0ec9c5f1611@mail.gmail.com> Hi all, In our college, we have a mod_python based web application for our intranet portal. We have a local testbed where the student devs have their own logins and they work on their own subversion working copies and publish their sites using mod_python configuration in /etc/apache2/sites-available/default and userdir module. But we very often face a problem like this. All the users have their own copies of the web application and when one user opens and navigates through the web application when other user is doing the same with his copy, on clicking links and all, all the addresses start getting changed into those of the other user and not mine. We use Debian Lenny and the versions of apache2 and mod_python shipped with them with the mpm-prefork module. How to avoid such an issue. For example when I click on a link in a site http://localhost/~user1/blah it gets changed it to http://localhost/~user2/blah and causes confusions. This issue happens only when the users publish their own sites and use them concurrently. Thank you. Regards, Guruprasad. From noufal at gmail.com Sun Dec 6 11:15:58 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 6 Dec 2009 15:45:58 +0530 Subject: [BangPypers] Issues with multiple instances of mod_python websites on the same machine In-Reply-To: <7c956f0c0912052348i6823506cof8b5f0ec9c5f1611@mail.gmail.com> References: <7c956f0c0912051326r36a6b450qbc2885e76bd18ebc@mail.gmail.com> <7c956f0c0912052343j35afa7c9led578f0e9c351595@mail.gmail.com> <7c956f0c0912052348i6823506cof8b5f0ec9c5f1611@mail.gmail.com> Message-ID: <9963e56e0912060215h23ace34eh3ba9a41d6f7f10bf@mail.gmail.com> On Sun, Dec 6, 2009 at 1:18 PM, Guruprasad wrote: > [..] > All the users have their own copies of the web application and when > one user opens and navigates through the web application when other > user is doing the same with his copy, on clicking links and all, all > the addresses start getting changed into those of the other user and > not mine. We use Debian Lenny and the versions of apache2 and > mod_python shipped with them with the mpm-prefork module. How to avoid > such an issue. > I haven't deployed through mod_python myself but in your situation, wouldn't it make sense to have a local webserver per developer and only push the 'production' version to the mod_python+ apache combo? -- ~noufal http://nibrahim.net.in From lgp171188 at gmail.com Sun Dec 6 11:28:31 2009 From: lgp171188 at gmail.com (L.Guruprasad) Date: Sun, 06 Dec 2009 15:58:31 +0530 Subject: [BangPypers] Issues with multiple instances of mod_python websites on the same machine In-Reply-To: <9963e56e0912060215h23ace34eh3ba9a41d6f7f10bf@mail.gmail.com> References: <7c956f0c0912051326r36a6b450qbc2885e76bd18ebc@mail.gmail.com> <7c956f0c0912052343j35afa7c9led578f0e9c351595@mail.gmail.com> <7c956f0c0912052348i6823506cof8b5f0ec9c5f1611@mail.gmail.com> <9963e56e0912060215h23ace34eh3ba9a41d6f7f10bf@mail.gmail.com> Message-ID: <4B1B874F.2050802@gmail.com> Hi, Noufal Ibrahim wrote: > > I haven't deployed through mod_python myself but in your situation, wouldn't > it make sense to have a local webserver per developer and only push the > 'production' version to the mod_python+ apache combo? We push only the 'production' version to the live server with mod_python+apache combo. But we have a local testbed server running apache with mod_python. We are using the same apache to serve the site of all the developers' sites hosted in their respective home directories and we encounter problems I mentioned above in such a scenario. Of course, having a local webserver per dev will make a lot of sense, but I thought that in my scenario, I can keep all the development on a single testbed server and still have multiple devs working on their own copies of the application. The webserver becomes centralized and working from any other machine through SSH is easier than setting up a webserver in every machine where the dev works. This approach may be flawed so I am open to ideas and suggestions regarding this and also regarding how to solve the problem. Regards, Guruprasad From lgp171188 at gmail.com Sun Dec 6 11:51:39 2009 From: lgp171188 at gmail.com (L.Guruprasad) Date: Sun, 06 Dec 2009 16:21:39 +0530 Subject: [BangPypers] Issues with multiple instances of mod_python websites on the same machine In-Reply-To: <9963e56e0912060215h23ace34eh3ba9a41d6f7f10bf@mail.gmail.com> References: <7c956f0c0912051326r36a6b450qbc2885e76bd18ebc@mail.gmail.com> <7c956f0c0912052343j35afa7c9led578f0e9c351595@mail.gmail.com> <7c956f0c0912052348i6823506cof8b5f0ec9c5f1611@mail.gmail.com> <9963e56e0912060215h23ace34eh3ba9a41d6f7f10bf@mail.gmail.com> Message-ID: <4B1B8CBB.1050303@gmail.com> Hi, Noufal Ibrahim wrote: > On Sun, Dec 6, 2009 at 1:18 PM, Guruprasad wrote: > >> [..] >> All the users have their own copies of the web application and when >> one user opens and navigates through the web application when other >> user is doing the same with his copy, on clicking links and all, all >> the addresses start getting changed into those of the other user and >> not mine. We use Debian Lenny and the versions of apache2 and >> mod_python shipped with them with the mpm-prefork module. How to avoid >> such an issue. I have found a solution to the problem from http://mailman.modpython.org/pipermail/mod_python/2009-December/026397.html. The idea is to create a sub-interpreter for every published site by using 'PythonInterpreter' directive. I can use directives like PythonInterpreter site1 PythonInterpreter site2 where PythonInterpreter directive has to be given a unique name that could be anything. Regards, Guruprasad From harishladhani at gmail.com Sun Dec 6 14:15:14 2009 From: harishladhani at gmail.com (harish ladhani) Date: Sun, 6 Dec 2009 18:45:14 +0530 Subject: [BangPypers] Python Embedded with C Message-ID: Hi .. I want to call python from my C program, which will perform same manipulation and return integer. As Python is better to do with large number, so I called python. Is there any way to this type of embedding. -- Harish Ladhani TY IT Registered Linux member:496424 From moinakg at belenix.org Sun Dec 6 15:24:02 2009 From: moinakg at belenix.org (Moinak Ghosh) Date: Sun, 6 Dec 2009 19:54:02 +0530 Subject: [BangPypers] Python Embedded with C In-Reply-To: References: Message-ID: <46fe20470912060624j7f70b1a4q635b8355e42d2345@mail.gmail.com> On Sun, Dec 6, 2009 at 6:45 PM, harish ladhani wrote: > Hi .. > > I want to call python from my C program, which will perform same > manipulation and return integer. > As Python is better to do with large number, so I called python. > Is there any way to this type of embedding. http://www.python.org/doc/2.6/extending/embedding.html Regards, Moinak. -- ================================ http://www.belenix.org/ http://moinakg.wordpress.com/ From noufal at gmail.com Sun Dec 6 17:13:57 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 6 Dec 2009 21:43:57 +0530 Subject: [BangPypers] Python Embedded with C In-Reply-To: References: Message-ID: <9963e56e0912060813u70dddf7ei3fb5394cbbfecf97@mail.gmail.com> On Sun, Dec 6, 2009 at 6:45 PM, harish ladhani wrote: > Hi .. > > I want to call python from my C program, which will perform same > manipulation and return integer. > As Python is better to do with large number, so I called python. > Is there any way to this type of embedding.[..] Are you sure you need C for your app at all? If you're having things like dealing with large numbers, maybe it makes sense to do the whole app in python and dive into C only for parts that need to interface with low level hardware or require speed. -- ~noufal http://nibrahim.net.in From abpillai at gmail.com Mon Dec 7 05:08:35 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 7 Dec 2009 09:38:35 +0530 Subject: [BangPypers] Python Embedded with C In-Reply-To: References: Message-ID: <8548c5f30912062008g268912cam1f57bcfecc1c26ee@mail.gmail.com> On Sun, Dec 6, 2009 at 6:45 PM, harish ladhani wrote: > Hi .. > > I want to call python from my C program, which will perform same > manipulation and return integer. > As Python is better to do with large number, so I called python. > Beats me, this one. What can C not do with large numbers which Python can do ? > Is there any way to this type of embedding. > > -- > Harish Ladhani > TY IT > Registered Linux member:496424 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From abpillai at gmail.com Mon Dec 7 08:47:49 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 7 Dec 2009 13:17:49 +0530 Subject: [BangPypers] Python 2.7 alpha1 released Message-ID: <8548c5f30912062347u4cc47b9cya966235ad3d77232@mail.gmail.com> Python 2.7 a1 was released during the week-end. http://docs.python.org/dev/whatsnew/2.7 Regards, -- --Anand From orsenthil at gmail.com Mon Dec 7 09:14:26 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Mon, 7 Dec 2009 13:44:26 +0530 Subject: [BangPypers] Python 2.7 alpha1 released In-Reply-To: <8548c5f30912062347u4cc47b9cya966235ad3d77232@mail.gmail.com> References: <8548c5f30912062347u4cc47b9cya966235ad3d77232@mail.gmail.com> Message-ID: <20091207081426.GB10037@ubuntu.ubuntu-domain> On Mon, Dec 07, 2009 at 01:17:49PM +0530, Anand Balachandran Pillai wrote: > Python 2.7 a1 was released during the week-end. > http://docs.python.org/dev/whatsnew/2.7 This is alpha release,for testing. I don't know if Andrew Kuchling has updated the whatsnew doc. The best piece of whatsnew for alpha releases is Misc/NEWS document. -- Senthil C makes it easy for you to shoot yourself in the foot. C++ makes that harder, but when you do, it blows away your whole leg. -- Bjarne Stroustrup From abpillai at gmail.com Mon Dec 7 09:30:45 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 7 Dec 2009 14:00:45 +0530 Subject: [BangPypers] Python 2.7 alpha1 released In-Reply-To: <20091207081426.GB10037@ubuntu.ubuntu-domain> References: <8548c5f30912062347u4cc47b9cya966235ad3d77232@mail.gmail.com> <20091207081426.GB10037@ubuntu.ubuntu-domain> Message-ID: <8548c5f30912070030n411e5e89y9e5345637d4ee2b8@mail.gmail.com> On Mon, Dec 7, 2009 at 1:44 PM, Senthil Kumaran wrote: > On Mon, Dec 07, 2009 at 01:17:49PM +0530, Anand Balachandran Pillai wrote: > > Python 2.7 a1 was released during the week-end. > > http://docs.python.org/dev/whatsnew/2.7 > > This is alpha release,for testing. I don't know if Andrew Kuchling has > updated the whatsnew doc. The best piece of whatsnew for alpha > releases is Misc/NEWS document. > I quoted the release manager Benjamin Peterson himself. Guess he knows best about this. If you think the link is out-of-date inform him and pydev. Btw, I actually read through the whatsnew link before posting and it *is* updated. > > -- > Senthil > C makes it easy for you to shoot yourself in the foot. C++ makes that > harder, but when you do, it blows away your whole leg. > -- Bjarne Stroustrup > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From noufal at gmail.com Mon Dec 7 09:52:35 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 7 Dec 2009 14:22:35 +0530 Subject: [BangPypers] Python 2.7 alpha1 released In-Reply-To: <8548c5f30912070030n411e5e89y9e5345637d4ee2b8@mail.gmail.com> References: <8548c5f30912062347u4cc47b9cya966235ad3d77232@mail.gmail.com> <20091207081426.GB10037@ubuntu.ubuntu-domain> <8548c5f30912070030n411e5e89y9e5345637d4ee2b8@mail.gmail.com> Message-ID: <9963e56e0912070052j6107c0baj225123673a20ba78@mail.gmail.com> The newGIL work is in 3k eh? for some reason, I thought it was in the 2.x series. -- ~noufal http://nibrahim.net.in From ramp99 at gmail.com Mon Dec 7 10:28:51 2009 From: ramp99 at gmail.com (Rama Rao Polneni) Date: Mon, 7 Dec 2009 14:58:51 +0530 Subject: [BangPypers] How to hide a panel of a notebook Message-ID: <9a8a0e230912070128u5aaf0e1y54534eb100e91b8@mail.gmail.com> Hi All, My notebook is having 5 panels. I want to hide panel3 without changing the page numbers (self.notebook.GetSelection) when I hide/remove that page. When I use self.panel3.RemovePage(3). Next(4) panel is going to get the GetSelection() as 3. But I want to retain previous panel number. Any body has any solution? Please help me.. Thanks in Advance, Rama From orsenthil at gmail.com Mon Dec 7 10:30:33 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Mon, 7 Dec 2009 15:00:33 +0530 Subject: [BangPypers] Python 2.7 alpha1 released In-Reply-To: <8548c5f30912070030n411e5e89y9e5345637d4ee2b8@mail.gmail.com> References: <8548c5f30912062347u4cc47b9cya966235ad3d77232@mail.gmail.com> <20091207081426.GB10037@ubuntu.ubuntu-domain> <8548c5f30912070030n411e5e89y9e5345637d4ee2b8@mail.gmail.com> Message-ID: <20091207093033.GA11696@ubuntu.ubuntu-domain> On Mon, Dec 07, 2009 at 02:00:45PM +0530, Anand Balachandran Pillai wrote: > > > Python 2.7 a1 was released during the week-end. > > > http://docs.python.org/dev/whatsnew/2.7 > > > > This is alpha release,for testing. I don't know if Andrew Kuchling has > > updated the whatsnew doc. The best piece of whatsnew for alpha > > releases is Misc/NEWS document. > > I quoted the release manager Benjamin Peterson himself. Guess he knows > best about this. If you think the link is out-of-date inform him and pydev. Well, I was not nitpicking. It was just for information. I remember this discussion somewhere that amk usually updates before the beta or the actual release and Misc/NEWS is the source for whatsnew. > Btw, I actually read through the whatsnew link before posting and it > *is* updated. Yeah, it is. -- Senthil Paranoid Club meeting this Friday. Now ... just try to find out where! From noufal at gmail.com Mon Dec 7 10:41:54 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 7 Dec 2009 15:11:54 +0530 Subject: [BangPypers] How to hide a panel of a notebook In-Reply-To: <9a8a0e230912070128u5aaf0e1y54534eb100e91b8@mail.gmail.com> References: <9a8a0e230912070128u5aaf0e1y54534eb100e91b8@mail.gmail.com> Message-ID: <9963e56e0912070141h7e716821k48e4f3bac743b2c8@mail.gmail.com> On Mon, Dec 7, 2009 at 2:58 PM, Rama Rao Polneni wrote: > Hi All, > > My notebook is having 5 panels. Is this a GUI construct? I'm sorry if I seem daft but I can't really place what a notebook is in this context. :) If it's something you've done yourself, maybe you can have a 'stale' boolean attribute for the page which you don't want to see. -- ~noufal http://nibrahim.net.in From orsenthil at gmail.com Mon Dec 7 10:52:39 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Mon, 7 Dec 2009 15:22:39 +0530 Subject: [BangPypers] Python 2.7 alpha1 released In-Reply-To: <9963e56e0912070052j6107c0baj225123673a20ba78@mail.gmail.com> References: <8548c5f30912062347u4cc47b9cya966235ad3d77232@mail.gmail.com> <20091207081426.GB10037@ubuntu.ubuntu-domain> <8548c5f30912070030n411e5e89y9e5345637d4ee2b8@mail.gmail.com> <9963e56e0912070052j6107c0baj225123673a20ba78@mail.gmail.com> Message-ID: <20091207095239.GB11696@ubuntu.ubuntu-domain> On Mon, Dec 07, 2009 at 02:22:35PM +0530, Noufal Ibrahim wrote: > The newGIL work is in 3k eh? for some reason, I thought it was in the 2.x > series. Seems, its not ported yet. http://mail.python.org/pipermail/python-dev/2009-October/093321.html NB : this is a branch of py3k. There should be no real difficulty porting it back to trunk, provided someone wants to do the job. -- Senthil "If a computer can't directly address all the RAM you can use, it's just a toy." -- anonymous comp.sys.amiga posting, non-sequitir From ramdaz at gmail.com Mon Dec 7 11:37:14 2009 From: ramdaz at gmail.com (Ramdas S) Date: Mon, 7 Dec 2009 16:07:14 +0530 Subject: [BangPypers] How to hide a panel of a notebook In-Reply-To: <9963e56e0912070141h7e716821k48e4f3bac743b2c8@mail.gmail.com> References: <9a8a0e230912070128u5aaf0e1y54534eb100e91b8@mail.gmail.com> <9963e56e0912070141h7e716821k48e4f3bac743b2c8@mail.gmail.com> Message-ID: <6e38f9f00912070237s489e469aj755a3011f2e29c61@mail.gmail.com> is this wxPython? On Mon, Dec 7, 2009 at 3:11 PM, Noufal Ibrahim wrote: > On Mon, Dec 7, 2009 at 2:58 PM, Rama Rao Polneni wrote: > > > Hi All, > > > > My notebook is having 5 panels. > > > Is this a GUI construct? I'm sorry if I seem daft but I can't really place > what a notebook is in this context. :) > If it's something you've done yourself, maybe you can have a 'stale' > boolean > attribute for the page which you don't want to see. > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Ramdas S +91 9342 583 065 From noufal at gmail.com Mon Dec 7 11:39:26 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 7 Dec 2009 16:09:26 +0530 Subject: [BangPypers] Python 2.7 alpha1 released In-Reply-To: <20091207095239.GB11696@ubuntu.ubuntu-domain> References: <8548c5f30912062347u4cc47b9cya966235ad3d77232@mail.gmail.com> <20091207081426.GB10037@ubuntu.ubuntu-domain> <8548c5f30912070030n411e5e89y9e5345637d4ee2b8@mail.gmail.com> <9963e56e0912070052j6107c0baj225123673a20ba78@mail.gmail.com> <20091207095239.GB11696@ubuntu.ubuntu-domain> Message-ID: <9963e56e0912070239u400cb6b3t48ebfdc52f8eb144@mail.gmail.com> On Mon, Dec 7, 2009 at 3:22 PM, Senthil Kumaran wrote: > On Mon, Dec 07, 2009 at 02:22:35PM +0530, Noufal Ibrahim wrote: > > The newGIL work is in 3k eh? for some reason, I thought it was in the 2.x > > series. > > Seems, its not ported yet. > > http://mail.python.org/pipermail/python-dev/2009-October/093321.html > > > NB : this is a branch of py3k. There should be no real difficulty > porting it back to trunk, provided someone wants to do the job. > > http://twitter.com/gvanrossum/status/5610547927 Maybe it shouldn't get ported back. If 2.x becomes as good as 3.x without the backward incompatibilities, it's going to hurt adoption. It *is* after all an improvement and not a critical bug fix. -- ~noufal http://nibrahim.net.in From orsenthil at gmail.com Mon Dec 7 11:52:19 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Mon, 7 Dec 2009 16:22:19 +0530 Subject: [BangPypers] Python 2.7 alpha1 released In-Reply-To: <9963e56e0912070239u400cb6b3t48ebfdc52f8eb144@mail.gmail.com> References: <8548c5f30912062347u4cc47b9cya966235ad3d77232@mail.gmail.com> <20091207081426.GB10037@ubuntu.ubuntu-domain> <8548c5f30912070030n411e5e89y9e5345637d4ee2b8@mail.gmail.com> <9963e56e0912070052j6107c0baj225123673a20ba78@mail.gmail.com> <20091207095239.GB11696@ubuntu.ubuntu-domain> <9963e56e0912070239u400cb6b3t48ebfdc52f8eb144@mail.gmail.com> Message-ID: <20091207105219.GA13549@ubuntu.ubuntu-domain> On Mon, Dec 07, 2009 at 04:09:26PM +0530, Noufal Ibrahim wrote: > Maybe it shouldn't get ported back. If 2.x becomes as good as 3.x without > the backward incompatibilities, it's going to hurt adoption. It *is* after Come on. :) It should not be that way. There should be more and more compatibility between 2x <-> 3x. And improvements do get merged back. -- Senthil The truth of a proposition has nothing to do with its credibility. And vice versa. From noufal at gmail.com Mon Dec 7 11:56:39 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 7 Dec 2009 16:26:39 +0530 Subject: [BangPypers] Python 2.7 alpha1 released In-Reply-To: <20091207105219.GA13549@ubuntu.ubuntu-domain> References: <8548c5f30912062347u4cc47b9cya966235ad3d77232@mail.gmail.com> <20091207081426.GB10037@ubuntu.ubuntu-domain> <8548c5f30912070030n411e5e89y9e5345637d4ee2b8@mail.gmail.com> <9963e56e0912070052j6107c0baj225123673a20ba78@mail.gmail.com> <20091207095239.GB11696@ubuntu.ubuntu-domain> <9963e56e0912070239u400cb6b3t48ebfdc52f8eb144@mail.gmail.com> <20091207105219.GA13549@ubuntu.ubuntu-domain> Message-ID: <9963e56e0912070256r61b03542hf2004cb2188ca087@mail.gmail.com> On Mon, Dec 7, 2009 at 4:22 PM, Senthil Kumaran wrote: > On Mon, Dec 07, 2009 at 04:09:26PM +0530, Noufal Ibrahim wrote: > > Maybe it shouldn't get ported back. If 2.x becomes as good as 3.x without > > the backward incompatibilities, it's going to hurt adoption. It *is* > after > > Come on. :) It should not be that way. There should be more and more > compatibility between 2x <-> 3x. And improvements do get merged back. Yeah I know. It's not the right way to go about things. However, I do feel that unladen swallow using 2.x as it's base is going to hurt 3.x adoption. -- ~noufal http://nibrahim.net.in From ankur at thinklabs.in Tue Dec 8 10:19:13 2009 From: ankur at thinklabs.in (Ankur Gupta) Date: Tue, 8 Dec 2009 14:49:13 +0530 Subject: [BangPypers] [OT] Proto.in Nominations Opened Message-ID: Hi Folks, Hope to see some startups showcasing these products made using Python/Django etc. Nominations for the 7th edition of India's Premier Start-up event to be held at IITB, Mumbai - 2010 is now open. If you are part of a start-up or know one that deserves to be showcased go nominate them at http://nominate.proto.in/ . What's Proto.in? Proto.in is India's start-up ecosystem's gathering. The best of Indian's startup showcase their offerings to Angel Investors, VC, Co-Entrepreneur's, Wannabe Entrepreneur, Media,. Proto.in brings ecosystem's stakeholders under one roof . 100+ startups have showcased their product/services over last 6 editions in Four cities. Feedback, new business opportunities, media traction, prospective customers/employees/partners/mentor are few reasons Why you should nominate your startup at http://nominate.proto.in. Still not convinced ? > India's No 1 Business NewsPaper Economic Times News Channel ET-Now exclusively covered Proto.in and interviewed various showcased startup's Entrepreneurs. > NextBiT Computing has closed several major deals post their proto.inshowcase > IXiGO.com was funded by BAF Spectrum in 2008 > Lucid Software was funded by Mercatus Capital in 2009 > Lifeblob was funded by seedfund during 2008 > Desi Crew received over 7 awards, including the woman entrepreneur of the year and has been angel funded. For the first time, this year at Proto.in we are also introducing an 'Angel Investor Pitch'. This gives start-ups an opportunity to pitch their business plan to Angel Investors in a closed door meeting - where they can talk financials, talk projections and even walk out with funding. Make sure you mark the checkbox when you nominate yourself. Nominate yourself at http://nominate.proto.in/ get selected and see how Proto.in catapult's your start-up towards opportunities. Regards Ankur Gupta http://uptosomething.in From rajeev.sebastian at gmail.com Tue Dec 8 10:57:22 2009 From: rajeev.sebastian at gmail.com (Rajeev J Sebastian) Date: Tue, 8 Dec 2009 15:27:22 +0530 Subject: [BangPypers] [OT] Proto.in Nominations Opened In-Reply-To: References: Message-ID: <79a035420912080157q3648e429s5a54c3fde01d8a91@mail.gmail.com> On Tue, Dec 8, 2009 at 2:49 PM, Ankur Gupta wrote: > > Nominate yourself at http://nominate.proto.in/ get selected and see how > Proto.in catapult's your start-up towards opportunities. Hello Ankur, Whats the last date for nominations ? Regards Rajeev J Sebastian From ankur at thinklabs.in Tue Dec 8 15:43:52 2009 From: ankur at thinklabs.in (Ankur Gupta) Date: Tue, 8 Dec 2009 20:13:52 +0530 Subject: [BangPypers] [OT] Proto.in Nominations Opened In-Reply-To: <79a035420912080157q3648e429s5a54c3fde01d8a91@mail.gmail.com> References: <79a035420912080157q3648e429s5a54c3fde01d8a91@mail.gmail.com> Message-ID: Dec 15th is the last date. Regards Ankur Gupta On Tue, Dec 8, 2009 at 3:27 PM, Rajeev J Sebastian < rajeev.sebastian at gmail.com> wrote: > On Tue, Dec 8, 2009 at 2:49 PM, Ankur Gupta wrote: > > > > > Nominate yourself at http://nominate.proto.in/ get selected and see how > > Proto.in catapult's your start-up towards opportunities. > > Hello Ankur, > > Whats the last date for nominations ? > > Regards > Rajeev J Sebastian > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From withblessings at gmail.com Tue Dec 8 17:03:18 2009 From: withblessings at gmail.com (74yrs old) Date: Tue, 8 Dec 2009 21:33:18 +0530 Subject: [BangPypers] Request for py program to insert space between two characters and saved as text? Message-ID: <7b87ecb70912080803x39394307nfe2441a864276885@mail.gmail.com> For generating Kannada datafiles for tesseract-ocr .txt(not .doc) is used, my requirement is to automate one space between two characters in Notepad file. In MSword there is provision to make space between two characters under "Font" and can be saved as *.doc* But when tried to save as* .txt* all formatting will disappear. I could not understand how to do in notepad. Even tried copy and paste from doc to notepad but failed. In this context, I request you kindly for small python program - to automate make or insert space between two Kannada characters in the text file. (I have installed FFedora-11 also ubuntu9.04, WinXP) example: *F o r K a n n a d a d a t a f i l e s . t x t (n o t .d o c) i s u s e d, m y r e q u i r e m e n t i s t o h a v e o n e s p a c e b e t w e e n t w o c h a r a c t e r s i n t h e t e x t.* *? ??? ? ? ???? ? ?? ?? ?? regards, -srianga(77yrsold) * From brijithp at gmail.com Wed Dec 9 08:05:40 2009 From: brijithp at gmail.com (BR!j!TH) Date: Wed, 9 Dec 2009 12:35:40 +0530 Subject: [BangPypers] Request for py program to insert space between two characters and saved as text? In-Reply-To: <7b87ecb70912080803x39394307nfe2441a864276885@mail.gmail.com> References: <7b87ecb70912080803x39394307nfe2441a864276885@mail.gmail.com> Message-ID: <99f221550912082305p13481167icfc0ed87560cbdf7@mail.gmail.com> try attached file.... usage: space.py input_text_file.txt it will print the result in terminal... To get the result in a file you can redirect it to file example: space.py input_text_file.txt > out_put_text_file.txt 2009/12/8 74yrs old > For generating Kannada datafiles for tesseract-ocr .txt(not .doc) is used, > my requirement is to automate one space between two characters in Notepad > file. In MSword there is provision to make space between two characters > under "Font" and can be saved as *.doc* But when tried to save as* .txt* > all formatting will disappear. I could not understand how to do in notepad. > Even tried copy and paste from doc to notepad but failed. > > In this context, I request you kindly for small python program - to > automate > make or insert space between two Kannada characters in the text file. (I > have installed FFedora-11 also ubuntu9.04, WinXP) > > example: *F o r K a n n a d a d a t a f i l e s . t x t (n o t .d o c) > i > s u s e d, m y r e q u i r e m e n t i s t o h a v e o n e s p a c > e b e t w e e n > t w o c h a r a c t e r s i n t h e t e x t.* > *? ??? ? ? ???? ? ?? ?? ?? > regards, > -srianga(77yrsold) > * > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- "Dream is not what you see in sleep is the thing which does not let you sleep" From murugadoss2884 at gmail.com Wed Dec 9 12:04:10 2009 From: murugadoss2884 at gmail.com (murugadoss) Date: Wed, 9 Dec 2009 20:04:10 +0900 Subject: [BangPypers] Reg : Python Scripting Message-ID: <63b36ce30912090304v5a0981c5u27990b355429c779@mail.gmail.com> Hello, I am writing a python script for executing my program. This is a thread program and on execution get the input from the user or from the python script. My python script is successfully executing, till running of the my program.Then i send the input to thread from the script. But since the thread is waiting for input ( in a while loop ), the control is not coming to next line of the script. (ie: to input arguments line). Sample Script: os.system(my program) child.sendline(input arguments) Can anyone please tell how to solve this issue. Thank U -- Regards V.Murugadoss From madhusudhan.sunkara at gmail.com Wed Dec 9 12:31:49 2009 From: madhusudhan.sunkara at gmail.com (Madhusudhan sunkara) Date: Wed, 9 Dec 2009 17:01:49 +0530 Subject: [BangPypers] Reg : Python Scripting In-Reply-To: <63b36ce30912090304v5a0981c5u27990b355429c779@mail.gmail.com> References: <63b36ce30912090304v5a0981c5u27990b355429c779@mail.gmail.com> Message-ID: may be you should redesign your program/logic , os.system call won't return without finishing On Wed, Dec 9, 2009 at 4:34 PM, murugadoss wrote: > Hello, > I am writing a python script for executing my program. This is a thread > program and on execution get the input from the user or from the python > script. > My python script is successfully executing, till running of the my > program.Then i send the input to thread from the script. > > But since the thread is waiting for input ( in a while loop ), the control > is not coming to next line of the script. (ie: to input arguments line). > > Sample Script: > os.system(my program) > child.sendline(input arguments) > > Can anyone please tell how to solve this issue. > Thank U > -- > Regards > V.Murugadoss > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Madhu Sudhan Sunkara From kushaldas at gmail.com Wed Dec 9 12:33:54 2009 From: kushaldas at gmail.com (Kushal Das) Date: Wed, 9 Dec 2009 17:03:54 +0530 Subject: [BangPypers] Reg : Python Scripting In-Reply-To: <63b36ce30912090304v5a0981c5u27990b355429c779@mail.gmail.com> References: <63b36ce30912090304v5a0981c5u27990b355429c779@mail.gmail.com> Message-ID: On Wed, Dec 9, 2009 at 4:34 PM, murugadoss wrote: \> > Sample Script: > os.system(my program) > child.sendline(input arguments) Use subprocess module. Kushal -- http://fedoraproject.org http://kushaldas.in From rmathews at gmail.com Wed Dec 9 12:36:09 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Wed, 9 Dec 2009 17:06:09 +0530 Subject: [BangPypers] Reg : Python Scripting In-Reply-To: <63b36ce30912090304v5a0981c5u27990b355429c779@mail.gmail.com> References: <63b36ce30912090304v5a0981c5u27990b355429c779@mail.gmail.com> Message-ID: <1c4dc2780912090336i199fcbfetb2e2123ad25dc79f@mail.gmail.com> On Wed, Dec 9, 2009 at 4:34 PM, murugadoss wrote: > But since the thread is waiting for input ( in a while loop ), the control > is not coming to next line of the script. (ie: to input arguments line). > > Sample Script: > os.system(my program) > child.sendline(input arguments) subprocess: http://docs.python.org/library/subprocess.html From praveen.python.plone at gmail.com Wed Dec 9 12:53:51 2009 From: praveen.python.plone at gmail.com (Praveen Kumar) Date: Wed, 9 Dec 2009 17:23:51 +0530 Subject: [BangPypers] Request for py program to insert space between two characters and saved as text? In-Reply-To: <99f221550912082305p13481167icfc0ed87560cbdf7@mail.gmail.com> References: <7b87ecb70912080803x39394307nfe2441a864276885@mail.gmail.com> <99f221550912082305p13481167icfc0ed87560cbdf7@mail.gmail.com> Message-ID: <6305ec600912090353x67e6f78dk6829e4831d51b994@mail.gmail.com> Hi sorry as i did not find the attached file. Just write this script and save with space.py * import sys print ' '.join([e for e in open(sys.argv[1], 'r').read()])* and run with the same command as Brijith told. Thanks Praveen On Wed, Dec 9, 2009 at 12:35 PM, BR!j!TH wrote: > try attached file.... > usage: space.py input_text_file.txt > > it will print the result in terminal... > To get the result in a file you can redirect it to file > example: > space.py input_text_file.txt > out_put_text_file.txt > > > 2009/12/8 74yrs old > > > For generating Kannada datafiles for tesseract-ocr .txt(not .doc) is > used, > > my requirement is to automate one space between two characters in Notepad > > file. In MSword there is provision to make space between two characters > > under "Font" and can be saved as *.doc* But when tried to save as* > .txt* > > all formatting will disappear. I could not understand how to do in > notepad. > > Even tried copy and paste from doc to notepad but failed. > > > > In this context, I request you kindly for small python program - to > > automate > > make or insert space between two Kannada characters in the text file. (I > > have installed FFedora-11 also ubuntu9.04, WinXP) > > > > example: *F o r K a n n a d a d a t a f i l e s . t x t (n o t .d o c) > > i > > s u s e d, m y r e q u i r e m e n t i s t o h a v e o n e s p a > c > > e b e t w e e n > > t w o c h a r a c t e r s i n t h e t e x t.* > > *? ??? ? ? ???? ? ?? ?? ?? > > regards, > > -srianga(77yrsold) > > * > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > "Dream is not what you see in sleep > is the thing which does not let you sleep" > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Praveen Kumar +91 9739854134 http://praveensunsetpoint.wordpress.com Bangalore From praveen.python.plone at gmail.com Wed Dec 9 13:05:51 2009 From: praveen.python.plone at gmail.com (Praveen Kumar) Date: Wed, 9 Dec 2009 17:35:51 +0530 Subject: [BangPypers] Request for py program to insert space between two characters and saved as text? In-Reply-To: <6305ec600912090353x67e6f78dk6829e4831d51b994@mail.gmail.com> References: <7b87ecb70912080803x39394307nfe2441a864276885@mail.gmail.com> <99f221550912082305p13481167icfc0ed87560cbdf7@mail.gmail.com> <6305ec600912090353x67e6f78dk6829e4831d51b994@mail.gmail.com> Message-ID: <6305ec600912090405h62df5346s22189dc333db5cfa@mail.gmail.com> But again the issue raise with file format if you save that file with ascii format but you are reading it as unicode. Try to convert the file to unicode before using it in python. On Wed, Dec 9, 2009 at 5:23 PM, Praveen Kumar < praveen.python.plone at gmail.com> wrote: > Hi sorry as i did not find the attached file. > > Just write this script and save with space.py > * > import sys > print ' '.join([e for e in open(sys.argv[1], 'r').read()])* > > and run with the same command as Brijith told. > Thanks > > Praveen > > > On Wed, Dec 9, 2009 at 12:35 PM, BR!j!TH wrote: > >> try attached file.... >> usage: space.py input_text_file.txt >> >> it will print the result in terminal... >> To get the result in a file you can redirect it to file >> example: >> space.py input_text_file.txt > out_put_text_file.txt >> >> >> 2009/12/8 74yrs old >> >> > For generating Kannada datafiles for tesseract-ocr .txt(not .doc) is >> used, >> > my requirement is to automate one space between two characters in >> Notepad >> > file. In MSword there is provision to make space between two characters >> > under "Font" and can be saved as *.doc* But when tried to save as* >> .txt* >> > all formatting will disappear. I could not understand how to do in >> notepad. >> > Even tried copy and paste from doc to notepad but failed. >> > >> > In this context, I request you kindly for small python program - to >> > automate >> > make or insert space between two Kannada characters in the text file. (I >> > have installed FFedora-11 also ubuntu9.04, WinXP) >> > >> > example: *F o r K a n n a d a d a t a f i l e s . t x t (n o t .d o >> c) >> > i >> > s u s e d, m y r e q u i r e m e n t i s t o h a v e o n e s p >> a c >> > e b e t w e e n >> > t w o c h a r a c t e r s i n t h e t e x t.* >> > *? ??? ? ? ???? ? ?? ?? ?? >> > regards, >> > -srianga(77yrsold) >> > * >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > http://mail.python.org/mailman/listinfo/bangpypers >> > >> >> >> >> -- >> "Dream is not what you see in sleep >> is the thing which does not let you sleep" >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> >> > > > -- > Praveen Kumar > +91 9739854134 > http://praveensunsetpoint.wordpress.com > Bangalore > -- Praveen Kumar +91 9739854134 http://praveensunsetpoint.wordpress.com Bangalore From siddharta.lists at gmail.com Thu Dec 10 09:09:27 2009 From: siddharta.lists at gmail.com (Siddharta) Date: Thu, 10 Dec 2009 13:39:27 +0530 Subject: [BangPypers] apycot In-Reply-To: <9963e56e0912020307k4b2ff132qea4986c820d64e53@mail.gmail.com> References: <9963e56e0911300206l3a6a6781g9143fe41ce5b4758@mail.gmail.com> <9963e56e0911302246g1a1feab3yb2ac7ae6c840fd44@mail.gmail.com> <4B161772.7050001@gmail.com> <9963e56e0912020004w2e3cfdb7qde322fb1ef58296f@mail.gmail.com> <9963e56e0912020307k4b2ff132qea4986c820d64e53@mail.gmail.com> Message-ID: <4B20ACB7.4010609@gmail.com> Noufal Ibrahim wrote: > Nose (after reading the docs a bit) is a unit test framework for python code. > > While I might be able to wring it's hand (nose?) to make it do general test > running, I don't think it was intended for that. > > I found something called pandokia http://stsdas.stsci.edu/pandokia/ which > looks like what I want. Anyone have experience with it? > Well nose is simply a test runner. Create some functions with a particular syntax and nose will run it. What you do inside the function can be anything as long as you signal a pass/fail condition for nose to report. We use nose for both unit testing as well as running automated system tests. nose also supports plugins that you can write to change it's default behaviour. -- Siddharta Govindaraj From noufal at gmail.com Thu Dec 10 09:40:41 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 10 Dec 2009 14:10:41 +0530 Subject: [BangPypers] apycot In-Reply-To: <4B20ACB7.4010609@gmail.com> References: <9963e56e0911300206l3a6a6781g9143fe41ce5b4758@mail.gmail.com> <9963e56e0911302246g1a1feab3yb2ac7ae6c840fd44@mail.gmail.com> <4B161772.7050001@gmail.com> <9963e56e0912020004w2e3cfdb7qde322fb1ef58296f@mail.gmail.com> <9963e56e0912020307k4b2ff132qea4986c820d64e53@mail.gmail.com> <4B20ACB7.4010609@gmail.com> Message-ID: <9963e56e0912100040j56d6e25aw41feaf40d7a26d34@mail.gmail.com> On Thu, Dec 10, 2009 at 1:39 PM, Siddharta wrote: > Noufal Ibrahim wrote: > >> Nose (after reading the docs a bit) is a unit test framework for python >> code. >> >> While I might be able to wring it's hand (nose?) to make it do general >> test >> running, I don't think it was intended for that. >> >> I found something called pandokia http://stsdas.stsci.edu/pandokia/ which >> looks like what I want. Anyone have experience with it? >> >> > Well nose is simply a test runner. Create some functions with a particular > syntax and nose will run it. It's a runner of python unit tests (written in various formats etc.). My requirements are a little different. I have tests from various sources (some hardware testing on various platforms), some unite tests on code written in C etc. I need to 0. collate all of these into some sort of standard format and 1. Run them to produce statistics. > What you do inside the function can be anything as long as you signal a > pass/fail condition for nose to report. We use nose for both unit testing as > well as running automated system tests. > > I guess your setup would work fine since your product is "a python program" (generally speaking) and your tests are mostly Python. I could make it a general purpose framework but from what I know, it wasn't intended to do that. For 0. above, I'm thinking of trying the backend of subunit ( https://launchpad.net/subunit) and for 1, pandokia. Let's see. -- ~noufal http://nibrahim.net.in From sbabu.bly at gmail.com Thu Dec 10 09:33:40 2009 From: sbabu.bly at gmail.com (satyandra babu) Date: Thu, 10 Dec 2009 14:03:40 +0530 Subject: [BangPypers] Need help for docproc module Message-ID: Hi everyone, I have one query, i have one code with me which have code like *from DocProc import Processor, ProcessorStatus* I have Googled for it but not able to find any information, i found that this script is written for FAST ESP. Can sombody help me to run current program, link is given below. http://translate.google.com/translate?js=y&prev=_t&hl=en&ie=UTF-8&layout=1&eotf=1&u=http%3A%2F%2Ffaces.eti.br%2F2007%2F04%2F20%2Fprogramando-em-python%2F&sl=auto&tl=en Thanks Regards Satya From orsenthil at gmail.com Thu Dec 10 10:21:56 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Thu, 10 Dec 2009 14:51:56 +0530 Subject: [BangPypers] Need help for docproc module In-Reply-To: References: Message-ID: <20091210092156.GA4199@ubuntu.ubuntu-domain> On Thu, Dec 10, 2009 at 02:03:40PM +0530, satyandra babu wrote: > > *from DocProc import Processor, ProcessorStatus* What is DocProc? Why do you need it? > I have Googled for it but not able to find any information, i found that > this script is written for FAST ESP. What is FAST ESP? > Can sombody help me to run current program, link is given below. > There was a funny thing in that translate link. It translated the python program keywords too thinking it that was portugese. :) Well, this kind of says that you are new to python. May I suggest that some beginners books would be helpful to you. Like "A Byte of Python" or "Learn to program with Python" by Alan Guald. -- Senthil Some people carve careers, others chisel them. From abpillai at gmail.com Thu Dec 10 10:37:10 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 10 Dec 2009 15:07:10 +0530 Subject: [BangPypers] Need help for docproc module In-Reply-To: <20091210092156.GA4199@ubuntu.ubuntu-domain> References: <20091210092156.GA4199@ubuntu.ubuntu-domain> Message-ID: <8548c5f30912100137x1923abcaw25031495e773eeb8@mail.gmail.com> On Thu, Dec 10, 2009 at 2:51 PM, Senthil Kumaran wrote: > On Thu, Dec 10, 2009 at 02:03:40PM +0530, satyandra babu wrote: > > > > *from DocProc import Processor, ProcessorStatus* > > What is DocProc? Why do you need it? > > Try this - http://www.enterprisesearchblog.com/2007/03/python_interpre.html > > > I have Googled for it but not able to find any information, i found that > > this script is written for FAST ESP. > > What is FAST ESP? > Fast Enterprise Search Platform - He seems to be using some odd code someone wrote to search using it. Fast used to be a norwegian company before Microsoft acquired them. > > > Can sombody help me to run current program, link is given below. > > > > There was a funny thing in that translate link. It translated the > python program keywords too thinking it that was portugese. :) > > Well, this kind of says that you are new to python. May I suggest that > some beginners books would be helpful to you. Like "A Byte of Python" > or "Learn to program with Python" by Alan Guald. > > > > -- > Senthil > Some people carve careers, others chisel them. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From lorddaemon at gmail.com Thu Dec 10 11:37:07 2009 From: lorddaemon at gmail.com (Darkseid) Date: Thu, 10 Dec 2009 16:07:07 +0530 Subject: [BangPypers] [OT] Call for proposals - RubyConf India 2010 Message-ID: <4B20CF53.50802@gmail.com> Hello everyone, The Call for Proposals for talks at RubyConf India 2010 is now open. If there any Ruby communities that you are a member of, please do cross post this information to them. Here are the details, quoted from http://rubyconfindia.org > Participation Information > > > We are now accepting proposals for talks for RubyConf India 2010. > Please email us at proposals at rubyconfindia.org > (plain text only, please) with > the following information: > > About you > * Name > * Nationality > * Contact number > > > About your talk > * Title > * Detailed description (2 or 3 paragraphs) > * Target audience (newbies, advanced, etc.) > > The call for proposals will close on the 20th of January, 2010. > Accepted proposals will be announced as and when a decision is > reached by the review panel, which consists of Ola Bini, Chad Fowler > and Pratik Naik. Thanks! Sidu. http://blog.sidu.in http://twitter.com/ponnappa From noufal at gmail.com Fri Dec 11 10:45:43 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 11 Dec 2009 15:15:43 +0530 Subject: [BangPypers] December user group meeting Message-ID: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> It's as nice a time as ever to bring this up and see if there are any interesting talks that could be delivered on 18 or 25th. Anyone have a talk suggestion? -- ~noufal http://nibrahim.net.in From abhijit.maheswari at gmail.com Sat Dec 12 20:05:30 2009 From: abhijit.maheswari at gmail.com (Online Media) Date: Sat, 12 Dec 2009 11:05:30 -0800 (PST) Subject: [BangPypers] Immediate requirement of web developer (Python) In Bangalore Message-ID: <26760249.post@talk.nabble.com> Eurotas online Media India has an immediate requirement for experienced python programmer and web developer. The openings are in Bangalore. Please rush your cv to Abhijit.maheswari at gmail.com 3+ years of web development experience (Preferably under python framework) Experience in developing dynamic websites using HTML, PHP, CSS, JavaScript, MySQL (PgSQL) Working knowledge of server and hosting maintenance and management -Knowledge of multiple web frameworks (preferred). Other skills: E-commerce portal development experience is an advantage. Able to work independently; Extremely self motivated Attractive compensation for the right candidate -- View this message in context: http://old.nabble.com/Immediate-requirement-of-web-developer-%28Python%29-In-Bangalore-tp26760249p26760249.html Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com. From abhijit.maheswari at gmail.com Sat Dec 12 20:07:17 2009 From: abhijit.maheswari at gmail.com (Online Media) Date: Sat, 12 Dec 2009 11:07:17 -0800 (PST) Subject: [BangPypers] (Job) Immediate requirement of web developer (Python) In Bangalore Message-ID: <26760249.post@talk.nabble.com> Eurotas online Media India has an immediate requirement for experienced python programmer and web developer. The openings are in Bangalore. Please rush your cv to Abhijit.maheswari at gmail.com 3+ years of web development experience (Preferably under python framework) Experience in developing dynamic websites using HTML, PHP, CSS, JavaScript, MySQL (PgSQL) Working knowledge of server and hosting maintenance and management -Knowledge of multiple web frameworks (preferred). Other skills: E-commerce portal development experience is an advantage. Able to work independently; Extremely self motivated Attractive compensation for the right candidate -- View this message in context: http://old.nabble.com/%28Job%29-Immediate-requirement-of-web-developer-%28Python%29-In-Bangalore-tp26760249p26760249.html Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com. From noufal at gmail.com Sun Dec 13 17:40:04 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 13 Dec 2009 22:10:04 +0530 Subject: [BangPypers] [OT] Fwd: General Bangalore programming list Message-ID: <9963e56e0912130840p1b414f30r67fd8d3894b4bb18@mail.gmail.com> This might be of interest to people here who want to diversify a little. Cross pollination is always a good thing. ---------- Forwarded message ---------- From: C. K. Ponnappa Date: Sun, Dec 13, 2009 at 9:48 PM Subject: Re: [ Bangalore RUG] [OT] Bangalore Clojure group To: bangalorerug at googlegroups.com I'd second that. Interestingly enough, I've noticed a clear trend inside of ThoughtWorks where most of the interesting stuff is discussed on our software dev list; there's very little that people consider so specific that it can only be posted to, say, the .Net lists or the Concurrency lists or the functional lists. Conversations tend to not just include programming, but also philosophy and process as well, which makes for really interesting conversation. Does anyone want to experiment and see whether a cross cutting list will work? If yes, then I've just created http://groups.google.com/group/bangalore-software-development It's an open group so we can try it out and see what happens. Cheers, Sidu. http://blog.sidu.in http://twitter.com/ponnappa Roshan Mathews wrote: > On Sun, Dec 13, 2009 at 5:47 PM, Martin DeMello wrote: > >> Anyone else interested in clojure? We're trying to get a Bangalore >> clojure group up and running: >> >> http://groups.google.com/group/bangalore-clj >> >> > There is also the bangalore functional programmer's group at > http://groups.google.com/group/bangalore-fp?hl=en > > I wish there was a generic "programming" group. Not language, or > paradigm specific, but just for programmers. Not for general > technology discussions but for actual programming related stuff. The > local LUGs definitely aren't the place to talk about stuff like that, > neither are the language specific lists. The FP list unfortunately > seems like a weird place to discuss non functional programming. > programming.reddit is a good place for discussions, but a group could > have meetings too. > > Anyways, clojure looks interesting. > > -- You received this message because you are subscribed to the Google Groups "BANGALORE RUG-Ruby Users Group" group. To post to this group, send an email to bangalorerug at googlegroups.com. To unsubscribe from this group, send email to bangalorerug+unsubscribe at googlegroups.com . For more options, visit this group at http://groups.google.com/group/bangalorerug?hl=en-GB. -- ~noufal http://nibrahim.net.in From noufal at gmail.com Sun Dec 13 17:40:30 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 13 Dec 2009 22:10:30 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> Message-ID: <9963e56e0912130840s317795e6td71007b73b215c8b@mail.gmail.com> Anyone? Atleast some subjects people would like to hear about? On Fri, Dec 11, 2009 at 3:15 PM, Noufal Ibrahim wrote: > It's as nice a time as ever to bring this up and see if there are any > interesting talks that could be delivered on 18 or 25th. > > Anyone have a talk suggestion? > > -- > ~noufal > http://nibrahim.net.in > -- ~noufal http://nibrahim.net.in From yuvipanda at gmail.com Sun Dec 13 20:08:10 2009 From: yuvipanda at gmail.com (Yuvi Panda) Date: Mon, 14 Dec 2009 00:38:10 +0530 Subject: [BangPypers] Fwd: Python at KCG College of Technology, Chennai In-Reply-To: <45ec909c0912131028v1f6ff211pb47c0e3f50a5563c@mail.gmail.com> References: <45ec909c0912131028v1f6ff211pb47c0e3f50a5563c@mail.gmail.com> Message-ID: <45ec909c0912131108n5f4f6237lb93c8510bceefcc6@mail.gmail.com> http://yuvi.in/blog/the-python-workshop.html We finished it 2 weeks back. It was totally free, and we had it during our Sem holidays. Response has been totally awesome - 1 guy's been experimenting with PyGame (finished a game with scoring, sound etc. and is working on adding an AI to it - tictactoe), 1 guy's writing SMS applications, three are starting on a journey that'll end when our college's library management system is replaced by a django app, and 1 guy's learning web.py so he could build a website to rate staff in a college. And there's a plan in motion to have a weekly programming competition with code in Python, and sponsors for prize money have already been acquired. We had 14 people in the first workshop, and we're planning on having one more with just the basics towards second week of January :) And I've been personally helping as many people as possible, with one-on-one sessions of about 3-4 hours each where we pair and build something together. It's been a fun ride, and I suppose it will be fun as long as this lasts :) Any other college you know doing this? Get in touch, we can share tips, tricks and hopefully much more. -- Yuvi Panda T http://yuvi.in/blog From ramdaz at gmail.com Sun Dec 13 20:15:15 2009 From: ramdaz at gmail.com (Ramdas S) Date: Mon, 14 Dec 2009 00:45:15 +0530 Subject: [BangPypers] Fwd: Python at KCG College of Technology, Chennai In-Reply-To: <45ec909c0912131108n5f4f6237lb93c8510bceefcc6@mail.gmail.com> References: <45ec909c0912131028v1f6ff211pb47c0e3f50a5563c@mail.gmail.com> <45ec909c0912131108n5f4f6237lb93c8510bceefcc6@mail.gmail.com> Message-ID: <6e38f9f00912131115m691a3a10ndefd8dca3565421f@mail.gmail.com> Great! Keep up the good work. Guys, once we have the society we must do something to encourage similar efforts, please do send in your thoughts, on what can be done.... Thanks From murugadoss2884 at gmail.com Mon Dec 14 05:34:22 2009 From: murugadoss2884 at gmail.com (murugadoss) Date: Mon, 14 Dec 2009 13:34:22 +0900 Subject: [BangPypers] Reg : Python Scripting In-Reply-To: <1c4dc2780912090336i199fcbfetb2e2123ad25dc79f@mail.gmail.com> References: <63b36ce30912090304v5a0981c5u27990b355429c779@mail.gmail.com> <1c4dc2780912090336i199fcbfetb2e2123ad25dc79f@mail.gmail.com> Message-ID: <63b36ce30912132034l2ac1c3f4y61c1a766220d3ae4@mail.gmail.com> Hello, I am new to python scripting. I saw about subprocess module. I need to send an input to the running src,like eg: For adding two numbers 1. image running and waiting for input from user 2. input 1 3. input 2 eg: ./add.src 2 3 Can u please give me some more input how to pass there inputs -- Thanks & Regards V.Murugadoss On Wed, Dec 9, 2009 at 8:36 PM, Roshan Mathews wrote: > On Wed, Dec 9, 2009 at 4:34 PM, murugadoss > wrote: > > But since the thread is waiting for input ( in a while loop ), the > control > > is not coming to next line of the script. (ie: to input arguments line). > > > > Sample Script: > > os.system(my program) > > child.sendline(input arguments) > > subprocess: http://docs.python.org/library/subprocess.html > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From anandology at gmail.com Mon Dec 14 05:55:42 2009 From: anandology at gmail.com (Anand Chitipothu) Date: Mon, 14 Dec 2009 10:25:42 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> Message-ID: <41139fcb0912132055o58ceb3e4xd05e5b0b79ab132@mail.gmail.com> On Fri, Dec 11, 2009 at 3:15 PM, Noufal Ibrahim wrote: > It's as nice a time as ever to bring this up and see if there are any > interesting talks that could be delivered on 18 or 25th. Why on a friday? How about doing on Sunday 20th? From ardsrk at gmail.com Mon Dec 14 06:04:58 2009 From: ardsrk at gmail.com (Arvind Jamuna Dixit) Date: Mon, 14 Dec 2009 10:34:58 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <9963e56e0912130840s317795e6td71007b73b215c8b@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <9963e56e0912130840s317795e6td71007b73b215c8b@mail.gmail.com> Message-ID: <3d62196a0912132104g206c1763tb506cc8b8a640817@mail.gmail.com> I find stuff related to python compiler/interpreter interesting. Just like the talk presented by Mahadevan in the previous meetup. On Sun, Dec 13, 2009 at 10:10 PM, Noufal Ibrahim wrote: > Anyone? Atleast some subjects people would like to hear about? > > On Fri, Dec 11, 2009 at 3:15 PM, Noufal Ibrahim wrote: > > > It's as nice a time as ever to bring this up and see if there are any > > interesting talks that could be delivered on 18 or 25th. > > > > Anyone have a talk suggestion? > > > > -- > > ~noufal > > http://nibrahim.net.in > > > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Arvind From noufal at gmail.com Mon Dec 14 06:08:51 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 14 Dec 2009 10:38:51 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <41139fcb0912132055o58ceb3e4xd05e5b0b79ab132@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <41139fcb0912132055o58ceb3e4xd05e5b0b79ab132@mail.gmail.com> Message-ID: <9963e56e0912132108x977eb8fh7cfb34e0a87a0759@mail.gmail.com> On Mon, Dec 14, 2009 at 10:25 AM, Anand Chitipothu wrote: > On Fri, Dec 11, 2009 at 3:15 PM, Noufal Ibrahim wrote: > > It's as nice a time as ever to bring this up and see if there are any > > interesting talks that could be delivered on 18 or 25th. > > Why on a friday? How about doing on Sunday 20th? That's what I meant. I misread the calendar. :-} -- ~noufal http://nibrahim.net.in From noufal at gmail.com Mon Dec 14 06:10:59 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 14 Dec 2009 10:40:59 +0530 Subject: [BangPypers] Reg : Python Scripting In-Reply-To: <63b36ce30912132034l2ac1c3f4y61c1a766220d3ae4@mail.gmail.com> References: <63b36ce30912090304v5a0981c5u27990b355429c779@mail.gmail.com> <1c4dc2780912090336i199fcbfetb2e2123ad25dc79f@mail.gmail.com> <63b36ce30912132034l2ac1c3f4y61c1a766220d3ae4@mail.gmail.com> Message-ID: <9963e56e0912132110r45383eddp77b5a8c49df7868f@mail.gmail.com> On Mon, Dec 14, 2009 at 10:04 AM, murugadoss wrote: > Hello, > I am new to python scripting. I saw about subprocess module. I need to > send an input to the running src,like > > eg: For adding two numbers > 1. image running and waiting for input from user > 2. input 1 > 3. input 2 > > eg: > ./add.src > 2 > 3 > Can u please give me some more input how to pass there inputs You can write to the stdin of a running process. Did you look at the docs? Check out the communicate method of the Popen objects. There's also this that you might find useful http://blog.doughellmann.com/2007/07/pymotw-subprocess.html -- ~noufal http://nibrahim.net.in From noufal at gmail.com Mon Dec 14 06:24:41 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 14 Dec 2009 10:54:41 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <3d62196a0912132104g206c1763tb506cc8b8a640817@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <9963e56e0912130840s317795e6td71007b73b215c8b@mail.gmail.com> <3d62196a0912132104g206c1763tb506cc8b8a640817@mail.gmail.com> Message-ID: <9963e56e0912132124t28f78d96ye42077913768214d@mail.gmail.com> On Mon, Dec 14, 2009 at 10:34 AM, Arvind Jamuna Dixit wrote: > I find stuff related to python compiler/interpreter interesting. Just like > the talk presented by > Mahadevan in the previous meetup. [..] I would have loved to do a presentation on the PVM itself but my computer is dead and won't be repaired till next month. -- ~noufal http://nibrahim.net.in From noufal at gmail.com Mon Dec 14 06:28:04 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 14 Dec 2009 10:58:04 +0530 Subject: [BangPypers] Business rule engine in Python Message-ID: <9963e56e0912132128o3fdf42fdj9cd3212e22d21c49@mail.gmail.com> Hello everyone, I have a need to implement a rule engine in Python. I have a database which contains some data that needs to be processed based on certain rules that can be modified by a non-technical user using a web interface. The two things which occur to me are 0. a DSL written using some parser generator. 1. some subset of python with functions injected into the environment that I can eval and decide. IS anyone aware of a library or something that does this kind of thing or would it be better if I handrolled one? Thanks -- ~noufal http://nibrahim.net.in From zubin.mithra at gmail.com Mon Dec 14 06:32:19 2009 From: zubin.mithra at gmail.com (Zubin Mithra) Date: Mon, 14 Dec 2009 11:02:19 +0530 Subject: [BangPypers] Little help Message-ID: <8e7c74320912132132v1b4be233j5d66e89037c0a128@mail.gmail.com> hi i just downloaded the latest version of "pyroom 0.4.1" from launchpad; its a minimalistic document editor written in python. its reported to run well on other versions of ubuntu other than "karmic" which i am currently using now. the traceback i get on running the application can be seen here http://paste.pocoo.org/show/156891/ and the latest version of pyroom i am referring to can be obtained from https://launchpad.net/pyroom any ideas on why this happens? thnkx in advance Zubin Mithra From ramdaz at gmail.com Mon Dec 14 06:39:17 2009 From: ramdaz at gmail.com (Ramdas S) Date: Mon, 14 Dec 2009 11:09:17 +0530 Subject: [BangPypers] Business rule engine in Python In-Reply-To: <9963e56e0912132128o3fdf42fdj9cd3212e22d21c49@mail.gmail.com> References: <9963e56e0912132128o3fdf42fdj9cd3212e22d21c49@mail.gmail.com> Message-ID: <6e38f9f00912132139v4eae4983xecc997882d8e7c93@mail.gmail.com> Noufal, We had and have similar requirements. I did some asking at IRC, and the general recommendation was to write custom modules in Python or store the rules as conditions in database tables. We are using the second option and using ORMs its pretty easy to create what you want, and have been shipping a pretty successful messaging solution, which has some fairly complex business rules. I'd suggest you to handroll one On Mon, Dec 14, 2009 at 10:58 AM, Noufal Ibrahim wrote: > Hello everyone, > I have a need to implement a rule engine in Python. I have a database > which contains some data that needs to be processed based on certain rules > that can be modified by a non-technical user using a web interface. The two > things which occur to me are > 0. a DSL written using some parser generator. > 1. some subset of python with functions injected into the environment that > I > can eval and decide. > IS anyone aware of a library or something that does this kind of thing or > would it be better if I handrolled one? > > Thanks > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Ramdas S +91 9342 583 065 From noufal at gmail.com Mon Dec 14 06:39:24 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 14 Dec 2009 11:09:24 +0530 Subject: [BangPypers] Little help In-Reply-To: <8e7c74320912132132v1b4be233j5d66e89037c0a128@mail.gmail.com> References: <8e7c74320912132132v1b4be233j5d66e89037c0a128@mail.gmail.com> Message-ID: <9963e56e0912132139v7fc5d9f2ne2ef20b0c996af03@mail.gmail.com> On Mon, Dec 14, 2009 at 11:02 AM, Zubin Mithra wrote: > hi > i just downloaded the latest version of "pyroom 0.4.1" from launchpad; > its a minimalistic document editor written in python. > > its reported to run well on other versions of ubuntu other than > "karmic" which i am currently using now. > > the traceback i get on running the application can be seen here > http://paste.pocoo.org/show/156891/ > > and the latest version of pyroom i am referring to can be obtained from > https://launchpad.net/pyroom > > any ideas on why this happens? It works fine for me. A totally wild guess would be that it has something to do with your locale settings since the error seems to be rising while processing that. -- ~noufal http://nibrahim.net.in From murugadoss2884 at gmail.com Mon Dec 14 06:39:45 2009 From: murugadoss2884 at gmail.com (murugadoss) Date: Mon, 14 Dec 2009 14:39:45 +0900 Subject: [BangPypers] Reg : Python Scripting In-Reply-To: <9963e56e0912132110r45383eddp77b5a8c49df7868f@mail.gmail.com> References: <63b36ce30912090304v5a0981c5u27990b355429c779@mail.gmail.com> <1c4dc2780912090336i199fcbfetb2e2123ad25dc79f@mail.gmail.com> <63b36ce30912132034l2ac1c3f4y61c1a766220d3ae4@mail.gmail.com> <9963e56e0912132110r45383eddp77b5a8c49df7868f@mail.gmail.com> Message-ID: <63b36ce30912132139od857041we9b32ff7c5d9d8d4@mail.gmail.com> Hi, Thank u for the reply. My program is like this; int i; printf("?"); scanf("%d",&i); python script: #!/usr/bin/env python import sys import os import time os.system("./a.out") os.system("2") output: ./prog.py ? ----> Waiting for input My input is given in the next line of the script.The control is waiting at the first line (os.system("./a.out")). How shall i do this ? -- Regards V.Murugadoss On Mon, Dec 14, 2009 at 2:10 PM, Noufal Ibrahim wrote: > On Mon, Dec 14, 2009 at 10:04 AM, murugadoss >wrote: > > > Hello, > > I am new to python scripting. I saw about subprocess module. I need to > > send an input to the running src,like > > > > eg: For adding two numbers > > 1. image running and waiting for input from user > > 2. input 1 > > 3. input 2 > > > > eg: > > ./add.src > > 2 > > 3 > > Can u please give me some more input how to pass there inputs > > > > You can write to the stdin of a running process. Did you look at the docs? > Check out the communicate method of the Popen objects. There's also this > that you might find useful > http://blog.doughellmann.com/2007/07/pymotw-subprocess.html > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From srinivas_thatiparthy at akebonosoft.com Mon Dec 14 06:34:48 2009 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Mon, 14 Dec 2009 11:04:48 +0530 Subject: [BangPypers] Python Videos Message-ID: <4EF2BF691B890546B2694C99A2852F0C01CDB5BA@astserver3.akebonosoft.com> I generally watch NPTel videos for programming stuff. They are good in content and sound clarity is excellent. I searched for python related videos on blip.tv,found GVR Py3K intro video but sound clarity is not good. Can somebody suggest me the good python video links (should pertain to python language itself ,not some frameworks ,apps in python; e.g: design decisions,architecture and libraries etc) . P.S: i can search but i cant double check each and every video whether it is good in content and sound. Regards, Srinivas Reddy T ----- You never learn something until you have to write something in it(a programming language), until you have to live and breathe it. It's one thing to go learn a language for fun, but until you write some big, complex system in it,you don't really learn it. ---Brad Fitzpatrick From noufal at gmail.com Mon Dec 14 06:44:14 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 14 Dec 2009 11:14:14 +0530 Subject: [BangPypers] Reg : Python Scripting In-Reply-To: <63b36ce30912132139od857041we9b32ff7c5d9d8d4@mail.gmail.com> References: <63b36ce30912090304v5a0981c5u27990b355429c779@mail.gmail.com> <1c4dc2780912090336i199fcbfetb2e2123ad25dc79f@mail.gmail.com> <63b36ce30912132034l2ac1c3f4y61c1a766220d3ae4@mail.gmail.com> <9963e56e0912132110r45383eddp77b5a8c49df7868f@mail.gmail.com> <63b36ce30912132139od857041we9b32ff7c5d9d8d4@mail.gmail.com> Message-ID: <9963e56e0912132144m19e377d1l1489ecc4540e508d@mail.gmail.com> On Mon, Dec 14, 2009 at 11:09 AM, murugadoss wrote: > Hi, > Thank u for the reply. My program is like this; > This is the third or fourth time this is being repeated. Please look through http://docs.python.org/library/subprocess.html -- ~noufal http://nibrahim.net.in From noufal at gmail.com Mon Dec 14 06:46:33 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 14 Dec 2009 11:16:33 +0530 Subject: [BangPypers] Business rule engine in Python In-Reply-To: <6e38f9f00912132139v4eae4983xecc997882d8e7c93@mail.gmail.com> References: <9963e56e0912132128o3fdf42fdj9cd3212e22d21c49@mail.gmail.com> <6e38f9f00912132139v4eae4983xecc997882d8e7c93@mail.gmail.com> Message-ID: <9963e56e0912132146x14e8579eke3880247dd8f0010@mail.gmail.com> On Mon, Dec 14, 2009 at 11:09 AM, Ramdas S wrote: > Noufal, > > We had and have similar requirements. I did some asking at IRC, and the > general recommendation was to write custom modules in Python or store the > rules as conditions in database tables. > > We are using the second option and using ORMs its pretty easy to create > what > you want, and have been shipping a pretty successful messaging solution, > which has some fairly complex business rules. > > I'd suggest you to handroll one Okay. I went the DSL way for an earlier project and it was fairly robust (although the rules were extremely simple). How long did it take to implement your solution? -- ~noufal http://nibrahim.net.in From mbaiju at zeomega.com Mon Dec 14 06:51:48 2009 From: mbaiju at zeomega.com (Baiju M) Date: Mon, 14 Dec 2009 11:21:48 +0530 Subject: [BangPypers] Python Videos In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01CDB5BA@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01CDB5BA@astserver3.akebonosoft.com> Message-ID: > Can somebody ?suggest me the good python video links I found this very good: http://video.google.com/videoplay?docid=7760178035196894549# -- Baiju M From orsenthil at gmail.com Mon Dec 14 06:53:18 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Mon, 14 Dec 2009 11:23:18 +0530 Subject: [BangPypers] Python Videos In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01CDB5BA@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01CDB5BA@astserver3.akebonosoft.com> Message-ID: <20091214055318.GA7900@ubuntu.ubuntu-domain> On Mon, Dec 14, 2009 at 11:04:48AM +0530, Srinivas Reddy Thatiparthy wrote: > P.S: i can search but i cant double check each and every video whether > it is good in content and sound. The following videos are good resources in my opion. 1. http://pycon.blip.tv You can go to http://us.pycon.org/2009 and look at conference schedule and choose the topics which you want to study. Go to that video and download them from blip.tv (watch it offline). Other Pycon videos are of poor quality. Youtube is a good resource. Advanced Python from Thomas Wouters is a good presention. So is Guido's py3k presentation avialable in youtube. -- Senthil You love your home and want it to be beautiful. From ankur at thinklabs.in Mon Dec 14 07:17:19 2009 From: ankur at thinklabs.in (Ankur Gupta) Date: Mon, 14 Dec 2009 11:47:19 +0530 Subject: [BangPypers] Business rule engine in Python In-Reply-To: <9963e56e0912132128o3fdf42fdj9cd3212e22d21c49@mail.gmail.com> References: <9963e56e0912132128o3fdf42fdj9cd3212e22d21c49@mail.gmail.com> Message-ID: On 12/14/09, Noufal Ibrahim wrote: > Hello everyone, > I have a need to implement a rule engine in Python. I have a database > which contains some data that needs to be processed based on certain rules > that can be modified by a non-technical user using a web interface. The two > things which occur to me are > 0. a DSL written using some parser generator. Take a look at ANTLR for making you own DSL Parser. Antlr can generate your parser in Python using the Python port once the grammer is in place. > 1. some subset of python with functions injected into the environment that I > can eval and decide. > IS anyone aware of a library or something that does this kind of thing or > would it be better if I handrolled one? Take a look at Machine learning / AI libraries in Python for building a recommendation system. Incase you are new to this field or want to learn Collective Intelligence book in Python is a good starting point. Regards Ankur Gupta > > Thanks > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From abpillai at gmail.com Mon Dec 14 07:26:18 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 14 Dec 2009 11:56:18 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <9963e56e0912132124t28f78d96ye42077913768214d@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <9963e56e0912130840s317795e6td71007b73b215c8b@mail.gmail.com> <3d62196a0912132104g206c1763tb506cc8b8a640817@mail.gmail.com> <9963e56e0912132124t28f78d96ye42077913768214d@mail.gmail.com> Message-ID: <8548c5f30912132226r242c9bbak44e21234e51411@mail.gmail.com> On Mon, Dec 14, 2009 at 10:54 AM, Noufal Ibrahim wrote: > On Mon, Dec 14, 2009 at 10:34 AM, Arvind Jamuna Dixit >wrote: > > > I find stuff related to python compiler/interpreter interesting. Just > like > > the talk presented by > > Mahadevan in the previous meetup. > > [..] > > I would have loved to do a presentation on the PVM itself but my computer > is > dead and won't be repaired till next month. > I guess most people would be away for vacations cuz it is the year end. I would like to attend but I am off for a vacation from Dec 19 till Dec 30 out of Bangalore. Anyway, if enough people hit +1, we can always have a meeting... > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From noufal at gmail.com Mon Dec 14 07:29:15 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 14 Dec 2009 11:59:15 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <8548c5f30912132226r242c9bbak44e21234e51411@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <9963e56e0912130840s317795e6td71007b73b215c8b@mail.gmail.com> <3d62196a0912132104g206c1763tb506cc8b8a640817@mail.gmail.com> <9963e56e0912132124t28f78d96ye42077913768214d@mail.gmail.com> <8548c5f30912132226r242c9bbak44e21234e51411@mail.gmail.com> Message-ID: <9963e56e0912132229l489def01mc6204684dd25269@mail.gmail.com> On Mon, Dec 14, 2009 at 11:56 AM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > [..] > I guess most people would be away for vacations cuz it is the year end. > I would like to attend but I am off for a vacation from Dec 19 till Dec 30 > out of Bangalore. > > Anyway, if enough people hit +1, we can always have a meeting...[..] I'd hate to *not* have a meeting. Even if it's just 3 or 4 people spending some time coding something, it would be nice. 20 is still a few days off. Let's see how many people respond by then. -- ~noufal http://nibrahim.net.in From abpillai at gmail.com Mon Dec 14 07:46:30 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 14 Dec 2009 12:16:30 +0530 Subject: [BangPypers] Reg : Python Scripting In-Reply-To: <63b36ce30912132139od857041we9b32ff7c5d9d8d4@mail.gmail.com> References: <63b36ce30912090304v5a0981c5u27990b355429c779@mail.gmail.com> <1c4dc2780912090336i199fcbfetb2e2123ad25dc79f@mail.gmail.com> <63b36ce30912132034l2ac1c3f4y61c1a766220d3ae4@mail.gmail.com> <9963e56e0912132110r45383eddp77b5a8c49df7868f@mail.gmail.com> <63b36ce30912132139od857041we9b32ff7c5d9d8d4@mail.gmail.com> Message-ID: <8548c5f30912132246xd5d2e6au50922858308ee164@mail.gmail.com> On Mon, Dec 14, 2009 at 11:09 AM, murugadoss wrote: > Hi, > Thank u for the reply. My program is like this; > > int i; > printf("?"); > scanf("%d",&i); > > python script: > #!/usr/bin/env python > import sys > import os > import time > > os.system("./a.out") > os.system("2") > > output: > ./prog.py > ? ----> Waiting for input > > My input is given in the next line of the script.The control is waiting at > the first line (os.system("./a.out")). > If you process needs input from stdin, os.system(...) is not how to do it. Instead you should use os.popen(...) or for better control the functions defined in subprocess module. Since I don't want to type stuff again, refer to this recipe which I submitted some time back. It illustrates different ways of using subprocess module. You should take a look at execute_command_in_pipe function. http://code.activestate.com/recipes/498137/ For example, here is how to use subprocess to capture output from directory listing of /tmp. >>> from subprocess import * >>> cmd=['ls','-la','/tmp'] >>> p=Popen(cmd, stdout=PIPE, stderr=PIPE) >>> out, err=p.communicate() >>> print out total 76 drwxrwxrwt 14 root root 4096 2009-12-14 12:04 . drwxr-xr-x 25 root root 4096 2009-12-09 20:02 .. drwx------ 2 anand anand 4096 2009-12-10 18:47 emacs500 drwx------ 2 anand anand 4096 2009-12-09 20:03 .esd-500 -rw-r--r-- 1 root root 1466 2009-12-09 19:48 exporter_info_168764.xml -rw-r--r-- 1 root root 1337 2009-12-09 19:50 exporter_info_563178.xml srwxr-xr-x 1 root root 0 2009-04-21 12:56 gnome-system-monitor.root.2075479178 Likewise you can construct code which can communicate with stdin, stdout/stderr. Regards --Anand > How shall i do this ? > > -- > Regards > V.Murugadoss > > > On Mon, Dec 14, 2009 at 2:10 PM, Noufal Ibrahim wrote: > > > On Mon, Dec 14, 2009 at 10:04 AM, murugadoss > >wrote: > > > > > Hello, > > > I am new to python scripting. I saw about subprocess module. I need > to > > > send an input to the running src,like > > > > > > eg: For adding two numbers > > > 1. image running and waiting for input from user > > > 2. input 1 > > > 3. input 2 > > > > > > eg: > > > ./add.src > > > 2 > > > 3 > > > Can u please give me some more input how to pass there inputs > > > > > > > > You can write to the stdin of a running process. Did you look at the > docs? > > Check out the communicate method of the Popen objects. There's also this > > that you might find useful > > http://blog.doughellmann.com/2007/07/pymotw-subprocess.html > > > > -- > > ~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 > -- --Anand From abhaya.agarwal at gmail.com Mon Dec 14 08:08:03 2009 From: abhaya.agarwal at gmail.com (Abhaya Agarwal) Date: Mon, 14 Dec 2009 12:38:03 +0530 Subject: [BangPypers] December user group meeting Message-ID: <50fed7500912132308o5175f1bfma9d871f27a6e4f6c@mail.gmail.com> +1. I am new to this community and python in general and would love to meet others on the group. Abhaya On Mon, Dec 14, 2009 at 11:59 AM, wrote: > > Date: Mon, 14 Dec 2009 11:59:15 +0530 > From: Noufal Ibrahim > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] December user group meeting > Message-ID: > <9963e56e0912132229l489def01mc6204684dd25269 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > On Mon, Dec 14, 2009 at 11:56 AM, Anand Balachandran Pillai < > abpillai at gmail.com> wrote: > > > [..] > > I guess most people would be away for vacations cuz it is the year end. > > I would like to attend but I am off for a vacation from Dec 19 till Dec > 30 > > out of Bangalore. > > > > Anyway, if enough people hit +1, we can always have a meeting...[..] > > > I'd hate to *not* have a meeting. Even if it's just 3 or 4 people spending > some time coding something, it would be nice. 20 is still a few days off. > Let's see how many people respond by then. > > > > > -- > ~noufal > http://nibrahim.net.in > ------------------------------------------------- blog: http://abhaga.blogspot.com Twitter: http://twitter.com/abhaga ------------------------------------------------- From withblessings at gmail.com Mon Dec 14 08:51:09 2009 From: withblessings at gmail.com (74yrs old) Date: Mon, 14 Dec 2009 13:21:09 +0530 Subject: [BangPypers] Fwd: how to make run in Win XP with a request modified py programs so that it will run in MSwindows. In-Reply-To: <7b87ecb70912132338m2c0a29a5vd2d743c77b9703c7@mail.gmail.com> References: <7b87ecb70912132338m2c0a29a5vd2d743c77b9703c7@mail.gmail.com> Message-ID: <7b87ecb70912132351p7f91e841l2198213bfbab99d0@mail.gmail.com> Hello, Since attachment is not allowed by moderator due to exceeding the limit. On request, I shall forward tesseractinid-trainer-GUI 0.1.2.3 Tar.gz. which is py program for consideration and help solicited. With regards, -sriranga(77yrs old ---------- Forwarded message ---------- From: 74yrs old Date: Mon, Dec 14, 2009 at 1:08 PM Subject: how to make run in Win XP with a request modified py programs so that it will run in MSwindows. To: Bangalore Python Users Group - India Hello, I tried to run in MSwindows (win XP) but failed. Whereas it will run in Ubuntu 9.04 without any problem. since I am newbie to python or perl. I request for help by way of step by step procedure to be followed. With regards, -sriranga(77yrsold) From pasokan at gmail.com Mon Dec 14 09:21:38 2009 From: pasokan at gmail.com (Asokan Pichai) Date: Mon, 14 Dec 2009 13:51:38 +0530 Subject: [BangPypers] Business rule engine in Python In-Reply-To: References: <9963e56e0912132128o3fdf42fdj9cd3212e22d21c49@mail.gmail.com> Message-ID: <5de036dc0912140021x6abc1bdeodea2cef81e699126@mail.gmail.com> Take a look at (PY)CLIPS -- Asokan Pichai *-------------------* We will find a way. Or, make one. (Hannibal) From noufal at gmail.com Mon Dec 14 09:31:35 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 14 Dec 2009 14:01:35 +0530 Subject: [BangPypers] Business rule engine in Python In-Reply-To: <5de036dc0912140021x6abc1bdeodea2cef81e699126@mail.gmail.com> References: <9963e56e0912132128o3fdf42fdj9cd3212e22d21c49@mail.gmail.com> <5de036dc0912140021x6abc1bdeodea2cef81e699126@mail.gmail.com> Message-ID: <9963e56e0912140031p6cce946ey68e30e07fa0fceb5@mail.gmail.com> On Mon, Dec 14, 2009 at 1:51 PM, Asokan Pichai wrote: > Take a look at (PY)CLIPS > Thanks for that. I also found http://pyke.sourceforge.net/. -- ~noufal http://nibrahim.net.in From mbaiju at zeomega.com Mon Dec 14 09:53:15 2009 From: mbaiju at zeomega.com (Baiju M) Date: Mon, 14 Dec 2009 14:23:15 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <41139fcb0912132055o58ceb3e4xd05e5b0b79ab132@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <41139fcb0912132055o58ceb3e4xd05e5b0b79ab132@mail.gmail.com> Message-ID: +1 for 20th meeting -- Baiju M From ardsrk at gmail.com Mon Dec 14 09:57:01 2009 From: ardsrk at gmail.com (Arvind Jamuna Dixit) Date: Mon, 14 Dec 2009 14:27:01 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <41139fcb0912132055o58ceb3e4xd05e5b0b79ab132@mail.gmail.com> Message-ID: <3d62196a0912140057n6f20cb69p1258cc3bf42c9fd9@mail.gmail.com> +1 for meetup on 20th 2009/12/14 Baiju M > +1 for 20th meeting > > -- > Baiju M > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Arvind From srinivasachari2000 at gmail.com Mon Dec 14 10:23:48 2009 From: srinivasachari2000 at gmail.com (Srinivasachari) Date: Mon, 14 Dec 2009 14:53:48 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <3d62196a0912140057n6f20cb69p1258cc3bf42c9fd9@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <41139fcb0912132055o58ceb3e4xd05e5b0b79ab132@mail.gmail.com> <3d62196a0912140057n6f20cb69p1258cc3bf42c9fd9@mail.gmail.com> Message-ID: <65da62240912140123q5955f2cg7c3f898c48e8f810@mail.gmail.com> +1 Regards, Srinivasachari. Sent from Bangalore, KA, India 2009/12/14 Arvind Jamuna Dixit > +1 for meetup on 20th > > 2009/12/14 Baiju M > > > +1 for 20th meeting > > > > -- > > Baiju M > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Regards, > Arvind > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From sriramnrn at gmail.com Mon Dec 14 10:28:18 2009 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Mon, 14 Dec 2009 14:58:18 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <65da62240912140123q5955f2cg7c3f898c48e8f810@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <41139fcb0912132055o58ceb3e4xd05e5b0b79ab132@mail.gmail.com> <3d62196a0912140057n6f20cb69p1258cc3bf42c9fd9@mail.gmail.com> <65da62240912140123q5955f2cg7c3f898c48e8f810@mail.gmail.com> Message-ID: <49977f270912140128p418d5ab7q2ebc19e8956b64df@mail.gmail.com> Since we have a few +1s, I've a proposal: >From a "code together" perspective, How about developing a ZFS management application ? I can be the resident sysadmin/ZFS-guru, and we can develop something together. -- Sriram On Mon, Dec 14, 2009 at 2:53 PM, Srinivasachari wrote: > +1 > > Regards, > Srinivasachari. > Sent from Bangalore, KA, India > > 2009/12/14 Arvind Jamuna Dixit > >> +1 for meetup on 20th >> >> 2009/12/14 Baiju M >> >> > +1 for 20th meeting >> > >> > -- >> > Baiju M >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > http://mail.python.org/mailman/listinfo/bangpypers >> > >> >> >> >> -- >> Regards, >> Arvind >> _______________________________________________ >> 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 > From noufal at gmail.com Mon Dec 14 10:44:51 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 14 Dec 2009 15:14:51 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <49977f270912140128p418d5ab7q2ebc19e8956b64df@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <41139fcb0912132055o58ceb3e4xd05e5b0b79ab132@mail.gmail.com> <3d62196a0912140057n6f20cb69p1258cc3bf42c9fd9@mail.gmail.com> <65da62240912140123q5955f2cg7c3f898c48e8f810@mail.gmail.com> <49977f270912140128p418d5ab7q2ebc19e8956b64df@mail.gmail.com> Message-ID: <9963e56e0912140144l6bcf8da1s6ffd0ebf52e6023b@mail.gmail.com> On Mon, Dec 14, 2009 at 2:58 PM, Sriram Narayanan wrote: > Since we have a few +1s, I've a proposal: > > > >From a "code together" perspective, > How about developing a ZFS management application ? I can be the > resident sysadmin/ZFS-guru, and we can develop something together.[..] What did you have in mind? -- ~noufal http://nibrahim.net.in From kunalkantsen at gmail.com Mon Dec 14 13:32:41 2009 From: kunalkantsen at gmail.com (kunalkant sen) Date: Mon, 14 Dec 2009 18:02:41 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <9963e56e0912140144l6bcf8da1s6ffd0ebf52e6023b@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <41139fcb0912132055o58ceb3e4xd05e5b0b79ab132@mail.gmail.com> <3d62196a0912140057n6f20cb69p1258cc3bf42c9fd9@mail.gmail.com> <65da62240912140123q5955f2cg7c3f898c48e8f810@mail.gmail.com> <49977f270912140128p418d5ab7q2ebc19e8956b64df@mail.gmail.com> <9963e56e0912140144l6bcf8da1s6ffd0ebf52e6023b@mail.gmail.com> Message-ID: <63eb47a20912140432u3e87f207nb876c78d022290ee@mail.gmail.com> +1 for meet. ~ Kunal On 12/14/09, Noufal Ibrahim wrote: > On Mon, Dec 14, 2009 at 2:58 PM, Sriram Narayanan > wrote: > >> Since we have a few +1s, I've a proposal: >> >> >> >From a "code together" perspective, >> How about developing a ZFS management application ? I can be the >> resident sysadmin/ZFS-guru, and we can develop something together.[..] > > > What did you have in mind? > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Kunal Kant Sen 09241009423 From sriramnrn at gmail.com Mon Dec 14 16:41:40 2009 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Mon, 14 Dec 2009 21:11:40 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <9963e56e0912140144l6bcf8da1s6ffd0ebf52e6023b@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <41139fcb0912132055o58ceb3e4xd05e5b0b79ab132@mail.gmail.com> <3d62196a0912140057n6f20cb69p1258cc3bf42c9fd9@mail.gmail.com> <65da62240912140123q5955f2cg7c3f898c48e8f810@mail.gmail.com> <49977f270912140128p418d5ab7q2ebc19e8956b64df@mail.gmail.com> <9963e56e0912140144l6bcf8da1s6ffd0ebf52e6023b@mail.gmail.com> Message-ID: <49977f270912140741t1a8d5ac1oc45a1a72659c2c1a@mail.gmail.com> On Mon, Dec 14, 2009 at 3:14 PM, Noufal Ibrahim wrote: > On Mon, Dec 14, 2009 at 2:58 PM, Sriram Narayanan wrote: > >> Since we have a few +1s, I've a proposal: >> >> >> >From a "code together" perspective, >> How about developing a ZFS management application ? I can be the >> resident sysadmin/ZFS-guru, and we can develop something together.[..] > > > What did you have in mind? > > Overall: - A Pythonic API to administer the ZFS filesystem. - Expose ZFS administration via REST API - Access and use this REST API via a web app > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From srinivas_1220 at yahoo.com Tue Dec 15 03:09:02 2009 From: srinivas_1220 at yahoo.com (srinivas_ 1220) Date: Tue, 15 Dec 2009 07:39:02 +0530 (IST) Subject: [BangPypers] Unsubcribe Message-ID: <476791.3329.qm@web94808.mail.in2.yahoo.com> Hi ? How does one unsubscribe from this mail list? As i dont wish to receive any updates from this group. Thank You Regards Srinivas The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/ From rmathews at gmail.com Tue Dec 15 04:01:46 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Tue, 15 Dec 2009 08:31:46 +0530 Subject: [BangPypers] Unsubcribe In-Reply-To: <476791.3329.qm@web94808.mail.in2.yahoo.com> References: <476791.3329.qm@web94808.mail.in2.yahoo.com> Message-ID: <1c4dc2780912141901l793bde7amd9e25ebb99d1414f@mail.gmail.com> On Tue, Dec 15, 2009 at 7:39 AM, srinivas_ 1220 wrote: > How does one unsubscribe from this mail list? As i dont wish to receive any updates from this group. > The mail headers point you to: List-Id: Bangalore Python Users Group - India List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , So send an email to bangpypers-request at python.org and in the subject box type the word "unsubscribe". Hope that helps, Roshan From noufal at gmail.com Tue Dec 15 06:57:30 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 15 Dec 2009 11:27:30 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <49977f270912140741t1a8d5ac1oc45a1a72659c2c1a@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <41139fcb0912132055o58ceb3e4xd05e5b0b79ab132@mail.gmail.com> <3d62196a0912140057n6f20cb69p1258cc3bf42c9fd9@mail.gmail.com> <65da62240912140123q5955f2cg7c3f898c48e8f810@mail.gmail.com> <49977f270912140128p418d5ab7q2ebc19e8956b64df@mail.gmail.com> <9963e56e0912140144l6bcf8da1s6ffd0ebf52e6023b@mail.gmail.com> <49977f270912140741t1a8d5ac1oc45a1a72659c2c1a@mail.gmail.com> Message-ID: <9963e56e0912142157m644aca6et2ecba7df3274331f@mail.gmail.com> On Mon, Dec 14, 2009 at 9:11 PM, Sriram Narayanan wrote: > On Mon, Dec 14, 2009 at 3:14 PM, Noufal Ibrahim wrote: > > On Mon, Dec 14, 2009 at 2:58 PM, Sriram Narayanan >wrote: > > > >> Since we have a few +1s, I've a proposal: > >> > >> > >> >From a "code together" perspective, > >> How about developing a ZFS management application ? I can be the > >> resident sysadmin/ZFS-guru, and we can develop something together.[..] > > > > > > What did you have in mind? > > > > > > Overall: > - A Pythonic API to administer the ZFS filesystem. > - Expose ZFS administration via REST API > - Access and use this REST API via a web app I suppose we could give it a shot. I'm crippled without a computer so I'll have to pair code or something. In any case, we should meet. -- ~noufal http://nibrahim.net.in From gnuyoga at gmail.com Tue Dec 15 15:38:47 2009 From: gnuyoga at gmail.com (Sreekanth B) Date: Tue, 15 Dec 2009 20:08:47 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <49977f270912140128p418d5ab7q2ebc19e8956b64df@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <41139fcb0912132055o58ceb3e4xd05e5b0b79ab132@mail.gmail.com> <3d62196a0912140057n6f20cb69p1258cc3bf42c9fd9@mail.gmail.com> <65da62240912140123q5955f2cg7c3f898c48e8f810@mail.gmail.com> <49977f270912140128p418d5ab7q2ebc19e8956b64df@mail.gmail.com> Message-ID: hi On Mon, Dec 14, 2009 at 2:58 PM, Sriram Narayanan wrote: > > How about developing a ZFS management application ? I can be the > resident sysadmin/ZFS-guru, and we can develop something together. > > +1 From ravi_880 at in.com Tue Dec 15 16:56:14 2009 From: ravi_880 at in.com (ravi chandel) Date: Tue, 15 Dec 2009 21:26:14 +0530 Subject: [BangPypers] =?utf-8?q?Reg_=3A_Python_Scripting?= In-Reply-To: <8548c5f30912132246xd5d2e6au50922858308ee164@mail.gmail.com> Message-ID: <1260892574.7bd28f15a49d5e5848d6ec70e584e625@mail.in.com> hi, Is there any good projects in python available for beginner/novice like me pls help. regards, ravi chandel Original message From:Anand Balachandran Pillai< abpillai at gmail.com > Date: 14 Dec 09 12:16:30 Subject:Re: [BangPypers] Reg : Python Scripting To: Bangalore Python Users Group India From ravi_880 at in.com Tue Dec 15 16:58:36 2009 From: ravi_880 at in.com (ravi chandel) Date: Tue, 15 Dec 2009 21:28:36 +0530 Subject: [BangPypers] =?utf-8?q?Immediate_requirement_of_web_developer_=28?= =?utf-8?q?Python=29_InBangalore?= In-Reply-To: <26760249.post@talk.nabble.com> Message-ID: <1260892716.bd9e928c0f0fba89b5c8254bef1f9937@mail.in.com> hi I wanted to know is there any firm in india who recruit fresher in python/c programming . regards, ravi chandel Original message From:Online Media< abhijit.maheswari at gmail.com > Date: 13 Dec 09 00:35:30 Subject:[BangPypers] Immediate requirement of web developer (Python) InBangalore To: bangpypers at python.org From ravi_880 at in.com Tue Dec 15 16:57:12 2009 From: ravi_880 at in.com (ravi chandel) Date: Tue, 15 Dec 2009 21:27:12 +0530 Subject: [BangPypers] =?utf-8?q?Fwd=3A_how_to_make_run_in_Win_XP_with_a_re?= =?utf-8?q?quest_modifiedpy_programs_so_that_it_will_run_in_MSwindo?= =?utf-8?b?d3Mu?= In-Reply-To: <7b87ecb70912132351p7f91e841l2198213bfbab99d0@mail.gmail.com> Message-ID: <1260892632.8303a79b1e19a194f1875981be5bdb6f@mail.in.com> hi, is python with c used for creating mobile applications also. regards, ravi chandel Original message From:74yrs old< withblessings at gmail.com > Date: 14 Dec 09 13:21:09 Subject:[BangPypers] Fwd: how to make run in Win XP with a request modifiedpy programs so that it will run in MSwindows. To: Bangalore Python Users Group India From pythonic at gmail.com Tue Dec 15 17:55:07 2009 From: pythonic at gmail.com (Shekhar) Date: Tue, 15 Dec 2009 22:25:07 +0530 Subject: [BangPypers] Immediate requirement of web developer (Python) InBangalore In-Reply-To: <1260892716.bd9e928c0f0fba89b5c8254bef1f9937@mail.in.com> References: <1260892716.bd9e928c0f0fba89b5c8254bef1f9937@mail.in.com> Message-ID: <4B27BF6B.8030402@gmail.com> ravi chandel wrote: > hi I wanted to know is there any firm in india who recruit fresher in python/c programming . regards, ravi chandel Original message From:Online Media< abhijit.maheswari at gmail.com > Date: 13 Dec 09 00:35:30 Subject:[BangPypers] Immediate requirement of web developer (Python) InBangalore To: bangpypers at python.org > Hi Ravi, You can keep a eye on (subscribe to the feeds of) http://fossjobs.in . I had noticed intern requirements there. All the best. From vid at svaksha.com Wed Dec 16 06:57:12 2009 From: vid at svaksha.com (vid) Date: Wed, 16 Dec 2009 00:57:12 -0500 Subject: [BangPypers] December user group meeting In-Reply-To: <49977f270912140741t1a8d5ac1oc45a1a72659c2c1a@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <41139fcb0912132055o58ceb3e4xd05e5b0b79ab132@mail.gmail.com> <3d62196a0912140057n6f20cb69p1258cc3bf42c9fd9@mail.gmail.com> <65da62240912140123q5955f2cg7c3f898c48e8f810@mail.gmail.com> <49977f270912140128p418d5ab7q2ebc19e8956b64df@mail.gmail.com> <9963e56e0912140144l6bcf8da1s6ffd0ebf52e6023b@mail.gmail.com> <49977f270912140741t1a8d5ac1oc45a1a72659c2c1a@mail.gmail.com> Message-ID: <12470af00912152157g3a855b6fr53de0d3c71579f9@mail.gmail.com> On Mon, Dec 14, 2009 at 10:41, Sriram Narayanan wrote: > On Mon, Dec 14, 2009 at 3:14 PM, Noufal Ibrahim wrote: >> On Mon, Dec 14, 2009 at 2:58 PM, Sriram Narayanan wrote: >> >>> Since we have a few +1s, I've a proposal: >>> >>> >>> >From a "code together" perspective, >>> How about developing a ZFS management application ? I can be the >>> resident sysadmin/ZFS-guru, and we can develop something together.[..] >> >> >> What did you have in mind? >> >> > > Overall: > - A Pythonic API to administer the ZFS filesystem. > - Expose ZFS administration via REST API > - Access and use this REST API via a web app > ....am aware its supposed to encourage f2f meets and all that but would it be too much to ask for an online "code together" course (excuse the term) , ala http://www.linuxchix.org/courses.html ... for those non-attendees who wanna get a slice of the action. I've been missing a number of meets so it would have been great to listen to an .ogg rendition of older talks/presentations, etc... . -- || vid | http://svaksha.com || From noufal at gmail.com Wed Dec 16 08:28:18 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 16 Dec 2009 12:58:18 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <12470af00912152157g3a855b6fr53de0d3c71579f9@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <41139fcb0912132055o58ceb3e4xd05e5b0b79ab132@mail.gmail.com> <3d62196a0912140057n6f20cb69p1258cc3bf42c9fd9@mail.gmail.com> <65da62240912140123q5955f2cg7c3f898c48e8f810@mail.gmail.com> <49977f270912140128p418d5ab7q2ebc19e8956b64df@mail.gmail.com> <9963e56e0912140144l6bcf8da1s6ffd0ebf52e6023b@mail.gmail.com> <49977f270912140741t1a8d5ac1oc45a1a72659c2c1a@mail.gmail.com> <12470af00912152157g3a855b6fr53de0d3c71579f9@mail.gmail.com> Message-ID: <9963e56e0912152328s51cbe311rece89c65e8d0bc19@mail.gmail.com> On Wed, Dec 16, 2009 at 11:27 AM, vid wrote: [..] > ....am aware its supposed to encourage f2f meets and all that but > would it be too much to ask for an online "code together" course > (excuse the term) , ala http://www.linuxchix.org/courses.html ... for > those non-attendees who wanna get a slice of the action. > > I've been missing a number of meets so it would have been great to > listen to an .ogg rendition > of older talks/presentations, etc... . > We tried AFAIK to record Mahadevan's talk on llvm-py but recordmydesktop didn't work as expected so we ditched the idea. I don't know how to go about recording a coding session. -- ~noufal http://nibrahim.net.in From lawgon at au-kbc.org Wed Dec 16 09:16:16 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 16 Dec 2009 13:46:16 +0530 Subject: [BangPypers] [ANN] FWDE launched Message-ID: <200912161346.16550.lawgon@au-kbc.org> -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From lawgon at au-kbc.org Wed Dec 16 09:24:18 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 16 Dec 2009 13:54:18 +0530 Subject: [BangPypers] [ANN] FWDE launched In-Reply-To: <200912161346.16550.lawgon@au-kbc.org> References: <200912161346.16550.lawgon@au-kbc.org> Message-ID: <200912161354.18221.lawgon@au-kbc.org> On Wednesday 16 Dec 2009 1:46:16 pm Kenneth Gonsalves wrote: > oops - forgot to past the announcement: hi, I am happy to announce that we have at long last launched the Foss Web Deployment Engineer Certification. 'The first question that will arise is: 'Kenneth of all people is launching a certification? he must be fit to be certified'. True. To date I have never looked at a candidate's certificates when interviewing him - as I know how easy these things are to crack and that mugging up is no guarantee that the person actually *knows* anything. For the last three years we have been working to set up a certification that tests FOSS ability - rather than memory or exam writing skills. We feel that we have achieved this. The certification is endorsed by the GOI and Anna University, so the paper may be worth something - but I feel the value of the certification is that anyone who attempts it - pass or fail - will imbibe some of the spirit of FOSS and be more employable (and a better person). I wish to thank those members of this and other mailing lists for contributing their ideas, time and effort to this. I also request all of you to contribute to the forums and answer questions there. Those of you who have companies that use FOSS tools or train FOSS people are requested to register their companies on the site. And give feedback on the skills you require. There is a nominal fee of Rs 100 for registration - that is to keep the viagra salesmen out, and also to test out our online payment system - we are one of the first government educational institutions to have an online payment system - and probably the only certifying authority in the world which has the whole source code of it's website online and freely downloadable. And that includes the code for the online payment itself. The site is still in an experimental stage - so please be kind and report errors and omissions. http://certificate.nrcfoss.au-kbc.org.in -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From mbaiju at zeomega.com Wed Dec 16 11:49:16 2009 From: mbaiju at zeomega.com (Baiju M) Date: Wed, 16 Dec 2009 16:19:16 +0530 Subject: [BangPypers] CPU Info Message-ID: Hi, ? ?Is there any module available in Python (third party is fine) to get the number processors available in a multi-core system ? I would prefer something works cross-platform. Thanks, Baiju M From noufal at gmail.com Wed Dec 16 11:55:51 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 16 Dec 2009 16:25:51 +0530 Subject: [BangPypers] CPU Info In-Reply-To: References: Message-ID: <9963e56e0912160255o11d493afld472dc0278dae79f@mail.gmail.com> On Wed, Dec 16, 2009 at 4:19 PM, Baiju M wrote: > Hi, > Is there any module available in Python (third party is fine) > to get the number processors available in a multi-core system ? > I would prefer something works cross-platform. > > http://pypi.python.org/pypi/affinity can be used to set processor affinity. I imagine it has some way to query the details of the number of cores as well. -- ~noufal http://nibrahim.net.in From kausikram at gmail.com Wed Dec 16 11:59:56 2009 From: kausikram at gmail.com (kausikram krishnasayee) Date: Wed, 16 Dec 2009 16:29:56 +0530 Subject: [BangPypers] CPU Info In-Reply-To: References: Message-ID: <2597ddb90912160259w8988281p71f48c0af62ee5eb@mail.gmail.com> On Wed, Dec 16, 2009 at 4:19 PM, Baiju M wrote: > Hi, > Is there any module available in Python (third party is fine) > to get the number processors available in a multi-core system ? > I would prefer something works cross-platform. use multiprocessing module in it do multiprocessing.cpu_count() -- Kausikram Krishnasayee Company: http://silverstripesoftware.com | Webpage: kausikram.net | Blog: blog.kausikram.net | Twitter: http://twitter.com/kausikram | Email: kausikram at gmail.com | Mobile: +91 9884246490 From gnuyoga at gmail.com Wed Dec 16 12:03:04 2009 From: gnuyoga at gmail.com (Sreekanth B) Date: Wed, 16 Dec 2009 16:33:04 +0530 Subject: [BangPypers] CPU Info In-Reply-To: References: Message-ID: hi On Wed, Dec 16, 2009 at 4:19 PM, Baiju M wrote: > Hi, > Is there any module available in Python (third party is fine) > to get the number processors available in a multi-core system ? > I would prefer something works cross-platform. > this might be of help to you http://www.velocityreviews.com/forums/t542132-cross-platform-way-of-finding-number-of-processors-on-a-machine.html - sree From ramkrsna at gmail.com Wed Dec 16 12:04:54 2009 From: ramkrsna at gmail.com (Ramakrishna Reddy) Date: Wed, 16 Dec 2009 16:34:54 +0530 Subject: [BangPypers] CPU Info In-Reply-To: References: Message-ID: On Wed, Dec 16, 2009 at 4:19 PM, Baiju M wrote: > Hi, > ? ?Is there any module available in Python (third party is fine) > to get the number processors available in a multi-core system ? > I would prefer something works cross-platform. For 2.6 above, you might wanna take a look at multiprocessing module >>> import multiprocessing >>> multiprocessing.cpu_count() 2 -- Ramakrishna Reddy GPG Key ID:31FF0090 Fingerprint = 18D7 3FC1 784B B57F C08F 32B9 4496 B2A1 31FF 0090 From anand.shashwat at gmail.com Wed Dec 16 12:14:25 2009 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Wed, 16 Dec 2009 16:44:25 +0530 Subject: [BangPypers] [ANN] FWDE launched In-Reply-To: <200912161354.18221.lawgon@au-kbc.org> References: <200912161346.16550.lawgon@au-kbc.org> <200912161354.18221.lawgon@au-kbc.org> Message-ID: @Kenneth Nice effort .. I had tried Microsoft Certification some 3 years ago..it was a bunch of crap..I had not mentioned it even in my resume and all the faith in certification programs was lost. On Wed, Dec 16, 2009 at 1:54 PM, Kenneth Gonsalves wrote: > On Wednesday 16 Dec 2009 1:46:16 pm Kenneth Gonsalves wrote: > > > > oops - forgot to past the announcement: > > hi, > > I am happy to announce that we have at long last launched the Foss Web > Deployment Engineer Certification. 'The first question that will arise is: > 'Kenneth of all people is launching a certification? he must be fit to be > certified'. True. To date I have never looked at a candidate's > certificates > when interviewing him - as I know how easy these things are to crack and > that > mugging up is no guarantee that the person actually *knows* anything. For > the > last three years we have been working to set up a certification that tests > FOSS > ability - rather than memory or exam writing skills. We feel that we have > achieved this. The certification is endorsed by the GOI and Anna > University, so > the paper may be worth something - but I feel the value of the > certification is > that anyone who attempts it - pass or fail - will imbibe some of the spirit > of > FOSS and be more employable (and a better person). > > I wish to thank those members of this and other mailing lists for > contributing > their ideas, time and effort to this. I also request all of you to > contribute > to the forums and answer questions there. Those of you who have companies > that > use FOSS tools or train FOSS people are requested to register their > companies > on the site. And give feedback on the skills you require. There is a > nominal > fee of Rs 100 for registration - that is to keep the viagra salesmen out, > and > also to test out our online payment system - we are one of the first > government > educational institutions to have an online payment system - and probably > the > only certifying authority in the world which has the whole source code of > it's > website online and freely downloadable. And that includes the code for the > online payment itself. > > The site is still in an experimental stage - so please be kind and report > errors and omissions. > > http://certificate.nrcfoss.au-kbc.org.in > -- > regards > Kenneth Gonsalves > Senior Project Officer > NRC-FOSS > http://nrcfosshelpline.in/web/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From itpradeep.38 at gmail.com Wed Dec 16 14:39:06 2009 From: itpradeep.38 at gmail.com (pradeep T) Date: Wed, 16 Dec 2009 05:39:06 -0800 Subject: [BangPypers] mobile application development Message-ID: hi friends, am a begginer of this language and dont know much. Is it possible for me to develop a mobile application using this language... From anishk33 at gmail.com Wed Dec 16 17:11:41 2009 From: anishk33 at gmail.com (Anish Kurian) Date: Wed, 16 Dec 2009 21:41:41 +0530 Subject: [BangPypers] mobile application development In-Reply-To: References: Message-ID: <64b0aaab0912160811q68d6fb40s2aa2ec0c82e5fb0c@mail.gmail.com> you sure can develop mobile applications using python. u can download the SDK for particular group of handset. Nokia S60 mobiles use PyS60 SDK. Maybe similar ones are available for other handsets. On Wed, Dec 16, 2009 at 7:09 PM, pradeep T wrote: > hi friends, > am a begginer of this language and dont know much. > > Is it possible for me to develop a mobile application using this > language... > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From kausikram at gmail.com Wed Dec 16 17:26:28 2009 From: kausikram at gmail.com (kausikram krishnasayee) Date: Wed, 16 Dec 2009 21:56:28 +0530 Subject: [BangPypers] mobile application development In-Reply-To: References: Message-ID: <2597ddb90912160826g3618c32ay5df18d9aa1d81055@mail.gmail.com> On Wed, Dec 16, 2009 at 7:09 PM, pradeep T wrote: > hi friends, > am a begginer of this language and dont know much. Yes. for symbian s60 mobiles. search for PyS60 -- Kausikram Krishnasayee Company: http://silverstripesoftware.com | Webpage: kausikram.net | Blog: blog.kausikram.net | Twitter: http://twitter.com/kausikram | Email: kausikram at gmail.com | Mobile: +91 9884246490 From mbaiju at zeomega.com Wed Dec 16 17:34:57 2009 From: mbaiju at zeomega.com (Baiju M) Date: Wed, 16 Dec 2009 22:04:57 +0530 Subject: [BangPypers] mobile application development In-Reply-To: References: Message-ID: On Wed, Dec 16, 2009 at 7:09 PM, pradeep T wrote: > hi friends, > ?am a begginer of this language and dont know much. > > ?Is it possible for me to develop a mobile application using this ?language... http://opensource.nokia.com/projects/pythonfors60/ http://pymaemo.garage.maemo.org/ http://code.google.com/p/android-scripting/wiki/PythonAndroidAPI P.S: Please do some Google search before asking. Regards, Baiju M From pradeep at btbytes.com Wed Dec 16 18:15:30 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Wed, 16 Dec 2009 12:15:30 -0500 Subject: [BangPypers] mobile application development In-Reply-To: References: Message-ID: <3e3294b70912160915t14032b1dg2837dbc74ae0f280@mail.gmail.com> On Wed, Dec 16, 2009 at 8:39 AM, pradeep T wrote: > hi friends, > ?am a begginer of this language and dont know much. > > ?Is it possible for me to develop a mobile application using this ?language... The phrase "mobile application" encompasses so many different approaches. Even a web app written in Javascript is a "mobile application" in many smart phones (iPhone, Android). Being a "begginer" is not a problem. Being vague and clueless about what you want to know will elicit nothing more LMGTFY.com Think twice before you bang out an email and decide to waste the time of 100s of people who will read your email. From pradeep at btbytes.com Wed Dec 16 18:15:50 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Wed, 16 Dec 2009 12:15:50 -0500 Subject: [BangPypers] mobile application development In-Reply-To: References: Message-ID: <3e3294b70912160915p369409f1m1da9aac447a50b4@mail.gmail.com> On Wed, Dec 16, 2009 at 11:34 AM, Baiju M wrote: > On Wed, Dec 16, 2009 at 7:09 PM, pradeep T wrote: >> hi friends, >> ?am a begginer of this language and dont know much. >> >> ?Is it possible for me to develop a mobile application using this ?language... > > http://opensource.nokia.com/projects/pythonfors60/ > http://pymaemo.garage.maemo.org/ > http://code.google.com/p/android-scripting/wiki/PythonAndroidAPI > > P.S: Please do some Google search before asking. From stallomir at gmail.com Wed Dec 16 19:55:13 2009 From: stallomir at gmail.com (Mandar Gokhale) Date: Wed, 16 Dec 2009 13:55:13 -0500 Subject: [BangPypers] mobile application development In-Reply-To: <3e3294b70912160915p369409f1m1da9aac447a50b4@mail.gmail.com> References: <3e3294b70912160915p369409f1m1da9aac447a50b4@mail.gmail.com> Message-ID: I don't post much to this list (though I follow it regularly), and don't want to start a flamewar of sorts, but one of these responses made me think twice. Being vague and clueless about what you want to know will elicitnothing more LMGTFY.com Think twice before you bang out an email and decide to waste the time of 100s of people who will read your email. I know that a lot of people here are programmers who are very busy in their professional lives. Nevertheless, there may be a person who is throwing out a simple query, as it were. "Could we talk about the uses of Python in mobile development?' : that sort of thing. As far as I know the scope of this list (and I honestly don't profess to be an expert in that direction), I feel that such a query isn't totally inappropriate. I mean, yes, one can use Google, and look up PyS60 and other stuff, but getting feedback from someone who actually *does program phones using PyS60* right here in Bangalore is infinitely more invaluable than a comment on Stack Overflow or thereabouts. Of course, the wording of the OP is probably not what I would have used myself, but I guess in a society where we are not entirely at ease using English as our first language, nor confident enough to use our own entirely, nonconformity is to be expected, isn't it? *tl;dr* : If some people have vague responses, it could be because they are vaguely interested in the subject. Is that sufficient grounds to shoot them down? From noufal at gmail.com Wed Dec 16 20:07:59 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 17 Dec 2009 00:37:59 +0530 Subject: [BangPypers] mobile application development In-Reply-To: References: <3e3294b70912160915p369409f1m1da9aac447a50b4@mail.gmail.com> Message-ID: <9963e56e0912161107j7615110avb0c4f4fc70974772@mail.gmail.com> On Thu, Dec 17, 2009 at 12:25 AM, Mandar Gokhale wrote: > [..] > Of course, the wording of the OP is probably not what I would have used > myself, Yes. That was I think what ticked Pradeep off. > but I guess in a society where we are not entirely at ease using > English as our first language, nor confident enough to use our own > entirely, > nonconformity is to be expected, isn't it? > Definitely. However, the question had an aura of laziness around it. A vague one line question without any context or intention. Someone serious about mobile development would have googled a little, found the common ways of doing it (Java I guess?) and then perhaps come back to the list with a concrete question on whether Python was a viable alternative and for some information on it's pros and cons from people who've done mobile development using the language. > *tl;dr* : If some people have vague responses, it could be because they are > vaguely interested in the subject. Is that sufficient grounds to shoot them > down? > Vagueness begets vagueness. A totally accurate response to a query like " Is it possible for me to develop a mobile application using this language..." would be "yes". How useful is that (although much more to the point than Pradeep's mail)? Atleast here, the OP got instructions on what to do and must have learned something from his posting. -- ~noufal http://nibrahim.net.in From pradeep at btbytes.com Wed Dec 16 20:10:14 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Wed, 16 Dec 2009 14:10:14 -0500 Subject: [BangPypers] mobile application development In-Reply-To: References: <3e3294b70912160915p369409f1m1da9aac447a50b4@mail.gmail.com> Message-ID: <3e3294b70912161110i7f3d5260v73b7bd7ab330e622@mail.gmail.com> On Wed, Dec 16, 2009 at 1:55 PM, Mandar Gokhale wrote: > *tl;dr* : If some people have vague responses, it could be because they are > vaguely interested in the subject. Is that sufficient grounds to shoot them > down? Yes. This is not 199x and information is freely and widely available to everybody, thanks to google. >> *does program phones >> using PyS60* That would have been an interesting question. But the OP did not ask that question. +PG From stallomir at gmail.com Wed Dec 16 21:03:47 2009 From: stallomir at gmail.com (Mandar Gokhale) Date: Wed, 16 Dec 2009 15:03:47 -0500 Subject: [BangPypers] mobile application development In-Reply-To: <3e3294b70912161110i7f3d5260v73b7bd7ab330e622@mail.gmail.com> References: <3e3294b70912160915p369409f1m1da9aac447a50b4@mail.gmail.com> <3e3294b70912161110i7f3d5260v73b7bd7ab330e622@mail.gmail.com> Message-ID: Well, those were a couple of good points and information is freely and widely available to everyone using Google. But information is not really a substitute for human interaction, which is why we still have taught classes at Universities, rather than managing everything through learning modules over the internet. My point is this (firstly, remember that I don't quite like the tone of the question used by the OP either, and looking at the language, my own reaction *might* conceivably have been a knee-jerk one of JFGI), would a lively discussion regarding mobile app development on Python have been more constructive, and more encouraging towards newcomers in this area? Maybe something like trying to incorporate something of the nature into the next meeting? My only concern is that perhaps rancour might be taking the place of lively discussion here. Anyway, I'm probably done trying to make this point. If anyone does have experience/links to resources regarding using Python for developing mobile apps, please post them. Thanks a lot. From vid at svaksha.com Wed Dec 16 22:33:30 2009 From: vid at svaksha.com (vid) Date: Wed, 16 Dec 2009 16:33:30 -0500 Subject: [BangPypers] December user group meeting In-Reply-To: <9963e56e0912152328s51cbe311rece89c65e8d0bc19@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <41139fcb0912132055o58ceb3e4xd05e5b0b79ab132@mail.gmail.com> <3d62196a0912140057n6f20cb69p1258cc3bf42c9fd9@mail.gmail.com> <65da62240912140123q5955f2cg7c3f898c48e8f810@mail.gmail.com> <49977f270912140128p418d5ab7q2ebc19e8956b64df@mail.gmail.com> <9963e56e0912140144l6bcf8da1s6ffd0ebf52e6023b@mail.gmail.com> <49977f270912140741t1a8d5ac1oc45a1a72659c2c1a@mail.gmail.com> <12470af00912152157g3a855b6fr53de0d3c71579f9@mail.gmail.com> <9963e56e0912152328s51cbe311rece89c65e8d0bc19@mail.gmail.com> Message-ID: <12470af00912161333s28a0f24ctbc369e60800ab973@mail.gmail.com> On Wed, Dec 16, 2009 at 02:28, Noufal Ibrahim wrote: > > We tried AFAIK to record Mahadevan's talk on llvm-py but recordmydesktop > didn't work as expected so we ditched the idea. My requirements are less...just an audio record would have been good enough :) > I don't know how to go about > recording a coding session. I dont know too. I'd be happy with the good ol'fashioned way : peers willing to walk me through zfs on this list or providing some reading material to get started with. -- || vid | http://svaksha.com || From abpillai at gmail.com Thu Dec 17 05:24:42 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 17 Dec 2009 09:54:42 +0530 Subject: [BangPypers] mobile application development In-Reply-To: <64b0aaab0912160811q68d6fb40s2aa2ec0c82e5fb0c@mail.gmail.com> References: <64b0aaab0912160811q68d6fb40s2aa2ec0c82e5fb0c@mail.gmail.com> Message-ID: <8548c5f30912162024l6211de1ai44fdb84053b6b309@mail.gmail.com> On Wed, Dec 16, 2009 at 9:41 PM, Anish Kurian wrote: > you sure can develop mobile applications using python. > u can download the SDK for particular group of handset. Nokia S60 mobiles > use PyS60 SDK. Maybe similar ones are available for other handsets. > Symbian is nearing end-of-life as the chosen platform for smartphones for Nokia. As you might know N900 was recently released in select markets around the world and it runs a fully Debian-derived Linux OS named Maemo. I have been reading through N900 and Maemo reviews and this looks like disruptive technology. Symbian is still the largest selling smartphone OS right now, but can't stand up to the challenges posed by Android, Web OS etc. Symbian is not developer friendly and has stability issues. I am looking forward to get my hands on an N900 and hacking on the Maemo. Nokia is betting on Maemo - the only current issue is that it is fully GTK based (Hildon/Matchbox) but I read that Nokia is planning to bring in QT as a choice to it pretty soon. Since Nokia invests a lot in Qt this definitely make a lot of sense. Take a look at N900 and Maemo. It is surely one of the directions mobile development will take, the other being Android and its clones. > On Wed, Dec 16, 2009 at 7:09 PM, pradeep T wrote: > > > hi friends, > > am a begginer of this language and dont know much. > > > > Is it possible for me to develop a mobile application using this > > language... > > _______________________________________________ > > 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 From abpillai at gmail.com Thu Dec 17 05:43:17 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 17 Dec 2009 10:13:17 +0530 Subject: [BangPypers] mobile application development In-Reply-To: <8548c5f30912162024l6211de1ai44fdb84053b6b309@mail.gmail.com> References: <64b0aaab0912160811q68d6fb40s2aa2ec0c82e5fb0c@mail.gmail.com> <8548c5f30912162024l6211de1ai44fdb84053b6b309@mail.gmail.com> Message-ID: <8548c5f30912162043j30f85d86q9adf06c596797ff6@mail.gmail.com> On Thu, Dec 17, 2009 at 9:54 AM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > > > On Wed, Dec 16, 2009 at 9:41 PM, Anish Kurian wrote: > >> you sure can develop mobile applications using python. >> u can download the SDK for particular group of handset. Nokia S60 mobiles >> use PyS60 SDK. Maybe similar ones are available for other handsets. >> > > Symbian is nearing end-of-life as the chosen platform for smartphones > for Nokia. As you might know N900 was recently released in select markets > around the world and it runs a fully Debian-derived Linux OS named > Maemo. I have been reading through N900 and Maemo reviews and > this looks like disruptive technology. > > Symbian is still the largest selling smartphone OS right now, but > can't stand up to the challenges posed by Android, Web OS etc. > Symbian is not developer friendly and has stability issues. I am > looking forward to get my hands on an N900 and hacking on the > Maemo. > > Nokia is betting on Maemo - the only current issue is that it > is fully GTK based (Hildon/Matchbox) but I read that Nokia > is planning to bring in QT as a choice to it pretty soon. > Since Nokia invests a lot in Qt this definitely make a lot > of sense. > > Take a look at N900 and Maemo. It is surely one of the > directions mobile development will take, the other being > Android and its clones. > I might add that you can't code in Python on the Android, since it runs only Java apps. I heard there are efforts to bring X language apps into Android, but none is yet mature. Maemo being fully Linux derived (Android just runs a Linux kernel and a Dalkin Java VM on top) including the application layers, it is a simple matter to port any Linux app to it which is what basically makes it so disruptive. > >> On Wed, Dec 16, 2009 at 7:09 PM, pradeep T >> wrote: >> >> > hi friends, >> > am a begginer of this language and dont know much. >> > >> > Is it possible for me to develop a mobile application using this >> > language... >> > _______________________________________________ >> > 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 > > > > -- --Anand From croozeus at yahoo.com Thu Dec 17 05:50:42 2009 From: croozeus at yahoo.com (Pankaj Nathani) Date: Wed, 16 Dec 2009 20:50:42 -0800 (PST) Subject: [BangPypers] mobile application development In-Reply-To: <8548c5f30912162024l6211de1ai44fdb84053b6b309@mail.gmail.com> References: <64b0aaab0912160811q68d6fb40s2aa2ec0c82e5fb0c@mail.gmail.com> <8548c5f30912162024l6211de1ai44fdb84053b6b309@mail.gmail.com> Message-ID: <603830.92573.qm@web36804.mail.mud.yahoo.com> I have to say something here :-) >Symbian is nearing end-of-life as the chosen platform for smartphones for Nokia. Well, thats not true. Symbian is going to be the platform for smartphone development for Nokia. Nothing is stopping them from doing so. Maemo is target to high end mobile devices - tablets/netbooks, etc. So you will be seeing some products from Nokia on Maemo targeted to such consumers. Maemo and Symbian are never on the same level of competition, remember. Symbian has its open plan for years ahead - Symbian^1 (already present), Symbian^2 (Starting 2010), Symbian^3 (mid 2010) and Symbian^4 (end 2010) ahead. Also, the same pattern reflects on Nokia's roadmap - the plan for 2010 and ahead from the Nokia's Capital Markets day. Regarding PyS60, yes its getting better and getting more mobility functionalities - it has been ported to core 2.5 and you should be seeing a new release very soon as well. And yes, Python is also supported on Maemo. Cheers, Pankaj. (Croozeus) ________________________________ From: Anand Balachandran Pillai To: Bangalore Python Users Group - India Sent: Thu, December 17, 2009 9:54:42 AM Subject: Re: [BangPypers] mobile application development On Wed, Dec 16, 2009 at 9:41 PM, Anish Kurian wrote: > you sure can develop mobile applications using python. > u can download the SDK for particular group of handset. Nokia S60 mobiles > use PyS60 SDK. Maybe similar ones are available for other handsets. > Symbian is nearing end-of-life as the chosen platform for smartphones for Nokia. As you might know N900 was recently released in select markets around the world and it runs a fully Debian-derived Linux OS named Maemo. I have been reading through N900 and Maemo reviews and this looks like disruptive technology. Symbian is still the largest selling smartphone OS right now, but can't stand up to the challenges posed by Android, Web OS etc. Symbian is not developer friendly and has stability issues. I am looking forward to get my hands on an N900 and hacking on the Maemo. Nokia is betting on Maemo - the only current issue is that it is fully GTK based (Hildon/Matchbox) but I read that Nokia is planning to bring in QT as a choice to it pretty soon. Since Nokia invests a lot in Qt this definitely make a lot of sense. Take a look at N900 and Maemo. It is surely one of the directions mobile development will take, the other being Android and its clones. > On Wed, Dec 16, 2009 at 7:09 PM, pradeep T wrote: > > > hi friends, > > am a begginer of this language and dont know much. > > > > Is it possible for me to develop a mobile application using this > > language... > > _______________________________________________ > > 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 _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From anandology at gmail.com Thu Dec 17 06:10:13 2009 From: anandology at gmail.com (Anand Chitipothu) Date: Thu, 17 Dec 2009 10:40:13 +0530 Subject: [BangPypers] mobile application development In-Reply-To: <8548c5f30912162043j30f85d86q9adf06c596797ff6@mail.gmail.com> References: <64b0aaab0912160811q68d6fb40s2aa2ec0c82e5fb0c@mail.gmail.com> <8548c5f30912162024l6211de1ai44fdb84053b6b309@mail.gmail.com> <8548c5f30912162043j30f85d86q9adf06c596797ff6@mail.gmail.com> Message-ID: <41139fcb0912162110v75ea8708s7c8ff5e704947a1e@mail.gmail.com> > I might add that you can't code in Python on the Android, since > it runs only Java apps. I heard there are efforts to bring X language > apps into Android, but none is yet mature. You can use Jython! Anand From navin.kabra at gmail.com Thu Dec 17 06:13:46 2009 From: navin.kabra at gmail.com (Navin Kabra) Date: Thu, 17 Dec 2009 10:43:46 +0530 Subject: [BangPypers] mobile application development In-Reply-To: <8548c5f30912162043j30f85d86q9adf06c596797ff6@mail.gmail.com> References: <64b0aaab0912160811q68d6fb40s2aa2ec0c82e5fb0c@mail.gmail.com> <8548c5f30912162024l6211de1ai44fdb84053b6b309@mail.gmail.com> <8548c5f30912162043j30f85d86q9adf06c596797ff6@mail.gmail.com> Message-ID: > I might add that you can't code in Python on the Android, since it runs only Java apps. I heard there are efforts to bring X language > apps into Android, but none is yet mature. > You can code in python http://code.google.com/p/android-scripting/wiki/PythonAndroidAPI (but agreed, that it's probably not very mature) navin. From noufal at gmail.com Thu Dec 17 06:15:43 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 17 Dec 2009 10:45:43 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <12470af00912161333s28a0f24ctbc369e60800ab973@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <3d62196a0912140057n6f20cb69p1258cc3bf42c9fd9@mail.gmail.com> <65da62240912140123q5955f2cg7c3f898c48e8f810@mail.gmail.com> <49977f270912140128p418d5ab7q2ebc19e8956b64df@mail.gmail.com> <9963e56e0912140144l6bcf8da1s6ffd0ebf52e6023b@mail.gmail.com> <49977f270912140741t1a8d5ac1oc45a1a72659c2c1a@mail.gmail.com> <12470af00912152157g3a855b6fr53de0d3c71579f9@mail.gmail.com> <9963e56e0912152328s51cbe311rece89c65e8d0bc19@mail.gmail.com> <12470af00912161333s28a0f24ctbc369e60800ab973@mail.gmail.com> Message-ID: <9963e56e0912162115l3aa3a269v3e37822e8ea37630@mail.gmail.com> On Thu, Dec 17, 2009 at 3:03 AM, vid wrote: > On Wed, Dec 16, 2009 at 02:28, Noufal Ibrahim wrote: > > > > We tried AFAIK to record Mahadevan's talk on llvm-py but recordmydesktop > > didn't work as expected so we ditched the idea. > > My requirements are less...just an audio record would have been good enough > :) > The benefits would have been limited since he used a presentation and there were interactive demos. And audio only recording would have around 10-15% of the content. -- ~noufal http://nibrahim.net.in From mbaiju at zeomega.com Thu Dec 17 06:25:10 2009 From: mbaiju at zeomega.com (Baiju M) Date: Thu, 17 Dec 2009 10:55:10 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <9963e56e0912162115l3aa3a269v3e37822e8ea37630@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <3d62196a0912140057n6f20cb69p1258cc3bf42c9fd9@mail.gmail.com> <65da62240912140123q5955f2cg7c3f898c48e8f810@mail.gmail.com> <49977f270912140128p418d5ab7q2ebc19e8956b64df@mail.gmail.com> <9963e56e0912140144l6bcf8da1s6ffd0ebf52e6023b@mail.gmail.com> <49977f270912140741t1a8d5ac1oc45a1a72659c2c1a@mail.gmail.com> <12470af00912152157g3a855b6fr53de0d3c71579f9@mail.gmail.com> <9963e56e0912152328s51cbe311rece89c65e8d0bc19@mail.gmail.com> <12470af00912161333s28a0f24ctbc369e60800ab973@mail.gmail.com> <9963e56e0912162115l3aa3a269v3e37822e8ea37630@mail.gmail.com> Message-ID: User group meeting are very small gatherings, we need to take it to a conference level with audio/video recordings. But if anyone volunteer to do it, that's fine. Regards, Baiju M From mbaiju at zeomega.com Thu Dec 17 06:25:58 2009 From: mbaiju at zeomega.com (Baiju M) Date: Thu, 17 Dec 2009 10:55:58 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <65da62240912140123q5955f2cg7c3f898c48e8f810@mail.gmail.com> <49977f270912140128p418d5ab7q2ebc19e8956b64df@mail.gmail.com> <9963e56e0912140144l6bcf8da1s6ffd0ebf52e6023b@mail.gmail.com> <49977f270912140741t1a8d5ac1oc45a1a72659c2c1a@mail.gmail.com> <12470af00912152157g3a855b6fr53de0d3c71579f9@mail.gmail.com> <9963e56e0912152328s51cbe311rece89c65e8d0bc19@mail.gmail.com> <12470af00912161333s28a0f24ctbc369e60800ab973@mail.gmail.com> <9963e56e0912162115l3aa3a269v3e37822e8ea37630@mail.gmail.com> Message-ID: On Thu, Dec 17, 2009 at 10:55 AM, Baiju M wrote: > User group meeting are very small gatherings, we need to take it to a Err.. we need *not* to > conference level with audio/video recordings. ?But if anyone volunteer > to do it, that's fine. -- Baiju M From noufal at gmail.com Thu Dec 17 06:40:37 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 17 Dec 2009 11:10:37 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <49977f270912140128p418d5ab7q2ebc19e8956b64df@mail.gmail.com> <9963e56e0912140144l6bcf8da1s6ffd0ebf52e6023b@mail.gmail.com> <49977f270912140741t1a8d5ac1oc45a1a72659c2c1a@mail.gmail.com> <12470af00912152157g3a855b6fr53de0d3c71579f9@mail.gmail.com> <9963e56e0912152328s51cbe311rece89c65e8d0bc19@mail.gmail.com> <12470af00912161333s28a0f24ctbc369e60800ab973@mail.gmail.com> <9963e56e0912162115l3aa3a269v3e37822e8ea37630@mail.gmail.com> Message-ID: <9963e56e0912162140u2d6346d9k762c47d3e1cdc0f8@mail.gmail.com> So, 20th is is then? ThoughtWorks? 1600? Sounds like it's going to be a coding session. I can pitch in but will have to pair with someone else since I don't have a computer. From abhaya.agarwal at gmail.com Thu Dec 17 06:48:10 2009 From: abhaya.agarwal at gmail.com (Abhaya Agarwal) Date: Thu, 17 Dec 2009 11:18:10 +0530 Subject: [BangPypers] BangPypers Digest, Vol 28, Issue 26 In-Reply-To: References: Message-ID: <50fed7500912162148of01fc28j7a73f799fedd661e@mail.gmail.com> So when and where is the meet going to happen? This Sunday? Where? Regards, Abhaya Date: Thu, 17 Dec 2009 10:55:10 +0530 From: Baiju M To: Bangalore Python Users Group - India Subject: Re: [BangPypers] December user group meeting Message-ID: Content-Type: text/plain; charset=ISO-8859-1 User group meeting are very small gatherings, we need to take it to a conference level with audio/video recordings. But if anyone volunteer to do it, that's fine. Regards, Baiju M From abpillai at gmail.com Thu Dec 17 07:27:52 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 17 Dec 2009 11:57:52 +0530 Subject: [BangPypers] mobile application development In-Reply-To: <603830.92573.qm@web36804.mail.mud.yahoo.com> References: <64b0aaab0912160811q68d6fb40s2aa2ec0c82e5fb0c@mail.gmail.com> <8548c5f30912162024l6211de1ai44fdb84053b6b309@mail.gmail.com> <603830.92573.qm@web36804.mail.mud.yahoo.com> Message-ID: <8548c5f30912162227v5dcf821fpac74d2815d1ebd0a@mail.gmail.com> On Thu, Dec 17, 2009 at 10:20 AM, Pankaj Nathani wrote: > I have to say something here :-) > > >Symbian is nearing end-of-life as the chosen platform for smartphones > for Nokia. > > Well, thats not true. Symbian is going to be the platform for smartphone > development for Nokia. Nothing is stopping them from doing so. > Hmmm...I looked at N97 and N900 specs and apart from better display (OpenGL) on the latter and the difference in the OS (and perhaps camera also) there was nothing much to choose from among them. Now let me ask you, if you are starting mobile development today and given these two phones, which one will you pick ? > > Maemo is target to high end mobile devices - tablets/netbooks, etc. So you > will be seeing some products from Nokia on Maemo targeted to such consumers. > Maemo and Symbian are never on the same level of competition, remember. > > Symbian has its open plan for years ahead - Symbian^1 (already present), > Symbian^2 (Starting 2010), Symbian^3 (mid 2010) and Symbian^4 (end 2010) > ahead. Also, the same pattern reflects on Nokia's roadmap - the plan for > 2010 and ahead from the Nokia's Capital Markets day. > > Regarding PyS60, yes its getting better and getting more mobility > functionalities - it has been ported to core 2.5 and you should be seeing a > new release very soon as well. And yes, Python is also supported on Maemo. > Almost anything that compiles on a Debian and can be ported using Scratchbox (which is again almost any Linux app) will run on Maemo. You have a wide choice of platforms to code on - Python, C/C++, Ruby anything. I might be mistaken here, but PyS60 has been there for some time - but can you point out at least a few popular applications entirely developed using it ? I can't find even one good game that has been coded entirely in PyS60 so far. > > Cheers, > Pankaj. > (Croozeus) > > > > ________________________________ > From: Anand Balachandran Pillai > To: Bangalore Python Users Group - India > Sent: Thu, December 17, 2009 9:54:42 AM > Subject: Re: [BangPypers] mobile application development > > On Wed, Dec 16, 2009 at 9:41 PM, Anish Kurian wrote: > > > you sure can develop mobile applications using python. > > u can download the SDK for particular group of handset. Nokia S60 mobiles > > use PyS60 SDK. Maybe similar ones are available for other handsets. > > > > Symbian is nearing end-of-life as the chosen platform for smartphones > for Nokia. As you might know N900 was recently released in select markets > around the world and it runs a fully Debian-derived Linux OS named > Maemo. I have been reading through N900 and Maemo reviews and > this looks like disruptive technology. > > Symbian is still the largest selling smartphone OS right now, but > can't stand up to the challenges posed by Android, Web OS etc. > Symbian is not developer friendly and has stability issues. I am > looking forward to get my hands on an N900 and hacking on the > Maemo. > > Nokia is betting on Maemo - the only current issue is that it > is fully GTK based (Hildon/Matchbox) but I read that Nokia > is planning to bring in QT as a choice to it pretty soon. > Since Nokia invests a lot in Qt this definitely make a lot > of sense. > > Take a look at N900 and Maemo. It is surely one of the > directions mobile development will take, the other being > Android and its clones. > > > > On Wed, Dec 16, 2009 at 7:09 PM, pradeep T > wrote: > > > > > hi friends, > > > am a begginer of this language and dont know much. > > > > > > Is it possible for me to develop a mobile application using this > > > language... > > > _______________________________________________ > > > 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 > _______________________________________________ > 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 From croozeus at yahoo.com Thu Dec 17 07:38:09 2009 From: croozeus at yahoo.com (Pankaj Nathani) Date: Wed, 16 Dec 2009 22:38:09 -0800 (PST) Subject: [BangPypers] mobile application development In-Reply-To: <8548c5f30912162227v5dcf821fpac74d2815d1ebd0a@mail.gmail.com> References: <64b0aaab0912160811q68d6fb40s2aa2ec0c82e5fb0c@mail.gmail.com> <8548c5f30912162024l6211de1ai44fdb84053b6b309@mail.gmail.com> <603830.92573.qm@web36804.mail.mud.yahoo.com> <8548c5f30912162227v5dcf821fpac74d2815d1ebd0a@mail.gmail.com> Message-ID: <412039.90034.qm@web36802.mail.mud.yahoo.com> Hi Anand, >Now let me ask you, if you are starting mobile development today and given these two phones, which one will you pick ? I had choose Symbian over Maemo for now, only for the fact that there is just one phone device with Maemo on it and other devices to be released are going to be mobile computers rather than phones. >I might be mistaken here, but PyS60 has been there for some time - but can you point out at least a few popular applications entirely developed using it ? I can't find even one good game that has been coded entirely in PyS60 so far. http://developer.symbian.org/wiki/index.php/Python_Technical_Overview#Sample_Applications http://croozeus.com/blogs/?page_id=838 Cheers, Pankaj! ________________________________ From: Anand Balachandran Pillai To: Bangalore Python Users Group - India Sent: Thu, December 17, 2009 11:57:52 AM Subject: Re: [BangPypers] mobile application development On Thu, Dec 17, 2009 at 10:20 AM, Pankaj Nathani wrote: > I have to say something here :-) > > >Symbian is nearing end-of-life as the chosen platform for smartphones > for Nokia. > > Well, thats not true. Symbian is going to be the platform for smartphone > development for Nokia. Nothing is stopping them from doing so. > Hmmm...I looked at N97 and N900 specs and apart from better display (OpenGL) on the latter and the difference in the OS (and perhaps camera also) there was nothing much to choose from among them. Now let me ask you, if you are starting mobile development today and given these two phones, which one will you pick ? > > Maemo is target to high end mobile devices - tablets/netbooks, etc. So you > will be seeing some products from Nokia on Maemo targeted to such consumers. > Maemo and Symbian are never on the same level of competition, remember. > > Symbian has its open plan for years ahead - Symbian^1 (already present), > Symbian^2 (Starting 2010), Symbian^3 (mid 2010) and Symbian^4 (end 2010) > ahead. Also, the same pattern reflects on Nokia's roadmap - the plan for > 2010 and ahead from the Nokia's Capital Markets day. > > Regarding PyS60, yes its getting better and getting more mobility > functionalities - it has been ported to core 2.5 and you should be seeing a > new release very soon as well. And yes, Python is also supported on Maemo. > Almost anything that compiles on a Debian and can be ported using Scratchbox (which is again almost any Linux app) will run on Maemo. You have a wide choice of platforms to code on - Python, C/C++, Ruby anything. I might be mistaken here, but PyS60 has been there for some time - but can you point out at least a few popular applications entirely developed using it ? I can't find even one good game that has been coded entirely in PyS60 so far. > > Cheers, > Pankaj. > (Croozeus) > > > > ________________________________ > From: Anand Balachandran Pillai > To: Bangalore Python Users Group - India > Sent: Thu, December 17, 2009 9:54:42 AM > Subject: Re: [BangPypers] mobile application development > > On Wed, Dec 16, 2009 at 9:41 PM, Anish Kurian wrote: > > > you sure can develop mobile applications using python. > > u can download the SDK for particular group of handset. Nokia S60 mobiles > > use PyS60 SDK. Maybe similar ones are available for other handsets. > > > > Symbian is nearing end-of-life as the chosen platform for smartphones > for Nokia. As you might know N900 was recently released in select markets > around the world and it runs a fully Debian-derived Linux OS named > Maemo. I have been reading through N900 and Maemo reviews and > this looks like disruptive technology. > > Symbian is still the largest selling smartphone OS right now, but > can't stand up to the challenges posed by Android, Web OS etc. > Symbian is not developer friendly and has stability issues. I am > looking forward to get my hands on an N900 and hacking on the > Maemo. > > Nokia is betting on Maemo - the only current issue is that it > is fully GTK based (Hildon/Matchbox) but I read that Nokia > is planning to bring in QT as a choice to it pretty soon. > Since Nokia invests a lot in Qt this definitely make a lot > of sense. > > Take a look at N900 and Maemo. It is surely one of the > directions mobile development will take, the other being > Android and its clones. > > > > On Wed, Dec 16, 2009 at 7:09 PM, pradeep T > wrote: > > > > > hi friends, > > > am a begginer of this language and dont know much. > > > > > > Is it possible for me to develop a mobile application using this > > > language... > > > _______________________________________________ > > > 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 > _______________________________________________ > 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 _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From abpillai at gmail.com Thu Dec 17 07:55:32 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 17 Dec 2009 12:25:32 +0530 Subject: [BangPypers] mobile application development In-Reply-To: <412039.90034.qm@web36802.mail.mud.yahoo.com> References: <64b0aaab0912160811q68d6fb40s2aa2ec0c82e5fb0c@mail.gmail.com> <8548c5f30912162024l6211de1ai44fdb84053b6b309@mail.gmail.com> <603830.92573.qm@web36804.mail.mud.yahoo.com> <8548c5f30912162227v5dcf821fpac74d2815d1ebd0a@mail.gmail.com> <412039.90034.qm@web36802.mail.mud.yahoo.com> Message-ID: <8548c5f30912162255g5b4e7924n406acba973bc0a65@mail.gmail.com> On Thu, Dec 17, 2009 at 12:08 PM, Pankaj Nathani wrote: > Hi Anand, > > >Now let me ask you, if you are starting mobile development today > and given these two phones, which one will you pick ? > > I had choose Symbian over Maemo for now, only for the fact that there is > just one phone device with Maemo on it and other devices to be released are > going to be mobile computers rather than phones. > > Ok. I would opt for N900 cuz I expect the tablet computer/Internet mobile device/smart-phone divisions to blur in the coming years. Most of mobile computing is going to be on such devices and yes Symbian would still run on lower-end phones, but that is not a class of technology I worry about. > > >I might be mistaken here, but PyS60 has been there for some time - > but can you point out at least a few popular applications entirely > developed using it ? I can't find even one good game that has been coded > entirely in PyS60 so far. > > > http://developer.symbian.org/wiki/index.php/Python_Technical_Overview#Sample_Applications > http://croozeus.com/blogs/?page_id=838 > I see you are an avid PyS60 developer :) > Cheers, > Pankaj! > > > > ________________________________ > From: Anand Balachandran Pillai > To: Bangalore Python Users Group - India > Sent: Thu, December 17, 2009 11:57:52 AM > Subject: Re: [BangPypers] mobile application development > > On Thu, Dec 17, 2009 at 10:20 AM, Pankaj Nathani > wrote: > > > I have to say something here :-) > > > > >Symbian is nearing end-of-life as the chosen platform for smartphones > > for Nokia. > > > > Well, thats not true. Symbian is going to be the platform for smartphone > > development for Nokia. Nothing is stopping them from doing so. > > > > Hmmm...I looked at N97 and N900 specs and apart from better display > (OpenGL) on the latter and the difference in the OS (and perhaps camera > also) there was nothing much to choose from among them. > > Now let me ask you, if you are starting mobile development today > and given these two phones, which one will you pick ? > > > > > > Maemo is target to high end mobile devices - tablets/netbooks, etc. So > you > > will be seeing some products from Nokia on Maemo targeted to such > consumers. > > Maemo and Symbian are never on the same level of competition, remember. > > > > Symbian has its open plan for years ahead - Symbian^1 (already present), > > Symbian^2 (Starting 2010), Symbian^3 (mid 2010) and Symbian^4 (end 2010) > > ahead. Also, the same pattern reflects on Nokia's roadmap - the plan for > > 2010 and ahead from the Nokia's Capital Markets day. > > > > Regarding PyS60, yes its getting better and getting more mobility > > functionalities - it has been ported to core 2.5 and you should be seeing > a > > new release very soon as well. And yes, Python is also supported on > Maemo. > > > > Almost anything that compiles on a Debian and can be ported using > Scratchbox (which is again almost any Linux app) will run on Maemo. > You have a wide choice of platforms to code on - Python, C/C++, > Ruby anything. > > I might be mistaken here, but PyS60 has been there for some time - > but can you point out at least a few popular applications entirely > developed using it ? I can't find even one good game that has been coded > entirely in PyS60 so far. > > > > > > Cheers, > > Pankaj. > > (Croozeus) > > > > > > > > ________________________________ > > From: Anand Balachandran Pillai > > To: Bangalore Python Users Group - India > > Sent: Thu, December 17, 2009 9:54:42 AM > > Subject: Re: [BangPypers] mobile application development > > > > On Wed, Dec 16, 2009 at 9:41 PM, Anish Kurian > wrote: > > > > > you sure can develop mobile applications using python. > > > u can download the SDK for particular group of handset. Nokia S60 > mobiles > > > use PyS60 SDK. Maybe similar ones are available for other handsets. > > > > > > > Symbian is nearing end-of-life as the chosen platform for smartphones > > for Nokia. As you might know N900 was recently released in select markets > > around the world and it runs a fully Debian-derived Linux OS named > > Maemo. I have been reading through N900 and Maemo reviews and > > this looks like disruptive technology. > > > > Symbian is still the largest selling smartphone OS right now, but > > can't stand up to the challenges posed by Android, Web OS etc. > > Symbian is not developer friendly and has stability issues. I am > > looking forward to get my hands on an N900 and hacking on the > > Maemo. > > > > Nokia is betting on Maemo - the only current issue is that it > > is fully GTK based (Hildon/Matchbox) but I read that Nokia > > is planning to bring in QT as a choice to it pretty soon. > > Since Nokia invests a lot in Qt this definitely make a lot > > of sense. > > > > Take a look at N900 and Maemo. It is surely one of the > > directions mobile development will take, the other being > > Android and its clones. > > > > > > > On Wed, Dec 16, 2009 at 7:09 PM, pradeep T > > wrote: > > > > > > > hi friends, > > > > am a begginer of this language and dont know much. > > > > > > > > Is it possible for me to develop a mobile application using this > > > > language... > > > > _______________________________________________ > > > > 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 > > _______________________________________________ > > 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 > _______________________________________________ > 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 From santhosh.edukulla at gmail.com Thu Dec 17 08:31:57 2009 From: santhosh.edukulla at gmail.com (Santhosh Edukulla) Date: Thu, 17 Dec 2009 13:01:57 +0530 Subject: [BangPypers] MySQLdb issue with FC11 Message-ID: <922ac6700912162331l49991f3fo54c8cd403ef91a3e@mail.gmail.com> Hi All, We are using MySQLdb module of python on FC11 box. We were able to connect and execute a select statement on a remote mysql machine, but the delete, insert and update operations are not working. This specific machine has the relevant permissions for select,update,insert and delete operations on the mysql box. When the same code is run from a FC2 box, it is working fine.What could be the issue here? Thanks in Advance! Santhosh From shivraj.ms at gmail.com Thu Dec 17 09:09:58 2009 From: shivraj.ms at gmail.com (Shivaraj M S) Date: Thu, 17 Dec 2009 00:09:58 -0800 (PST) Subject: [BangPypers] MySQLdb issue with FC11 In-Reply-To: <922ac6700912162331l49991f3fo54c8cd403ef91a3e@mail.gmail.com> References: <922ac6700912162331l49991f3fo54c8cd403ef91a3e@mail.gmail.com> Message-ID: <26824555.post@talk.nabble.com> It should be regarding permissions. Can you paste the error or traceback or log. Santhosh Edukulla wrote: > > Hi All, > > We are using MySQLdb module of python on FC11 box. We were able to > connect and execute a select statement on a remote mysql machine, but > the delete, insert and update operations are not working. > > This specific machine has the relevant permissions for > select,update,insert and delete operations on the mysql box. > > When the same code is run from a FC2 box, it is working fine.What > could be the issue here? > > > Thanks in Advance! > Santhosh > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- View this message in context: http://old.nabble.com/MySQLdb-issue-with-FC11-tp26824268p26824555.html Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com. From samslists at gmail.com Thu Dec 17 10:47:50 2009 From: samslists at gmail.com (Sam's Lists) Date: Thu, 17 Dec 2009 01:47:50 -0800 Subject: [BangPypers] mobile application development In-Reply-To: <8548c5f30912162255g5b4e7924n406acba973bc0a65@mail.gmail.com> References: <64b0aaab0912160811q68d6fb40s2aa2ec0c82e5fb0c@mail.gmail.com> <8548c5f30912162024l6211de1ai44fdb84053b6b309@mail.gmail.com> <603830.92573.qm@web36804.mail.mud.yahoo.com> <8548c5f30912162227v5dcf821fpac74d2815d1ebd0a@mail.gmail.com> <412039.90034.qm@web36802.mail.mud.yahoo.com> <8548c5f30912162255g5b4e7924n406acba973bc0a65@mail.gmail.com> Message-ID: <558124520912170147t4a0b314fk20d7f35db386f5d@mail.gmail.com> I think whether you chose Symbian or Mameo comes down to whether you are betting on the future of cell phones being Linux or not, and what sort of time frame you are most concerned about. Many cell phones currently run Linux behind the scenes. The N900 (excluding one or two failed "open source" phones) represents the most Linux-y of these Linux phones. By that I mean it is the closest to Linux in terms of the ecosystem - the same tools, libraries, etc. we find on the desktop and the server (and again - I emphasize closest..not the same). I suspect that twenty years from now the spiritual ancestor of many phones - not just from Nokia - will be the N900. I'll be shocked if Symbian is still available on new phone models five years from now. It will certainly take a while before Nokia switches everything - and they have to be careful with what they say today - they still need to sell plenty of Symbian phones in the meantime. Now if your goal is to make a lot of money with an application that you write in the next six months, clearly you'd want to chose Symbian over the N900. But really, you'd want to choose the iPhone if that was your goal. And that would mean no Python. :( On Wed, Dec 16, 2009 at 10:55 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > On Thu, Dec 17, 2009 at 12:08 PM, Pankaj Nathani > wrote: > > > Hi Anand, > > > > >Now let me ask you, if you are starting mobile development today > > and given these two phones, which one will you pick ? > > > > I had choose Symbian over Maemo for now, only for the fact that there is > > just one phone device with Maemo on it and other devices to be released > are > > going to be mobile computers rather than phones. > > > > > Ok. I would opt for N900 cuz I expect the tablet computer/Internet mobile > device/smart-phone divisions to blur in the coming years. Most of > mobile computing is going to be on such devices and yes Symbian > would still run on lower-end phones, but that is not a class of technology > I worry about. > > > > > > >I might be mistaken here, but PyS60 has been there for some time - > > but can you point out at least a few popular applications entirely > > developed using it ? I can't find even one good game that has been coded > > entirely in PyS60 so far. > > > > > > > http://developer.symbian.org/wiki/index.php/Python_Technical_Overview#Sample_Applications > > http://croozeus.com/blogs/?page_id=838 > > > > I see you are an avid PyS60 developer :) > > > > Cheers, > > Pankaj! > > > > > > > > ________________________________ > > From: Anand Balachandran Pillai > > To: Bangalore Python Users Group - India > > Sent: Thu, December 17, 2009 11:57:52 AM > > Subject: Re: [BangPypers] mobile application development > > > > On Thu, Dec 17, 2009 at 10:20 AM, Pankaj Nathani > > wrote: > > > > > I have to say something here :-) > > > > > > >Symbian is nearing end-of-life as the chosen platform for smartphones > > > for Nokia. > > > > > > Well, thats not true. Symbian is going to be the platform for > smartphone > > > development for Nokia. Nothing is stopping them from doing so. > > > > > > > Hmmm...I looked at N97 and N900 specs and apart from better display > > (OpenGL) on the latter and the difference in the OS (and perhaps camera > > also) there was nothing much to choose from among them. > > > > Now let me ask you, if you are starting mobile development today > > and given these two phones, which one will you pick ? > > > > > > > > > > Maemo is target to high end mobile devices - tablets/netbooks, etc. So > > you > > > will be seeing some products from Nokia on Maemo targeted to such > > consumers. > > > Maemo and Symbian are never on the same level of competition, remember. > > > > > > Symbian has its open plan for years ahead - Symbian^1 (already > present), > > > Symbian^2 (Starting 2010), Symbian^3 (mid 2010) and Symbian^4 (end > 2010) > > > ahead. Also, the same pattern reflects on Nokia's roadmap - the plan > for > > > 2010 and ahead from the Nokia's Capital Markets day. > > > > > > Regarding PyS60, yes its getting better and getting more mobility > > > functionalities - it has been ported to core 2.5 and you should be > seeing > > a > > > new release very soon as well. And yes, Python is also supported on > > Maemo. > > > > > > > Almost anything that compiles on a Debian and can be ported using > > Scratchbox (which is again almost any Linux app) will run on Maemo. > > You have a wide choice of platforms to code on - Python, C/C++, > > Ruby anything. > > > > I might be mistaken here, but PyS60 has been there for some time - > > but can you point out at least a few popular applications entirely > > developed using it ? I can't find even one good game that has been coded > > entirely in PyS60 so far. > > > > > > > > > > Cheers, > > > Pankaj. > > > (Croozeus) > > > > > > > > > > > > ________________________________ > > > From: Anand Balachandran Pillai > > > To: Bangalore Python Users Group - India > > > Sent: Thu, December 17, 2009 9:54:42 AM > > > Subject: Re: [BangPypers] mobile application development > > > > > > On Wed, Dec 16, 2009 at 9:41 PM, Anish Kurian > > wrote: > > > > > > > you sure can develop mobile applications using python. > > > > u can download the SDK for particular group of handset. Nokia S60 > > mobiles > > > > use PyS60 SDK. Maybe similar ones are available for other handsets. > > > > > > > > > > Symbian is nearing end-of-life as the chosen platform for smartphones > > > for Nokia. As you might know N900 was recently released in select > markets > > > around the world and it runs a fully Debian-derived Linux OS named > > > Maemo. I have been reading through N900 and Maemo reviews and > > > this looks like disruptive technology. > > > > > > Symbian is still the largest selling smartphone OS right now, but > > > can't stand up to the challenges posed by Android, Web OS etc. > > > Symbian is not developer friendly and has stability issues. I am > > > looking forward to get my hands on an N900 and hacking on the > > > Maemo. > > > > > > Nokia is betting on Maemo - the only current issue is that it > > > is fully GTK based (Hildon/Matchbox) but I read that Nokia > > > is planning to bring in QT as a choice to it pretty soon. > > > Since Nokia invests a lot in Qt this definitely make a lot > > > of sense. > > > > > > Take a look at N900 and Maemo. It is surely one of the > > > directions mobile development will take, the other being > > > Android and its clones. > > > > > > > > > > On Wed, Dec 16, 2009 at 7:09 PM, pradeep T > > > wrote: > > > > > > > > > hi friends, > > > > > am a begginer of this language and dont know much. > > > > > > > > > > Is it possible for me to develop a mobile application using this > > > > > language... > > > > > _______________________________________________ > > > > > 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 > > > _______________________________________________ > > > 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 > > _______________________________________________ > > 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 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From orsenthil at gmail.com Thu Dec 17 10:58:46 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Thu, 17 Dec 2009 15:28:46 +0530 Subject: [BangPypers] mobile application development In-Reply-To: <558124520912170147t4a0b314fk20d7f35db386f5d@mail.gmail.com> References: <64b0aaab0912160811q68d6fb40s2aa2ec0c82e5fb0c@mail.gmail.com> <8548c5f30912162024l6211de1ai44fdb84053b6b309@mail.gmail.com> <603830.92573.qm@web36804.mail.mud.yahoo.com> <8548c5f30912162227v5dcf821fpac74d2815d1ebd0a@mail.gmail.com> <412039.90034.qm@web36802.mail.mud.yahoo.com> <8548c5f30912162255g5b4e7924n406acba973bc0a65@mail.gmail.com> <558124520912170147t4a0b314fk20d7f35db386f5d@mail.gmail.com> Message-ID: <20091217095846.GA7843@ubuntu.ubuntu-domain> On Thu, Dec 17, 2009 at 01:47:50AM -0800, Sam's Lists wrote: > Now if your goal is to make a lot of money with an application that you > write in the next six months, clearly you'd want to chose Symbian over the > N900. But really, you'd want to choose the iPhone if that was your goal. > And that would mean no Python. :( I can draw one relation to python in this advice. Namely, "practicality beats purity". :) So, there you go. -- Senthil Promptness is its own reward, if one lives by the clock instead of the sword. From vijay750 at gmail.com Thu Dec 17 11:48:09 2009 From: vijay750 at gmail.com (Vijay Ramachandran) Date: Thu, 17 Dec 2009 16:18:09 +0530 Subject: [BangPypers] MySQLdb issue with FC11 (Santhosh Edukulla) Message-ID: <5f4d8a540912170248v42f0dcc1o983d3fed4e47d474@mail.gmail.com> On Thu, Dec 17, 2009 at 3:17 PM, wrote: > From: Santhosh Edukulla > We are using MySQLdb module of python on FC11 box. We were able to > connect and execute a select statement on a remote mysql machine, but > the delete, insert and update operations are not working. > > This specific machine has the relevant permissions for > select,update,insert and delete operations on the mysql box. > > When the same code is run from a FC2 box, it is working fine.What > could be the issue here? > > Are you calling commit() after the update statements? The semantics of the db api - http://www.python.org/dev/peps/pep-0249/ - changed: " Note that closing a connection without committing the changes first will cause an implicit rollback " HTH, Vijay rollback to be performed. From gnuyoga at gmail.com Thu Dec 17 12:32:14 2009 From: gnuyoga at gmail.com (Sreekanth B) Date: Thu, 17 Dec 2009 17:02:14 +0530 Subject: [BangPypers] mobile application development In-Reply-To: <8548c5f30912162043j30f85d86q9adf06c596797ff6@mail.gmail.com> References: <64b0aaab0912160811q68d6fb40s2aa2ec0c82e5fb0c@mail.gmail.com> <8548c5f30912162024l6211de1ai44fdb84053b6b309@mail.gmail.com> <8548c5f30912162043j30f85d86q9adf06c596797ff6@mail.gmail.com> Message-ID: hi > I might add that you can't code in Python on the Android, since > it runs only Java apps. I heard there are efforts to bring X language > apps into Android, but none is yet mature. > > I have been following android for a while now and i have used Android Scripting Environment (ASE) exist. Of couse you may not be able to build full fledged app but considering google's love toward python soon this will be a reality. reference http://google-opensource.blogspot.com/2009/06/introducing-android-scripting.html http://code.google.com/p/android-scripting/ some examples http://indefinitestudies.org/2009/06/20/command-your-shiny-android-in-python/ http://code.google.com/p/android-scripting/wiki/PythonAndroidAPI - sree From praveen.python.plone at gmail.com Thu Dec 17 17:44:47 2009 From: praveen.python.plone at gmail.com (Praveen Kumar) Date: Thu, 17 Dec 2009 22:14:47 +0530 Subject: [BangPypers] Do not know how much truth Message-ID: <6305ec600912170844g6fb0db70jd137ec56a5f5c0e6@mail.gmail.com> Google employees are being discouraged from using Python for new projects http://www.reddit.com/r/Python/comments/a2qxs/bad_news_google_employees_are_being_discouraged/ -- Praveen Kumar +91 9620621342 http://praveensunsetpoint.wordpress.com Bangalore From abpillai at gmail.com Fri Dec 18 05:13:56 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 18 Dec 2009 09:43:56 +0530 Subject: [BangPypers] Do not know how much truth In-Reply-To: <6305ec600912170844g6fb0db70jd137ec56a5f5c0e6@mail.gmail.com> References: <6305ec600912170844g6fb0db70jd137ec56a5f5c0e6@mail.gmail.com> Message-ID: <8548c5f30912172013s3056f8cbv1a2eb587a2134535@mail.gmail.com> On Thu, Dec 17, 2009 at 10:14 PM, Praveen Kumar < praveen.python.plone at gmail.com> wrote: > Google employees are being discouraged from using Python for new > projects< > http://www.reddit.com/r/Python/comments/a2qxs/bad_news_google_employees_are_being_discouraged/ > > > > > http://www.reddit.com/r/Python/comments/a2qxs/bad_news_google_employees_are_being_discouraged/ > I read through the entire discussion, and this comment caught my attention. " Yeah, I was thinking about this, and it's interesting to note that there are very few CPython developers who are paid to work on CPython. They're all volunteers. As such, performance really isn't a priority the way it is for the JVM. The Ruby folks are getting funding (from EngineYard and others) to work on their VMs because people have realized that MRI is too darn slow to serve web applications and they want to fix it. " Well, the supposedly biggest "friend" of open source is supposedly using Python in a large scale for all its developer APIs and the creator of Python works there, so I don't get why Google cannot take the leadership and fund a few CPython core developers to get it up to speed, if that is what they really want. Instead of that they are creating confusion by starting on projects like Unladen Swallow, criticizing CPython and finally this rumor - it clearly doesn't help Python language in any way, though it could be helping Google. In this vein, Microsoft is far better than Google since they actually funded and executed an entire project like IronPython, recruiting Jim Hugunin and giving him a rather free hand. Why is it that Google is not able to contribute in a similar way to the Python ecosystem and the language even with the creator himself being part of the company ? I don't think Google is good for Python language at all. They could be the biggest promoter of the language or they could be finally end up diminishing its adoption, by giving out all this entirely different messages which doesn't seem to add up. > > > > -- > Praveen Kumar > +91 9620621342 > http://praveensunsetpoint.wordpress.com > Bangalore > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From srinivas_thatiparthy at akebonosoft.com Fri Dec 18 05:08:44 2009 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Fri, 18 Dec 2009 09:38:44 +0530 Subject: [BangPypers] Do not know how much truth In-Reply-To: <6305ec600912170844g6fb0db70jd137ec56a5f5c0e6@mail.gmail.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01CDBA55@astserver3.akebonosoft.com> Yep, it's true... http://groups.google.com/group/unladen-swallow/browse_thread/thread/4edb c406f544643e# Regards, Srinivas Reddy T ----- You never learn something until you have to write something in it(a programming language), until you have to live and breathe it. It's one thing to go learn a language for fun, but until you write some big, complex system in it,you don't really learn it. ---Brad Fitzpatrick -----Original Message----- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org [mailto:bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.o rg] On Behalf Of Praveen Kumar Sent: Thursday, December 17, 2009 10:15 PM To: Bangalore Python Users Group - India Subject: [BangPypers] Do not know how much truth Google employees are being discouraged from using Python for new projects http://www.reddit.com/r/Python/comments/a2qxs/bad_news_google_employees_ are_being_discouraged/ -- Praveen Kumar +91 9620621342 http://praveensunsetpoint.wordpress.com Bangalore _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From abpillai at gmail.com Fri Dec 18 05:18:35 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 18 Dec 2009 09:48:35 +0530 Subject: [BangPypers] Do not know how much truth In-Reply-To: <8548c5f30912172013s3056f8cbv1a2eb587a2134535@mail.gmail.com> References: <6305ec600912170844g6fb0db70jd137ec56a5f5c0e6@mail.gmail.com> <8548c5f30912172013s3056f8cbv1a2eb587a2134535@mail.gmail.com> Message-ID: <8548c5f30912172018k3d3d7548m3c2370be6f52bce5@mail.gmail.com> On Fri, Dec 18, 2009 at 9:43 AM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > > > On Thu, Dec 17, 2009 at 10:14 PM, Praveen Kumar < > praveen.python.plone at gmail.com> wrote: > >> Google employees are being discouraged from using Python for new >> projects< >> http://www.reddit.com/r/Python/comments/a2qxs/bad_news_google_employees_are_being_discouraged/ >> > >> >> >> http://www.reddit.com/r/Python/comments/a2qxs/bad_news_google_employees_are_being_discouraged/ >> > > I read through the entire discussion, and this comment caught my > attention. > > " > Yeah, I was thinking about this, and it's interesting to note that > there are very few CPython developers who are paid to work on CPython. > They're all volunteers. As such, performance really isn't a priority > the way it is for the JVM. The Ruby folks are getting funding (from > EngineYard and others) to work on their VMs because people have > realized that MRI is too darn slow to serve web applications and they > want to fix it. " > > Well, the supposedly biggest "friend" of open source is > supposedly using Python in a large scale for all its developer APIs > and the creator of Python works there, so I don't get why > Google cannot take the leadership and fund a few CPython > core developers to get it up to speed, if that is what they > really want. Instead of that they are creating confusion by > starting on projects like Unladen Swallow, criticizing CPython > and finally this rumor - it clearly doesn't help Python language > in any way, though it could be helping Google. > > In this vein, Microsoft is far better than Google since they > actually funded and executed an entire project like IronPython, > recruiting Jim Hugunin and giving him a rather free hand. > Why is it that Google is not able to contribute in a similar > way to the Python ecosystem and the language even with > the creator himself being part of the company ? > > I don't think Google is good for Python language at all. They > could be the biggest promoter of the language or they could > be finally end up diminishing its adoption, by giving out all > this entirely different messages which doesn't seem to add > up. > Clearly, there are already people who reflect similar thoughts... >From down the thread. """ > Yeah, I was thinking about this, and it's interesting to note that > there are very few CPython developers who are paid to work on CPython. > They're all volunteers. As such, performance really isn't a priority > the way it is for the JVM. The Ruby folks are getting funding (from > EngineYard and others) to work on their VMs because people have > realized that MRI is too darn slow to serve web applications and they > want to fix it. This comes as kind of a surprise, knowing that GvR is working for Google, and obviously you U-S guys are getting funded. Wouldn't it be only too logical that Google throws a couple of FTE at CPython?! T. """ > >> >> >> >> -- >> >> Praveen Kumar >> +91 9620621342 >> http://praveensunsetpoint.wordpress.com >> Bangalore >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > --Anand > > > > -- --Anand From mbaiju at zeomega.com Fri Dec 18 05:50:52 2009 From: mbaiju at zeomega.com (Baiju M) Date: Fri, 18 Dec 2009 10:20:52 +0530 Subject: [BangPypers] Do not know how much truth In-Reply-To: <8548c5f30912172018k3d3d7548m3c2370be6f52bce5@mail.gmail.com> References: <6305ec600912170844g6fb0db70jd137ec56a5f5c0e6@mail.gmail.com> <8548c5f30912172013s3056f8cbv1a2eb587a2134535@mail.gmail.com> <8548c5f30912172018k3d3d7548m3c2370be6f52bce5@mail.gmail.com> Message-ID: PyPy looks like a promising project for performance. http://codespeak.net/pypy/dist/pypy/doc/ Regards, Baiju M From hiddenharmony at gmail.com Fri Dec 18 09:11:42 2009 From: hiddenharmony at gmail.com (Vivek Khurana) Date: Fri, 18 Dec 2009 13:41:42 +0530 Subject: [BangPypers] Do not know how much truth In-Reply-To: <8548c5f30912172013s3056f8cbv1a2eb587a2134535@mail.gmail.com> References: <6305ec600912170844g6fb0db70jd137ec56a5f5c0e6@mail.gmail.com> <8548c5f30912172013s3056f8cbv1a2eb587a2134535@mail.gmail.com> Message-ID: <91bea30d0912180011j4b6caedfkebf6a37077715d6@mail.gmail.com> On Fri, Dec 18, 2009 at 9:43 AM, Anand Balachandran Pillai wrote: > On Thu, Dec 17, 2009 at 10:14 PM, Praveen Kumar < > praveen.python.plone at gmail.com> wrote: > > > Well, the supposedly biggest "friend" of open source is > supposedly using Python in a large scale for all its developer APIs > and the creator of Python works there, so I don't get why > Google cannot take the leadership and fund a few CPython > core developers to get it up to speed, if that is what they > really want. Instead of that they are creating confusion by > starting on projects like Unladen Swallow, criticizing CPython > and finally this rumor - it clearly doesn't help Python language > in any way, though it could be helping Google. > It is not a surprise to me. When you have whole planet looking at an application, it will make sense to develop a sclable application from start. The problem with python is that it was designed for simplicity and not scalability or speed. Speed or scalability without some workround is way too difficult. Most speed or scalability optimizations result in breaking compatibility with CPython based modules. So there is a tradefoff either speed or simplicity. Google project Unladen Swallow aims to tilt the tradeoff towards speed :) regards Vivek -- The hidden harmony is better than the obvious!! From hiddenharmony at gmail.com Fri Dec 18 09:12:48 2009 From: hiddenharmony at gmail.com (Vivek Khurana) Date: Fri, 18 Dec 2009 13:42:48 +0530 Subject: [BangPypers] Do not know how much truth In-Reply-To: References: <6305ec600912170844g6fb0db70jd137ec56a5f5c0e6@mail.gmail.com> <8548c5f30912172013s3056f8cbv1a2eb587a2134535@mail.gmail.com> <8548c5f30912172018k3d3d7548m3c2370be6f52bce5@mail.gmail.com> Message-ID: <91bea30d0912180012q72b513dds9dd16c18daf61dc0@mail.gmail.com> On Fri, Dec 18, 2009 at 10:20 AM, Baiju M wrote: > PyPy looks like a promising project for performance. > http://codespeak.net/pypy/dist/pypy/doc/ I am tracking progress of pypy for some time and looks like they will be able to achieve this in a decades time :) regards Vivek -- The hidden harmony is better than the obvious!! From lawgon at au-kbc.org Fri Dec 18 09:18:55 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 18 Dec 2009 13:48:55 +0530 Subject: [BangPypers] Do not know how much truth In-Reply-To: <91bea30d0912180011j4b6caedfkebf6a37077715d6@mail.gmail.com> References: <6305ec600912170844g6fb0db70jd137ec56a5f5c0e6@mail.gmail.com> <8548c5f30912172013s3056f8cbv1a2eb587a2134535@mail.gmail.com> <91bea30d0912180011j4b6caedfkebf6a37077715d6@mail.gmail.com> Message-ID: <200912181348.56116.lawgon@au-kbc.org> On Friday 18 Dec 2009 1:41:42 pm Vivek Khurana wrote: > It is not a surprise to me > it is a huge surprise to me - I now have to change my whole strategy for marketing python. But it is ok - anyway I have to slang goog who is the closest competitor for OSM. OSM is sensible enough to use python for many of it's apps. -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From hiddenharmony at gmail.com Fri Dec 18 09:29:28 2009 From: hiddenharmony at gmail.com (Vivek Khurana) Date: Fri, 18 Dec 2009 13:59:28 +0530 Subject: [BangPypers] Do not know how much truth In-Reply-To: <200912181348.56116.lawgon@au-kbc.org> References: <6305ec600912170844g6fb0db70jd137ec56a5f5c0e6@mail.gmail.com> <8548c5f30912172013s3056f8cbv1a2eb587a2134535@mail.gmail.com> <91bea30d0912180011j4b6caedfkebf6a37077715d6@mail.gmail.com> <200912181348.56116.lawgon@au-kbc.org> Message-ID: <91bea30d0912180029x244c6778w856d9b04c8c3f64a@mail.gmail.com> On Fri, Dec 18, 2009 at 1:48 PM, Kenneth Gonsalves wrote: > On Friday 18 Dec 2009 1:41:42 pm Vivek Khurana wrote: >> ?It is not a surprise to me >> > > it is a huge surprise to me - I now have to change my whole strategy for > marketing python. But it is ok - anyway I have to slang goog who is the > closest competitor for OSM. OSM is sensible enough to use python for many of > it's apps. Need of strategy might not be required... unless you plan to make an application which whole country is going to access 24x7. I have python app handling 5K concurrent users over 8 servers... so python do scales ut not as much as C/C++/java/Scala/lisp. Given the scale at which google operates, this was expected some day :) regards Vivek -- The hidden harmony is better than the obvious!! From lawgon at au-kbc.org Fri Dec 18 09:32:11 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 18 Dec 2009 14:02:11 +0530 Subject: [BangPypers] Do not know how much truth In-Reply-To: <91bea30d0912180029x244c6778w856d9b04c8c3f64a@mail.gmail.com> References: <6305ec600912170844g6fb0db70jd137ec56a5f5c0e6@mail.gmail.com> <200912181348.56116.lawgon@au-kbc.org> <91bea30d0912180029x244c6778w856d9b04c8c3f64a@mail.gmail.com> Message-ID: <200912181402.11697.lawgon@au-kbc.org> On Friday 18 Dec 2009 1:59:28 pm Vivek Khurana wrote: > > it is a huge surprise to me - I now have to change my whole strategy for > > marketing python. But it is ok - anyway I have to slang goog who is the > > closest competitor for OSM. OSM is sensible enough to use python for many > > of it's apps. > > Need of strategy might not be required... unless you plan to make an > application which whole country is going to access 24x7. > how did you guess my plans? -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From ramdaz at gmail.com Fri Dec 18 11:24:27 2009 From: ramdaz at gmail.com (Ramdas S) Date: Fri, 18 Dec 2009 15:54:27 +0530 Subject: [BangPypers] Do not know how much truth In-Reply-To: <200912181402.11697.lawgon@au-kbc.org> References: <6305ec600912170844g6fb0db70jd137ec56a5f5c0e6@mail.gmail.com> <200912181348.56116.lawgon@au-kbc.org> <91bea30d0912180029x244c6778w856d9b04c8c3f64a@mail.gmail.com> <200912181402.11697.lawgon@au-kbc.org> Message-ID: <6e38f9f00912180224r2202712fy346a73e5d2905c4a@mail.gmail.com> I was following this thread earlier. I dont think Google has made any statement NOT to use Python anymore. All it's said that developers are advised to choose tools that's in line with demand of projects. Yes the thread does point of deficiencies of Python, and we all know these are issues and still have been writing code in this language. All dynamic languages have to some extent performance issues, we need to live these in search of simplicty... how did you guess my plans? > -- > regards > Kenneth Gonsalves > Senior Project Officer > NRC-FOSS > http://nrcfosshelpline.in/web/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Ramdas S +91 9342 583 065 From hiddenharmony at gmail.com Fri Dec 18 14:16:16 2009 From: hiddenharmony at gmail.com (Vivek Khurana) Date: Fri, 18 Dec 2009 18:46:16 +0530 Subject: [BangPypers] Do not know how much truth In-Reply-To: <200912181402.11697.lawgon@au-kbc.org> References: <6305ec600912170844g6fb0db70jd137ec56a5f5c0e6@mail.gmail.com> <200912181348.56116.lawgon@au-kbc.org> <91bea30d0912180029x244c6778w856d9b04c8c3f64a@mail.gmail.com> <200912181402.11697.lawgon@au-kbc.org> Message-ID: <91bea30d0912180516l26038d89ic39a46f9f695d003@mail.gmail.com> On Fri, Dec 18, 2009 at 2:02 PM, Kenneth Gonsalves wrote: > On Friday 18 Dec 2009 1:59:28 pm Vivek Khurana wrote: >> > it is a huge surprise to me - I now have to change my whole strategy for >> > marketing python. But it is ok - anyway I have to slang goog who is the >> > closest competitor for OSM. OSM is sensible enough to use python for many >> > of it's apps. >> >> ?Need of strategy might not be required... unless you plan to make an >> application which whole country is going to access 24x7. >> > > how did you guess my plans? For your plan you can try replicating data over several nodes across country and serve the request from the nearest node :) regards Vivek -- The hidden harmony is better than the obvious!! From digamma at gmail.com Sat Dec 19 15:07:33 2009 From: digamma at gmail.com (karthik) Date: Sat, 19 Dec 2009 19:37:33 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: <9963e56e0912162140u2d6346d9k762c47d3e1cdc0f8@mail.gmail.com> References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <9963e56e0912140144l6bcf8da1s6ffd0ebf52e6023b@mail.gmail.com> <49977f270912140741t1a8d5ac1oc45a1a72659c2c1a@mail.gmail.com> <12470af00912152157g3a855b6fr53de0d3c71579f9@mail.gmail.com> <9963e56e0912152328s51cbe311rece89c65e8d0bc19@mail.gmail.com> <12470af00912161333s28a0f24ctbc369e60800ab973@mail.gmail.com> <9963e56e0912162115l3aa3a269v3e37822e8ea37630@mail.gmail.com> <9963e56e0912162140u2d6346d9k762c47d3e1cdc0f8@mail.gmail.com> Message-ID: On Thu, Dec 17, 2009 at 11:10 AM, Noufal Ibrahim wrote: > So, 20th is is then? ThoughtWorks? 1600? Is this finalized? With best regards, Karthik From noufal at gmail.com Sat Dec 19 15:16:44 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 19 Dec 2009 19:46:44 +0530 Subject: [BangPypers] December user group meeting In-Reply-To: References: <9963e56e0912110145x36a1b13fm652a3ec40d90bd3b@mail.gmail.com> <49977f270912140741t1a8d5ac1oc45a1a72659c2c1a@mail.gmail.com> <12470af00912152157g3a855b6fr53de0d3c71579f9@mail.gmail.com> <9963e56e0912152328s51cbe311rece89c65e8d0bc19@mail.gmail.com> <12470af00912161333s28a0f24ctbc369e60800ab973@mail.gmail.com> <9963e56e0912162115l3aa3a269v3e37822e8ea37630@mail.gmail.com> <9963e56e0912162140u2d6346d9k762c47d3e1cdc0f8@mail.gmail.com> Message-ID: <9963e56e0912190616n4d2dbd0btaad1ae455869e264@mail.gmail.com> On Sat, Dec 19, 2009 at 7:37 PM, karthik wrote: > On Thu, Dec 17, 2009 at 11:10 AM, Noufal Ibrahim wrote: > > > So, 20th is is then? ThoughtWorks? 1600? > Yes. Date : December 20 Time : 1600 hours Venue : ThoughtWorks, Diamond District, Airport Road. Agenda : Coding sprint focussing on some ZFS related apps. See you all there! -- ~noufal http://nibrahim.net.in From abhaya.agarwal at gmail.com Sat Dec 19 18:15:35 2009 From: abhaya.agarwal at gmail.com (Abhaya Agarwal) Date: Sat, 19 Dec 2009 22:45:35 +0530 Subject: [BangPypers] Meet on Sunday Message-ID: <50fed7500912190915n58b08c6esfb6001b98d6e57d2@mail.gmail.com> Hi Guys, Is there going to be a meet on Sunday - 20th? If yes, what's the time and place? Regards, Abhaya -- ------------------------------------------------- blog: http://abhaga.blogspot.com Twitter: http://twitter.com/abhaga ------------------------------------------------- From mbaiju at zeomega.com Sat Dec 19 18:28:50 2009 From: mbaiju at zeomega.com (Baiju M) Date: Sat, 19 Dec 2009 22:58:50 +0530 Subject: [BangPypers] Meet on Sunday In-Reply-To: <50fed7500912190915n58b08c6esfb6001b98d6e57d2@mail.gmail.com> References: <50fed7500912190915n58b08c6esfb6001b98d6e57d2@mail.gmail.com> Message-ID: On Sat, Dec 19, 2009 at 10:45 PM, Abhaya Agarwal wrote: > Hi Guys, > > Is there going to be a meet on Sunday - 20th? If yes, what's the time and > place? Yes. Date : December 20 Time : 1600 hours Venue : ThoughtWorks, Diamond District, Airport Road. Agenda : Coding sprint focussing on some ZFS related apps. (Copy pasted from Noufal's earlier reply) -- Baiju M From noufal at gmail.com Sun Dec 20 16:51:04 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 20 Dec 2009 21:21:04 +0530 Subject: [BangPypers] Meet on Sunday In-Reply-To: References: <50fed7500912190915n58b08c6esfb6001b98d6e57d2@mail.gmail.com> Message-ID: <9963e56e0912200751t4a7d329ai424d0c4ac2721430@mail.gmail.com> On Sat, Dec 19, 2009 at 10:58 PM, Baiju M wrote: > On Sat, Dec 19, 2009 at 10:45 PM, Abhaya Agarwal > wrote: > > Hi Guys, > > > > Is there going to be a meet on Sunday - 20th? If yes, what's the time and > > place? > > Yes. > Date : December 20 > Time : 1600 hours > Venue : ThoughtWorks, Diamond District, Airport Road. > Agenda : Coding sprint focussing on some ZFS related apps. > Sorry I couldn't make it for this. Been down with one of those annoying viral diseases. How did it go? -- ~noufal http://nibrahim.net.in From ardsrk at gmail.com Sun Dec 20 19:01:11 2009 From: ardsrk at gmail.com (Arvind Jamuna Dixit) Date: Sun, 20 Dec 2009 23:31:11 +0530 Subject: [BangPypers] Meet on Sunday In-Reply-To: <9963e56e0912200751t4a7d329ai424d0c4ac2721430@mail.gmail.com> References: <50fed7500912190915n58b08c6esfb6001b98d6e57d2@mail.gmail.com> <9963e56e0912200751t4a7d329ai424d0c4ac2721430@mail.gmail.com> Message-ID: <3d62196a0912201001j5e695278u645ef7292ab9e42a@mail.gmail.com> Noufal, The meet went well. Four guys attended the meet: Sriram, Karthik, Kunal, Abhaya and myself. First, Sriram gave a demo of the cool features of ZFS ( snapshots, clones, replacing devices when online, creating files and drives and such stuff). Then we discussed on how to go about making ZFS available to python programs. Karthik summarised the ways of writing extension modules for Python: It was decided that we would write python bindings to libzfs C library. Sriram has prepared some notes regarding this and would post it to the mailing list soon. On Sun, Dec 20, 2009 at 9:21 PM, Noufal Ibrahim wrote: > On Sat, Dec 19, 2009 at 10:58 PM, Baiju M wrote: > > > On Sat, Dec 19, 2009 at 10:45 PM, Abhaya Agarwal > > wrote: > > > Hi Guys, > > > > > > Is there going to be a meet on Sunday - 20th? If yes, what's the time > and > > > place? > > > > Yes. > > Date : December 20 > > Time : 1600 hours > > Venue : ThoughtWorks, Diamond District, Airport Road. > > Agenda : Coding sprint focussing on some ZFS related apps. > > > > Sorry I couldn't make it for this. Been down with one of those annoying > viral diseases. How did it go? > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Arvind From noufal at gmail.com Mon Dec 21 06:15:54 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 21 Dec 2009 10:45:54 +0530 Subject: [BangPypers] Meet on Sunday In-Reply-To: <3d62196a0912201001j5e695278u645ef7292ab9e42a@mail.gmail.com> References: <50fed7500912190915n58b08c6esfb6001b98d6e57d2@mail.gmail.com> <9963e56e0912200751t4a7d329ai424d0c4ac2721430@mail.gmail.com> <3d62196a0912201001j5e695278u645ef7292ab9e42a@mail.gmail.com> Message-ID: <9963e56e0912202115v4c0f5f51x8b58869314be7586@mail.gmail.com> On Sun, Dec 20, 2009 at 11:31 PM, Arvind Jamuna Dixit wrote: > Noufal, > > The meet went well. > > Four guys attended the meet: > > Sriram, Karthik, Kunal, Abhaya and myself. > > First, Sriram gave a demo of the cool features of ZFS ( snapshots, clones, > replacing devices when online, creating files and drives and such stuff). > > Then we discussed on how to go about making ZFS available to python > programs. > > Karthik summarised the ways of writing extension modules for Python: > > > > It was decided that we would write python bindings to libzfs C library. > > Cool. That'd be an interesting thing to try out. Sorry I couldn't come by. :-/ -- ~noufal http://nibrahim.net.in From mail at manishsinha.net Mon Dec 21 11:29:52 2009 From: mail at manishsinha.net (Manish Sinha) Date: Mon, 21 Dec 2009 15:59:52 +0530 Subject: [BangPypers] Fwd: Python at KCG College of Technology, Chennai In-Reply-To: <45ec909c0912131108n5f4f6237lb93c8510bceefcc6@mail.gmail.com> References: <45ec909c0912131028v1f6ff211pb47c0e3f50a5563c@mail.gmail.com> <45ec909c0912131108n5f4f6237lb93c8510bceefcc6@mail.gmail.com> Message-ID: Sorry for such a late reply. The college from which I graduated in 2009 has a LUG which organizes activities related to FOSS. In Jan '09 when I was in college, we all organized Python Workshop. Announcement: http://www.lugmanipal.org/2009/01/25/python-workshop/ Slides: http://www.lugmanipal.org/2009/02/21/python-workshop-slides/ I hope another Python workshop is queued in January. P.S: Yuvi, I know Manipal is quite far from Chennai (geographically) -- Manish Sinha http://manishtech.wordpress.com | http://blog.manishsinha.net/ From ramdaz at gmail.com Tue Dec 22 08:55:17 2009 From: ramdaz at gmail.com (Ramdas S) Date: Tue, 22 Dec 2009 13:25:17 +0530 Subject: [BangPypers] Python performance Message-ID: <6e38f9f00912212355k279ffa8dyfc5fad82e0a9f944@mail.gmail.com> Dear all, I saw this doc and a few other docs online. http://wiki.python.org/moin/PythonSpeed/PerformanceTips Are there any recommendations on how I can improve performances in case of I/O. I have a program that opens between 4 to 7 text files in memory to analyze data. It runs beautifully on some 100 odd lines of Python code, but its quite slow, sometimes taking a few more seconds than desired. Is there any generic tips out there? -- Ramdas S +91 9342 583 065 From venkat83 at gmail.com Tue Dec 22 08:58:52 2009 From: venkat83 at gmail.com (Venkatraman S) Date: Tue, 22 Dec 2009 13:28:52 +0530 Subject: [BangPypers] Python performance In-Reply-To: <6e38f9f00912212355k279ffa8dyfc5fad82e0a9f944@mail.gmail.com> References: <6e38f9f00912212355k279ffa8dyfc5fad82e0a9f944@mail.gmail.com> Message-ID: On Tue, Dec 22, 2009 at 1:25 PM, Ramdas S wrote: > > Are there any recommendations on how I can improve performances in case of > I/O. I have a program that opens between 4 to 7 text files in memory to > analyze data. It runs beautifully on some 100 odd lines of Python code, but > its quite slow, sometimes taking a few more seconds than desired. > # Number of Lines of code dont matter # If you are using some regexes - then check/optimize it. # It also depends on how you are reading the files - are you reading everything in one go? # Basically, perf improvement cant be done unless some person me$$e$ around with the env or scans through the code. -V- http://twitter.com/venkasub From noufal at gmail.com Tue Dec 22 09:11:35 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 22 Dec 2009 13:41:35 +0530 Subject: [BangPypers] Python performance In-Reply-To: <6e38f9f00912212355k279ffa8dyfc5fad82e0a9f944@mail.gmail.com> References: <6e38f9f00912212355k279ffa8dyfc5fad82e0a9f944@mail.gmail.com> Message-ID: <9963e56e0912220011j2e1da75eleefa3afb5fb453e5@mail.gmail.com> On Tue, Dec 22, 2009 at 1:25 PM, Ramdas S wrote: > Dear all, > > I saw this doc and a few other docs online. > > http://wiki.python.org/moin/PythonSpeed/PerformanceTips > > > Are there any recommendations on how I can improve performances in case of > I/O. I have a program that opens between 4 to 7 text files in memory to > analyze data. It runs beautifully on some 100 odd lines of Python code, but > its quite slow, sometimes taking a few more seconds than desired. > > Is there any generic tips out there? > You can get some performance out of manually reviewing the code. If it's a first draft, there will probably be chances for improvement (caching, removing recomputation etc.). I haven't really tried/measured it but you can use the -O option to the interpreter to optimise the generated bytecode a little. If you're running on a 32 bit machine, it might make sense to use the psyco JIT http://psyco.sourceforge.net/. I don't think it's maintained though (Armin Rego has to moved to PyPy) and I don't know how much it will help you with I/O bound apps. Finally, use a profiler http://docs.python.org/library/profile.html to find out where the hotspots are in your code and squeeze them a little. If you find a place which is really killing performance, it might make sense to sacrifice some portability and move it to C or something low level. -- ~noufal http://nibrahim.net.in From orsenthil at gmail.com Tue Dec 22 09:28:06 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Tue, 22 Dec 2009 13:58:06 +0530 Subject: [BangPypers] Python performance In-Reply-To: <6e38f9f00912212355k279ffa8dyfc5fad82e0a9f944@mail.gmail.com> References: <6e38f9f00912212355k279ffa8dyfc5fad82e0a9f944@mail.gmail.com> Message-ID: <20091222082806.GA4121@ubuntu.ubuntu-domain> On Tue, Dec 22, 2009 at 01:25:17PM +0530, Ramdas S wrote: > I saw this doc and a few other docs online. > > http://wiki.python.org/moin/PythonSpeed/PerformanceTips Just follow this. This one seems good. > I/O. I have a program that opens between 4 to 7 text files in memory to Have you done multithreading? If yes, thinking of implementing the file read operations in separate threads and this should improve the performance as number of threads increase. -- Senthil Whoever dies with the most toys wins. From venkat83 at gmail.com Tue Dec 22 09:31:47 2009 From: venkat83 at gmail.com (Venkatraman S) Date: Tue, 22 Dec 2009 14:01:47 +0530 Subject: [BangPypers] Python performance In-Reply-To: <20091222082806.GA4121@ubuntu.ubuntu-domain> References: <6e38f9f00912212355k279ffa8dyfc5fad82e0a9f944@mail.gmail.com> <20091222082806.GA4121@ubuntu.ubuntu-domain> Message-ID: On Tue, Dec 22, 2009 at 1:58 PM, Senthil Kumaran wrote: > > Have you done multithreading? If yes, thinking of implementing > the file read operations in separate threads and this should improve > the performance as number of threads increase. > > Are you sure about this? As in, multithreading *in* python does help? Never tried it. Sounds interesting. From santhosh.edukulla at gmail.com Tue Dec 22 09:48:14 2009 From: santhosh.edukulla at gmail.com (Santhosh Edukulla) Date: Tue, 22 Dec 2009 14:18:14 +0530 Subject: [BangPypers] MysqlDB ; delete and select issue Message-ID: <922ac6700912220048v153d1694med54feb5e0ae7a19@mail.gmail.com> Hi Team, Can somebody please comment on the query posted at the below link? http://stackoverflow.com/questions/1922623/mysqldb-python-module See the last post to the thread from me for more information. Any help is highly appreciated. Thanks in Advance! Santhosh From ramdaz at gmail.com Tue Dec 22 09:59:13 2009 From: ramdaz at gmail.com (Ramdas S) Date: Tue, 22 Dec 2009 14:29:13 +0530 Subject: [BangPypers] Python performance In-Reply-To: References: <6e38f9f00912212355k279ffa8dyfc5fad82e0a9f944@mail.gmail.com> <20091222082806.GA4121@ubuntu.ubuntu-domain> Message-ID: <6e38f9f00912220059k641d16adkf968ff393f8109af@mail.gmail.com> On Tue, Dec 22, 2009 at 2:01 PM, Venkatraman S wrote: > On Tue, Dec 22, 2009 at 1:58 PM, Senthil Kumaran >wrote: > > > > > Have you done multithreading? If yes, thinking of implementing > > the file read operations in separate threads and this should improve > > the performance as number of threads increase. > > > > > Are you sure about this? As in, multithreading *in* python does help? > Never tried it. Sounds interesting. > I haven't never tried multi-threading. Its never worked for me. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Ramdas S +91 9342 583 065 From noufal at gmail.com Tue Dec 22 10:15:15 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 22 Dec 2009 14:45:15 +0530 Subject: [BangPypers] Python performance In-Reply-To: References: <6e38f9f00912212355k279ffa8dyfc5fad82e0a9f944@mail.gmail.com> <20091222082806.GA4121@ubuntu.ubuntu-domain> Message-ID: <9963e56e0912220115x361fcee9v1eb1d3b69484b5cf@mail.gmail.com> On Tue, Dec 22, 2009 at 2:01 PM, Venkatraman S wrote: > [..] > Are you sure about this? As in, multithreading *in* python does help? > For I/O bound operations, it does help. -- ~noufal http://nibrahim.net.in From orsenthil at gmail.com Tue Dec 22 10:31:20 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Tue, 22 Dec 2009 15:01:20 +0530 Subject: [BangPypers] Python performance In-Reply-To: References: <6e38f9f00912212355k279ffa8dyfc5fad82e0a9f944@mail.gmail.com> <20091222082806.GA4121@ubuntu.ubuntu-domain> Message-ID: <20091222093120.GB4121@ubuntu.ubuntu-domain> On Tue, Dec 22, 2009 at 02:01:47PM +0530, Venkatraman S wrote: > Are you sure about this? As in, multithreading *in* python does help? Yes, very much. It is a prevalent misunderstanding that multi-threading in python does not help at all. For IO operations like reading a file, listening and reading from a socket, multi threading is pretty fine. -- Senthil From vsapre80 at gmail.com Tue Dec 22 14:40:26 2009 From: vsapre80 at gmail.com (Vishal) Date: Tue, 22 Dec 2009 19:10:26 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference Message-ID: Hi, I was presuming that since tuples are immutable, like strings, and string immutability increases performance ( http://effbot.org/pyfaq/why-are-python-strings-immutable.htm) so also, using tuple would improve performance over Lists. is this presumption correct? if it is, then as a practice, If I know the contents of my sequence at the time of initialization and the fact that the sequence is not going to change at runtime, would it be always good to use tuples instead of lists. Any views on this one? Thanks and best regards, Vishal Sapre From sidharth.kuruvila at gmail.com Tue Dec 22 16:13:07 2009 From: sidharth.kuruvila at gmail.com (Sidharth Kuruvila) Date: Tue, 22 Dec 2009 20:43:07 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: References: Message-ID: <2ab2ed550912220713l355bf7a3r9dc15c748156a654@mail.gmail.com> Hi, I don't think you should see and difference in performance. Lists might take a bit more space since they usually preallocate memory for future inserts. I'd go for lists where ever i need to use an array or a list, and tuples for storing records. Regards, Sidharth On Tue, Dec 22, 2009 at 7:10 PM, Vishal wrote: > Hi, > > I was presuming that since tuples are immutable, like strings, and string > immutability increases performance ( > http://effbot.org/pyfaq/why-are-python-strings-immutable.htm) > so also, using tuple would improve performance over Lists. > > is this presumption correct? > > if it is, then as a practice, If I know the contents of my sequence at the > time of initialization and the fact that the sequence is not going to change > at runtime, would it be always good to use tuples instead of lists. > > Any views on this one? > > Thanks and best regards, > Vishal Sapre > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- I am but a man. From noufal at gmail.com Tue Dec 22 16:42:52 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 22 Dec 2009 21:12:52 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: References: Message-ID: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> On Tue, Dec 22, 2009 at 7:10 PM, Vishal wrote: > Hi, > > I was presuming that since tuples are immutable, like strings, and string > immutability increases performance ( > http://effbot.org/pyfaq/why-are-python-strings-immutable.htm) > so also, using tuple would improve performance over Lists. > > is this presumption correct? > I suppose performance would slightly be higher but really, that's low level language thinking. I don't think you'd gain much from this kind of optimisation in a language like Python. > > if it is, then as a practice, If I know the contents of my sequence at the > time of initialization and the fact that the sequence is not going to > change > at runtime, would it be always good to use tuples instead of lists. > > Any views on this one? > Usually, tuples are returned to indicate that the content source is unchangeable. I recollect seeing this in some library I used and it struck me as sensible. Also, if you want a hashable list (eg. for a dictionary key). There are reasons to use them but performance (YMMV) is not one of them. -- ~noufal http://nibrahim.net.in From rmathews at gmail.com Tue Dec 22 17:22:43 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Tue, 22 Dec 2009 21:52:43 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: References: Message-ID: <1c4dc2780912220822i7b2588e4r28f3b1272dc57c74@mail.gmail.com> On Tue, Dec 22, 2009 at 7:10 PM, Vishal wrote: > I was presuming that since tuples are immutable, like strings, and string > immutability increases performance ( > http://effbot.org/pyfaq/why-are-python-strings-immutable.htm) > so also, using tuple would improve performance over Lists. http://stackoverflow.com/questions/68630/are-tuples-more-efficient-than-lists-in-python http://jtauber.com/blog/2006/04/15/python_tuples_are_not_just_constant_lists/ Tuples are not constant lists -- this is a common misconception. Lists are intended to be homogeneous sequences, while tuples are hetereogeneous data structures. Tauber's point about tuples being structures named by index, seemed correct in light of "namedtuple" in collections (since Python 2.6) Also, as Noufal mentioned, tuples are hashable, so you can use them as keys in a dict. -- Roshan Mathews http://teamtalk.im From noufal at gmail.com Tue Dec 22 17:29:54 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 22 Dec 2009 21:59:54 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <1c4dc2780912220822i7b2588e4r28f3b1272dc57c74@mail.gmail.com> References: <1c4dc2780912220822i7b2588e4r28f3b1272dc57c74@mail.gmail.com> Message-ID: <9963e56e0912220829q7babf0b7sf0cae8bf979ac6c6@mail.gmail.com> On Tue, Dec 22, 2009 at 9:52 PM, Roshan Mathews wrote: > [..] > > http://jtauber.com/blog/2006/04/15/python_tuples_are_not_just_constant_lists/ > Tuples are not constant lists -- this is a common > misconception. Lists are intended to be homogeneous > sequences, while tuples are hetereogeneous data > structures.[..] This is an 'intention' rather than an enforced rule isn't it? It does seem natural though. I don't think i've ever seen a tuple with elements of different types. My thumb rule is if you need an immutable structure (often for a dictionary key), use a tuple. Otherwise, use a list. -- ~noufal http://nibrahim.net.in From yuvipanda at gmail.com Tue Dec 22 17:36:24 2009 From: yuvipanda at gmail.com (Yuvi Panda) Date: Tue, 22 Dec 2009 22:06:24 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <9963e56e0912220829q7babf0b7sf0cae8bf979ac6c6@mail.gmail.com> References: <1c4dc2780912220822i7b2588e4r28f3b1272dc57c74@mail.gmail.com> <9963e56e0912220829q7babf0b7sf0cae8bf979ac6c6@mail.gmail.com> Message-ID: <45ec909c0912220836y5982a242ldff54533c023d952@mail.gmail.com> urlpatterns in django use tuples of different types (string, callable), no? On Tue, Dec 22, 2009 at 9:59 PM, Noufal Ibrahim wrote: > On Tue, Dec 22, 2009 at 9:52 PM, Roshan Mathews > wrote: > > > [..] > > > > > http://jtauber.com/blog/2006/04/15/python_tuples_are_not_just_constant_lists/ > > Tuples are not constant lists -- this is a common > > misconception. Lists are intended to be homogeneous > > sequences, while tuples are hetereogeneous data > > structures.[..] > > > This is an 'intention' rather than an enforced rule isn't it? It does seem > natural though. I don't think i've ever seen a tuple with elements of > different types. > > My thumb rule is if you need an immutable structure (often for a dictionary > key), use a tuple. Otherwise, use a list. > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Yuvi Panda T http://yuvi.in/blog From rmathews at gmail.com Tue Dec 22 19:10:09 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Tue, 22 Dec 2009 23:40:09 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <9963e56e0912220829q7babf0b7sf0cae8bf979ac6c6@mail.gmail.com> References: <1c4dc2780912220822i7b2588e4r28f3b1272dc57c74@mail.gmail.com> <9963e56e0912220829q7babf0b7sf0cae8bf979ac6c6@mail.gmail.com> Message-ID: <1c4dc2780912221010n54a13c6dy449dade2118dfa69@mail.gmail.com> On Tue, Dec 22, 2009 at 9:59 PM, Noufal Ibrahim wrote: > ?This is an 'intention' rather than an enforced rule isn't it? It does seem > natural though. I don't think i've ever seen a tuple with elements of > different types. > I use namedtuple for those, (or just plain classes before I knew of that.) > My thumb rule is if you need an immutable structure (often for a dictionary > key), use a tuple. Otherwise, use a list. > Yeah, that pretty much sums up what I do too. I googled the links just before I posted, because while I thought that tuples were faster (I think I used them once for that reason), I couldn't remember why. -- Roshan Mathews http://teamtalk.im From withblessings at gmail.com Wed Dec 23 05:00:05 2009 From: withblessings at gmail.com (74yrs old) Date: Wed, 23 Dec 2009 09:30:05 +0530 Subject: [BangPypers] Is it possible to run python software in WinxP? Message-ID: <7b87ecb70912222000p34614c40u1ccc7df3cbfd2dc5@mail.gmail.com> Hello Python experts, I have one python program og (113KB) ( on request, I shall forward the same) which run sucessfully in Ubuntu 9.04 and Fedora-11. but failed to run in WinXP even though I have installed python 2.06 and python 3.0 and also GTK 2.0. Since I am newbie to python, I seek your valuable guidance- step by step- how to run the said program in WinXP also. The said program viz "tesseractindic-trainer-gui-0.1.3 tar.gz"(113 KB) is available for download at website viz http://code.google.com/p/tesseractindic/. ( On request, the said program - shall forward the same to you) Sine issue is challenging, trust python experts are in position to solve the problem to run in WinXP successfully also - for which I shall ever thankful to you. With Regards, -sriranga(77yrsold) From pradeep at btbytes.com Wed Dec 23 05:46:19 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Tue, 22 Dec 2009 23:46:19 -0500 Subject: [BangPypers] Is it possible to run python software in WinxP? In-Reply-To: <7b87ecb70912222000p34614c40u1ccc7df3cbfd2dc5@mail.gmail.com> References: <7b87ecb70912222000p34614c40u1ccc7df3cbfd2dc5@mail.gmail.com> Message-ID: <3e3294b70912222046lbadca2bja012dfda1e51667e@mail.gmail.com> On Tue, Dec 22, 2009 at 11:00 PM, 74yrs old wrote: > for download at website viz http://code.google.com/p/tesseractindic/. ( > On > request, the said program - shall forward the same to you) > > You need GTK2+ libraries and PyGTK The first one is available at: http://gtk-win.sourceforge.net/home/index.php/en/Downloads direct link: ( http://downloads.sourceforge.net/gtk-win/gtk2-runtime-2.16.6-2009-12-01-ash.exe?download ) and the second one at: http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.14/ Install the GTK2+ using the given exe installer. The PyGTK tar.gz has to be untarred (unzipped) and inside you will find a setup.py file Run python.exe setup.py install >From the windows command line (Start->Run->cmd) after this you will be able to install tesseractindic package and run the app. +PG From brijithp at gmail.com Wed Dec 23 05:55:40 2009 From: brijithp at gmail.com (BR!j!TH) Date: Wed, 23 Dec 2009 10:25:40 +0530 Subject: [BangPypers] can not connect to Mobile Broadband Message-ID: <99f221550912222055o23a0253s7ce8fefe7099863d@mail.gmail.com> Hi Friends, Does Anyone having problem in connecting BSNL EVDO (USB modem) broadband to Ubuntu 9.10. For me it is not working. I am really disappointed because with out internet I can Install my favorite applications from repository. 9.04 it was working fine. Now I am thinking to switch back to 9.04. Does any one have any solution this problem ? -- "Dream is not what you see in sleep is the thing which does not let you sleep" From pradeep at btbytes.com Wed Dec 23 06:03:48 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Wed, 23 Dec 2009 00:03:48 -0500 Subject: [BangPypers] can not connect to Mobile Broadband In-Reply-To: <99f221550912222055o23a0253s7ce8fefe7099863d@mail.gmail.com> References: <99f221550912222055o23a0253s7ce8fefe7099863d@mail.gmail.com> Message-ID: <3e3294b70912222103r3152d4c7yf99993dec266d264@mail.gmail.com> On Tue, Dec 22, 2009 at 11:55 PM, BR!j!TH wrote: > > > Does any one have any solution this problem ? > > Have you tried configuring it using the "Network Manager" app? You are on the wrong mailing list. And even if someone does attempt to answer, your question does not carry sufficient information to help understand the problem. Try again and on a Linux user group this time. Also, Linux User Group is that way ------> From brijithp at gmail.com Wed Dec 23 06:08:38 2009 From: brijithp at gmail.com (BR!j!TH) Date: Wed, 23 Dec 2009 10:38:38 +0530 Subject: [BangPypers] can not connect to Mobile Broadband In-Reply-To: <3e3294b70912222103r3152d4c7yf99993dec266d264@mail.gmail.com> References: <99f221550912222055o23a0253s7ce8fefe7099863d@mail.gmail.com> <3e3294b70912222103r3152d4c7yf99993dec266d264@mail.gmail.com> Message-ID: <99f221550912222108h1ed051cdu47c2dff43646f746@mail.gmail.com> Sorry 2009/12/23 Pradeep Gowda > On Tue, Dec 22, 2009 at 11:55 PM, BR!j!TH wrote: > > > > > > > Does any one have any solution this problem ? > > > > > Have you tried configuring it using the "Network Manager" app? > > You are on the wrong mailing list. And even if someone does attempt to > answer, your question does not carry sufficient > information to help understand the problem. Try again and on a Linux user > group this time. > > Also, Linux User Group is that way ------> > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- "Dream is not what you see in sleep is the thing which does not let you sleep" From vsapre80 at gmail.com Wed Dec 23 06:45:56 2009 From: vsapre80 at gmail.com (Vishal) Date: Wed, 23 Dec 2009 11:15:56 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> Message-ID: Yeah I agree with you Noufal, that it is low level language thinking. However, when we decided to go to Python, it was because its development speed was wonderful. After having everything in Python now, performance is something people want to look at. Hence these efforts. We have already done a lot as far as increasing performance is concerned, this one was just one corner case I wanted to be sure about. Thanks for all the replies. Vishal Sapre On Tue, Dec 22, 2009 at 9:12 PM, Noufal Ibrahim wrote: > On Tue, Dec 22, 2009 at 7:10 PM, Vishal wrote: > > > Hi, > > > > I was presuming that since tuples are immutable, like strings, and string > > immutability increases performance ( > > http://effbot.org/pyfaq/why-are-python-strings-immutable.htm) > > so also, using tuple would improve performance over Lists. > > > > is this presumption correct? > > > > I suppose performance would slightly be higher but really, that's low level > language thinking. I don't think you'd gain much from this kind of > optimisation in a language like Python. > > > > > > if it is, then as a practice, If I know the contents of my sequence at > the > > time of initialization and the fact that the sequence is not going to > > change > > at runtime, would it be always good to use tuples instead of lists. > > > > Any views on this one? > > > > Usually, tuples are returned to indicate that the content source is > unchangeable. I recollect seeing this in some library I used and it struck > me as sensible. Also, if you want a hashable list (eg. for a dictionary > key). > > There are reasons to use them but performance (YMMV) is not one of them. > > > -- > ~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....." From ankur at thinklabs.in Wed Dec 23 09:50:06 2009 From: ankur at thinklabs.in (Ankur Gupta) Date: Wed, 23 Dec 2009 14:20:06 +0530 Subject: [BangPypers] Is it possible to run python software in WinxP? In-Reply-To: <7b87ecb70912222000p34614c40u1ccc7df3cbfd2dc5@mail.gmail.com> References: <7b87ecb70912222000p34614c40u1ccc7df3cbfd2dc5@mail.gmail.com> Message-ID: Hi, At our company we use py2exe to deply our apps on windows. We use NSIS for creating installer. Google to know more :) Ankur On Wed, Dec 23, 2009 at 9:30 AM, 74yrs old wrote: > Hello Python experts, > > I have one python program og (113KB) ( on request, I shall forward the > same) > which run sucessfully in Ubuntu 9.04 and Fedora-11. but failed to run in > WinXP even though I have installed python 2.06 and python 3.0 > and also GTK 2.0. Since I am newbie to python, I seek your valuable > guidance- step by step- how to run the said program in WinXP also. The > said program viz "tesseractindic-trainer-gui-0.1.3 tar.gz"(113 KB) is > available > for download at website viz http://code.google.com/p/tesseractindic/. ( > On > request, the said program - shall forward the same to you) > > Sine issue is challenging, trust python experts are in position to solve > the > problem to run in WinXP successfully also - for which I shall ever thankful > to you. > > With Regards, > -sriranga(77yrsold) > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From orsenthil at gmail.com Wed Dec 23 16:33:20 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Wed, 23 Dec 2009 21:03:20 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> Message-ID: <20091223153319.GA4089@ubuntu.ubuntu-domain> On Wed, Dec 23, 2009 at 11:15:56AM +0530, Vishal wrote: > After having everything in Python now, performance is something people want > to look at. Hence these efforts. Would you like to explain a bit more on this? Most often with Python when I have found people speaking about performance and speed, it has been associated either with incorrect expectations or some kind of design mistakes which most of us do when we are beginning. Your question on tuples vs lists is very corner case with respect to performance. It should hardly matter for most programs. If it did matter to you, I would like to know. Also, when I mentioned about expectations, it is clearly wrong for us to expect the performance of C++ in Python. A good comparison should be Java and I have found interchanging performance differences for applications in Java and Python. -- Senthil ONE LIFE TO LIVE for ALL MY CHILDREN in ANOTHER WORLD all THE DAYS OF OUR LIVES. From ramdaz at gmail.com Wed Dec 23 16:37:15 2009 From: ramdaz at gmail.com (Ramdas S) Date: Wed, 23 Dec 2009 21:07:15 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <20091223153319.GA4089@ubuntu.ubuntu-domain> References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> <20091223153319.GA4089@ubuntu.ubuntu-domain> Message-ID: <6e38f9f00912230737m5043fd5fmb568f6b68596565b@mail.gmail.com> On Wed, Dec 23, 2009 at 9:03 PM, Senthil Kumaran wrote: > On Wed, Dec 23, 2009 at 11:15:56AM +0530, Vishal wrote: > > After having everything in Python now, performance is something people > want > > to look at. Hence these efforts. > > Would you like to explain a bit more on this? Most often with Python > when I have found people speaking about performance and speed, it has > been associated either with incorrect expectations or some kind of > design mistakes which most of us do when we are beginning. > > Your question on tuples vs lists is very corner case with respect to > performance. It should hardly matter for most programs. If it did > matter to you, I would like to know. > > Also, when I mentioned about expectations, it is clearly wrong for us > to expect the performance of C++ in Python. A good comparison should > be Java and I have found interchanging performance differences for > applications in Java and Python. > > > -- > Senthil > ONE LIFE TO LIVE for ALL MY CHILDREN in ANOTHER WORLD all THE DAYS OF OUR > LIVES. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > >From my experience tuples and lists doesn't really matter. You use tuples when you want immutability, you use lists when you wanna do magic with the stuff..... From orsenthil at gmail.com Wed Dec 23 17:11:26 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Wed, 23 Dec 2009 21:41:26 +0530 Subject: [BangPypers] Is it possible to run python software in WinxP? In-Reply-To: <7b87ecb70912222000p34614c40u1ccc7df3cbfd2dc5@mail.gmail.com> References: <7b87ecb70912222000p34614c40u1ccc7df3cbfd2dc5@mail.gmail.com> Message-ID: <20091223161126.GB4089@ubuntu.ubuntu-domain> Hello Mr. Sriranga, On Wed, Dec 23, 2009, 74yrs old wrote: > Hello Python experts, Not really experts here, but learners like you perhaps. :) > guidance- step by step- how to run the said program in WinXP also. The > said program viz "tesseractindic-trainer-gui-0.1.3 tar.gz"(113 KB) is > available > for download at website viz http://code.google.com/p/tesseractindic/. ( On If I understand your requirement correctly, you are trying to install this tesseractindict trainer software on Windows XP. And for that to install you might need the pre-requisite software which is tesseract-ocr. I looked at tesseract-ocr package for Windows Installer Instructions and looks like there is not any. http://code.google.com/p/tesseract-ocr/wiki/ReadMe There are two methods which are available. 1. Download the VC++ 2008 Standard Edition and Open the vcproj file and compile it. (More detailed instructions can be given or be found in the Readme) 2. Or install cygwin (www.cygwin.com) and follow the straight forward 3 step installation instructions (./configure; make; sudo make install) on cygwin shell. Installing cygwin would be an exercise in itself and you might find an online tutorial or video tutorial too. After you have installed the tesseract-ocr, you may download the .tar.gz file of tesseractindic trainer. If you followed Step 1. above,then you would only need Python 2.6 and PyGTK (Windows Installer for both the software are available and follow the straight forward Click Next methods) and you can just click on the Python Trainer file to get the software running for you. http://code.google.com/p/tesseractindic/wiki/TrainerGUI If you followed Cygwin method of installation, you will need to install Python 2.6 and PyGTK in Cygwin. Based on my experiences, I find it troublesome and more buggy. So, I would advice you against Cygwin method, especially if you are a beginner. Okay, coming to the Windows method itself, it seems that tesseract-ocr has source code for Windows, but the Training GUI wrapper and tesseractindic has no indications of Windows, so I am not really sure if it would work in windows at all, and your experiments would be any fruitful, if the end result is what you care about. If it is for learning, it would be great to try it and see the Cygwin way. Also it would be a good idea to ask in the tesseractindic mailling list, or if the AUTHOR Debayin, is in this list, he might jump in. -- Senthil Debian Hint #37: In search for some games? Take a look at 'goplay', which offers a nice Frontend for browsing through all kind of games. From navin.kabra at gmail.com Thu Dec 24 02:04:51 2009 From: navin.kabra at gmail.com (Navin Kabra) Date: Thu, 24 Dec 2009 06:34:51 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <20091223153319.GA4089@ubuntu.ubuntu-domain> References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> <20091223153319.GA4089@ubuntu.ubuntu-domain> Message-ID: On Wed, Dec 23, 2009 at 9:03 PM, Senthil Kumaran wrote: > On Wed, Dec 23, 2009 at 11:15:56AM +0530, Vishal wrote: > > After having everything in Python now, performance is something people > want > > to look at. Hence these efforts. > > Would you like to explain a bit more on this? Most often with Python > when I have found people speaking about performance and speed, it has > been associated either with incorrect expectations or some kind of > design mistakes which most of us do when we are beginning. > Well said. On an average, a program in a dynamic programming language, if it is CPU bound, is likely to be 10 times slower than one in a static language (like C/C++ or Java). But, programming in python is still acceptable because: 1. Most programs in the world are IO bound (i.e. file IO, database IO or network IO) 2. Most programs don't really need the speed. If #1 is your problem (as is likely), you need to look at the structure and organization of your program to ensure more efficiency of the IOs. This has nothing really to do with python, or lists and tuples, and whether a for loop is faster than a list comprehension. > Your question on tuples vs lists is very corner case with respect to > performance. It should hardly matter for most programs. If it did > matter to you, I would like to know. > Agreed. If you find yourself worrying about the performance of lists vs tuples in a python program, in 90% of the cases, I would think that something is significantly wrong with the picture. If this is indeed an important issue to worry about, even I would love to know that use case and discuss it. > Also, when I mentioned about expectations, it is clearly wrong for us > to expect the performance of C++ in Python. A good comparison should > be Java and I have found interchanging performance differences for > applications in Java and Python. > Huh!? I think you phenomenally misunderstand the current state of Java. Performance of Java and C/C++ is likely to be very comparable to each other (even in case of CPU bound programs). By contrast, a dynamic programming language like php/python/ruby is likely to be 10x slower then either of them. See http://blog.dhananjaynene.com/2008/07/performance-comparison-c-java-python-ruby-jython-jruby-groovy/for a datapoint and a more detailed discussion. navin. From orsenthil at gmail.com Thu Dec 24 03:09:26 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Thu, 24 Dec 2009 07:39:26 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> <20091223153319.GA4089@ubuntu.ubuntu-domain> Message-ID: <20091224020926.GA17148@ubuntu.ubuntu-domain> On Thu, Dec 24, 2009 at 06:34:51AM +0530, Navin Kabra wrote: > > to expect the performance of C++ in Python. A good comparison should > > be Java and I have found interchanging performance differences for > > applications in Java and Python. > > > > Huh!? > > I think you phenomenally misunderstand the current state of Java. > I understand that Java has made significant strides in terms of performance improvement over the years. It is a really a good language in terms of design. :) I tried the shootout game to see the performance differences of Java, Cpython and C++ and found pretty interesting behaviors. Here is the link: http://shootout.alioth.debian.org/ There are three Java states given, Java -xint, Java steady state and Java -server. Try choosing each of them and compare against Python and C++. With respect to Python, you will find the alternative differences in with java -xint and java -server and while java steady state will always be faster ( I think, the java steady stage ignores the loading of the virtual machine). But all of them will slower when compared to C++. Yeah, it is right to expect that JVM based will be slower than compiled C++ code. Is it not? I have found many blogs with comparisons, like the one with the Josephus problem implementation, but the shootout game seems to be a good one to use IMO. -- Senthil "The identical is equal to itself, since it is different." -- Franco Spisani From ramdaz at gmail.com Thu Dec 24 06:14:55 2009 From: ramdaz at gmail.com (Ramdas S) Date: Thu, 24 Dec 2009 10:44:55 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> <20091223153319.GA4089@ubuntu.ubuntu-domain> Message-ID: <6e38f9f00912232114u279b6e6ald0e54199ab5bbe93@mail.gmail.com> On Thu, Dec 24, 2009 at 6:34 AM, Navin Kabra wrote: > On Wed, Dec 23, 2009 at 9:03 PM, Senthil Kumaran >wrote: > > > On Wed, Dec 23, 2009 at 11:15:56AM +0530, Vishal wrote: > > > After having everything in Python now, performance is something people > > want > > > to look at. Hence these efforts. > > > > Would you like to explain a bit more on this? Most often with Python > > when I have found people speaking about performance and speed, it has > > been associated either with incorrect expectations or some kind of > > design mistakes which most of us do when we are beginning. > > > > Well said. On an average, a program in a dynamic programming language, if > it > is CPU bound, is likely to be 10 times slower than one in a static language > (like C/C++ or Java). But, programming in python is still acceptable > because: > 1. Most programs in the world are IO bound (i.e. file IO, database IO or > network IO) > 2. Most programs don't really need the speed. > > If #1 is your problem (as is likely), you need to look at the structure and > organization of your program to ensure more efficiency of the IOs. This has > nothing really to do with python, or lists and tuples, and whether a for > loop is faster than a list comprehension. > I didn't quite follow you here, I'm sorry. I was chatting with someone in IRC a week back, and here's his theory. He says in languages such as Python or Perl, almost all I/O, database etc are all optimized in C and hence there should not be much of a difference when it comes to such programs. By that theory anything which's in Python that's written in C such as adding, multiplyiig should work as fast as C. However that's not the case as mentioned here http://wiki.python.org/moin/PythonSpeed/PerformanceTips#PythonisnotC From navin.kabra at gmail.com Thu Dec 24 06:44:32 2009 From: navin.kabra at gmail.com (Navin Kabra) Date: Thu, 24 Dec 2009 11:14:32 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <6e38f9f00912232114u279b6e6ald0e54199ab5bbe93@mail.gmail.com> References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> <20091223153319.GA4089@ubuntu.ubuntu-domain> <6e38f9f00912232114u279b6e6ald0e54199ab5bbe93@mail.gmail.com> Message-ID: On Thu, Dec 24, 2009 at 10:44 AM, Ramdas S wrote: > I didn't quite follow you here, I'm sorry. I was chatting with someone in > IRC a week back, and here's his theory. He says in languages such as Python > or Perl, almost all I/O, database etc are all optimized in C and hence > there > should not be much of a difference when it comes to such programs. > What I means is that if your program is spending most of its time in doing IO (i.e. in waiting for the database to return), then to speed up the program you have to figure out how to reduce the total number of IOs that the program is doing. Reduce the number of queries, or make the queries more efficient, or add memory caching, etc. This is independent of the language used. It's not a Python vs C issue. In most cases, the reason for a program being slow is the IO and performance improvements can be achieved by restructuring the program - not by looking at which language feature is faster than the other navin. From navin.kabra at gmail.com Thu Dec 24 06:49:18 2009 From: navin.kabra at gmail.com (Navin Kabra) Date: Thu, 24 Dec 2009 11:19:18 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <20091224020926.GA17148@ubuntu.ubuntu-domain> References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> <20091223153319.GA4089@ubuntu.ubuntu-domain> <20091224020926.GA17148@ubuntu.ubuntu-domain> Message-ID: On Thu, Dec 24, 2009 at 7:39 AM, Senthil Kumaran wrote: > Here is the link: > http://shootout.alioth.debian.org/ > > There are three Java states given, Java -xint, Java steady state and Java > -server. Try choosing each of them and compare against Python and C++. > With respect to Python, you will find the alternative differences in > with java -xint and java -server and while java steady state will > always be faster ( I think, the java steady stage ignores the loading > of the virtual machine). Actually, steady state is more about ensuring that the JIT compiler has had time to kick in. I think in most cases steady state is the most useful one to compare against. In real life, you're typically concerned about performance in long running programs (i.e. seconds as opposed to milliseconds - otherwise why are you bothered?) and in that case, the JVM would be in steady state for most of the time. > But all of them will slower when compared to > C++. Yeah, it is right to expect that JVM based will be slower than > compiled C++ code. Is it not? > Nope. With JIT compilation, a JVM can actually beat C++ Overall, though, from the shootout page, it looks like Java is comparable to C/C++ in many cases, and a little slower in some cases. Python, on the other hand, is 10x to 30x slower in most cases... So my point still stands navin. From praveen.python.plone at gmail.com Thu Dec 24 08:20:49 2009 From: praveen.python.plone at gmail.com (Praveen Kumar) Date: Thu, 24 Dec 2009 12:50:49 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: References: Message-ID: <6305ec600912232320s5b99c9aobd54c2fc9cec54ba@mail.gmail.com> As far as i also tried to find out the real thing and discussed with my friends too, their performance is exactly the same. *'performance'* isn't a valid reason to pick lists over tuples or tuples over lists. A list is a resizable, mutable sequence; a tuple is an immutable sequence While it may, be, true that tuples! have, a slightly lower, creation time due, to, their immutability. It still. Doesn't impact, regular, usage. BUT Tuples don't inherently have a 'slightly lower creation time'. O(n) is O(n) is O(n)... Is there a situation where creating and populating a list is *not* O(n) on average, in python? lists don't resize on every append tuples are hashable. Lists are not. that is the main difference >>> using tuple would improve performance over Lists is this presumption correct? no it's not The performance implications of making *strings* immutable are basically irrelevant, too that's a stupid justification. the semantic implications are the important ones. Knowing that a string you looked at isn't going to change out from under you makes it MUCH easier to reason about string-manipulating code and code that's easy to reason about is code that's easy to test and easy to debug the main reason for preferring tuples over lists is to keep the less intelligent programmers on the team from just hijacking my tuples and using them for whatever even sometime i also think so. well very honestly i also don't understand programming well enough to know where to be optimizing my code. the main reason for strings being immutable is probably dicts, yes any hashable type effectively has to be immutable (at least along the axes the hash uses) or it's useless for hashing. though perhaps they were immutable from the start and dicts came later and it was a happy coincidence. On Tue, Dec 22, 2009 at 7:10 PM, Vishal wrote: > Hi, > > I was presuming that since tuples are immutable, like strings, and string > immutability increases performance ( > http://effbot.org/pyfaq/why-are-python-strings-immutable.htm) > so also, using tuple would improve performance over Lists. > > is this presumption correct? > > if it is, then as a practice, If I know the contents of my sequence at the > time of initialization and the fact that the sequence is not going to > change > at runtime, would it be always good to use tuples instead of lists. > > Any views on this one? > > Thanks and best regards, > Vishal Sapre > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Praveen Kumar +91 9739854134 http://praveensunsetpoint.wordpress.com Bangalore From vsapre80 at gmail.com Thu Dec 24 08:22:06 2009 From: vsapre80 at gmail.com (Vishal) Date: Thu, 24 Dec 2009 12:52:06 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> <20091223153319.GA4089@ubuntu.ubuntu-domain> <20091224020926.GA17148@ubuntu.ubuntu-domain> Message-ID: well, yeah this is certainly a corner case. Its not the first place that i was looking to improve performance. Our applications are IO bound, and so we have done all that can be done there (by the way the IO is actually over a hardware JTAG chain on a server board which is accessed by USB by the host that runs Python programs) What I was thinking is that as a matter of practice, while writing code, is it good practice to use tuples, whenever we know that the sequence is not going to change at runtime, and only accessing is going to happen. Particularly if this sequence is getting made inside a function, then one would like it be made in the least time possible, as and when the function is called. Thanks for all the replies. Also interesting stuff about the Java comparison. The question remains, why the JVM is so fast and why Python is not as far as JVM? I am sure there must be a ton of info on this over the net :) Best regards, Vishal Sapre On Thu, Dec 24, 2009 at 11:19 AM, Navin Kabra wrote: > On Thu, Dec 24, 2009 at 7:39 AM, Senthil Kumaran >wrote: > > > Here is the link: > > http://shootout.alioth.debian.org/ > > > > There are three Java states given, Java -xint, Java steady state and Java > > -server. Try choosing each of them and compare against Python and C++. > > With respect to Python, you will find the alternative differences in > > with java -xint and java -server and while java steady state will > > always be faster ( I think, the java steady stage ignores the loading > > of the virtual machine). > > > Actually, steady state is more about ensuring that the JIT compiler has had > time to kick in. > > I think in most cases steady state is the most useful one to compare > against. In real life, you're typically concerned about performance in long > running programs (i.e. seconds as opposed to milliseconds - otherwise why > are you bothered?) and in that case, the JVM would be in steady state for > most of the time. > > > > > But all of them will slower when compared to > > C++. Yeah, it is right to expect that JVM based will be slower than > > compiled C++ code. Is it not? > > > > Nope. With JIT compilation, a JVM can actually beat C++ > > Overall, though, from the shootout page, it looks like Java is comparable > to > C/C++ in many cases, and a little slower in some cases. Python, on the > other > hand, is 10x to 30x slower in most cases... So my point still stands > > navin. > _______________________________________________ > 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....." From rmathews at gmail.com Thu Dec 24 08:32:36 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Thu, 24 Dec 2009 13:02:36 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <6305ec600912232320s5b99c9aobd54c2fc9cec54ba@mail.gmail.com> References: <6305ec600912232320s5b99c9aobd54c2fc9cec54ba@mail.gmail.com> Message-ID: <1c4dc2780912232332i2cb36c2cg64dee5729064fd6a@mail.gmail.com> On Thu, Dec 24, 2009 at 12:50 PM, Praveen Kumar wrote: > O(n) is O(n) is O(n)... Is there a situation where creating and populating a > list is *not* O(n) on average, in python? "In theory, theory and practice are the same. In practice, they are not." In other words, constants matter. Also, the link I had posted earlier [1], shows that tuple creation is O(1), (at least when it is populated with literals). [1] http://stackoverflow.com/questions/68630/are-tuples-more-efficient-than-lists-in-python -- Roshan Mathews http://teamtalk.im From vsapre80 at gmail.com Thu Dec 24 08:33:15 2009 From: vsapre80 at gmail.com (Vishal) Date: Thu, 24 Dec 2009 13:03:15 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <6305ec600912232320s5b99c9aobd54c2fc9cec54ba@mail.gmail.com> References: <6305ec600912232320s5b99c9aobd54c2fc9cec54ba@mail.gmail.com> Message-ID: Just to send my 2 cents more: tuple creation vs list creation may be significant depending on what it contains. and O(n) is definitely O(n)...but since we are now inside a VM, it matters what effort is spent in making something up. what do you think of code snippet: >>> def l(): ... l = [1,2,3,4,5,6,7,8,9,10] ... >>> dis.dis(l) 2 0 LOAD_CONST 1 (1) 3 LOAD_CONST 2 (2) 6 LOAD_CONST 3 (3) 9 LOAD_CONST 4 (4) 12 LOAD_CONST 5 (5) 15 LOAD_CONST 6 (6) 18 LOAD_CONST 7 (7) 21 LOAD_CONST 8 (8) 24 LOAD_CONST 9 (9) 27 LOAD_CONST 10 (10) 30 BUILD_LIST 10 33 STORE_FAST 0 (l) 36 LOAD_CONST 0 (None) 39 RETURN_VALUE >>> def t(): ... t = (1,2,3,4,5,6,7,8,9,10) ... >>> dis.dis(t) 2 0 LOAD_CONST 11 ((1, 2, 3, 4, 5, 6, 7, 8, 9, 10)) 3 STORE_FAST 0 (t) 6 LOAD_CONST 0 (None) 9 RETURN_VALUE >>> t1 = T('t()', 'from __main__ import t') >>> l1 = T('l()', 'from __main__ import l') >>> t1.timeit() 0.13926406847804174 >>> l1.timeit() 0.39777234257417149 calling the list function consumes 3 times the duration of calling the tuple function. And I understand the absolute times are negligible in this case...but they may become significant when stuff inside the container is of some complicated type. Would love to know views on this one. Thanks and best regards, Vishal Sapre On Thu, Dec 24, 2009 at 12:50 PM, Praveen Kumar < praveen.python.plone at gmail.com> wrote: > As far as i also tried to find out the real thing and discussed with my > friends too, > their performance is exactly the same. > > *'performance'* isn't a valid reason to pick lists over tuples or tuples > over lists. > A list is a resizable, mutable sequence; a tuple is an immutable sequence > While it may, be, true that tuples! have, a slightly lower, creation time > due, to, their immutability. It still. Doesn't impact, regular, usage. > BUT Tuples don't inherently have a 'slightly lower creation time'. > O(n) is O(n) is O(n)... Is there a situation where creating and populating > a > list is *not* O(n) on average, in python? > lists don't resize on every append > tuples are hashable. Lists are not. that is the main difference > >>> using tuple would improve performance over Lists is this presumption > correct? > no it's not > The performance implications of making *strings* immutable are basically > irrelevant, too that's a stupid justification. > the semantic implications are the important ones. Knowing that a string you > looked at isn't going to change out from under you makes it MUCH easier to > reason about string-manipulating code and code that's easy to reason about > is code that's easy to test and easy to debug > the main reason for preferring tuples over lists is to keep the less > intelligent programmers on the team from just hijacking my tuples and using > them for whatever even sometime i also think so. > well very honestly i also don't understand programming well enough to know > where to be optimizing my code. > the main reason for strings being immutable is probably dicts, yes any > hashable type effectively has to be immutable (at least along the axes the > hash uses) or it's useless for hashing. > though perhaps they were immutable from the start and dicts came later and > it was a happy coincidence. > > > On Tue, Dec 22, 2009 at 7:10 PM, Vishal wrote: > > > Hi, > > > > I was presuming that since tuples are immutable, like strings, and string > > immutability increases performance ( > > http://effbot.org/pyfaq/why-are-python-strings-immutable.htm) > > so also, using tuple would improve performance over Lists. > > > > is this presumption correct? > > > > if it is, then as a practice, If I know the contents of my sequence at > the > > time of initialization and the fact that the sequence is not going to > > change > > at runtime, would it be always good to use tuples instead of lists. > > > > Any views on this one? > > > > Thanks and best regards, > > Vishal Sapre > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Praveen Kumar > +91 9739854134 > http://praveensunsetpoint.wordpress.com > Bangalore > _______________________________________________ > 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....." From noufal at gmail.com Thu Dec 24 08:35:23 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 24 Dec 2009 13:05:23 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> <20091223153319.GA4089@ubuntu.ubuntu-domain> <20091224020926.GA17148@ubuntu.ubuntu-domain> Message-ID: <9963e56e0912232335q5f49ff24wc4d6ddc9960db88b@mail.gmail.com> On Thu, Dec 24, 2009 at 12:52 PM, Vishal wrote: > [..] > > Also interesting stuff about the Java comparison. The question remains, why > the JVM is so fast and why Python is not as far as JVM? I am sure there > must > be a ton of info on this over the net :) > This came up (albeit in a tangential fashion) during the "Google discouraging Python" thread a while ago. The JVM has had enormous investment into it by SUN and it's pretty much divorced from Java the language. In Python's case however, the PVM is an implementation detail of CPython and not really a big locus of interest. Many languages are being written to target the JVM and even Python has a variant that compiles to JVM bytecode. Contrast this to the PVM which has only Python running on it. Also, the PVM is a pretty simple stack based VM as far as I know. It was written to be simple rather than fast. Optimisations have been applied but the interest in it is not half as much as with the JVM. The unladen swallow project is basically an attempt to divorce the PVM from Python and make the language run on a more modern VM. -- ~noufal http://nibrahim.net.in From orsenthil at gmail.com Thu Dec 24 08:35:19 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Thu, 24 Dec 2009 13:05:19 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> <20091223153319.GA4089@ubuntu.ubuntu-domain> <20091224020926.GA17148@ubuntu.ubuntu-domain> Message-ID: <20091224073519.GB4177@ubuntu.ubuntu-domain> On Thu, Dec 24, 2009 at 12:52:06PM +0530, Vishal wrote: > What I was thinking is that as a matter of practice, while writing code, is > it good practice to use tuples, whenever we know that the sequence is not > going to change at runtime, and only accessing is going to happen. This is helpful to know. Thanks! You might want to look at timeit module and certain examples of timeit to write short snippets to try which was better for your purposes. And as one of the response pointed out the StackOverflow link the insertion was faster in tuple. Retrievals were same. The standard library module dis can help you see the low level calls. > > Also interesting stuff about the Java comparison. The question remains, why > the JVM is so fast and why Python is not as far as JVM? I am sure there must > be a ton of info on this over the net :) This is simple to answer *in general*. JVM has a Just in Time compiler which makes optimizations to already compiled code and executes it on top of virtual machine. Python on the other hand is just byte code interpreted. The folks at unladen-swallow, are going to use LLVM another virtual machine with Just In Time compiler support to make Python execution fast too. -- Senthil Lay on, MacDuff, and curs'd be him who first cries, "Hold, enough!". -- Shakespeare From rmathews at gmail.com Thu Dec 24 08:41:48 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Thu, 24 Dec 2009 13:11:48 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: References: <6305ec600912232320s5b99c9aobd54c2fc9cec54ba@mail.gmail.com> Message-ID: <1c4dc2780912232341m1601b7d6pe38edc8801199365@mail.gmail.com> On Thu, Dec 24, 2009 at 1:03 PM, Vishal wrote: > calling the list function consumes 3 times the duration of calling the tuple > function. And I understand the absolute times are negligible in this > case...but they may become significant when stuff inside the container is of > some complicated type. > > Would love to know views on this one. Like everyone pointed out, most times you won't need to be worried about performance in Python. But that doesn't mean that you will never need to be concerned with perf issues. When you do need to get things faster, (assuming you already have optimized your algo), just use psyco [1] -- that should speed things up significantly. If that's still not good enough, then think of tricks (like the tuple vs. list) one, and use a profiler to see what works for you. [1] http://psyco.sf.net/ just say import psyco psyco.full() and go wheeeeee. -- Roshan Mathews http://teamtalk.im From noufal at gmail.com Thu Dec 24 08:59:22 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 24 Dec 2009 13:29:22 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <1c4dc2780912232341m1601b7d6pe38edc8801199365@mail.gmail.com> References: <6305ec600912232320s5b99c9aobd54c2fc9cec54ba@mail.gmail.com> <1c4dc2780912232341m1601b7d6pe38edc8801199365@mail.gmail.com> Message-ID: <9963e56e0912232359v29ddde9sfa7b82d985374ef7@mail.gmail.com> On Thu, Dec 24, 2009 at 1:11 PM, Roshan Mathews wrote: > [..] > When you do need to get things faster, (assuming you already have > optimized your algo), just use psyco [1] -- that should speed things > up significantly. If that's still not good enough, then think of > tricks (like the tuple vs. list) one, and use a profiler to see what > works for you.[..] psyco is 32 bit only and development has pretty much ceased since all the chaps working on it went to PyPy. Also, for some perverse bits of code, it plainly skips compilation. -- ~noufal http://nibrahim.net.in From rmathews at gmail.com Thu Dec 24 09:24:08 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Thu, 24 Dec 2009 13:54:08 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <9963e56e0912232359v29ddde9sfa7b82d985374ef7@mail.gmail.com> References: <6305ec600912232320s5b99c9aobd54c2fc9cec54ba@mail.gmail.com> <1c4dc2780912232341m1601b7d6pe38edc8801199365@mail.gmail.com> <9963e56e0912232359v29ddde9sfa7b82d985374ef7@mail.gmail.com> Message-ID: <1c4dc2780912240024x5d92e724xe87795a66f8049@mail.gmail.com> On Thu, Dec 24, 2009 at 1:29 PM, Noufal Ibrahim wrote: > psyco is 32 bit only and development has pretty much ceased since all the > chaps working on it went to PyPy. > Also, for some perverse bits of code, it plainly skips compilation. > Oh. :( Didn't know that. -- Roshan Mathews http://teamtalk.im From navin.kabra at gmail.com Thu Dec 24 09:36:31 2009 From: navin.kabra at gmail.com (Navin Kabra) Date: Thu, 24 Dec 2009 14:06:31 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <20091224073519.GB4177@ubuntu.ubuntu-domain> References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> <20091223153319.GA4089@ubuntu.ubuntu-domain> <20091224020926.GA17148@ubuntu.ubuntu-domain> <20091224073519.GB4177@ubuntu.ubuntu-domain> Message-ID: On Thu, Dec 24, 2009 at 1:05 PM, Senthil Kumaran wrote: > > Also interesting stuff about the Java comparison. The question remains, > why > > the JVM is so fast and why Python is not as far as JVM? I am sure there > must > > be a ton of info on this over the net :) > > Java is statically typed. Which means that the compiler (and the JIT compiler) has lots of information available to it. Lots of bindings can be done at compile time. Lots of optimizations can be done at compile time. And even more optimizations can be made at runtime. Much of that is just not possible in Python. No amount of compiler improvements and optimizations can change this. navin. From orsenthil at gmail.com Thu Dec 24 09:53:17 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Thu, 24 Dec 2009 14:23:17 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> <20091223153319.GA4089@ubuntu.ubuntu-domain> <20091224020926.GA17148@ubuntu.ubuntu-domain> <20091224073519.GB4177@ubuntu.ubuntu-domain> Message-ID: <20091224085317.GC4177@ubuntu.ubuntu-domain> On Thu, Dec 24, 2009 at 02:06:31PM +0530, Navin Kabra wrote: > Java is statically typed. Which means that the compiler (and the JIT > compiler) has lots of information available to it. Lots of bindings can be > done at compile time. Lots of optimizations can be done at compile time. And Yes, agreed. It is an important difference to note down. -- Senthil The best man for the job is often a woman. From orsenthil at gmail.com Thu Dec 24 10:06:31 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Thu, 24 Dec 2009 14:36:31 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> <20091223153319.GA4089@ubuntu.ubuntu-domain> <20091224020926.GA17148@ubuntu.ubuntu-domain> Message-ID: <20091224090631.GD4177@ubuntu.ubuntu-domain> On Thu, Dec 24, 2009 at 11:19:18AM +0530, Navin Kabra wrote: > > Nope. With JIT compilation, a JVM can actually beat C++ This seems a controversial statement to make. I have seen this come up time and again at various blog posts all trying convince one thing over the other. > Overall, though, from the shootout page, it looks like Java is comparable to > C/C++ in many cases, and a little slower in some cases. Python, on the other > hand, is 10x to 30x slower in most cases... So my point still stands It did it show that Java is 2x slower than C++ most of times while Python 10x slower or more. This was a observation across the tests with some exceptions. When I said about Python vs Java, I was specifically thinking about an Web server designed in a asynchronous, multi-threaded (read Twisted) way, some earlier research made me think that Java performance, with the frills required, would be comparable, but strictly speaking, I do not know, as I did not write the program in Java and Python do the comparison. Programmer's area of expertise helped here more with the choice. :) -- Senthil Old MacDonald had an agricultural real estate tax abatement. From sidharth.kuruvila at gmail.com Thu Dec 24 10:14:39 2009 From: sidharth.kuruvila at gmail.com (Sidharth Kuruvila) Date: Thu, 24 Dec 2009 14:44:39 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> <20091223153319.GA4089@ubuntu.ubuntu-domain> <20091224020926.GA17148@ubuntu.ubuntu-domain> <20091224073519.GB4177@ubuntu.ubuntu-domain> Message-ID: <2ab2ed550912240114l6935c020x67203d11c4efad0b@mail.gmail.com> > even more optimizations can be made at runtime. Much of that is just not > possible in Python. No amount of compiler improvements and optimizations can > change this. Unless someone comes up with a really smart profiling jit. Like, I believe, they're doing with the javascript engines. :-). And given the amount of interest in dynamically typed languages on .net and the jvm this does seem a possiblity. Regards, Sidharth From noufal at gmail.com Thu Dec 24 11:28:53 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 24 Dec 2009 15:58:53 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <1c4dc2780912240024x5d92e724xe87795a66f8049@mail.gmail.com> References: <6305ec600912232320s5b99c9aobd54c2fc9cec54ba@mail.gmail.com> <1c4dc2780912232341m1601b7d6pe38edc8801199365@mail.gmail.com> <9963e56e0912232359v29ddde9sfa7b82d985374ef7@mail.gmail.com> <1c4dc2780912240024x5d92e724xe87795a66f8049@mail.gmail.com> Message-ID: <9963e56e0912240228j1e5eba2dn1f108f0d6c0d9dd8@mail.gmail.com> On Thu, Dec 24, 2009 at 1:54 PM, Roshan Mathews wrote: > On Thu, Dec 24, 2009 at 1:29 PM, Noufal Ibrahim wrote: > > psyco is 32 bit only and development has pretty much ceased since all the > > chaps working on it went to PyPy. > > Also, for some perverse bits of code, it plainly skips compilation. > > > Oh. :( > > Didn't know that. > Armin Rego mentions some of the details during the PyPy presentation at Google Tech. talk (available online). -- ~noufal http://nibrahim.net.in From anandology at gmail.com Thu Dec 24 11:45:17 2009 From: anandology at gmail.com (Anand Chitipothu) Date: Thu, 24 Dec 2009 16:15:17 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <20091224090631.GD4177@ubuntu.ubuntu-domain> References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> <20091223153319.GA4089@ubuntu.ubuntu-domain> <20091224020926.GA17148@ubuntu.ubuntu-domain> <20091224090631.GD4177@ubuntu.ubuntu-domain> Message-ID: <41139fcb0912240245j4706f879k72cb646f00c0140@mail.gmail.com> >> Nope. With JIT compilation, a JVM can actually beat C++ > > This seems a controversial statement to make. I have seen this come up > time and again at various blog posts all trying convince one thing > over the other. Even if the raw CPU speed of Java is slightly less than C++, it is highly possible that the Java version runs faster compared to C++ version if a reasonably complex program if written both in C++ and Java. Java/JVM has some advantages. * Since Java supports garbage collection, objects can be passed across libraries without worrying about who should free it. Many times in C++, unnecessary copies are made at library boundaries. * JVM does memory compaction to avoid memory defragmentation. In C++, you have to live with it. memory fragmentation might also mean more cache misses and more page faults. * It is possible that JVM can move objects around for better cache accessibility. (I'm not sure if JVM does it, but it is certainly possible). Anand From dhananjay.nene at gmail.com Thu Dec 24 11:59:16 2009 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Thu, 24 Dec 2009 16:29:16 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <20091224090631.GD4177@ubuntu.ubuntu-domain> References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> <20091223153319.GA4089@ubuntu.ubuntu-domain> <20091224020926.GA17148@ubuntu.ubuntu-domain> <20091224090631.GD4177@ubuntu.ubuntu-domain> Message-ID: On Thu, Dec 24, 2009 at 2:36 PM, Senthil Kumaran wrote: > On Thu, Dec 24, 2009 at 11:19:18AM +0530, Navin Kabra wrote: > > > > Nope. With JIT compilation, a JVM can actually beat C++ > > This seems a controversial statement to make. I have seen this come up > time and again at various blog posts all trying convince one thing > over the other. > Why would it be controversial if it is actually observed behaviour ? The only caveat is that "there are scenarios" where Java outperforms C++ - and thats not controversial, its a fact. It is helpful to understand that Java outperforms C++ "some times". Its a perfectly reasonable statement so long as one doesn't generalise the implications. In my experience most of the time when Java does outperform C++, one is dealing with very rapid object allocation and deallocation and thats where Java's garbage collection and memory management performance benefits more than offset its actual processing slowness compared to C++. But refining the memory management in C++ code again makes it work much faster than java (though with a higher development cost) > > > Overall, though, from the shootout page, it looks like Java is comparable > to > > C/C++ in many cases, and a little slower in some cases. Python, on the > other > > hand, is 10x to 30x slower in most cases... So my point still stands > > It did it show that Java is 2x slower than C++ most of times while > Python 10x slower or more. This was a observation across the tests > with some exceptions. > > When I said about Python vs Java, I was specifically thinking about an > Web server designed in a asynchronous, multi-threaded (read Twisted) > way, some earlier research made me think that Java performance, with > the frills required, would be comparable, but strictly speaking, I do > not know, as I did not write the program in Java and Python do the > comparison. Programmer's area of expertise helped here more with the > choice. :) > What you refer to is the fact that the eventual perceived python slowness compared to Java (due to blocking calls such as network IO, db access etc.) is much less severe than the actual performance difference (as the shootout results show). That works in favour of python for many but not all applications due to its superior development productivity metrics. Dhananjay > > > -- > Senthil > Old MacDonald had an agricultural real estate tax abatement. > _______________________________________________ > 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 From anandology at gmail.com Thu Dec 24 12:10:38 2009 From: anandology at gmail.com (Anand Chitipothu) Date: Thu, 24 Dec 2009 16:40:38 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <6e38f9f00912232114u279b6e6ald0e54199ab5bbe93@mail.gmail.com> References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> <20091223153319.GA4089@ubuntu.ubuntu-domain> <6e38f9f00912232114u279b6e6ald0e54199ab5bbe93@mail.gmail.com> Message-ID: <41139fcb0912240310o11c6f94elea9d3513a23eb345@mail.gmail.com> > I didn't quite follow you here, I'm sorry. ?I was chatting with someone in > IRC a week back, and here's his theory. He says in languages such as Python > or Perl, almost all I/O, database etc are all optimized in C and hence there > should not be much of a difference when it comes to such programs. > > By that theory anything which's in Python that's written in C such as > adding, multiplyiig should work as fast as C. However that's not the case > as mentioned here > http://wiki.python.org/moin/PythonSpeed/PerformanceTips#PythonisnotC C libraries are fast, python interpreter is not. If you are doing most of your work in a C library then your code will have comparable performance with C code. Thats why libraries like PIL, numpy as pretty fast. When you are doing multiplication in a loop, there is overhead for each python statement executed. A simple python statement "x = y + z" translates to something like this: tmp1 = locals['y'] tmp2 = locals['z'] tmp3 = tmp1 + tmp2 locals['x'] = tmp3 (this is pseudo code, not python) It has to look up y and z in locals dictionary, do the addition and put the result in locals dictionary back as x. The addition operation might be as fast as C, but there is a overhead of 2 dictionary lookups and one dictionary set. Jython compiler can compile Python code into Java. It will be worthwhile experience to experiment with it. Anand From anandology at gmail.com Thu Dec 24 12:22:13 2009 From: anandology at gmail.com (Anand Chitipothu) Date: Thu, 24 Dec 2009 16:52:13 +0530 Subject: [BangPypers] Tuples vs Lists, perfromance difference In-Reply-To: <41139fcb0912240310o11c6f94elea9d3513a23eb345@mail.gmail.com> References: <9963e56e0912220742x44e0f982kb0d6d057e11f21c@mail.gmail.com> <20091223153319.GA4089@ubuntu.ubuntu-domain> <6e38f9f00912232114u279b6e6ald0e54199ab5bbe93@mail.gmail.com> <41139fcb0912240310o11c6f94elea9d3513a23eb345@mail.gmail.com> Message-ID: <41139fcb0912240322r79ba900di86607e84422a18db@mail.gmail.com> On Thu, Dec 24, 2009 at 4:40 PM, Anand Chitipothu wrote: >> I didn't quite follow you here, I'm sorry. ?I was chatting with someone in >> IRC a week back, and here's his theory. He says in languages such as Python >> or Perl, almost all I/O, database etc are all optimized in C and hence there >> should not be much of a difference when it comes to such programs. >> >> By that theory anything which's in Python that's written in C such as >> adding, multiplyiig should work as fast as C. However that's not the case >> as mentioned here >> http://wiki.python.org/moin/PythonSpeed/PerformanceTips#PythonisnotC > > C libraries are fast, python interpreter is not. If you are doing most > of your work in a C library then your code will have comparable > performance with C code. Thats why libraries like PIL, numpy as pretty > fast. > > When you are doing multiplication in a loop, there is overhead for > each python statement executed. > > A simple python statement "x = y + z" translates to something like this: > > ? ?tmp1 = locals['y'] > ? ?tmp2 = locals['z'] > ? ?tmp3 = tmp1 + tmp2 > ? ?locals['x'] = tmp3 > > (this is pseudo code, not python) > > It has to look up y and z in locals dictionary, do the addition and > put the result in locals dictionary back as x. The addition operation > might be as fast as C, but there is a overhead of 2 dictionary lookups > and one dictionary set. > > Jython compiler can compile Python code into Java. It will be > worthwhile experience to experiment with it. Here is more real example. >>> def square(x): y = x*x; return y ... >>> import dis >>> dis.dis(square) 1 0 LOAD_FAST 0 (x) 3 LOAD_FAST 0 (x) 6 BINARY_MULTIPLY 7 STORE_FAST 1 (y) 10 LOAD_FAST 1 (y) 13 RETURN_VALUE As you see the interpreter is pretty stupid. It is loading x twice and unnecessarily storing and loading y. Anand From ideamonk at gmail.com Thu Dec 24 20:49:00 2009 From: ideamonk at gmail.com (Abhishek Mishra) Date: Fri, 25 Dec 2009 01:19:00 +0530 Subject: [BangPypers] Fwd: Python at KCG College of Technology, Chennai In-Reply-To: References: <45ec909c0912131028v1f6ff211pb47c0e3f50a5563c@mail.gmail.com> <45ec909c0912131108n5f4f6237lb93c8510bceefcc6@mail.gmail.com> Message-ID: <64160c70912241149v1881851as42cb31bb7620a299@mail.gmail.com> Nice work Yuvi! I made small efforts by redoing my network lab programs in python along with 3-4 interested people. Its fun to see most of them falling in love with it, and saying things like "ye mast hai, is me to stl ka bhi tension nahi lena parta.." etc Apart from talking about it in the college bus, I have some plans to organize a small workshop on Python this semester. On Mon, Dec 21, 2009 at 3:59 PM, Manish Sinha wrote: > Sorry for such a late reply. > > The college from which I graduated in 2009 has a LUG which organizes > activities related to FOSS. > In Jan '09 when I was in college, we all organized Python Workshop. > > Announcement: http://www.lugmanipal.org/2009/01/25/python-workshop/ > Slides: http://www.lugmanipal.org/2009/02/21/python-workshop-slides/ > > I hope another Python workshop is queued in January. > > P.S: Yuvi, I know Manipal is quite far from Chennai (geographically) > > > -- > Manish Sinha > http://manishtech.wordpress.com | http://blog.manishsinha.net/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From ravi_880 at in.com Mon Dec 28 08:49:53 2009 From: ravi_880 at in.com (ravi chandel) Date: Mon, 28 Dec 2009 13:19:53 +0530 Subject: [BangPypers] =?utf-8?q?Fwd=3A_Python_networking_tutorial?= In-Reply-To: <64160c70912241149v1881851as42cb31bb7620a299@mail.gmail.com> Message-ID: <1261986593.9eac167ec1efbe078138397fabba902e@mail.in.com> hi,I am new to python looking for good network progrmmaing tutorial and projects in python pls help.regards, ravi chandel Original message From:Abhishek Mishra< ideamonk at gmail.com > Date: 25 Dec 09 01:19:00 Subject:Re: [BangPypers] Fwd: Python at KCG College of Technology, Chennai To: Bangalore Python Users Group India From jaganadhg at gmail.com Mon Dec 28 09:00:50 2009 From: jaganadhg at gmail.com (JAGANADH G) Date: Mon, 28 Dec 2009 13:30:50 +0530 Subject: [BangPypers] Fwd: Python networking tutorial In-Reply-To: <1261986593.9eac167ec1efbe078138397fabba902e@mail.in.com> References: <64160c70912241149v1881851as42cb31bb7620a299@mail.gmail.com> <1261986593.9eac167ec1efbe078138397fabba902e@mail.in.com> Message-ID: On Mon, Dec 28, 2009 at 1:19 PM, ravi chandel wrote: > hi,I am new to python looking for good network progrmmaing tutorial and > projects in python pls help.regards, ravi chandel Original message > From:Abhishek Mishra< ideamonk at gmail.com > Date: 25 Dec 09 01:19:00 > Subject:Re: [BangPypers] Fwd: Python at KCG College of Technology, Chennai > To: Bangalore Python Users Group India > Refer the book "Foundations of Python Network Programming" http://www.apress.com/book/view/9781590593714 -- ********************************** JAGANADH G http://jaganadhg.freeflux.net/blog From orsenthil at gmail.com Mon Dec 28 09:24:07 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Mon, 28 Dec 2009 13:54:07 +0530 Subject: [BangPypers] Fwd: Python networking tutorial In-Reply-To: References: <64160c70912241149v1881851as42cb31bb7620a299@mail.gmail.com> <1261986593.9eac167ec1efbe078138397fabba902e@mail.in.com> Message-ID: <20091228082407.GA4326@ubuntu.ubuntu-domain> > On Mon, Dec 28, 2009 at 1:19 PM, ravi chandel wrote: > > hi,I am new to python looking for good network progrmmaing tutorial and I would suggest you to read Socket Programming HOWTO and then head over to http://heather.cs.ucdavis.edu/~matloff/Python/PyNet.pdf -- Senthil "Necessity is the mother of invention" is a silly proverb. "Necessity is the mother of futile dodges" is much nearer the truth. -- Alfred North Whitehead From praveen.python.plone at gmail.com Mon Dec 28 10:56:33 2009 From: praveen.python.plone at gmail.com (Praveen Kumar) Date: Mon, 28 Dec 2009 15:26:33 +0530 Subject: [BangPypers] Wa.o nice SHPAML Message-ID: <6305ec600912280156i70ba51c7q91cc13b9412d613@mail.gmail.com> SHPAML is a mini language that can help us build web pages more quickly. It runs under Python versions 2.4, 2.5, 2.6, and 3.1. SHPAML is a HAML-like language for Python. If we are not familiar with HAML, it is a markup language implemented in Ruby that allows us to create web pages with an indentation-based syntax. SHPAML is not an exact port of HAML, but it shares the same big goal of slimming our markup, and it is written in Python! It is a simple, lightweight preprocessor and intended to be used in many authoring schemes, whether you are producing HTML directly or integrating with a templating system http://shpaml.webfactional.com/examples -- Praveen Kumar +91 9620621342 http://praveensunsetpoint.wordpress.com Bangalore From vsapre80 at gmail.com Tue Dec 29 07:00:10 2009 From: vsapre80 at gmail.com (Vishal) Date: Tue, 29 Dec 2009 11:30:10 +0530 Subject: [BangPypers] Wa.o nice SHPAML In-Reply-To: <6305ec600912280156i70ba51c7q91cc13b9412d613@mail.gmail.com> References: <6305ec600912280156i70ba51c7q91cc13b9412d613@mail.gmail.com> Message-ID: Dear Praveen, Thanks for SHPAML :) SHPAML looks good :) I see that SHPAML uses indentation to specify structure almost like YAML (though it also does some more stuff like Inline stuff) Did you consider converting a YAML document to HTML? Would it be possible to do that? I did not find any python module on the net for this. (if there's something available, please send the link across) Just wondering, 'cause then we dont have to learn yet another way of putting in structured text. Thanks and best regards, Vishal Sapre On Mon, Dec 28, 2009 at 3:26 PM, Praveen Kumar < praveen.python.plone at gmail.com> wrote: > SHPAML is a mini language > that can help us build web pages more quickly. It runs under Python > versions 2.4, 2.5, 2.6, and 3.1. > > SHPAML is a HAML-like language for Python. If we are not familiar with > HAML, it is a markup language implemented in Ruby that allows us to create > web pages with an indentation-based syntax. SHPAML is not an exact port of > HAML, but it shares the same big goal of slimming our markup, and it is > written in Python! It is a simple, lightweight preprocessor and intended > to > be used in many authoring schemes, whether you are producing HTML directly > or integrating with a templating system > > > http://shpaml.webfactional.com/examples > > > -- > Praveen Kumar > +91 9620621342 > http://praveensunsetpoint.wordpress.com > Bangalore > _______________________________________________ > 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....." From orsenthil at gmail.com Tue Dec 29 11:16:05 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Tue, 29 Dec 2009 15:46:05 +0530 Subject: [BangPypers] Wa.o nice SHPAML In-Reply-To: References: <6305ec600912280156i70ba51c7q91cc13b9412d613@mail.gmail.com> Message-ID: <20091229101605.GA8385@ubuntu.ubuntu-domain> On Tue, Dec 29, 2009 at 11:30:10AM +0530, Vishal wrote: > Dear Praveen, > Thanks for SHPAML :) > SHPAML looks good :) Hello Praveen, This was the reason I had requested you to QUOTE or Mark it as Forward when you are forwarding the emails from python-announce list. :) -- Senthil Menu, n.: A list of dishes which the restaurant has just run out of. From harishladhani at gmail.com Tue Dec 29 11:44:19 2009 From: harishladhani at gmail.com (harish ladhani) Date: Tue, 29 Dec 2009 16:14:19 +0530 Subject: [BangPypers] SHPAML in Ubuntu Message-ID: HI.... I have Ubuntu(9.10) installed. I want to use shpaml. So, I search shpaml to use on ubuntu but didn't get any good link. Can anyone know how to install it on Ubuntu. Also Ubuntu doesn't have SHPAML in its package repository. Thanks -- Harish Ladhani TY IT COEP From orsenthil at gmail.com Tue Dec 29 13:07:49 2009 From: orsenthil at gmail.com (Senthil Kumaran) Date: Tue, 29 Dec 2009 17:37:49 +0530 Subject: [BangPypers] SHPAML in Ubuntu In-Reply-To: References: Message-ID: <20091229120749.GB8385@ubuntu.ubuntu-domain> On Tue, Dec 29, 2009 at 04:14:19PM +0530, harish ladhani wrote: > I have Ubuntu(9.10) installed. I want to use shpaml. > Can anyone know how to install it on Ubuntu. > Also Ubuntu doesn't have SHPAML in its package repository. SHPAML seems popular in bangpypers. :) Its seems it is just a .py file. Download it from here: http://shpaml.webfactional.com/source_code -- Senthil BOFH excuse #235: The new frame relay network hasn't bedded down the software loop transmitter yet. From anand.shashwat at gmail.com Tue Dec 29 13:19:17 2009 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Tue, 29 Dec 2009 17:49:17 +0530 Subject: [BangPypers] Retrieving images from PDFs Message-ID: How can we retrieve images from PDFs. I need both images and the text beneath the image to form a database. I was able to parse text via PDFMiner but was crippled when it leads to images. From noufal at gmail.com Tue Dec 29 13:23:08 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 29 Dec 2009 17:53:08 +0530 Subject: [BangPypers] Retrieving images from PDFs In-Reply-To: References: Message-ID: <9963e56e0912290423o96afe72xd74abdb449a413da@mail.gmail.com> On Tue, Dec 29, 2009 at 5:49 PM, Shashwat Anand wrote: > How can we retrieve images from PDFs. I need both images and the text > beneath the image to form a database. I was able to parse text via PDFMiner > but was crippled when it leads to images. Searching my apt cache for python pdf shows a lot of libraries some of which claim to be able to manage the entire contents of the PDF file in question. I have also come across some tool to break a PDF down into HTML + image files (don't remember it's name anymore) which was free software so I'm sure it's doable. -- ~noufal http://nibrahim.net.in From srinivas_thatiparthy at akebonosoft.com Tue Dec 29 13:21:57 2009 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 29 Dec 2009 17:51:57 +0530 Subject: [BangPypers] Retrieving images from PDFs In-Reply-To: Message-ID: <4EF2BF691B890546B2694C99A2852F0C01CDC1D8@astserver3.akebonosoft.com> Though I never tried it, Reportlab has a pdf library (If I am not wrong). Have you tried it?? When the limestone of imperative programming is worn away, the granite of functional programming will be observed. ---Simon Peyton Jones. -----Original Message----- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org [mailto:bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.o rg] On Behalf Of Shashwat Anand Sent: Tuesday, December 29, 2009 5:49 PM To: Bangalore Python Users Group - India Subject: [BangPypers] Retrieving images from PDFs How can we retrieve images from PDFs. I need both images and the text beneath the image to form a database. I was able to parse text via PDFMiner but was crippled when it leads to images. _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From abhilash.pin2 at gmail.com Tue Dec 29 15:22:28 2009 From: abhilash.pin2 at gmail.com (=?UTF-8?B?4oSiYcOfbOC5gM6vbM6xc2zguYAg4pa6?=) Date: Tue, 29 Dec 2009 19:52:28 +0530 Subject: [BangPypers] Execute Windows "shutdown" command through python ! Message-ID: Hi, I want to execute windows system command "shutdown" through python, os.system( ). I can do it in a 32 bit Windows, But not in 64 bit Windows where as I do have admin rights to run the "shutdown " command and which is working in windows command prompt. python ver. 2.5 Exp. *import os os.system("shutdown /?")* *its saying "shutdown is not an internal or external command or executable batch file"* Thanks, Abhilash From pradeep at btbytes.com Tue Dec 29 15:54:22 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Tue, 29 Dec 2009 09:54:22 -0500 Subject: [BangPypers] Execute Windows "shutdown" command through python ! In-Reply-To: References: Message-ID: <3e3294b70912290654u65741ac8h4319f8f3cef7d766@mail.gmail.com> On Tue, Dec 29, 2009 at 9:22 AM, ?a?l??l?sl? ? wrote: > *import os > os.system("shutdown /?")* > > *its saying "shutdown is not an internal or external command or executable > batch file"* Is shutdown a valid command in the new OS? Atleast it looks like that from the error message. Try running `shutdown` from the command line and see whether you get the same error. From abhilash.pin2 at gmail.com Tue Dec 29 18:58:46 2009 From: abhilash.pin2 at gmail.com (=?UTF-8?B?4oSiYcOfbOC5gM6vbM6xc2zguYAg4pa6?=) Date: Tue, 29 Dec 2009 23:28:46 +0530 Subject: [BangPypers] Execute Windows "shutdown" command through python ! In-Reply-To: <3e3294b70912290654u65741ac8h4319f8f3cef7d766@mail.gmail.com> References: <3e3294b70912290654u65741ac8h4319f8f3cef7d766@mail.gmail.com> Message-ID: Hi, Yes 'shutdown' command is working absolutely fine from the command line at Windows 64 bit, but I have find something interesting is that : import os os.system("cmd") After running above code at python, then from that command window, I try to run the 'shutdown ' command, and its giving the error . I tried to search the "shutdown.exe" file at C:\WINDOWS\system32 from the same command window, and it can't locate it, where as I can find it by windows command line. On Tue, Dec 29, 2009 at 8:24 PM, Pradeep Gowda wrote: > On Tue, Dec 29, 2009 at 9:22 AM, ?a?l??l?sl? ? > wrote: > > > *import os > > os.system("shutdown /?")* > > > > *its saying "shutdown is not an internal or external command or > executable > > batch file"* > > Is shutdown a valid command in the new OS? > Atleast it looks like that from the error message. > > Try running `shutdown` from the command line and see whether you get > the same error. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ?a?l??l?sl? ? From pradeep at btbytes.com Tue Dec 29 19:07:25 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Tue, 29 Dec 2009 13:07:25 -0500 Subject: [BangPypers] Execute Windows "shutdown" command through python ! In-Reply-To: References: <3e3294b70912290654u65741ac8h4319f8f3cef7d766@mail.gmail.com> Message-ID: <3e3294b70912291007s6ed9a082i4f39560b3470b6e5@mail.gmail.com> On Tue, Dec 29, 2009 at 12:58 PM, ?a?l??l?sl? ? wrote: > Hi, > ? ? Yes 'shutdown' command is working absolutely fine from the command line > at Windows 64 bit, > but I have find something interesting is that : > > > import os > os.system("cmd") > > After running above code at python, then from that command window, I try to > run the 'shutdown ' command, > and its giving the error . I tried to search the "shutdown.exe" file at > C:\WINDOWS\system32 from the same > command window, and it can't locate it, where as I can find it by windows > command line. > > > > > On Tue, Dec 29, 2009 at 8:24 PM, Pradeep Gowda wrote: > >> On Tue, Dec 29, 2009 at 9:22 AM, ?a?l??l?sl? ? >> wrote: >> >> > *import os >> > os.system("shutdown /?")* >> > >> > *its saying "shutdown is not an internal or external command or >> executable >> > batch file"* >> >> Is shutdown a valid command in the new OS? >> Atleast it looks like that from the error message. >> >> Try running `shutdown` from the command line and see whether you get >> the same error. try with the full path assuming shutdown.exe is in c:\windows\system32 os.system("c:\\windows\\system32\\shutdown.exe") might work. Or is it c:\windows\system64 ?? I do not have a windows PC to verify this. My hunch is that python's sys.path does not include the windows system directories. +PG From yuvipanda at gmail.com Tue Dec 29 19:15:36 2009 From: yuvipanda at gmail.com (Yuvi Panda) Date: Tue, 29 Dec 2009 23:45:36 +0530 Subject: [BangPypers] Execute Windows "shutdown" command through python ! In-Reply-To: <3e3294b70912291007s6ed9a082i4f39560b3470b6e5@mail.gmail.com> References: <3e3294b70912290654u65741ac8h4319f8f3cef7d766@mail.gmail.com> <3e3294b70912291007s6ed9a082i4f39560b3470b6e5@mail.gmail.com> Message-ID: <45ec909c0912291015v531cdffldf98057924152aa7@mail.gmail.com> os.system(r"shutdown.exe /s") works here, am on a Win7 machine. sys.path doesn't have anything to do with os.system, it is used only when searching for modules to load. On Tue, Dec 29, 2009 at 11:37 PM, Pradeep Gowda wrote: > On Tue, Dec 29, 2009 at 12:58 PM, ?a?l??l?sl? ? > wrote: > > Hi, > > Yes 'shutdown' command is working absolutely fine from the command > line > > at Windows 64 bit, > > but I have find something interesting is that : > > > > > > import os > > os.system("cmd") > > > > After running above code at python, then from that command window, I try > to > > run the 'shutdown ' command, > > and its giving the error . I tried to search the "shutdown.exe" file at > > C:\WINDOWS\system32 from the same > > command window, and it can't locate it, where as I can find it by windows > > command line. > > > > > > > > > > On Tue, Dec 29, 2009 at 8:24 PM, Pradeep Gowda > wrote: > > > >> On Tue, Dec 29, 2009 at 9:22 AM, ?a?l??l?sl? ? > > >> wrote: > >> > >> > *import os > >> > os.system("shutdown /?")* > >> > > >> > *its saying "shutdown is not an internal or external command or > >> executable > >> > batch file"* > >> > >> Is shutdown a valid command in the new OS? > >> Atleast it looks like that from the error message. > >> > >> Try running `shutdown` from the command line and see whether you get > >> the same error. > > try with the full path > assuming shutdown.exe is in c:\windows\system32 > > os.system("c:\\windows\\system32\\shutdown.exe") > > might work. > > Or is it c:\windows\system64 ?? > I do not have a windows PC to verify this. > > My hunch is that python's sys.path does not include the windows system > directories. > > +PG > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Yuvi Panda T http://yuvi.in/blog From abhilash.pin2 at gmail.com Tue Dec 29 19:23:13 2009 From: abhilash.pin2 at gmail.com (=?UTF-8?B?4oSiYcOfbOC5gM6vbM6xc2zguYAg4pa6?=) Date: Tue, 29 Dec 2009 23:53:13 +0530 Subject: [BangPypers] Execute Windows "shutdown" command through python ! In-Reply-To: <3e3294b70912291007s6ed9a082i4f39560b3470b6e5@mail.gmail.com> References: <3e3294b70912290654u65741ac8h4319f8f3cef7d766@mail.gmail.com> <3e3294b70912291007s6ed9a082i4f39560b3470b6e5@mail.gmail.com> Message-ID: Ya... I tried the full path and all... its not working... where as I can able to execute the other commands like 'ping' , 'md' but not 'shutdown' On Tue, Dec 29, 2009 at 11:37 PM, Pradeep Gowda wrote: > On Tue, Dec 29, 2009 at 12:58 PM, ?a?l??l?sl? ? > wrote: > > Hi, > > Yes 'shutdown' command is working absolutely fine from the command > line > > at Windows 64 bit, > > but I have find something interesting is that : > > > > > > import os > > os.system("cmd") > > > > After running above code at python, then from that command window, I try > to > > run the 'shutdown ' command, > > and its giving the error . I tried to search the "shutdown.exe" file at > > C:\WINDOWS\system32 from the same > > command window, and it can't locate it, where as I can find it by windows > > command line. > > > > > > > > > > On Tue, Dec 29, 2009 at 8:24 PM, Pradeep Gowda > wrote: > > > >> On Tue, Dec 29, 2009 at 9:22 AM, ?a?l??l?sl? ? > > >> wrote: > >> > >> > *import os > >> > os.system("shutdown /?")* > >> > > >> > *its saying "shutdown is not an internal or external command or > >> executable > >> > batch file"* > >> > >> Is shutdown a valid command in the new OS? > >> Atleast it looks like that from the error message. > >> > >> Try running `shutdown` from the command line and see whether you get > >> the same error. > > try with the full path > assuming shutdown.exe is in c:\windows\system32 > > os.system("c:\\windows\\system32\\shutdown.exe") > > might work. > > Or is it c:\windows\system64 ?? > I do not have a windows PC to verify this. > > My hunch is that python's sys.path does not include the windows system > directories. > > +PG > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ?a?l??l?sl? ? From yuvipanda at gmail.com Tue Dec 29 19:32:26 2009 From: yuvipanda at gmail.com (Yuvi Panda) Date: Wed, 30 Dec 2009 00:02:26 +0530 Subject: [BangPypers] Execute Windows "shutdown" command through python ! In-Reply-To: References: <3e3294b70912290654u65741ac8h4319f8f3cef7d766@mail.gmail.com> <3e3294b70912291007s6ed9a082i4f39560b3470b6e5@mail.gmail.com> Message-ID: <45ec909c0912291032y485d6570l1f0ba550669d7ee7@mail.gmail.com> Okay, the problem seems to be the fact that you're calling shutdown.exe from a 32 bit process (I presume you're using the more popular 32 bit version of python, rather than the native 64 bit one). Under 64bit windows, any call to a system32/* executable from a 32-bit process is silently redirected to syswow64\*, which contains 32 bit versions of (almost) all the executables. So when you call system32\shutdown.exe from your python process, Windows tries to call syswow64\shutdown.exe. Problem is, there is *no* 32bit version of shutdown available (syswow64\shutdown.exe doesn't exist), so your call ends up failing. tl;dr version - You can't call shutdown.exe on a 64 bit machine from 32 bit python Solutions: 1. Use the native 64 bit version of python 2. http://blogs.sepago.de/nicholas/2008/03/13/jailed-32-bit-processes-on-windows-x64/ On Tue, Dec 29, 2009 at 11:53 PM, ?a?l??l?sl? ? wrote: > Ya... I tried the full path and all... its not working... > where as I can able to execute the other commands like 'ping' , > 'md' but not 'shutdown' > > > > On Tue, Dec 29, 2009 at 11:37 PM, Pradeep Gowda > wrote: > > > On Tue, Dec 29, 2009 at 12:58 PM, ?a?l??l?sl? ? > > > wrote: > > > Hi, > > > Yes 'shutdown' command is working absolutely fine from the command > > line > > > at Windows 64 bit, > > > but I have find something interesting is that : > > > > > > > > > import os > > > os.system("cmd") > > > > > > After running above code at python, then from that command window, I > try > > to > > > run the 'shutdown ' command, > > > and its giving the error . I tried to search the "shutdown.exe" file at > > > C:\WINDOWS\system32 from the same > > > command window, and it can't locate it, where as I can find it by > windows > > > command line. > > > > > > > > > > > > > > > On Tue, Dec 29, 2009 at 8:24 PM, Pradeep Gowda > > wrote: > > > > > >> On Tue, Dec 29, 2009 at 9:22 AM, ?a?l??l?sl? ? < > abhilash.pin2 at gmail.com > > > > > >> wrote: > > >> > > >> > *import os > > >> > os.system("shutdown /?")* > > >> > > > >> > *its saying "shutdown is not an internal or external command or > > >> executable > > >> > batch file"* > > >> > > >> Is shutdown a valid command in the new OS? > > >> Atleast it looks like that from the error message. > > >> > > >> Try running `shutdown` from the command line and see whether you get > > >> the same error. > > > > try with the full path > > assuming shutdown.exe is in c:\windows\system32 > > > > os.system("c:\\windows\\system32\\shutdown.exe") > > > > might work. > > > > Or is it c:\windows\system64 ?? > > I do not have a windows PC to verify this. > > > > My hunch is that python's sys.path does not include the windows system > > directories. > > > > +PG > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > ?a?l??l?sl? ? > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Yuvi Panda T http://yuvi.in/blog From noufal at gmail.com Tue Dec 29 19:42:00 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 30 Dec 2009 00:12:00 +0530 Subject: [BangPypers] Execute Windows "shutdown" command through python ! In-Reply-To: <45ec909c0912291032y485d6570l1f0ba550669d7ee7@mail.gmail.com> References: <3e3294b70912290654u65741ac8h4319f8f3cef7d766@mail.gmail.com> <3e3294b70912291007s6ed9a082i4f39560b3470b6e5@mail.gmail.com> <45ec909c0912291032y485d6570l1f0ba550669d7ee7@mail.gmail.com> Message-ID: <9963e56e0912291042ld7740d5n19880900279cc669@mail.gmail.com> Wouldn't it make more sense for you to use the exposed windows API using the Python win32 module rather than calling an external program via os.popen? I googled a little and found http://msdn.microsoft.com/en-us/library/aa376868(VS.85).aspx which should be callable. I also found http://mail.python.org/pipermail/python-win32/2008-December/008474.htmlwhich mentions that setting the appropriate privileges is a pain and recommends using another module which is linked to. -- ~noufal http://nibrahim.net.in From abpillai at gmail.com Wed Dec 30 08:02:44 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 30 Dec 2009 12:32:44 +0530 Subject: [BangPypers] Retrieving images from PDFs In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01CDC1D8@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01CDC1D8@astserver3.akebonosoft.com> Message-ID: <8548c5f30912292302x2107765aud689487f3bc555af@mail.gmail.com> On Tue, Dec 29, 2009 at 5:51 PM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > Though I never tried it, Reportlab has a pdf library (If I am not > wrong). > Have you tried it?? > > > When the limestone of imperative programming is worn away, the granite > of functional programming will be observed. ---Simon Peyton Jones. > > > -----Original Message----- > From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org > [mailto:bangpypers-bounces+srinivas_thatiparthy > =akebonosoft.com at python.o > rg] On Behalf Of Shashwat Anand > Sent: Tuesday, December 29, 2009 5:49 PM > To: Bangalore Python Users Group - India > Subject: [BangPypers] Retrieving images from PDFs > > How can we retrieve images from PDFs. I need both images and the text > beneath the image to form a database. I was able to parse text via > PDFMiner but was crippled when it leads to images. > Use pyPdf. I have worked a bit on PDF structure using pyPdf and written a library on top of it for PDF accessibility so I can help you to do this. If you want help contact me off list. > _______________________________________________ > 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 From abhaya.agarwal at gmail.com Wed Dec 30 08:04:18 2009 From: abhaya.agarwal at gmail.com (Abhaya Agarwal) Date: Wed, 30 Dec 2009 12:34:18 +0530 Subject: [BangPypers] BangPypers Digest, Vol 28, Issue 47 In-Reply-To: References: Message-ID: <50fed7500912292304n4035b386nabf56da0779a69f0@mail.gmail.com> > > Date: Tue, 29 Dec 2009 17:51:57 +0530 > From: "Srinivas Reddy Thatiparthy" > > To: "Bangalore Python Users Group - India" > Subject: Re: [BangPypers] Retrieving images from PDFs > Message-ID: > < > 4EF2BF691B890546B2694C99A2852F0C01CDC1D8 at astserver3.akebonosoft.com> > Content-Type: text/plain; charset="US-ASCII" > > Though I never tried it, Reportlab has a pdf library (If I am not > wrong). > Have you tried it?? > Unfortunately, the pdf import functionality of Reportlab is not free. It is called Page Catcher and is part of their paid suit AFAIK. Abhaya