From bugcy013 at gmail.com Tue Jan 3 14:53:57 2012 From: bugcy013 at gmail.com (Ganesh Kumar) Date: Tue, 3 Jan 2012 19:23:57 +0530 Subject: [BangPypers] Parse multi line with re module. Message-ID: Hi Guys, I want parse multiple line. with re.module, this is my given string http://dpaste.com/680760/ I have try with re.compile module. I want parse two line mac address and channel, I have done with for mac address finding r = re.compile("^Searching for OPUSH on (\w\w(:\w\w)+)") for channel finding device_r = re.compile("^Channel: (\d+)") the two parsing string working. but I want combine two pattern in to one. This is my code http://www.bpaste.net/show/21323/ please guide me. -Ganesh Did I learn something today? If not, I wasted it. From prataprc at gmail.com Tue Jan 3 15:33:23 2012 From: prataprc at gmail.com (Pratap Chakravarthy) Date: Tue, 3 Jan 2012 20:03:23 +0530 Subject: [BangPypers] Parse multi line with re module. In-Reply-To: References: Message-ID: Hi Ganesh, may be you can try this out, > re.findall(r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n]*)', str ) [(' 00:1D:FD:06:99:99 ', ''), ('', ' 9')] where str contains the string you want to parse. And the regex contains two groups, defined between (...), suggesting findall() to search for them. You can learn more about findall() here http://docs.python.org/library/re.html#finding-all-adverbs Cheers, On Tue, Jan 3, 2012 at 7:23 PM, Ganesh Kumar wrote: > Hi Guys, > > I want parse multiple line. with re.module, this is my given string > http://dpaste.com/680760/ I have try with re.compile module. I want parse > two line mac address and channel, > I have done with for mac address finding > > r = re.compile("^Searching for OPUSH on (\w\w(:\w\w)+)") > > for channel finding > > device_r = re.compile("^Channel: (\d+)") > > the two parsing string working. but I want combine two pattern in to one. > > This is my code > http://www.bpaste.net/show/21323/ > > please guide me. > > > -Ganesh > > Did I learn something today? If not, I wasted it. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers -- Pratap. From gora at mimirtech.com Tue Jan 3 15:33:53 2012 From: gora at mimirtech.com (Gora Mohanty) Date: Tue, 3 Jan 2012 20:03:53 +0530 Subject: [BangPypers] Parse multi line with re module. In-Reply-To: References: Message-ID: On Tue, Jan 3, 2012 at 7:23 PM, Ganesh Kumar wrote: > Hi Guys, > > I want parse multiple line. with re.module, this is my given string > http://dpaste.com/680760/ I have try with re.compile module. I want parse > two line mac address and channel, > I have done with for mac address finding > > r = re.compile("^Searching for OPUSH on (\w\w(:\w\w)+)") > > for channel finding > > device_r = re.compile("^Channel: (\d+)") > > the two parsing string working. but I want combine two pattern in to one. [...] There are several issues here: * Your regex for a MAC address is not quite right. From what I remember, a MAC address is six groups of two hexadecimal digits, separated by ':' or '-'. Thus, you need something like ([0-9a-fA-F]{2}[:-]){5}([0-9a-fA-F]{2}) * This might depend on the Python version, but at least from 2.6.5 onwards, one can specify re.DOTALL as a regex compilation flag that makes '.' match any character, including a newline. Thus, following your example: r = re.compile( '.*([0-9a-fA-F]{2}[:-]){5}([0-9a-fA-F]{2}).*Channel: (\d+).*', re.DOTALL ) s = ''' Inquiring ... Searching for OPUSH on 00:1D:FD:06:99:99 ... Service Name: OBEX Object Push Service RecHandle: 0x10135 Service Class ID List: "OBEX Object Push" (0x1105) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 9 "OBEX" (0x0008) Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "OBEX Object Push" (0x1105) Version: 0x0100 ''' re.match( s ) should give you a _sre.SRE_Match object Regards, Gora From gora at mimirtech.com Tue Jan 3 15:37:20 2012 From: gora at mimirtech.com (Gora Mohanty) Date: Tue, 3 Jan 2012 20:07:20 +0530 Subject: [BangPypers] Parse multi line with re module. In-Reply-To: References: Message-ID: On Tue, Jan 3, 2012 at 8:03 PM, Pratap Chakravarthy wrote: > Hi Ganesh, may be you can try this out, > >> re.findall(r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n]*)', str ) Try: re.findall(r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n]*)', 'Searching for OPUSH on in all the wrong places' ) Regards, Gora From gora at mimirtech.com Tue Jan 3 15:42:24 2012 From: gora at mimirtech.com (Gora Mohanty) Date: Tue, 3 Jan 2012 20:12:24 +0530 Subject: [BangPypers] Parse multi line with re module. In-Reply-To: References: Message-ID: On Tue, Jan 3, 2012 at 8:07 PM, Gora Mohanty wrote: > On Tue, Jan 3, 2012 at 8:03 PM, Pratap Chakravarthy wrote: >> Hi Ganesh, may be you can try this out, >> >>> re.findall(r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n]*)', str ) > > Try: > ?re.findall(r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n]*)', > 'Searching for OPUSH on in all the wrong places' ) Mean no offence to you personally, but this thread should again be a reason why regular expressions should be used sparingly, if at all, and against well-validated input. If one really wants regular expressions, Perl still beats any other language that I have personally seen, especially when it comes to Unicode input (here, be real dragons). Regards, Gora From prataprc at gmail.com Tue Jan 3 16:01:22 2012 From: prataprc at gmail.com (Pratap Chakravarthy) Date: Tue, 3 Jan 2012 20:31:22 +0530 Subject: [BangPypers] Parse multi line with re module. In-Reply-To: References: Message-ID: > Mean no offence to you personally, None taken. I believe Ganesh might take your more specific regex and use that with findall() grouping to get what he wants. It is always a good practice to be more specific in composing regular expressions, carelessly composed PCRE (where P stands for Perl ;) ) regex can lead to exponential complexity for simple inputs. > but this thread should again be a reason why regular > expressions should be used sparingly, if at all, > and against well-validated input. Really ? I beg to differ. Cheers, From gora at mimirtech.com Tue Jan 3 16:23:59 2012 From: gora at mimirtech.com (Gora Mohanty) Date: Tue, 3 Jan 2012 20:53:59 +0530 Subject: [BangPypers] Parse multi line with re module. In-Reply-To: References: Message-ID: On Tue, Jan 3, 2012 at 8:31 PM, Pratap Chakravarthy wrote: >> Mean no offence to you personally, > > None taken. Thank you for taking things in a good spirit: Personally speaking, I discover almost each day how ignorant I am compared to other people, in many contexts. True knowledge should be the progressive discovery of one's ignorance. > I believe Ganesh might take your more specific regex and > use that with findall() grouping to get what he wants. It is always a > good practice to be more specific in composing regular expressions, > carelessly composed PCRE (where P stands for Perl ;) ) regex can lead > to exponential complexity for simple inputs. Um, that "exponential complexity" is *exactly* the problem. Regular expressions are extremely powerful, and can and maybe should be used in the right context. I presume that everyone has read Jamie Zawinski's rants about regular expressions. I wish that I could find again the story of someone, whose boss barely looked at his regular expression that spanned half-a-screen, and said that "you have a bug". The (obviously talented) developer spent over a day finding edge-cases, and went back to his boss, and said: "You are right, but please tell me how you could tell at a glance". Boss' answer was that he did not actually know that there was a bug, but the use of a regular expression of that size pretty much assured him that there would be one. As someone said in another context (about C++), when regular expressions are your only tool, every problem looks like your thumb. >> but this thread should again be a reason why regular >> expressions should be used sparingly, if at all, >> and against well-validated input. > > Really ? > I beg to differ. *Really?* I believe that the ball is currently in your court. It was *your* regex that was broken, and badly, if I may add. Regards, Gora From prataprc at gmail.com Tue Jan 3 16:49:51 2012 From: prataprc at gmail.com (Pratap Chakravarthy) Date: Tue, 3 Jan 2012 21:19:51 +0530 Subject: [BangPypers] Parse multi line with re module. In-Reply-To: References: Message-ID: The ball is in my court alright. But you have played my turn as well, with your explanations, and you played it good. Except for the paragraph about the boss. I only beg to differ from your suggestion "... used sparingly, if at all used". And I still beg to differ / Cheers, On Tue, Jan 3, 2012 at 8:53 PM, Gora Mohanty wrote: > On Tue, Jan 3, 2012 at 8:31 PM, Pratap Chakravarthy wrote: >>> Mean no offence to you personally, >> >> None taken. > > Thank you for taking things in a good spirit: Personally speaking, > I discover almost each day how ignorant I am compared to other > people, in many contexts. True knowledge should be the progressive > discovery of one's ignorance. > >> ? ? ? ? ? ? ? ? ? ?I believe Ganesh might take your more specific regex and >> use that with findall() grouping to get what he wants. It is always a >> good practice to be more specific in composing regular expressions, >> carelessly composed PCRE (where P stands for Perl ;) ) regex can lead >> to exponential complexity for simple inputs. > > Um, that "exponential complexity" is *exactly* the problem. > > Regular expressions are extremely powerful, and can and > maybe should be used in the right context. I presume that > everyone has read Jamie Zawinski's rants about regular > expressions. > > I wish that I could find again the story of someone, whose boss > barely looked at his regular expression that spanned half-a-screen, > and said that "you have a bug". The (obviously talented) > developer spent over a day finding edge-cases, and went back > to his boss, and said: "You are right, but please tell me how > you could tell at a glance". Boss' answer was that he did not > actually know that there was a bug, but the use of a regular > expression of that size pretty much assured him that there > would be one. > > As someone said in another context (about C++), when > regular expressions are your only tool, every problem > looks like your thumb. > >>> but this thread should again be a reason why regular >>> expressions should be used sparingly, if at all, >>> and against well-validated input. >> >> Really ? >> I beg to differ. > > *Really?* I believe that the ball is currently in your court. > It was *your* regex that was broken, and badly, if I may > add. > > Regards, > Gora > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers -- Pratap. From prataprc at gmail.com Tue Jan 3 17:06:05 2012 From: prataprc at gmail.com (Pratap Chakravarthy) Date: Tue, 3 Jan 2012 21:36:05 +0530 Subject: [BangPypers] Parse multi line with re module. In-Reply-To: References: Message-ID: > *Really?* I believe that the ball is currently in your court. > It was *your* regex that was broken, and badly, if I may > add. By saying broken, do you mean that this regex r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n]*)' follows the pathological case of exponential complexity ? From what I have learned such complexities occur due to nested repetitions, and the one mentioned above does not seem to have that complexity. Does it ? From gora at mimirtech.com Tue Jan 3 17:13:05 2012 From: gora at mimirtech.com (Gora Mohanty) Date: Tue, 3 Jan 2012 21:43:05 +0530 Subject: [BangPypers] Parse multi line with re module. In-Reply-To: References: Message-ID: On Tue, Jan 3, 2012 at 9:19 PM, Pratap Chakravarthy wrote: > The ball is in my court alright. But you have played my turn as well, with your > explanations, and you played it good. Except for the paragraph about the > boss. I only beg to differ from your suggestion "... used sparingly, if at > all used". OK, let's stop complimenting each other, and start challenging each other. > And I still beg to differ / OK, as you admit that the ball is in your court :-) please come up with a real-life example. I am not sure how to set up a comparison, but my contention is that in cases of uncontrolled input, regexs invariably break. The OP's case of parsing logs ideally is a case for regular expression, *provided* that the format of the logs is fixed. Regular expressions are entirely too rigid, for the most part. I believe that we are now in an age where intelligent parsers should be able to derive meaning from broken, and incomplete structures. After all, humans do the same, without hardly even thinking. Regards, Gora From gora at mimirtech.com Tue Jan 3 17:19:26 2012 From: gora at mimirtech.com (Gora Mohanty) Date: Tue, 3 Jan 2012 21:49:26 +0530 Subject: [BangPypers] Parse multi line with re module. In-Reply-To: References: Message-ID: On Tue, Jan 3, 2012 at 9:36 PM, Pratap Chakravarthy wrote: >> *Really?* I believe that the ball is currently in your court. >> It was *your* regex that was broken, and badly, if I may >> add. > > By saying broken, do you mean that this regex > ? r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n]*)' > follows the pathological case of exponential complexity ? [...] No, it doesn't: The exponential complexity was a general crib, based on your statement. Again, please do not take it personally, but the above is just *broken* and does not even try, IMHO. For someone who claims to be an advocate for regexs, this is "not even wong": http://en.wikipedia.org/wiki/Not_even_wrong A MAC address is pretty well-specified, but you do not even try, when at least the OP did. Again, forgive me, but this smells of intellectual laziness to me. Regards, Gora From prataprc at gmail.com Tue Jan 3 17:28:48 2012 From: prataprc at gmail.com (Pratap Chakravarthy) Date: Tue, 3 Jan 2012 21:58:48 +0530 Subject: [BangPypers] Parse multi line with re module. In-Reply-To: References: Message-ID: I donno guru. You ask the question. > please come up with a real-life example. And provide the answer in your final paragraph. > I believe that we are > now in an age where intelligent parsers > should be able to derive meaning from > broken, and incomplete structures. The only way I know to write a parser is using regular expressions, whether parser it is intelligent or not. > Again, forgive me, > but this smells of intellectual laziness to me. Totally true. Except for going back and checking whether my suggested regex has exponential complexity I am just doing cut and paste work here ;) On Tue, Jan 3, 2012 at 9:43 PM, Gora Mohanty wrote: > On Tue, Jan 3, 2012 at 9:19 PM, Pratap Chakravarthy wrote: >> The ball is in my court alright. But you have played my turn as well, with your >> explanations, and you played it good. Except for the paragraph about the >> boss. I only beg to differ from your suggestion "... used sparingly, if at >> all used". > > OK, let's stop complimenting each other, and start challenging each other. > >> And I still beg to differ / > > OK, as you admit that the ball is in your court :-) > please come up with a real-life example. > > I am not sure how to set up a comparison, > but my contention is that in cases of > uncontrolled input, regexs invariably break. > The OP's case of parsing logs ideally is a > case for regular expression, *provided* that > the format of the logs is fixed. > > Regular expressions are entirely too rigid, > for the most part. I believe that we are > now in an age where intelligent parsers > should be able to derive meaning from > broken, and incomplete structures. After > all, humans do the same, without hardly > even thinking. > > Regards, > Gora > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers -- Pratap. From venkat83 at gmail.com Wed Jan 4 06:48:58 2012 From: venkat83 at gmail.com (Venkatraman S) Date: Wed, 4 Jan 2012 11:18:58 +0530 Subject: [BangPypers] PyCon or DjangoCon Videos Message-ID: Does anyone have PyCon or DjangoCon videos downloaded(preferably in Bangalore). I know i can watch them all in blip.tv, but wanted some offline access. -V From lawgon at gmail.com Wed Jan 4 07:07:39 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Wed, 04 Jan 2012 11:37:39 +0530 Subject: [BangPypers] python framework for android Message-ID: <1325657259.1782.1.camel@xlquest.web> hi, can anyone recommend a python framework for android? -- regards Kenneth Gonsalves From senthil at uthcode.com Wed Jan 4 07:13:15 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 4 Jan 2012 14:13:15 +0800 Subject: [BangPypers] python framework for android In-Reply-To: <1325657259.1782.1.camel@xlquest.web> References: <1325657259.1782.1.camel@xlquest.web> Message-ID: You can use django and fireup the browser in android to do the requests. :) Apart from that, there is android-scripting application (not a framework) http://code.google.com/p/android-scripting/, where in your restricted python scripts can be made to execute But that is far less featured than using Android SDK itself. I have seen people going back to SDK after trying the scripting environment for a while. -- Senthil On Wed, Jan 4, 2012 at 2:07 PM, Kenneth Gonsalves wrote: > hi, > > can anyone recommend a python framework for android? > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From navin.kabra at gmail.com Wed Jan 4 07:15:30 2012 From: navin.kabra at gmail.com (Navin Kabra) Date: Wed, 4 Jan 2012 11:45:30 +0530 Subject: [BangPypers] python framework for android In-Reply-To: <1325657259.1782.1.camel@xlquest.web> References: <1325657259.1782.1.camel@xlquest.web> Message-ID: On Wed, Jan 4, 2012 at 11:37 AM, Kenneth Gonsalves wrote: > can anyone recommend a python framework for android? Negative vote for SL4A (previously known as ASE - Android Scripting Environment). I have played with it, and I think it is largely a toy - it is good for personal use - quick scripts for automating things you like to do, but not useful for anything serious. Also, I haven't found anything else that allows Python programming for Android and could be used in developing serious apps. Might be forced to use Java or JavaScript :-( From ramkrsna at gmail.com Wed Jan 4 07:17:37 2012 From: ramkrsna at gmail.com (Ramakrishna Reddy) Date: Wed, 4 Jan 2012 11:47:37 +0530 Subject: [BangPypers] python framework for android In-Reply-To: <1325657259.1782.1.camel@xlquest.web> References: <1325657259.1782.1.camel@xlquest.web> Message-ID: On Wed, Jan 4, 2012 at 11:37 AM, Kenneth Gonsalves wrote: > hi, > > can anyone recommend a python framework for android? You can write python application with a bit of Javascript using the SL4A ( Scripting language for Android) Running a webservice for backend webservices, you can host it off the Google Application Engine. with Django regards -- Ramakrishna Reddy? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? GPG Key ID:31FF0090 Fingerprint =? 18D7 3FC1 784B B57F C08F? 32B9 4496 B2A1 31FF 0090 From lawgon at gmail.com Wed Jan 4 07:18:43 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Wed, 04 Jan 2012 11:48:43 +0530 Subject: [BangPypers] python framework for android In-Reply-To: References: <1325657259.1782.1.camel@xlquest.web> Message-ID: <1325657923.1782.3.camel@xlquest.web> On Wed, 2012-01-04 at 14:13 +0800, Senthil Kumaran wrote: > You can use django and fireup the browser in android to do the > requests. :) some how I have the feeling that django may be a trifle overkill ;-) > > Apart from that, there is android-scripting application (not a > framework) http://code.google.com/p/android-scripting/, where in your > restricted python scripts can be made to execute But that is far less > featured than using Android SDK itself. I have seen people going back > to SDK after trying the scripting environment for a while. am looking at kivy right now > > -- regards Kenneth Gonsalves From senthil at uthcode.com Wed Jan 4 07:24:22 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 4 Jan 2012 14:24:22 +0800 Subject: [BangPypers] python framework for android In-Reply-To: <1325657923.1782.3.camel@xlquest.web> References: <1325657259.1782.1.camel@xlquest.web> <1325657923.1782.3.camel@xlquest.web> Message-ID: On Wed, Jan 4, 2012 at 2:18 PM, Kenneth Gonsalves wrote: > > am looking at kivy right now Looks neat. I would like to try that one too. -- Senthil From lawgon at gmail.com Wed Jan 4 07:55:02 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Wed, 04 Jan 2012 12:25:02 +0530 Subject: [BangPypers] python framework for android In-Reply-To: References: <1325657259.1782.1.camel@xlquest.web> <1325657923.1782.3.camel@xlquest.web> Message-ID: <1325660102.1782.5.camel@xlquest.web> On Wed, 2012-01-04 at 14:24 +0800, Senthil Kumaran wrote: > On Wed, Jan 4, 2012 at 2:18 PM, Kenneth Gonsalves > wrote: > > > > am looking at kivy right now > > Looks neat. I would like to try that one too. there was a wonderful talk on it in the last pycon. -- regards Kenneth Gonsalves From skksundar at yahoo.co.in Fri Jan 6 09:59:26 2012 From: skksundar at yahoo.co.in (Senthil) Date: Fri, 6 Jan 2012 14:29:26 +0530 (IST) Subject: [BangPypers] Alternate to XMLRPCServer Message-ID: <1325840366.4100.YahooMailNeo@web94605.mail.in2.yahoo.com> Hi All, I have an xmlRPC standalone server written wholly in python. Now am facing problems in scaling the services. The more we start adding features, the response gets slower. Is there any alternate server architectures i should start thinking of ? This server works on basis of threaded architecture and am seeing some complaints about threading in python. Should i be considering anything else ? Please advise. Thanks. Senthilkumaran Sundaramurthi. From benignbala at gmail.com Fri Jan 6 10:32:52 2012 From: benignbala at gmail.com (Balachandran Sivakumar) Date: Fri, 6 Jan 2012 15:02:52 +0530 Subject: [BangPypers] Alternate to XMLRPCServer In-Reply-To: <1325840366.4100.YahooMailNeo@web94605.mail.in2.yahoo.com> References: <1325840366.4100.YahooMailNeo@web94605.mail.in2.yahoo.com> Message-ID: Hi, On Fri, Jan 6, 2012 at 2:29 PM, Senthil wrote: > Hi All, > > I have an xmlRPC standalone server written wholly in python. Now am facing problems in scaling the services. The more we start adding features, the response gets slower. Is there any alternate server architectures i should start thinking of ? This server works on basis of threaded architecture and am seeing some complaints about threading in python. Should i be considering anything else ? It depends on the implementation aspects. I am not very sure about threads, but for these scenarios, we should ideally be using reactor/proactor patterns. IIRC, all twisted[1] implementations are reactors. So, you can switch to twisted. Still proactors are even better. If you could implement one with Proactors, that should be even more efficient and scalable. Thanks [1] Twisted XML-RPC: http://twistedmatrix.com/documents/current/web/howto/xmlrpc.html -- Thank you Balachandran Sivakumar Arise Awake and stop not till the goal is reached. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?- Swami Vivekananda Mail: benignbala at gmail.com Blog: http://benignbala.wordpress.com/ From parth.buch.115 at gmail.com Fri Jan 6 11:55:19 2012 From: parth.buch.115 at gmail.com (Parth Buch) Date: Fri, 6 Jan 2012 16:25:19 +0530 Subject: [BangPypers] Alternate to XMLRPCServer In-Reply-To: References: <1325840366.4100.YahooMailNeo@web94605.mail.in2.yahoo.com> Message-ID: On Fri, Jan 6, 2012 at 3:02 PM, Balachandran Sivakumar wrote: > Hi, > > On Fri, Jan 6, 2012 at 2:29 PM, Senthil wrote: > > Hi All, > > > > I have an xmlRPC standalone server written wholly in python. Now am > facing problems in scaling the services. The more we start adding features, > the response gets slower. Is there any alternate server architectures i > should start thinking of ? This server works on basis of threaded > architecture and am seeing some complaints about threading in python. > Should i be considering anything else ? > We had a very simillar problem in our project https://github.com/FOSSEE/online_test We circumvent the xmlRPC 2 concurrent sessions problem by making a server pool. You can check the xmlRPC server pool code in this file https://github.com/FOSSEE/online_test/blob/master/testapp/code_server.py > > It depends on the implementation aspects. I am not very sure > about threads, but for these scenarios, we should ideally be using > reactor/proactor patterns. IIRC, all twisted[1] implementations are > reactors. So, you can switch to twisted. Still proactors are even > better. If you could implement one with Proactors, that should be even > more efficient and scalable. Thanks > > [1] Twisted XML-RPC: > http://twistedmatrix.com/documents/current/web/howto/xmlrpc.html > > -- > Thank you > Balachandran Sivakumar > > Arise Awake and stop not till the goal is reached. > - Swami > Vivekananda > > Mail: benignbala at gmail.com > Blog: http://benignbala.wordpress.com/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards Parth Buch *http://parthbuch.in* From thatiparthysreenivas at gmail.com Fri Jan 6 15:43:05 2012 From: thatiparthysreenivas at gmail.com (Sreenivas Reddy T) Date: Fri, 6 Jan 2012 20:13:05 +0530 Subject: [BangPypers] How about meet-up Message-ID: Guys, How about meet-up? Do you guys have any specific plans or schedule for this month's meet up. P.S: I have relocated to bangalore for good. Thanks & Regards, Sreenivas Reddy Thatiparthy, 9703888668. "Anyone who has never made a mistake has never tried anything new !!! " --Albert Einstein From nagappan at gmail.com Fri Jan 6 18:35:26 2012 From: nagappan at gmail.com (Nagappan Alagappan) Date: Fri, 6 Jan 2012 09:35:26 -0800 Subject: [BangPypers] Alternate to XMLRPCServer In-Reply-To: <1325840366.4100.YahooMailNeo@web94605.mail.in2.yahoo.com> References: <1325840366.4100.YahooMailNeo@web94605.mail.in2.yahoo.com> Message-ID: Hello Senthil, On Fri, Jan 6, 2012 at 12:59 AM, Senthil wrote: > Hi All, > > I have an xmlRPC standalone server written wholly in python. Now am facing > problems in scaling the services. The more we start adding features, the > response gets slower. Is there any alternate server architectures i should > start thinking of ? This server works on basis of threaded architecture and > am seeing some complaints about threading in python. Should i be > considering anything else ? > > Please advise. > I use twisted xmlrpc in my project [1] Thanks Nagappan [1] - http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/xmlrpc_daemon.py > > Thanks. > Senthilkumaran Sundaramurthi. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com From senthil at uthcode.com Sat Jan 7 03:39:32 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Sat, 7 Jan 2012 10:39:32 +0800 Subject: [BangPypers] Alternate to XMLRPCServer In-Reply-To: References: <1325840366.4100.YahooMailNeo@web94605.mail.in2.yahoo.com> Message-ID: <20120107023931.GA5246@mathmagic> > On Fri, Jan 6, 2012 at 12:59 AM, Senthil wrote: > > I have an xmlRPC standalone server written wholly in python. Now am facing > > problems in scaling the services. The more we start adding features, the > > response gets slower. Is there any alternate server architectures i should > > start thinking of ? This server works on basis of threaded architecture and > > am seeing some complaints about threading in python. Should i be > > considering anything else ? > > > > Please advise. As others have advised well, twisted is really suitable candidate for this. Here is bit of strategy for you if you were to develop your first application using twisted (if the concept of reactors is new). - Follow the twisted tutorial right from the finger example. - At the point in the tutorial were your finger service is going to use xmlrpc, try 'fit-in' your requirements logic into that style. - Once you have small outline of that style of program working for multiple parallel connections go head with making your program complete. If you would like to relish in understanding the concepts underlying twisted, look at the documentation written by dave peticolas. They are really good. HTH, Senthil From noufal at nibrahim.net.in Sat Jan 7 05:36:37 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Sat, 07 Jan 2012 10:06:37 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: (Sreenivas Reddy T.'s message of "Fri, 6 Jan 2012 20:13:05 +0530") References: Message-ID: <87y5tk9lii.fsf@sanitarium.localdomain> Sreenivas Reddy T writes: > Guys, > How about meet-up? Do you guys have any specific plans or schedule > for this month's meet up. > > > P.S: I have relocated to bangalore for good. [...] I think we can fix one for the 21st and just do it. I'm not sure how many people will attend. Does anyone have an interesting topic to talk about? -- ~noufal http://nibrahim.net.in "I always avoid prophesying beforehand because it is much better to prophesy after the event has already taken place. " - Winston Churchill From umar43 at gmail.com Sat Jan 7 11:41:50 2012 From: umar43 at gmail.com (Umar Shah) Date: Sat, 7 Jan 2012 16:11:50 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: <87y5tk9lii.fsf@sanitarium.localdomain> References: <87y5tk9lii.fsf@sanitarium.localdomain> Message-ID: Hi, I would love to join, Has someone worked with pypy and intersted in sharing the experience? On Sat, Jan 7, 2012 at 10:06 AM, Noufal Ibrahim wrote: > Sreenivas Reddy T writes: > > > Guys, > > How about meet-up? Do you guys have any specific plans or > schedule > > for this month's meet up. > > > > > > P.S: I have relocated to bangalore for good. > > [...] > > I think we can fix one for the 21st and just do it. I'm not sure how > many people will attend. > > Does anyone have an interesting topic to talk about? > > -- > ~noufal > http://nibrahim.net.in > > "I always avoid prophesying beforehand because it is much better to > prophesy after the event has already taken place. " - Winston Churchill > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From thatiparthysreenivas at gmail.com Sat Jan 7 17:06:44 2012 From: thatiparthysreenivas at gmail.com (Sreenivas Reddy T) Date: Sat, 7 Jan 2012 21:36:44 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: References: <87y5tk9lii.fsf@sanitarium.localdomain> Message-ID: > > I would love to join, > Has someone worked with pypy and intersted in sharing the experience? > PyPy piqued my interest too.Read that guys at quora completely switched to PyPy. +1 for PyPy. From noufal at nibrahim.net.in Sat Jan 7 17:31:15 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Sat, 07 Jan 2012 22:01:15 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: (Sreenivas Reddy T.'s message of "Sat, 7 Jan 2012 21:36:44 +0530") References: <87y5tk9lii.fsf@sanitarium.localdomain> Message-ID: <87ty47a2zw.fsf@sanitarium.localdomain> Sreenivas Reddy T writes: >> >> I would love to join, >> Has someone worked with pypy and intersted in sharing the experience? >> > > PyPy piqued my interest too.Read that guys at quora completely switched > to PyPy. > +1 for PyPy. [...] +1 for anything really. Is there someone willing to talk about something? -- ~noufal http://nibrahim.net.in The scene is dull. Tell him to put more life into his dying. -- Samuel Goldwyn From kracethekingmaker at gmail.com Sat Jan 7 17:36:55 2012 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Sat, 7 Jan 2012 22:06:55 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: References: <87y5tk9lii.fsf@sanitarium.localdomain> Message-ID: Hi > > > I would love to join, > > Has someone worked with pypy and intersted in sharing the experience? > > > > PyPy piqued my interest too.Read that guys at quora completely > switched to PyPy. > wait. Now Quora engineers are concentrating on scala. http://www.quora.com/Is-the-Quora-team-considering-adopting-Scala-Why > +1 for PyPy. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * From prataprc at gmail.com Sun Jan 8 03:39:03 2012 From: prataprc at gmail.com (Pratap Chakravarthy) Date: Sun, 8 Jan 2012 08:09:03 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: <87ty47a2zw.fsf@sanitarium.localdomain> References: <87y5tk9lii.fsf@sanitarium.localdomain> <87ty47a2zw.fsf@sanitarium.localdomain> Message-ID: > +1 for anything really. Is there someone willing to talk about > something? Just this morning I was planning to make our web toolkit pluggdapps compatible with PyPy. Since this is free software and since I am planning to do some hands-on with PyPy in coming months. I can provide a series of presentation on my experience. * I am not a professional speaker. * I need to know the meet-up date 2-3 weeks earlier since I had to book my tickets to blore. PS: Right now I don't know anything about PyPy, but I can start with other aspects of pluggdapps and as and when pieces of code gets moved to PyPy we can validate the claims on PyPy. Cheers, > -- > ~noufal > http://nibrahim.net.in > > The scene is dull. Tell him to put more life into his dying. -- Samuel Goldwyn > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers -- Pratap. From prataprc at gmail.com Mon Jan 9 08:46:21 2012 From: prataprc at gmail.com (Pratap Chakravarthy) Date: Mon, 9 Jan 2012 13:16:21 +0530 Subject: [BangPypers] Python learning resources. Message-ID: Saw this mail in MumPy user group. ------------ I am not sure of any institutes, however I also doubt if there are any. But, there are a lot of online resources: http://code.google.com/edu/languages/google-python-class/index.html http://www.learnpythonthehardway.org/ http://www.learnpython.org/ http://www.spoken-tutorials.org http://inventwithpython.com/ Google ! Also, some very good books for beginners are: Head First Python and Head First Programming. You can then read Learning Python and Programming Python, which offer in-depth coverage of the language. And the Python Essential Reference by David Beazley is always a good book to have. Happy learning ! -- Dhruv Baldawa (http://www.dhruvb.com) From thesujit at gmail.com Mon Jan 9 09:14:54 2012 From: thesujit at gmail.com (Sujit Ghosal) Date: Mon, 9 Jan 2012 13:44:54 +0530 Subject: [BangPypers] Python learning resources. In-Reply-To: References: Message-ID: Another useful addition could be: http://www.tutorialspoint.com/python/ - Sujit On Mon, Jan 9, 2012 at 1:16 PM, Pratap Chakravarthy wrote: > Saw this mail in MumPy user group. > > ------------ > > I am not sure of any institutes, however I also doubt if there are any. > But, there are a lot of online resources: > http://code.google.com/edu/languages/google-python-class/index.html > http://www.learnpythonthehardway.org/ > http://www.learnpython.org/ > http://www.spoken-tutorials.org > http://inventwithpython.com/ > Google ! > Also, some very good books for beginners are: Head First Python and > Head First Programming. You can then read Learning Python and > Programming Python, which offer in-depth coverage of the language. And > the Python Essential Reference by David Beazley is always a good book > to have. > > Happy learning ! > > -- > Dhruv Baldawa > (http://www.dhruvb.com) > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From bugcy013 at gmail.com Mon Jan 9 10:11:21 2012 From: bugcy013 at gmail.com (Ganesh Kumar) Date: Mon, 9 Jan 2012 14:41:21 +0530 Subject: [BangPypers] re module help Message-ID: Hi Guys, I have created regular expression with os modules, I have created file sdptool to match the regular expression pattern, will print the result. I want without creating file how to get required output, I tried but i didn't get output correctly, over stream. #! /usr/bin/python import os,re def scan(): cmd = "sdptool -i hci0 search OPUSH > sdptool" fp = os.popen(cmd) results = [] l = open("sdptool").read() pattern = r"^Searching for OPUSH on (\w\w(:\w\w)+).*?Channel: (\d+)" r = re.compile(pattern, flags=re.MULTILINE|re.DOTALL) while True: for match in r.finditer(l): g = match.groups() results.append((g[0],'phone',g[2])) return results ## output [('00:15:83:3D:0A:57', 'phone', '1')] http://dpaste.com/684335/ please guide me. with out file creating, to archive required output. Did I learn something today? If not, I wasted it. From noufal at nibrahim.net.in Mon Jan 9 10:15:33 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Mon, 09 Jan 2012 14:45:33 +0530 Subject: [BangPypers] re module help In-Reply-To: (Ganesh Kumar's message of "Mon, 9 Jan 2012 14:41:21 +0530") References: Message-ID: <87vcolme2y.fsf@sanitarium.localdomain> Ganesh Kumar writes: > Hi Guys, > > I have created regular expression with os modules, I have created file > sdptool to match the regular expression pattern, will print the result. > I want without creating file how to get required output, I tried but i > didn't get output correctly, over stream. You should use the subprocess module to deal with external commands. >>> import subprocess >>> s = subprocess.Popen(["head", "/etc/hosts"], stdout = subprocess.PIPE) >>> hosts_head = s.stdout.read() >>> print hosts_head 127.0.0.1 localhost [...] Use that get your output and then parse it with the regexp. -- ~noufal http://nibrahim.net.in The best cure for insomnia is to get a lot of sleep. -W. C. Fields From bugcy013 at gmail.com Mon Jan 9 10:33:54 2012 From: bugcy013 at gmail.com (Ganesh Kumar) Date: Mon, 9 Jan 2012 15:03:54 +0530 Subject: [BangPypers] re module help In-Reply-To: <87vcolme2y.fsf@sanitarium.localdomain> References: <87vcolme2y.fsf@sanitarium.localdomain> Message-ID: Hi sir, I tried also subprocess module, But didn't got result, I tried the same pattern. But didn't match the string over the stream. > >>> import subprocess > >>> s = subprocess.Popen(["head", "/etc/hosts"], stdout = subprocess.PIPE) > >>> hosts_head = s.stdout.read() > >>> print hosts_head > 127.0.0.1 localhost > > [...] > > Use that get your output and then parse it with the regexp. > http://dpaste.com/684339/ > > > -Ganesh. From noufal at nibrahim.net.in Mon Jan 9 10:37:31 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Mon, 09 Jan 2012 15:07:31 +0530 Subject: [BangPypers] re module help In-Reply-To: (Ganesh Kumar's message of "Mon, 9 Jan 2012 15:03:54 +0530") References: <87vcolme2y.fsf@sanitarium.localdomain> Message-ID: <87r4z9md2c.fsf@sanitarium.localdomain> Ganesh Kumar writes: > Hi sir, > > I tried also subprocess module, But didn't got result, I tried the same > pattern. But didn't match the string over the stream. Are you sure you're getting the output from the command in your string? Verify that and then you can, if necessary, debug the regular expression. [...] -- ~noufal http://nibrahim.net.in Live within your income, even if you have to borrow to do so. -- Josh Billings From bugcy013 at gmail.com Mon Jan 9 12:27:58 2012 From: bugcy013 at gmail.com (Ganesh Kumar) Date: Mon, 9 Jan 2012 16:57:58 +0530 Subject: [BangPypers] re module help In-Reply-To: <87r4z9md2c.fsf@sanitarium.localdomain> References: <87vcolme2y.fsf@sanitarium.localdomain> <87r4z9md2c.fsf@sanitarium.localdomain> Message-ID: Hi. > > > I tried also subprocess module, But didn't got result, I tried the same > > pattern. But didn't match the string over the stream. > > Are you sure you're getting the output from the command in your string? > I got output from terminal command working fine > Verify that and then you can, if necessary, debug the regular > regular expression also working fine. i checked in stored file checking (I mention sdptool file) cmd = "sdptool -i hci0 search OPUSH > sdptool" working file standalone fine. but over stream not getting output. check link http://dpaste.com/684335/ I don't want read external file. I want over program i want get output, please guide me. how to get output. -Ganesh. Did I learn something today? If not, I wasted it. From pasokan at gmail.com Mon Jan 9 12:35:46 2012 From: pasokan at gmail.com (Asokan Pichai) Date: Mon, 9 Jan 2012 17:05:46 +0530 Subject: [BangPypers] re module help In-Reply-To: References: <87vcolme2y.fsf@sanitarium.localdomain> <87r4z9md2c.fsf@sanitarium.localdomain> Message-ID: On 9 January 2012 16:57, Ganesh Kumar wrote: > Hi. > > > > > > I tried also subprocess module, But didn't got result, I tried the same > > > pattern. But didn't match the string over the stream. > > > > Are you sure you're getting the output from the command in your string? > > > > I got output from terminal command working fine > > > > Verify that and then you can, if necessary, debug the regular > > > regular expression also working fine. i checked in stored file checking (I > mention sdptool file) > > > cmd = "sdptool -i hci0 search OPUSH > sdptool" > > working file standalone fine. but over stream not getting output. > > check link > > http://dpaste.com/684335/ > > I don't want read external file. I want over program i want get > output, please guide me. how to get output. > > > -Ganesh. > > Did I learn something today? If not, I wasted it. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > A fleeting look; so may be wrong Is your return statement wrongly indented? -- Asokan Pichai *-------------------* We will find a way. Or, make one. (Hannibal) From b.ghose at gmail.com Mon Jan 9 12:36:39 2012 From: b.ghose at gmail.com (Baishampayan Ghose) Date: Mon, 9 Jan 2012 17:06:39 +0530 Subject: [BangPypers] re module help In-Reply-To: References: <87vcolme2y.fsf@sanitarium.localdomain> <87r4z9md2c.fsf@sanitarium.localdomain> Message-ID: On Mon, Jan 9, 2012 at 4:57 PM, Ganesh Kumar wrote: >> > I tried also subprocess module, But didn't got result, I tried the same >> > pattern. But didn't match the string over the stream. >> >> Are you sure you're getting the output from the command in your string? >> > > I got output from terminal command working fine Is your tool, writing to stdout or stderr? Regards, BG -- Baishampayan Ghose b.ghose at gmail.com From mandarvaze at gmail.com Mon Jan 9 13:51:03 2012 From: mandarvaze at gmail.com (=?UTF-8?B?TWFuZGFyIFZhemUgLyDgpK7gpILgpKbgpL7gpLAg4KS14KSd4KWH?=) Date: Mon, 9 Jan 2012 18:21:03 +0530 Subject: [BangPypers] re module help In-Reply-To: References: <87vcolme2y.fsf@sanitarium.localdomain> <87r4z9md2c.fsf@sanitarium.localdomain> Message-ID: > > cmd = "sdptool -i hci0 search OPUSH > sdptool" > > working file standalone fine. but over stream not getting output. > > check link > > http://dpaste.com/684335/ > > In the the code above, as well as from dpaste link, you are already redirecting to a file. Try "cmd = "sdptool -i hci0 search OPUSH" instead, so that output is sent to stdout/stderr and hopefully you'll get it captured via pipe. You should also check the exit code via wait() or close() . See http://docs.python.org/library/os.html Finally, if you are using python 2.7, as noufal suggested, use subprocess module instead. -Mandar From dhananjay.nene at gmail.com Mon Jan 9 19:05:25 2012 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Mon, 9 Jan 2012 23:35:25 +0530 Subject: [BangPypers] python framework for android In-Reply-To: <1325660102.1782.5.camel@xlquest.web> References: <1325657259.1782.1.camel@xlquest.web> <1325657923.1782.3.camel@xlquest.web> <1325660102.1782.5.camel@xlquest.web> Message-ID: On Wed, Jan 4, 2012 at 12:25 PM, Kenneth Gonsalves wrote: > On Wed, 2012-01-04 at 14:24 +0800, Senthil Kumaran wrote: > > On Wed, Jan 4, 2012 at 2:18 PM, Kenneth Gonsalves > > wrote: > > > > > > am looking at kivy right now > > > > Looks neat. I would like to try that one too. > > there was a wonderful talk on it in the last pycon. > Some more activity on the topic : http://www.h-online.com/open/news/item/Python-for-Android-launched-1406039.html Dhananjay From anandology at gmail.com Tue Jan 10 03:13:39 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Tue, 10 Jan 2012 07:43:39 +0530 Subject: [BangPypers] python framework for android In-Reply-To: References: <1325657259.1782.1.camel@xlquest.web> Message-ID: 2012/1/4 Navin Kabra > On Wed, Jan 4, 2012 at 11:37 AM, Kenneth Gonsalves > wrote: > > can anyone recommend a python framework for android? > > Negative vote for SL4A (previously known as ASE - Android Scripting > Environment). I have played with it, and I think it is largely a toy - > it is good for personal use - quick scripts for automating things you > like to do, but not useful for anything serious. > > Also, I haven't found anything else that allows Python programming for > Android and could be used in developing serious apps. Might be forced > to use Java or JavaScript :-( > If it has Java, why not use write the apps in Python using Jython? Anand From senthil at uthcode.com Tue Jan 10 03:28:38 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Tue, 10 Jan 2012 10:28:38 +0800 Subject: [BangPypers] python framework for android In-Reply-To: References: <1325657259.1782.1.camel@xlquest.web> Message-ID: On Tue, Jan 10, 2012 at 10:13 AM, Anand Chitipothu wrote: > > If it has Java, why not use write the apps in Python using Jython? > I recollect that for using Jython for mobiles where j2me was previously suitable is not possible because jython does not work well with j2me kind of class/libraries. It is more for standard java (java SE) and I guess, similar arguments hold for android too and that is why a lot of projects are spawning trying to support jython on android. For mixing it pure java applications, Jython is fanastic. -- Senthil From kracethekingmaker at gmail.com Tue Jan 10 04:15:42 2012 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Tue, 10 Jan 2012 08:45:42 +0530 Subject: [BangPypers] python framework for android In-Reply-To: References: <1325657259.1782.1.camel@xlquest.web> Message-ID: Hi > If it has Java, why not use write the apps in Python using Jython? > > > > Frankly speaking Jython isn't that extensively used as JRuby. > I recollect that for using Jython for mobiles where j2me was > previously suitable is not possible because jython does not work well > with j2me kind of class/libraries. > It is more for standard java (java SE) and I guess, similar arguments > hold for android too and that is why a lot of projects are spawning > trying to support jython on android. > > For mixing it pure java applications, Jython is fanastic. > > > -- > Senthil > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * From noufal at nibrahim.net.in Tue Jan 10 04:42:56 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Tue, 10 Jan 2012 09:12:56 +0530 Subject: [BangPypers] python framework for android In-Reply-To: (kracekumar ramaraju's message of "Tue, 10 Jan 2012 08:45:42 +0530") References: <1325657259.1782.1.camel@xlquest.web> Message-ID: <87mx9wjk8v.fsf@sanitarium.localdomain> kracekumar ramaraju writes: > Hi > >> If it has Java, why not use write the apps in Python using Jython? >> > >> >> > Frankly speaking Jython isn't that extensively used as JRuby. [...] Probably because CPython has *much* 3rd party libraries (and batteries) than does MRI/YARV (the standard Ruby). If you want decent libs, you have to use the Java ones via. Jruby. Also, CPython atleast was faster than the MRI at their times of release. You didn't have to move to the JVM to get decent performance. Also, till about 1.5 years ago, Jython was lagging behind standard Python too much to be really usable. I don't think Jruby was very far away from the standard Ruby (although that might be because of the of the other two reasons above). -- ~noufal http://nibrahim.net.in A little pain never hurt anyone. From look4puneet at gmail.com Tue Jan 10 07:18:19 2012 From: look4puneet at gmail.com (Puneet Aggarwal) Date: Tue, 10 Jan 2012 11:48:19 +0530 Subject: [BangPypers] [JOBS] Python/Django Internship position Message-ID: Hi, Looking for Fresh college graduates for Internship position at Noida. We are a internet based startup started by IIT, BITS alumnus. Requirements for the internship: ? Strong passion for learning. ? Strong background in any of these languages C++/Python. ? Knowledge of Data-Structures and Algorithms. ? Experience using Linux/Unix. * Knowledge of Django/web framework will be a plus. Awards: ? Informal and entrepreneurial environment. - Great learning opportunity - Stipend will be paid If any one interested please mail us at er.punit at gmail.com. Thanks, Puneet From saager.mhatre at gmail.com Tue Jan 10 14:03:46 2012 From: saager.mhatre at gmail.com (Saager Mhatre) Date: Tue, 10 Jan 2012 18:33:46 +0530 Subject: [BangPypers] python framework for android In-Reply-To: References: <1325657259.1782.1.camel@xlquest.web> Message-ID: On Tue, Jan 10, 2012 at 7:43 AM, Anand Chitipothu wrote: > 2012/1/4 Navin Kabra > > > On Wed, Jan 4, 2012 at 11:37 AM, Kenneth Gonsalves > > wrote: > > > can anyone recommend a python framework for android? > > > > Negative vote for SL4A (previously known as ASE - Android Scripting > > Environment). I have played with it, and I think it is largely a toy - > > it is good for personal use - quick scripts for automating things you > > like to do, but not useful for anything serious. > > > > Also, I haven't found anything else that allows Python programming for > > Android and could be used in developing serious apps. Might be forced > > to use Java or JavaScript :-( > > > > If it has Java, why not use write the apps in Python using Jython? IIRC, that's what SL4A does. - d > From bugcy013 at gmail.com Tue Jan 10 17:58:43 2012 From: bugcy013 at gmail.com (Ganesh Kumar) Date: Tue, 10 Jan 2012 22:28:43 +0530 Subject: [BangPypers] Truth Tests (bool) Message-ID: Hi Guys, >>> 3 and 4, [3, 4] and [] (4, []) >>> 3 and 4 4 How to compare value in logical operation empty list [] = False How to and operation working, please guide me guys. Did I learn something today? If not, I wasted it. From senthil at uthcode.com Tue Jan 10 18:15:45 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 11 Jan 2012 01:15:45 +0800 Subject: [BangPypers] Truth Tests (bool) In-Reply-To: References: Message-ID: <20120110171545.GA3797@mathmagic> They are called Python Logic Short Circuits. A good way to remember this is here http://uthcode.appspot.com/blog/2011/07/Python-Logic-short-circuits#comment-266357377 For your other question, an empty list is always fast. -- Senthil On Tue, Jan 10, 2012 at 10:28:43PM +0530, Ganesh Kumar wrote: > > Did I learn something today? If not, I wasted it. (Don't be so hard on yourself. :) ) From gora at mimirtech.com Tue Jan 10 18:25:58 2012 From: gora at mimirtech.com (Gora Mohanty) Date: Tue, 10 Jan 2012 22:55:58 +0530 Subject: [BangPypers] Truth Tests (bool) In-Reply-To: References: Message-ID: On Tue, Jan 10, 2012 at 10:28 PM, Ganesh Kumar wrote: > Hi Guys, > >>>> 3 and 4, [3, 4] and [] > ? ? ?(4, []) >>>> 3 and 4 > 4 > > How to compare value in logical operation > > empty list [] = False > How to and operation working, please guide me guys. Google turns up a few million links (literally) for "Python truth test". Take a look at http://python.about.com/od/pythonstandardlibrary/p/truth_values.htm for example. It is not clear what you want from your description. To check if a list is empty, see if len( list ) is zero. Regards, Gora From senthil at uthcode.com Tue Jan 10 18:32:36 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 11 Jan 2012 01:32:36 +0800 Subject: [BangPypers] Truth Tests (bool) In-Reply-To: References: Message-ID: <20120110173236.GA4630@mathmagic> On Tue, Jan 10, 2012 at 10:55:58PM +0530, Gora Mohanty wrote: > To check if a list is empty, see if len( list ) is zero. I think, usually we just test the empty list for it's False-ness. Isn't it? -- Senthil From venkat83 at gmail.com Wed Jan 11 04:46:04 2012 From: venkat83 at gmail.com (Venkatraman S) Date: Wed, 11 Jan 2012 09:16:04 +0530 Subject: [BangPypers] [X-POST] Selenium Simple Test Message-ID: This does look super-simple! Linky : http://www.youtube.com/watch?v=qGPostUOAEI -Venkat From bugcy013 at gmail.com Wed Jan 11 05:09:35 2012 From: bugcy013 at gmail.com (Ganesh Kumar) Date: Wed, 11 Jan 2012 09:39:35 +0530 Subject: [BangPypers] Truth Tests (bool) In-Reply-To: <20120110173236.GA4630@mathmagic> References: <20120110173236.GA4630@mathmagic> Message-ID: HI. > I think, usually we just test the empty list for it's False-ness. > Isn't it? > > In [8]: x = [] In [9]: bool(x) Out[9]: False -Ganesh. From noufal at nibrahim.net.in Wed Jan 11 05:19:58 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Wed, 11 Jan 2012 09:49:58 +0530 Subject: [BangPypers] Truth Tests (bool) In-Reply-To: (Gora Mohanty's message of "Tue, 10 Jan 2012 22:55:58 +0530") References: Message-ID: <878vlekh01.fsf@sanitarium.localdomain> Gora Mohanty writes: [...] > It is not clear what you want from your description. To check if a > list is empty, see if len( list ) is zero. [...] You don't want to do that. Your "list" might be a generator (unless you check for type which is a bad idea anyway) and "len"ing that will consume it which might be a potentially expensive operation. Truth testing in general is implemted using the __nonzero__ magic method[1]. Lists don't have a __nonzero__ so the truth value is determined using the length (as you've said) but manually doing it on something that you don't know the type of is not usually a good idea. Footnotes: [1] http://docs.python.org/reference/datamodel.html#object.__nonzero__ -- ~noufal http://nibrahim.net.in May I ask a question? From saager.mhatre at gmail.com Wed Jan 11 10:44:05 2012 From: saager.mhatre at gmail.com (Saager Mhatre) Date: Wed, 11 Jan 2012 15:14:05 +0530 Subject: [BangPypers] Truth Tests (bool) In-Reply-To: <878vlekh01.fsf@sanitarium.localdomain> References: <878vlekh01.fsf@sanitarium.localdomain> Message-ID: https://gist.github.com/1327614#file_truth.py I hacked together this little script to cover (hopefully) all the cases for my reference. - d From senthil at uthcode.com Wed Jan 11 13:30:11 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 11 Jan 2012 20:30:11 +0800 Subject: [BangPypers] [X-POST] Selenium Simple Test In-Reply-To: References: Message-ID: <20120111123011.GA5116@mathmagic> On Wed, Jan 11, 2012 at 09:16:04AM +0530, Venkatraman S wrote: > This does look super-simple! Linky : > http://www.youtube.com/watch?v=qGPostUOAEI Looks pretty simple. But the XPATH based expression language exposed via selenium is not hard either. That ties with the browser well and most often when we have to determine the correct DOM for the elements in the path, anything browser based becomes more useful. -- Senthil From senthil at uthcode.com Wed Jan 11 13:33:18 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 11 Jan 2012 20:33:18 +0800 Subject: [BangPypers] Is there any relation between web2py and webpy Message-ID: <20120111123318.GB5116@mathmagic> Other than the fact that they are both web frameworks. Given their levenshtein distance being 1, I am really curious if there any social or historical relationship between then. -- Senthil From senthil at uthcode.com Wed Jan 11 14:04:18 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 11 Jan 2012 21:04:18 +0800 Subject: [BangPypers] Truth Tests (bool) In-Reply-To: <878vlekh01.fsf@sanitarium.localdomain> References: <878vlekh01.fsf@sanitarium.localdomain> Message-ID: <20120111130418.GC5116@mathmagic> On Wed, Jan 11, 2012 at 09:49:58AM +0530, Noufal Ibrahim wrote: > > It is not clear what you want from your description. To check if a > > list is empty, see if len( list ) is zero. > > You don't want to do that. Your "list" might be a generator (unless you > check for type which is a bad idea anyway) and "len"ing that will > consume it which might be a potentially expensive operation. While the explaination on __nonzero__ is useful out of this context, how can list be a generator? I am assuming that none are confusing the terminologies. In practical cases for testing boolean in lists, just use the list as the test. Empty list is false. -- Senthil From anandology at gmail.com Wed Jan 11 14:04:14 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Wed, 11 Jan 2012 18:34:14 +0530 Subject: [BangPypers] Is there any relation between web2py and webpy In-Reply-To: <20120111123318.GB5116@mathmagic> References: <20120111123318.GB5116@mathmagic> Message-ID: 2012/1/11 Senthil Kumaran > Other than the fact that they are both web frameworks. > > Given their levenshtein distance being 1, I am really curious if there > any social or historical relationship between then. > No. Anand From senthil at uthcode.com Wed Jan 11 14:08:50 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 11 Jan 2012 21:08:50 +0800 Subject: [BangPypers] Truth Tests (bool) In-Reply-To: References: <878vlekh01.fsf@sanitarium.localdomain> Message-ID: <20120111130850.GD5116@mathmagic> On Wed, Jan 11, 2012 at 03:14:05PM +0530, Saager Mhatre wrote: > https://gist.github.com/1327614#file_truth.py > I hacked together this little script to cover (hopefully) all the cases for > my reference. Cool. Good to see some difficult to comprehend code. :) The bool's are intuitively easier to remember in Python. -- Senthil From senthil at uthcode.com Wed Jan 11 15:52:49 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 11 Jan 2012 22:52:49 +0800 Subject: [BangPypers] Is there any relation between web2py and webpy In-Reply-To: References: <20120111123318.GB5116@mathmagic> Message-ID: <20120111145249.GF5116@mathmagic> On Wed, Jan 11, 2012 at 06:34:14PM +0530, Anand Chitipothu wrote: > > No. Ok. It's good coincidence. -- Senthil From gora at mimirtech.com Wed Jan 11 16:13:07 2012 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 11 Jan 2012 20:43:07 +0530 Subject: [BangPypers] Is there any relation between web2py and webpy In-Reply-To: <20120111123318.GB5116@mathmagic> References: <20120111123318.GB5116@mathmagic> Message-ID: On Wed, Jan 11, 2012 at 6:03 PM, Senthil Kumaran wrote: > Other than the fact that they are both web frameworks. > > Given their levenshtein distance being 1, [...] Bah! So is the distance between "Gora" and "Gori" (apply smileys as needed). Regards, Gora From noufal at nibrahim.net.in Wed Jan 11 16:13:06 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Wed, 11 Jan 2012 20:43:06 +0530 Subject: [BangPypers] Truth Tests (bool) In-Reply-To: <20120111130418.GC5116@mathmagic> (Senthil Kumaran's message of "Wed, 11 Jan 2012 21:04:18 +0800") References: <878vlekh01.fsf@sanitarium.localdomain> <20120111130418.GC5116@mathmagic> Message-ID: <87mx9ui871.fsf@sanitarium.localdomain> Senthil Kumaran writes: > On Wed, Jan 11, 2012 at 09:49:58AM +0530, Noufal Ibrahim wrote: > >> > It is not clear what you want from your description. To check if a >> > list is empty, see if len( list ) is zero. >> >> You don't want to do that. Your "list" might be a generator (unless you >> check for type which is a bad idea anyway) and "len"ing that will >> consume it which might be a potentially expensive operation. > > While the explaination on __nonzero__ is useful out of this context, > how can list be a generator? I am assuming that none are confusing the > terminologies. A list can't be a generator but if you write a function to receive an iterable x and then do a len(x) to check it it's True or False, it will work fine for lists but passing a generator this function might have unpredictable results. That's why I'm cautioning against using `len` to check for whether an object is empty or not. > In practical cases for testing boolean in lists, just use the list as > the test. Empty list is false. Agreed. This is the right way to do it rather than using len. -- ~noufal http://nibrahim.net.in Why don't you pair `em up in threes? -Yogi Berra From senthil at uthcode.com Wed Jan 11 16:46:50 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 11 Jan 2012 23:46:50 +0800 Subject: [BangPypers] Is there any relation between web2py and webpy In-Reply-To: References: <20120111123318.GB5116@mathmagic> Message-ID: <20120111154650.GA10360@mathmagic> On Wed, Jan 11, 2012 at 08:43:07PM +0530, Gora Mohanty wrote: > > So is the distance between "Gora" and "Gori" (apply smileys > as needed). Wow! And I believe that would make a "dynamic programming" pair. (ditto) -- Senthil From baiju.m.mail at gmail.com Wed Jan 11 18:12:10 2012 From: baiju.m.mail at gmail.com (Baiju M) Date: Wed, 11 Jan 2012 22:42:10 +0530 Subject: [BangPypers] [X-POST] Selenium Simple Test In-Reply-To: References: Message-ID: On Wed, Jan 11, 2012 at 9:16 AM, Venkatraman S wrote: > This does look super-simple! Linky : > http://www.youtube.com/watch?v=qGPostUOAEI Selenium Webdriver Python API is easy to understand. The API doesn't force to do in one style, because it's not a framework. It gives freedom to choose your testing tools like nose, py.test etc. BTW, I have written some docs for using the default API; http://readthedocs.org/docs/selenium-python/en/latest/ Regards, Baiju M From thatiparthysreenivas at gmail.com Thu Jan 12 09:00:30 2012 From: thatiparthysreenivas at gmail.com (Sreenivas Reddy T) Date: Thu, 12 Jan 2012 13:30:30 +0530 Subject: [BangPypers] I have solved some of the project euler problems in python Message-ID: Hi , I have solved 32 of project euler problems in python.If you anybody interested please take a look at them. Any kind of feedback is welcome. I am planning to solve more of them in future. Another question i have is,do these worth mention on resume?I feel more like these should be in hobby section. P.S: i never googled for a solution . :) Thanks & Regards, Sreenivas Reddy Thatiparthy, "Anyone who has never made a mistake has never tried anything new !!! " --Albert Einstein From thatiparthysreenivas at gmail.com Thu Jan 12 09:01:50 2012 From: thatiparthysreenivas at gmail.com (Sreenivas Reddy T) Date: Thu, 12 Jan 2012 13:31:50 +0530 Subject: [BangPypers] I have solved some of the project euler problems in python In-Reply-To: References: Message-ID: Sorry!! Here is the link.. https://github.com/srinivasreddy/euler Thanks & Regards, Sreenivas Reddy Thatiparthy, 9703888668. "Anyone who has never made a mistake has never tried anything new !!! " --Albert Einstein On Thu, Jan 12, 2012 at 1:30 PM, Sreenivas Reddy T < thatiparthysreenivas at gmail.com> wrote: > Hi , > I have solved 32 of project euler problems in python.If you > anybody interested please take a look at them. > Any kind of feedback is welcome. > > I am planning to solve more of them in future. > > Another question i have is,do these worth mention on resume?I feel more > like these should be in hobby section. > > P.S: i never googled for a solution . :) > > Thanks & Regards, > Sreenivas Reddy Thatiparthy, > > "Anyone who has never made a mistake has never tried anything new !!! " > --Albert Einstein > From abpillai at gmail.com Thu Jan 12 19:18:26 2012 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 12 Jan 2012 23:48:26 +0530 Subject: [BangPypers] I have solved some of the project euler problems in python In-Reply-To: References: Message-ID: Hi Reddy, I had solved some 50 or odd euler problems in 2006 in Python. I have the solutions saved somewhere in my laptop. I will look at yours and probably try to publish mine as well. It is quite an interesting project. --Anand On Thu, Jan 12, 2012 at 1:31 PM, Sreenivas Reddy T < thatiparthysreenivas at gmail.com> wrote: > Sorry!! > Here is the link.. > > https://github.com/srinivasreddy/euler > > Thanks & Regards, > Sreenivas Reddy Thatiparthy, > 9703888668. > > "Anyone who has never made a mistake has never tried anything new !!! " > --Albert Einstein > > > On Thu, Jan 12, 2012 at 1:30 PM, Sreenivas Reddy T < > thatiparthysreenivas at gmail.com> wrote: > > > Hi , > > I have solved 32 of project euler problems in python.If you > > anybody interested please take a look at them. > > Any kind of feedback is welcome. > > > > I am planning to solve more of them in future. > > > > Another question i have is,do these worth mention on resume?I feel more > > like these should be in hobby section. > > > > P.S: i never googled for a solution . :) > > > > Thanks & Regards, > > Sreenivas Reddy Thatiparthy, > > > > "Anyone who has never made a mistake has never tried anything new !!! " > > --Albert Einstein > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From saager.mhatre at gmail.com Fri Jan 13 14:24:27 2012 From: saager.mhatre at gmail.com (Saager Mhatre) Date: Fri, 13 Jan 2012 18:54:27 +0530 Subject: [BangPypers] Truth Tests (bool) In-Reply-To: <878vlekh01.fsf@sanitarium.localdomain> References: <878vlekh01.fsf@sanitarium.localdomain> Message-ID: On Wed, Jan 11, 2012 at 9:49 AM, Noufal Ibrahim wrote: > Gora Mohanty writes: > > > [...] > > > It is not clear what you want from your description. To check if a > > list is empty, see if len( list ) is zero. > > [...] > > You don't want to do that. Your "list" might be a generator (unless you > check for type which is a bad idea anyway) and "len"ing that will > consume it which might be a potentially expensive operation. Noufal, Noticed something interesting as I was updating truth.py to include generators and generator expressions; the `len` function doesn't handle generators at all. $ *python -c 'len(i for i in range(10))'* Traceback (most recent call last): File "", line 1, in TypeError: object of type 'generator' has no len() I'm pretty sure you just meant 'iterable' where you wrote 'generator', or didn't you? - d From thatiparthysreenivas at gmail.com Fri Jan 13 17:13:58 2012 From: thatiparthysreenivas at gmail.com (Sreenivas Reddy T) Date: Fri, 13 Jan 2012 21:43:58 +0530 Subject: [BangPypers] Truth Tests (bool) In-Reply-To: References: <878vlekh01.fsf@sanitarium.localdomain> Message-ID: I would like to clear things here.I am assuming beginner as a common denominator to this post. len() method is just a shortcut to __len__ magic method .So when you call len() on your own container type ,it does not traverse whole sequence ,it just calls __len__ method and returns value(assume self.size=0 in constructor) from this method.This value incremented or decremented in add and remove method on your container type. Moreover,there can never be length method on iterators - (generators are also iterators,not vice versa).Iterators are meant for traversing a sequence or container,they do not keep track of length..generators are meant to produce infinite items. When you call len(list) or len(deque) or any collection type,they override this __len__ internally or some other similar mechanism .That is very much ?similar? to ArrayList here in java. http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/util/ArrayList.java the same can be seen here .. http://hg.python.org/cpython/file/ba975c7c33d3/Modules/_collectionsmodule.c To make your type iterable ,you just have to implement __iter__ and next() method,there is no __len__ method here.So you will always receive " there is no len() method your object method".Since you passed generator object to it.you received that error. This whole discussion is equal to IEnumerable and ICollection in C#. python gist is here ,https://gist.github.com/1607183 anybody can test it. Thanks & Regards, Sreenivas Reddy Thatiparthy, 9703888668. "Anyone who has never made a mistake has never tried anything new !!! " --Albert Einstein From noufal at nibrahim.net.in Fri Jan 13 19:26:18 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Fri, 13 Jan 2012 23:56:18 +0530 Subject: [BangPypers] Truth Tests (bool) In-Reply-To: (Saager Mhatre's message of "Fri, 13 Jan 2012 18:54:27 +0530") References: <878vlekh01.fsf@sanitarium.localdomain> Message-ID: <8762gffohh.fsf@sanitarium.localdomain> Saager Mhatre writes: [...] > I'm pretty sure you just meant 'iterable' where you wrote 'generator', > or didn't you? [...] Yes. I did. It was a slip up. -- ~noufal http://nibrahim.net.in I'm proud of my humility. From noufal at nibrahim.net.in Fri Jan 13 19:50:11 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Sat, 14 Jan 2012 00:20:11 +0530 Subject: [BangPypers] Truth Tests (bool) In-Reply-To: (Sreenivas Reddy T.'s message of "Fri, 13 Jan 2012 21:43:58 +0530") References: <878vlekh01.fsf@sanitarium.localdomain> Message-ID: <87zkdre8t8.fsf@sanitarium.localdomain> Sreenivas Reddy T writes: > I would like to clear things here.I am assuming beginner as a common > denominator to this post. > > len() method is just a shortcut to __len__ magic method .So when you > call len() on your own container type ,it does not traverse whole > sequence ,it just calls __len__ method and returns value(assume > self.size=0 in constructor) from this method.This value incremented or > decremented in add and remove method on your container type. This is an interesting point especially with Python3 returning something other than lists for things like dict.keys. I'll dig into this a little. Thanks. [...] -- ~noufal http://nibrahim.net.in Honk if you are against noise pollution! From senthil at uthcode.com Sat Jan 14 00:45:24 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Sat, 14 Jan 2012 07:45:24 +0800 Subject: [BangPypers] I have solved some of the project euler problems in python In-Reply-To: References: Message-ID: <20120113234524.GA1900@mathmagic> Very nice. I have found Euler' problems focusing on maths a lot. I could have only solve a couple of them, this thread kindles my interest to try more. :) Senthil On Thu, Jan 12, 2012 at 11:48:26PM +0530, Anand Balachandran Pillai wrote: > Hi Reddy, > > I had solved some 50 or odd euler problems in 2006 in Python. I > have > the solutions saved somewhere in my laptop. I will look at yours and > probably try to publish > mine as well. > > It is quite an interesting project. > > --Anand > > On Thu, Jan 12, 2012 at 1:31 PM, Sreenivas Reddy T < > thatiparthysreenivas at gmail.com> wrote: > > > Sorry!! > > Here is the link.. > > > > https://github.com/srinivasreddy/euler > > > > Thanks & Regards, > > Sreenivas Reddy Thatiparthy, > > 9703888668. > > > > "Anyone who has never made a mistake has never tried anything new !!! " > > --Albert Einstein > > > > > > On Thu, Jan 12, 2012 at 1:30 PM, Sreenivas Reddy T < > > thatiparthysreenivas at gmail.com> wrote: > > > > > Hi , > > > I have solved 32 of project euler problems in python.If you > > > anybody interested please take a look at them. > > > Any kind of feedback is welcome. > > > > > > I am planning to solve more of them in future. > > > > > > Another question i have is,do these worth mention on resume?I feel more > > > like these should be in hobby section. > > > > > > P.S: i never googled for a solution . :) > > > > > > Thanks & Regards, > > > Sreenivas Reddy Thatiparthy, > > > > > > "Anyone who has never made a mistake has never tried anything new !!! " > > > --Albert Einstein > > > > > _______________________________________________ > > 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 senthil at uthcode.com Sat Jan 14 00:49:10 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Sat, 14 Jan 2012 07:49:10 +0800 Subject: [BangPypers] Truth Tests (bool) In-Reply-To: <87zkdre8t8.fsf@sanitarium.localdomain> References: <878vlekh01.fsf@sanitarium.localdomain> <87zkdre8t8.fsf@sanitarium.localdomain> Message-ID: <20120113234910.GB1900@mathmagic> On Sat, Jan 14, 2012 at 12:20:11AM +0530, Noufal Ibrahim wrote: > > len() method is just a shortcut to __len__ magic method .So when you > > call len() on your own container type ,it does not traverse whole > > sequence ,it just calls __len__ method and returns value(assume > > self.size=0 in constructor) from this method.This value incremented or > > decremented in add and remove method on your container type. > > This is an interesting point especially with Python3 returning something > other than lists for things like dict.keys. I'll dig into this a > little. Yeah, dict view or in general the concept of memoryview, but they do have len(). -- Senthil From lawgon at gmail.com Sat Jan 14 01:36:46 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Sat, 14 Jan 2012 06:06:46 +0530 Subject: [BangPypers] I have solved some of the project euler problems in python In-Reply-To: <20120113234524.GA1900@mathmagic> References: <20120113234524.GA1900@mathmagic> Message-ID: <1326501406.13554.46.camel@xlquest.web> On Sat, 2012-01-14 at 07:45 +0800, Senthil Kumaran wrote: > Very nice. I have found Euler' problems focusing on maths a lot. I > could have only solve a couple of them, this thread kindles my > interest to try more. :) me too. I have done 4 - no 3 taught me a lot about the limitations of range() -- regards Kenneth Gonsalves From anandology at gmail.com Sat Jan 14 04:05:45 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Sat, 14 Jan 2012 08:35:45 +0530 Subject: [BangPypers] I have solved some of the project euler problems in python In-Reply-To: <20120113234524.GA1900@mathmagic> References: <20120113234524.GA1900@mathmagic> Message-ID: 2012/1/14, Senthil Kumaran : > Very nice. I have found Euler' problems focusing on maths a lot. I > could have only solve a couple of them, this thread kindles my > interest to try more. :) These problems are very good exercises for learning a new programming language. I tried solving some of these problems in erlang. Anand From kracethekingmaker at gmail.com Sat Jan 14 17:10:16 2012 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Sat, 14 Jan 2012 21:40:16 +0530 Subject: [BangPypers] Python ORM Message-ID: Hi I have come across wide range of ORM in python. Out all examples and discussions, every one seems to recommend SQLAlchemy, but it has deep learning curve whereas storm, peewee are light weight. Have anyone tried any of these for non-trivial project or real life big sites, in case yes please share the experience. -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * From lawgon at gmail.com Sat Jan 14 17:20:45 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Sat, 14 Jan 2012 21:50:45 +0530 Subject: [BangPypers] Python ORM In-Reply-To: References: Message-ID: <1326558045.18632.19.camel@xlquest.web> On Sat, 2012-01-14 at 21:40 +0530, kracekumar ramaraju wrote: > Out all examples and discussions, every one seems to recommend > SQLAlchemy, > but it has deep learning curve whereas storm, peewee are light weight. > Have > anyone tried any of these for non-trivial project or real life big > sites, > in case yes please share the experience. > > my (highly prejudiced) opinion: 1. I would rather write raw sql than grapple with SQLAlchemy 2. Canonical are the bad boys of the open source world, so I would not touch any of their products with a barge pole. 3. My vote is for peewee - it is django-like, and although I have not tried peewee in production, it looks like just the thing I need for my forthcoming android project. ps. thanks for introducing me to peewee. -- regards Kenneth Gonsalves From kracethekingmaker at gmail.com Sat Jan 14 17:25:56 2012 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Sat, 14 Jan 2012 21:55:56 +0530 Subject: [BangPypers] Python ORM In-Reply-To: <1326558045.18632.19.camel@xlquest.web> References: <1326558045.18632.19.camel@xlquest.web> Message-ID: Hi wrote: > On Sat, 2012-01-14 at 21:40 +0530, kracekumar ramaraju wrote: > > Out all examples and discussions, every one seems to recommend > > SQLAlchemy, > > but it has deep learning curve whereas storm, peewee are light weight. > > Have > > anyone tried any of these for non-trivial project or real life big > > sites, > > in case yes please share the experience. > > > > > > my (highly prejudiced) opinion: > > 1. I would rather write raw sql than grapple with SQLAlchemy > > 2. Canonical are the bad boys of the open source world, so I would not > touch any of their products with a barge pole. > > 3. My vote is for peewee - it is django-like, and although I have not > tried peewee in production, it looks like just the thing I need for my > forthcoming android project. > > ps. thanks for introducing me to peewee. > Welcome. :) > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * From noufal at nibrahim.net.in Sat Jan 14 17:40:32 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Sat, 14 Jan 2012 22:10:32 +0530 Subject: [BangPypers] Python ORM In-Reply-To: (kracekumar ramaraju's message of "Sat, 14 Jan 2012 21:40:16 +0530") References: Message-ID: <87boq6dypr.fsf@sanitarium.localdomain> kracekumar ramaraju writes: > Hi > > I have come across wide range of ORM in python. > > Out all examples and discussions, every one seems to recommend > SQLAlchemy, but it has deep learning curve whereas storm, peewee are > light weight. Have anyone tried any of these for non-trivial project > or real life big sites, in case yes please share the experience. Never used Storm or peewee. SQLAlchemy has a steep curve and it's often hard to grapple with its concepts but it can do pretty much everything you want it to. If you're dealing with SQL and Python, it's the de facto way. I've used SQLAlchemy for a couple of non trivial projects. These were a long time ago and my uses were bad so I don't really consider it experience as such. Another option (although not an ORM) is the web.py database wrapper web.db. It's a lightweight wrapper around raw SQL and quite nice to use. -- ~noufal http://nibrahim.net.in Talking about a piece of movie dialogue: Let's have some new cliches. -Samuel Goldwyn From kracethekingmaker at gmail.com Sat Jan 14 17:51:49 2012 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Sat, 14 Jan 2012 22:21:49 +0530 Subject: [BangPypers] Python ORM In-Reply-To: <87boq6dypr.fsf@sanitarium.localdomain> References: <87boq6dypr.fsf@sanitarium.localdomain> Message-ID: Hi > > Hi > > > > I have come across wide range of ORM in python. > > > > Out all examples and discussions, every one seems to recommend > > SQLAlchemy, but it has deep learning curve whereas storm, peewee are > > light weight. Have anyone tried any of these for non-trivial project > > or real life big sites, in case yes please share the experience. > > Never used Storm or peewee. SQLAlchemy has a steep curve and it's often > hard to grapple with its concepts but it can do pretty much everything > you want it to. If you're dealing with SQL and Python, it's the de facto > way. > > I've used SQLAlchemy for a couple of non trivial projects. These were a > long time ago and my uses were bad so I don't really consider it > experience as such. > > Another option (although not an ORM) is the web.py database wrapper > web.db. It's a lightweight wrapper around raw SQL and quite nice to > use. > > > Yes every web framework(except microframework) has their own , I read a lot about of articles django orm issues. SQLAlchemy has deep roots with Java Hibernate. > > > -- > ~noufal > http://nibrahim.net.in > > Talking about a piece of movie dialogue: Let's have some new cliches. > -Samuel Goldwyn > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * From lawgon at gmail.com Sat Jan 14 17:54:11 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Sat, 14 Jan 2012 22:24:11 +0530 Subject: [BangPypers] Python ORM In-Reply-To: References: <87boq6dypr.fsf@sanitarium.localdomain> Message-ID: <1326560051.18632.24.camel@xlquest.web> On Sat, 2012-01-14 at 22:21 +0530, kracekumar ramaraju wrote: > "Talk is cheap, show me the code" -- Linus Torvalds please do not propagate quotations out of context -- regards Kenneth Gonsalves From kracethekingmaker at gmail.com Sat Jan 14 17:59:15 2012 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Sat, 14 Jan 2012 22:29:15 +0530 Subject: [BangPypers] Python ORM In-Reply-To: <1326560051.18632.24.camel@xlquest.web> References: <87boq6dypr.fsf@sanitarium.localdomain> <1326560051.18632.24.camel@xlquest.web> Message-ID: Hi > please do not propagate quotations out of context > > I din get you. -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * From vid at svaksha.com Sat Jan 14 22:47:28 2012 From: vid at svaksha.com (=?UTF-8?B?4KS44KWN4KS14KSV4KWN4KS3?=) Date: Sat, 14 Jan 2012 21:47:28 +0000 Subject: [BangPypers] Python ORM In-Reply-To: References: Message-ID: On Sat, Jan 14, 2012 at 16:10, kracekumar ramaraju wrote: > Hi > > ?I have come across wide range of ORM in python. > > Out all examples and discussions, every one seems to recommend ?SQLAlchemy, > but it has deep learning curve whereas storm, peewee are light weight. Have > anyone tried any of these for non-trivial project or real life big sites, > in case yes please share the experience. I plan to use SQLAlchemy for a scraping project. Had planned to try out the inbuilt django-orm API but then I read this post: . This reply is a definite must read. -- ? ?????? ? http://svaksha.com ? From prataprc at gmail.com Sun Jan 15 03:44:35 2012 From: prataprc at gmail.com (Pratap Chakravarthy) Date: Sun, 15 Jan 2012 08:14:35 +0530 Subject: [BangPypers] Python ORM In-Reply-To: References: Message-ID: > Out all examples and discussions, every one seems to recommend ?SQLAlchemy, I did use ORM, SQLAlchemy, for medium size datastore. ORM can get in your way once the size of data set grows. In my cases I had to change my code to just use SQLAlchemy's expression language. Looking back, I think there is lot of impedance mismatch between ORM in python and SQL database. If you are not keen about SQL databases, you can try one of the key-value data stores. Cheers, On Sat, Jan 14, 2012 at 9:40 PM, kracekumar ramaraju wrote: > Hi > > ?I have come across wide range of ORM in python. > > Out all examples and discussions, every one seems to recommend ?SQLAlchemy, > but it has deep learning curve whereas storm, peewee are light weight. Have > anyone tried any of these for non-trivial project or real life big sites, > in case yes please share the experience. > > > -- > * > Thanks & Regards > > "Talk is cheap, show me the code" -- Linus Torvalds > kracekumar > www.kracekumar.com > * > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers -- Pratap. From senthil at uthcode.com Sun Jan 15 04:23:12 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Sun, 15 Jan 2012 11:23:12 +0800 Subject: [BangPypers] Python ORM In-Reply-To: References: Message-ID: <20120115032312.GA8880@mathmagic> On Sat, Jan 14, 2012 at 09:40:16PM +0530, kracekumar ramaraju wrote: > > Out all examples and discussions, every one seems to recommend SQLAlchemy, > but it has deep learning curve whereas storm, peewee are light weight. Have > anyone tried any of these for non-trivial project or real life big sites, > in case yes please share the experience. I would use anything that is easy for me to get started, understand and it go's well with the project in the production. I have used Storm in Production and have used SQLAlchemy, custom written ORM, Appengine db , plain SQL etc. Have had no issues so far. May be you should do the same. Pick one and get going? -- Senthil From kracethekingmaker at gmail.com Sun Jan 15 06:17:45 2012 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Sun, 15 Jan 2012 10:47:45 +0530 Subject: [BangPypers] Python ORM In-Reply-To: <20120115032312.GA8880@mathmagic> References: <20120115032312.GA8880@mathmagic> Message-ID: Hi > Out all examples and discussions, every one seems to recommend > SQLAlchemy, > > but it has deep learning curve whereas storm, peewee are light weight. > Have > > anyone tried any of these for non-trivial project or real life big sites, > > in case yes please share the experience. > > I would use anything that is easy for me to get started, understand > and it go's well with the project in the production. I have used Storm > in Production and have used SQLAlchemy, custom written ORM, Appengine > db , plain SQL etc. Have had no issues so far. May be you should do > the same. Pick one and get going? > > Yes. I started using SQLAlchemy, but need to spend some time other than that I have no issue. -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * From kracethekingmaker at gmail.com Sun Jan 15 06:19:21 2012 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Sun, 15 Jan 2012 10:49:21 +0530 Subject: [BangPypers] Python ORM In-Reply-To: References: Message-ID: Hi If you are not keen about SQL databases, you can try one of the > key-value data stores. > I wanted to learn SQL ORM, I have tried redis and implemented few projects. > -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * From senthil at uthcode.com Sun Jan 15 06:29:11 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Sun, 15 Jan 2012 13:29:11 +0800 Subject: [BangPypers] Python ORM In-Reply-To: References: <20120115032312.GA8880@mathmagic> Message-ID: <20120115052911.GB8880@mathmagic> On Sun, Jan 15, 2012 at 10:47:45AM +0530, kracekumar ramaraju wrote: > Yes. I started using SQLAlchemy, but need to spend some time other > than that I have no issue. I hope you enjoy spending time on it because, it is going to be fruitful at the end. Cheers, Senthil From asif.jamadar at rezayat.net Sun Jan 15 07:53:35 2012 From: asif.jamadar at rezayat.net (Asif Jamadar) Date: Sun, 15 Jan 2012 06:53:35 +0000 Subject: [BangPypers] Usage of django-workflow Message-ID: Dear All, I installed django-workflow 1.0.2. Can anybody explains the usage of this package. How can I import this package in my settings.py file ? From lawgon at gmail.com Mon Jan 16 04:26:19 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Mon, 16 Jan 2012 08:56:19 +0530 Subject: [BangPypers] Python ORM In-Reply-To: References: Message-ID: <1326684379.18632.58.camel@xlquest.web> On Sat, 2012-01-14 at 21:47 +0000, ?????? wrote: > This > reply is a > definite must read. this is ancient -- regards Kenneth Gonsalves From benignbala at gmail.com Mon Jan 16 05:59:17 2012 From: benignbala at gmail.com (Balachandran Sivakumar) Date: Mon, 16 Jan 2012 10:29:17 +0530 Subject: [BangPypers] I have solved some of the project euler problems in python In-Reply-To: <1326501406.13554.46.camel@xlquest.web> References: <20120113234524.GA1900@mathmagic> <1326501406.13554.46.camel@xlquest.web> Message-ID: Hi, On Sat, Jan 14, 2012 at 6:06 AM, Kenneth Gonsalves wrote: > On Sat, 2012-01-14 at 07:45 +0800, Senthil Kumaran wrote: > > me too. I have done 4 - no 3 taught me a lot about the limitations of > range() And most of the problems reminded me that Python makes programming a lot more easier. I tried solving them with C and Python. Implementing Sieve of Eratosthenes in C was difficult when compared to doing that with Python. Same case for a lot of other stuff - lists(dynamic sizes), availability of methods like map etc. Thanks -- Thank you Balachandran Sivakumar Arise Awake and stop not till the goal is reached. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?- Swami Vivekananda Mail: benignbala at gmail.com Blog: http://benignbala.wordpress.com/ From thatiparthysreenivas at gmail.com Mon Jan 16 07:11:59 2012 From: thatiparthysreenivas at gmail.com (Sreenivas Reddy T) Date: Mon, 16 Jan 2012 11:41:59 +0530 Subject: [BangPypers] I have solved some of the project euler problems in python In-Reply-To: References: <20120113234524.GA1900@mathmagic> <1326501406.13554.46.camel@xlquest.web> Message-ID: > > And most of the problems reminded me that Python makes > programming a lot more easier.otherwise I chose python especially for this reason.As programmer moves along ,i think ,he should work on higher level of abstraction. or you have to come up with range,map(int,str(123)) ,zip and Fraction module equivalents in your implementing lang and re-use them for solving these problems.And implementing these functions itself is a big exercise in its own right.So i chose not to,probably after some other time. Regards, Srinivas Reddy Thatiparthy. From anandology at gmail.com Mon Jan 16 13:42:10 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Mon, 16 Jan 2012 18:12:10 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: References: <87y5tk9lii.fsf@sanitarium.localdomain> <87ty47a2zw.fsf@sanitarium.localdomain> Message-ID: 2012/1/8 Pratap Chakravarthy > > +1 for anything really. Is there someone willing to talk about > > something? > > Just this morning I was planning to make our web toolkit pluggdapps > compatible with PyPy. Since this is free software and since I am > planning to do some hands-on with PyPy in coming months. I can provide > a series of presentation on my experience. > > * I am not a professional speaker. > * I need to know the meet-up date 2-3 weeks earlier since I had to > book my tickets to blore. > > PS: Right now I don't know anything about PyPy, but I can start with > other aspects of pluggdapps and as and when pieces of code gets moved > to PyPy we can validate the claims on PyPy. > How about meeting on Jan 21, Saturday at 3:00PM? Any suggestions for venue? I can talk about my recent project, datastore. https://github.com/anandology/datastore Anand From sriramnrn at gmail.com Mon Jan 16 15:40:04 2012 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Mon, 16 Jan 2012 20:10:04 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: References: <87y5tk9lii.fsf@sanitarium.localdomain> <87ty47a2zw.fsf@sanitarium.localdomain> Message-ID: There's the Thoughtworks Koramangala office, for one. -- Sriram On 1/16/12, Anand Chitipothu wrote: > 2012/1/8 Pratap Chakravarthy > >> > +1 for anything really. Is there someone willing to talk about >> > something? >> >> Just this morning I was planning to make our web toolkit pluggdapps >> compatible with PyPy. Since this is free software and since I am >> planning to do some hands-on with PyPy in coming months. I can provide >> a series of presentation on my experience. >> >> * I am not a professional speaker. >> * I need to know the meet-up date 2-3 weeks earlier since I had to >> book my tickets to blore. >> >> PS: Right now I don't know anything about PyPy, but I can start with >> other aspects of pluggdapps and as and when pieces of code gets moved >> to PyPy we can validate the claims on PyPy. >> > > How about meeting on Jan 21, Saturday at 3:00PM? > Any suggestions for venue? > > I can talk about my recent project, datastore. > > https://github.com/anandology/datastore > > Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Sent from my mobile device ------------------------------------ Belenix: www.belenix.org Twitter: @sriramnrn From noufal at nibrahim.net.in Mon Jan 16 15:41:43 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Mon, 16 Jan 2012 20:11:43 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: (Sriram Narayanan's message of "Mon, 16 Jan 2012 20:10:04 +0530") References: <87y5tk9lii.fsf@sanitarium.localdomain> <87ty47a2zw.fsf@sanitarium.localdomain> Message-ID: <87zkdnbtg8.fsf@sanitarium.localdomain> Sriram Narayanan writes: > There's the Thoughtworks Koramangala office, for one. There's the TW office, ZeOmega which is more to the south side. If the C42 office is available, that's another venue in Indira Nagar. [...] -- ~noufal http://nibrahim.net.in If Roosevelt were alive, he'd turn over in his grave. -Samuel Goldwyn From baiju.m.mail at gmail.com Mon Jan 16 16:10:22 2012 From: baiju.m.mail at gmail.com (Baiju M) Date: Mon, 16 Jan 2012 20:40:22 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: <87zkdnbtg8.fsf@sanitarium.localdomain> References: <87y5tk9lii.fsf@sanitarium.localdomain> <87ty47a2zw.fsf@sanitarium.localdomain> <87zkdnbtg8.fsf@sanitarium.localdomain> Message-ID: On Mon, Jan 16, 2012 at 8:11 PM, Noufal Ibrahim wrote: > Sriram Narayanan writes: > >> There's the Thoughtworks Koramangala office, for one. > > There's the TW office, ZeOmega which is more to the south side. If the > C42 office is available, that's another venue in Indira Nagar. ZeOmega is happy to host BangPypers meetup here. We have some folks from Dallas Ft. Worth Pythoneers http://www.dfwpython.org/ who is interested to come (Jeff Rush & Brad Allen) for the meetup. I am not sure whether they have any other weekend plan. I will check with them tomorrow and inform here. Regards, Baiju M From noufal at nibrahim.net.in Mon Jan 16 17:09:57 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Mon, 16 Jan 2012 21:39:57 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: (Baiju M.'s message of "Mon, 16 Jan 2012 20:40:22 +0530") References: <87y5tk9lii.fsf@sanitarium.localdomain> <87ty47a2zw.fsf@sanitarium.localdomain> <87zkdnbtg8.fsf@sanitarium.localdomain> Message-ID: <87vcobbpd6.fsf@sanitarium.localdomain> Baiju M writes: > On Mon, Jan 16, 2012 at 8:11 PM, Noufal Ibrahim wrote: >> Sriram Narayanan writes: >> >>> There's the Thoughtworks Koramangala office, for one. >> >> There's the TW office, ZeOmega which is more to the south side. If the >> C42 office is available, that's another venue in Indira Nagar. > > ZeOmega is happy to host BangPypers meetup here. We have some folks > from Dallas Ft. Worth Pythoneers http://www.dfwpython.org/ who is > interested to come (Jeff Rush & Brad Allen) for the meetup. I am not > sure whether they have any other weekend plan. I will check with them > tomorrow and inform here. That's swell. I think it would be nice to have the meeting at ZeOmega then. [...] -- ~noufal http://nibrahim.net.in Thank God I'm an atheist. From venkat83 at gmail.com Tue Jan 17 03:29:18 2012 From: venkat83 at gmail.com (Venkatraman S) Date: Tue, 17 Jan 2012 07:59:18 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: <87vcobbpd6.fsf@sanitarium.localdomain> References: <87y5tk9lii.fsf@sanitarium.localdomain> <87ty47a2zw.fsf@sanitarium.localdomain> <87zkdnbtg8.fsf@sanitarium.localdomain> <87vcobbpd6.fsf@sanitarium.localdomain> Message-ID: On Mon, Jan 16, 2012 at 9:39 PM, Noufal Ibrahim wrote: > That's swell. I think it would be nice to have the meeting at ZeOmega > then. > Been quiet sometime since i attended any conference/meetup; I will try to be there then. -V From noufal at nibrahim.net.in Tue Jan 17 05:56:11 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Tue, 17 Jan 2012 10:26:11 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: (Venkatraman S.'s message of "Tue, 17 Jan 2012 07:59:18 +0530") References: <87y5tk9lii.fsf@sanitarium.localdomain> <87ty47a2zw.fsf@sanitarium.localdomain> <87zkdnbtg8.fsf@sanitarium.localdomain> <87vcobbpd6.fsf@sanitarium.localdomain> Message-ID: <87k44rapw4.fsf@sanitarium.localdomain> Venkatraman S writes: > On Mon, Jan 16, 2012 at 9:39 PM, Noufal Ibrahim wrote: > >> That's swell. I think it would be nice to have the meeting at ZeOmega >> then. >> > > Been quiet sometime since i attended any conference/meetup; I will try to > be there then. [...] Shall we confirm it then? Time : 1500 Venue : ZeOmega (Baiju can provide the complete address and link) Agenda : Data store by Anand (I would also like to spend maybe 30 minutes discussing how we can systematise out user group meetings and do something more than just meet rarely. If everyone is in agreement, it would be nice to have a headcount. Thanks -- ~noufal http://nibrahim.net.in It's more than magnificent-it's mediocre. -Samuel Goldwyn From abpillai at gmail.com Tue Jan 17 07:54:01 2012 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 17 Jan 2012 12:24:01 +0530 Subject: [BangPypers] I have solved some of the project euler problems in python In-Reply-To: References: <20120113234524.GA1900@mathmagic> <1326501406.13554.46.camel@xlquest.web> Message-ID: On Mon, Jan 16, 2012 at 11:41 AM, Sreenivas Reddy T < thatiparthysreenivas at gmail.com> wrote: > > > > And most of the problems reminded me that Python makes > > programming a lot more easier.otherwise > > > I chose python especially for this reason.As programmer moves along ,i > think ,he should work on higher level of abstraction. > or you have to come up with range,map(int,str(123)) ,zip and Fraction > module equivalents in your implementing lang and re-use them for solving > these problems.And implementing these functions itself is a big exercise in > its own right.So i chose not to,probably after some other time. > My key insight when solving these using Python was how I was able to use techniques like memoizing using generators etc in order to optimize my code to a great degree. By caching a lot of values along the way many problems like those dealing with prime numbers perform at a different level. > > > > Regards, > Srinivas Reddy Thatiparthy. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From lawgon at gmail.com Tue Jan 17 08:13:08 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Tue, 17 Jan 2012 12:43:08 +0530 Subject: [BangPypers] I have solved some of the project euler problems in python In-Reply-To: References: <20120113234524.GA1900@mathmagic> <1326501406.13554.46.camel@xlquest.web> Message-ID: <1326784388.18632.73.camel@xlquest.web> On Tue, 2012-01-17 at 12:24 +0530, Anand Balachandran Pillai wrote: > > I chose python especially for this reason.As programmer moves > along ,i > > think ,he should work on higher level of abstraction. > > or you have to come up with range,map(int,str(123)) ,zip and > Fraction > > module equivalents in your implementing lang and re-use them for > solving > > these problems.And implementing these functions itself is a big > exercise in > > its own right.So i chose not to,probably after some other time. > > > > My key insight when solving these using Python was how I was able to > use techniques like memoizing using generators etc in order to > optimize > my code to a great degree. By caching a lot of values along the way > many problems like those dealing with prime numbers perform > at a different level. > > > my brute force on 10 took several hours - but I see solutions that run in seconds. -- regards Kenneth Gonsalves From thatiparthysreenivas at gmail.com Tue Jan 17 09:56:56 2012 From: thatiparthysreenivas at gmail.com (Sreenivas Reddy T) Date: Tue, 17 Jan 2012 14:26:56 +0530 Subject: [BangPypers] I have solved some of the project euler problems in python In-Reply-To: References: <20120113234524.GA1900@mathmagic> <1326501406.13554.46.camel@xlquest.web> Message-ID: > > My key insight when solving these using Python was how I was able to > use techniques like memoizing using generators > Yep. my code base is full of generators. The take away from euler problems ,for me is , i lost the fear of mathematics and cool tricks with recursion. https://gist.github.com/1625699 From thatiparthysreenivas at gmail.com Tue Jan 17 11:14:16 2012 From: thatiparthysreenivas at gmail.com (Sreenivas Reddy T) Date: Tue, 17 Jan 2012 15:44:16 +0530 Subject: [BangPypers] Truth Tests (bool) In-Reply-To: <87zkdre8t8.fsf@sanitarium.localdomain> References: <878vlekh01.fsf@sanitarium.localdomain> <87zkdre8t8.fsf@sanitarium.localdomain> Message-ID: > > > This is an interesting point especially with Python3 returning something > other than lists for things like dict.keys. I'll dig into this a > little. > > Thanks. > > Noufal,if haven't gone through , >From the PEP -3106. "This PEP proposes to change the .keys(), .values() and .items() methods of the built-in dict type to return a set-like or unordered container object whose contents are derived from the underlying dictionary rather than a list which is a copy of the keys, etc.; and to remove the .iterkeys(), .itervalues() and .iteritems() methods." http://www.python.org/dev/peps/pep-3106/ Please see the pseudo-code at the bottom,they override __len__ magic method. From ganti.r at gmail.com Tue Jan 17 16:01:16 2012 From: ganti.r at gmail.com (Ramjee Ganti) Date: Tue, 17 Jan 2012 20:31:16 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: <87k44rapw4.fsf@sanitarium.localdomain> References: <87y5tk9lii.fsf@sanitarium.localdomain> <87ty47a2zw.fsf@sanitarium.localdomain> <87zkdnbtg8.fsf@sanitarium.localdomain> <87vcobbpd6.fsf@sanitarium.localdomain> <87k44rapw4.fsf@sanitarium.localdomain> Message-ID: Date : 21st Jan 2012 ? rAm i Think, i Wait, i Fast -- Siddhartha http://sodidi.ramjeeganti.com On Tue, Jan 17, 2012 at 10:26 AM, Noufal Ibrahim wrote: > Venkatraman S writes: > > > On Mon, Jan 16, 2012 at 9:39 PM, Noufal Ibrahim >wrote: > > > >> That's swell. I think it would be nice to have the meeting at ZeOmega > >> then. > >> > > > > Been quiet sometime since i attended any conference/meetup; I will try to > > be there then. > > [...] > > Shall we confirm it then? > > Time : 1500 > Venue : ZeOmega (Baiju can provide the complete address and link) > Agenda : Data store by Anand (I would also like to spend maybe 30 minutes > discussing how we can systematise out user group meetings and do > something more than just meet rarely. > > If everyone is in agreement, it would be nice to have a headcount. > > Thanks > > -- > ~noufal > http://nibrahim.net.in > > It's more than magnificent-it's mediocre. -Samuel Goldwyn > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at nibrahim.net.in Wed Jan 18 11:09:50 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Wed, 18 Jan 2012 15:39:50 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: (Ramjee Ganti's message of "Tue, 17 Jan 2012 20:31:16 +0530") References: <87y5tk9lii.fsf@sanitarium.localdomain> <87ty47a2zw.fsf@sanitarium.localdomain> <87zkdnbtg8.fsf@sanitarium.localdomain> <87vcobbpd6.fsf@sanitarium.localdomain> <87k44rapw4.fsf@sanitarium.localdomain> Message-ID: <87r4yxe2z5.fsf@sanitarium.localdomain> Yes. 21st Jan 2012 So Date : 21 Jan 2012 Time : 1500 Venue : ZeOmega (Baiju can provide the complete address and link) Agenda : Data store by Anand (I would also like to spend maybe 30 minutes discussing how we can systematise out user group meetings and do something more than just meet rarely. Ramjee Ganti writes: > Date : 21st Jan 2012 ? > rAm > > i Think, i Wait, i Fast -- Siddhartha > http://sodidi.ramjeeganti.com > > > On Tue, Jan 17, 2012 at 10:26 AM, Noufal Ibrahim wrote: > >> Venkatraman S writes: >> >> > On Mon, Jan 16, 2012 at 9:39 PM, Noufal Ibrahim > >wrote: >> > >> >> That's swell. I think it would be nice to have the meeting at ZeOmega >> >> then. >> >> >> > >> > Been quiet sometime since i attended any conference/meetup; I will try to >> > be there then. >> >> [...] >> >> Shall we confirm it then? >> >> Time : 1500 >> Venue : ZeOmega (Baiju can provide the complete address and link) >> Agenda : Data store by Anand (I would also like to spend maybe 30 minutes >> discussing how we can systematise out user group meetings and do >> something more than just meet rarely. >> >> If everyone is in agreement, it would be nice to have a headcount. >> >> Thanks >> >> -- >> ~noufal >> http://nibrahim.net.in >> >> It's more than magnificent-it's mediocre. -Samuel Goldwyn >> _______________________________________________ >> 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 > -- ~noufal http://nibrahim.net.in The first condition of immortality is death. -Stanislaw Lec From senthil at uthcode.com Wed Jan 18 13:25:48 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 18 Jan 2012 20:25:48 +0800 Subject: [BangPypers] getpython3 Message-ID: <20120118122548.GA1958@mathmagic> Hi Baiju, Is getpython3.com the same site that you initiated here last year? Or has it gone any transformation? The content is ofcourse very interesting. -- Senthil From baiju.m.mail at gmail.com Wed Jan 18 13:29:18 2012 From: baiju.m.mail at gmail.com (Baiju M) Date: Wed, 18 Jan 2012 17:59:18 +0530 Subject: [BangPypers] getpython3 In-Reply-To: <20120118122548.GA1958@mathmagic> References: <20120118122548.GA1958@mathmagic> Message-ID: That is not the one I started, this is a new one from Jesse Noller. getpython3.net I stopped as there was not any interest from the community. If anyone want to take over it, I can give the domain and other details. On Wed, Jan 18, 2012 at 5:55 PM, Senthil Kumaran wrote: > Hi Baiju, > > Is getpython3.com the same site that you initiated here last year? Or > has it gone any transformation? The content is ofcourse very > interesting. > > -- > Senthil > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From b.ghose at gmail.com Wed Jan 18 13:37:43 2012 From: b.ghose at gmail.com (Baishampayan Ghose) Date: Wed, 18 Jan 2012 18:07:43 +0530 Subject: [BangPypers] getpython3 In-Reply-To: References: <20120118122548.GA1958@mathmagic> Message-ID: > That is not the one I started, this is a new one from Jesse Noller. > getpython3.net I stopped as there was not any interest from the community. > If anyone want to take over it, I can give the domain and other details. May be you should just redirect getpython3.net to getpython3.com with a 301. Regards, BG -- Baishampayan Ghose b.ghose at gmail.com From baiju.m.mail at gmail.com Wed Jan 18 14:04:36 2012 From: baiju.m.mail at gmail.com (Baiju M) Date: Wed, 18 Jan 2012 18:34:36 +0530 Subject: [BangPypers] getpython3 In-Reply-To: References: <20120118122548.GA1958@mathmagic> Message-ID: On Wed, Jan 18, 2012 at 6:07 PM, Baishampayan Ghose wrote: >> That is not the one I started, this is a new one from Jesse Noller. >> getpython3.net I stopped as there was not any interest from the community. >> If anyone want to take over it, I can give the domain and other details. > > May be you should just redirect getpython3.net to getpython3.com with a 301. Done. -- Baiju M From b.ghose at gmail.com Wed Jan 18 14:07:26 2012 From: b.ghose at gmail.com (Baishampayan Ghose) Date: Wed, 18 Jan 2012 18:37:26 +0530 Subject: [BangPypers] getpython3 In-Reply-To: References: <20120118122548.GA1958@mathmagic> Message-ID: >>> That is not the one I started, this is a new one from Jesse Noller. >>> getpython3.net I stopped as there was not any interest from the community. >>> If anyone want to take over it, I can give the domain and other details. >> >> May be you should just redirect getpython3.net to getpython3.com with a 301. > > Done. Awesome! Regards, BG -- Baishampayan Ghose b.ghose at gmail.com From senthil at uthcode.com Wed Jan 18 14:24:31 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 18 Jan 2012 21:24:31 +0800 Subject: [BangPypers] getpython3 In-Reply-To: References: <20120118122548.GA1958@mathmagic> Message-ID: <20120118132431.GB1958@mathmagic> On Wed, Jan 18, 2012 at 06:07:43PM +0530, Baishampayan Ghose wrote: > > That is not the one I started, this is a new one from Jesse Noller. > > getpython3.net I stopped as there was not any interest from the community. > > If anyone want to take over it, I can give the domain and other details. > > May be you should just redirect getpython3.net to getpython3.com with a 301. Yeah. that would be good idea. I think the author of getpython3.comm could have contributed to original one, but yeah the purpose seems to be same. So, it is fine. -- Senthil From senthil at uthcode.com Wed Jan 18 14:25:16 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Wed, 18 Jan 2012 21:25:16 +0800 Subject: [BangPypers] getpython3 In-Reply-To: References: <20120118122548.GA1958@mathmagic> Message-ID: <20120118132516.GC1958@mathmagic> On Wed, Jan 18, 2012 at 06:37:26PM +0530, Baishampayan Ghose wrote: > >>> That is not the one I started, this is a new one from Jesse Noller. > >>> getpython3.net I stopped as there was not any interest from the community. > >>> If anyone want to take over it, I can give the domain and other details. > >> > >> May be you should just redirect getpython3.net to getpython3.com with a 301. > > > > Done. > > Awesome! Cool. By the time I sent the draft email. -- Senthil From noufal at nibrahim.net.in Wed Jan 18 17:21:02 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Wed, 18 Jan 2012 21:51:02 +0530 Subject: [BangPypers] getpython3 In-Reply-To: <20120118132431.GB1958@mathmagic> (Senthil Kumaran's message of "Wed, 18 Jan 2012 21:24:31 +0800") References: <20120118122548.GA1958@mathmagic> <20120118132431.GB1958@mathmagic> Message-ID: <8762g9dlsh.fsf@sanitarium.localdomain> Senthil Kumaran writes: > On Wed, Jan 18, 2012 at 06:07:43PM +0530, Baishampayan Ghose wrote: >> > That is not the one I started, this is a new one from Jesse Noller. >> > getpython3.net I stopped as there was not any interest from the community. >> > If anyone want to take over it, I can give the domain and other details. >> >> May be you should just redirect getpython3.net to getpython3.com with a 301. > > Yeah. that would be good idea. I think the author of getpython3.comm > could have contributed to original one, but yeah the purpose seems to > be same. So, it is fine. getpython3.net was more of a package index with crowd sourced information on compatiblity with python3 (inspired by http://isitruby19.com/) getpython3.com was a more comprehensive site with information on porting and increasing Python3 adoption and usage. In all fairness, I recollect that Jesse tweeted/emailed us about collaborating but it fell between the cracks and never really took off. -- ~noufal http://nibrahim.net.in "I always avoid prophesying beforehand because it is much better to prophesy after the event has already taken place. " - Winston Churchill From senthil at uthcode.com Wed Jan 18 18:39:42 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Thu, 19 Jan 2012 01:39:42 +0800 Subject: [BangPypers] getpython3 In-Reply-To: <8762g9dlsh.fsf@sanitarium.localdomain> References: <20120118122548.GA1958@mathmagic> <20120118132431.GB1958@mathmagic> <8762g9dlsh.fsf@sanitarium.localdomain> Message-ID: <20120118173942.GA12405@mathmagic> On Wed, Jan 18, 2012 at 09:51:02PM +0530, Noufal Ibrahim wrote: > getpython3.com was a more comprehensive site with information on porting > and increasing Python3 adoption and usage. > > In all fairness, I recollect that Jesse tweeted/emailed us about > collaborating but it fell between the cracks and never really took off. I see. That's pretty good and good that it is redirected to the active one now. thanks, Senthil From anandology at gmail.com Thu Jan 19 08:30:58 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Thu, 19 Jan 2012 13:00:58 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: <87k44rapw4.fsf@sanitarium.localdomain> References: <87y5tk9lii.fsf@sanitarium.localdomain> <87ty47a2zw.fsf@sanitarium.localdomain> <87zkdnbtg8.fsf@sanitarium.localdomain> <87vcobbpd6.fsf@sanitarium.localdomain> <87k44rapw4.fsf@sanitarium.localdomain> Message-ID: 2012/1/17 Noufal Ibrahim : > Venkatraman S writes: > >> On Mon, Jan 16, 2012 at 9:39 PM, Noufal Ibrahim wrote: >> >>> That's swell. I think it would be nice to have the meeting at ZeOmega >>> then. >>> >> >> Been quiet sometime since i attended any conference/meetup; I will try to >> be there then. > > [...] > > Shall we confirm it then? > > Time ? : 1500 > Venue ?: ZeOmega (Baiju can provide the complete address and link) > Agenda : Data store by Anand (I would also like to spend maybe 30 minutes > ? ? ? ? discussing how we can systematise out user group meetings and do > ? ? ? ? something more than just meet rarely. > > If everyone is in agreement, it would be nice to have a headcount. Yes, lets confirm this. I just spoke to Baiju, he confirmed that Brad and Jeff will be available. Date: Saturday Jan 21 Baiju, can you please send the address and directions to the place? Anand From jinsthomas at gmail.com Thu Jan 19 11:36:58 2012 From: jinsthomas at gmail.com (Jins Thomas) Date: Thu, 19 Jan 2012 16:06:58 +0530 Subject: [BangPypers] Python 3 availability Message-ID: Hi all, Would like to have some guesses on when Python 3 will be available with standard distributions of Linux/Unix. Cheers Jins Thomas From lawgon at gmail.com Thu Jan 19 12:24:38 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Thu, 19 Jan 2012 16:54:38 +0530 Subject: [BangPypers] Python 3 availability In-Reply-To: References: Message-ID: <1326972278.18632.100.camel@xlquest.web> On Thu, 2012-01-19 at 16:06 +0530, Jins Thomas wrote: > Would like to have some guesses on when Python 3 will be available > with > standard distributions of Linux/Unix. depends on what you mean by standard distributions. For example archlinux moved in 2010 to it as default. Fedora has it - but not installed by default. -- regards Kenneth Gonsalves From jinsthomas at gmail.com Thu Jan 19 12:47:08 2012 From: jinsthomas at gmail.com (Jins Thomas) Date: Thu, 19 Jan 2012 17:17:08 +0530 Subject: [BangPypers] Python 3 availability In-Reply-To: <1326972278.18632.100.camel@xlquest.web> References: <1326972278.18632.100.camel@xlquest.web> Message-ID: On Thu, Jan 19, 2012 at 4:54 PM, Kenneth Gonsalves wrote: > On Thu, 2012-01-19 at 16:06 +0530, Jins Thomas wrote: > > Would like to have some guesses on when Python 3 will be available > > with > > standard distributions of Linux/Unix. > > depends on what you mean by standard distributions. For example > archlinux moved in 2010 to it as default. Fedora has it - but not > installed by default. > -- regards > Kenneth Gonsalves > > Yes, Thanks, i meant the same, especially RHEL From lawgon at gmail.com Thu Jan 19 12:52:09 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Thu, 19 Jan 2012 17:22:09 +0530 Subject: [BangPypers] Python 3 availability In-Reply-To: References: <1326972278.18632.100.camel@xlquest.web> Message-ID: <1326973929.18632.102.camel@xlquest.web> On Thu, 2012-01-19 at 17:17 +0530, Jins Thomas wrote: > > Yes, Thanks, i meant the same, especially RHEL debian will take some time and RHEL will take a long time. -- regards Kenneth Gonsalves From benignbala at gmail.com Thu Jan 19 12:59:23 2012 From: benignbala at gmail.com (Balachandran Sivakumar) Date: Thu, 19 Jan 2012 17:29:23 +0530 Subject: [BangPypers] Python 3 availability In-Reply-To: <1326973929.18632.102.camel@xlquest.web> References: <1326972278.18632.100.camel@xlquest.web> <1326973929.18632.102.camel@xlquest.web> Message-ID: Hi, On Thu, Jan 19, 2012 at 5:22 PM, Kenneth Gonsalves wrote: > On Thu, 2012-01-19 at 17:17 +0530, Jins Thomas wrote: > > debian will take some time and RHEL will take a long time. You are replying without really checking :) Debian(Squeeze) already has python 3. It is not the default though. Much like what you told for Fedora. Thanks -- Thank you Balachandran Sivakumar Arise Awake and stop not till the goal is reached. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?- Swami Vivekananda Mail: benignbala at gmail.com Blog: http://benignbala.wordpress.com/ From lawgon at gmail.com Thu Jan 19 13:16:30 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Thu, 19 Jan 2012 17:46:30 +0530 Subject: [BangPypers] Python 3 availability In-Reply-To: References: <1326972278.18632.100.camel@xlquest.web> <1326973929.18632.102.camel@xlquest.web> Message-ID: <1326975390.18632.104.camel@xlquest.web> On Thu, 2012-01-19 at 17:29 +0530, Balachandran Sivakumar wrote: > On Thu, Jan 19, 2012 at 5:22 PM, Kenneth Gonsalves > wrote: > > On Thu, 2012-01-19 at 17:17 +0530, Jins Thomas wrote: > > > > debian will take some time and RHEL will take a long time. > > You are replying without really checking :) Debian(Squeeze) > already has python 3. It is not the default though. Much like what you > told for Fedora. Thanks my bad (/me upgrades has opinion of debian) -- regards Kenneth Gonsalves From senthil at uthcode.com Thu Jan 19 13:45:36 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Thu, 19 Jan 2012 20:45:36 +0800 Subject: [BangPypers] Python 3 availability In-Reply-To: References: Message-ID: <20120119124536.GA1847@mathmagic> It is currently available on Ubuntu, Fedora, Arch OS that I know off. You can install it using your OS package manager. -- Senthil On Thu, Jan 19, 2012 at 04:06:58PM +0530, Jins Thomas wrote: > Hi all, > > Would like to have some guesses on when Python 3 will be available with > standard distributions of Linux/Unix. > > Cheers > Jins Thomas > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From baiju.m.mail at gmail.com Thu Jan 19 15:03:56 2012 From: baiju.m.mail at gmail.com (Baiju M) Date: Thu, 19 Jan 2012 19:33:56 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: References: <87y5tk9lii.fsf@sanitarium.localdomain> <87ty47a2zw.fsf@sanitarium.localdomain> <87zkdnbtg8.fsf@sanitarium.localdomain> <87vcobbpd6.fsf@sanitarium.localdomain> <87k44rapw4.fsf@sanitarium.localdomain> Message-ID: On Thu, Jan 19, 2012 at 1:00 PM, Anand Chitipothu wrote: [...skip...] >> Shall we confirm it then? >> >> Time ? : 1500 >> Venue ?: ZeOmega (Baiju can provide the complete address and link) >> Agenda : Data store by Anand (I would also like to spend maybe 30 minutes >> ? ? ? ? discussing how we can systematise out user group meetings and do >> ? ? ? ? something more than just meet rarely. >> >> If everyone is in agreement, it would be nice to have a headcount. > > Yes, lets confirm this. I just spoke to Baiju, he confirmed that Brad > and Jeff will be available. > > Date: Saturday Jan 21 > > Baiju, can you please send the address and directions to the place? The meeting will be in "Subhashri Pride" building: ZeOmega Infotech Pvt. Ltd. "Subhashri Pride", 4th Floor, Southend Road, Basavanagudi, Bangalore-560-004 (Just look for "Axis Bank", it's the same building) We have three offices in walk-able distances. You can come to one of the place and call me. http://www.zeomega.in/aboutus/contactus http://g.co/maps/5w96c My Mobile: 9945973441 Regards, Baiju M From dodi.ara at gmail.com Fri Jan 20 02:13:51 2012 From: dodi.ara at gmail.com (Dodi Ara) Date: Fri, 20 Jan 2012 08:13:51 +0700 Subject: [BangPypers] QTableWidget add from my files to table Message-ID: i wondering, how can i add from my files to table widget? for example, i have one file $ cat a tes $ so, the "test" fill in the one or more row or columns any help will be appreciate From nikunjbadjatya at gmail.com Sat Jan 21 19:29:40 2012 From: nikunjbadjatya at gmail.com (Nikunj Badjatya) Date: Sat, 21 Jan 2012 23:59:40 +0530 Subject: [BangPypers] checking return status of 'ping' in windows Message-ID: Hi All, I am using the following snippet to check the availability of an IP address. If that IP addr is found free than it can be used later on for further operations. Python ver 3.2 Windows OS {{{ pingret = subprocess.Popen('ping {0}'.format(IPaddr), shell=True,universal_newlines=True, \ stdout=subprocess.PIPE, stderr=subprocess.STDOUT) status = pingret.wait() if status == 0: print("WARN The IP given in the input is not free") ..... ..... }}} Normal ping operation on windows cmd prompt can give 3 outputs. 1) "destination host unreachable 2) "request timed out" 3) "Reply from 192.168.1.1: bytes=32 time=3ms TTL=64" Now, I was expecting the "status" in above snippet to hold '0' only in case of no. 3) But even when we have case 1), 'status' is holding '0'. i.e. The exit status of ping is 0, even when destination host is unreachable.! How do I make my snippet to work as desired. i.e even if destination host is unreachable, 'status' should hold '1' and hold '0' only when it gets reply from that ip address.?? Thanks, Nikunj -- *7*Switch off as you go |*q*Recycle always | P Save Paper - Save Trees | Go Green From noufal at nibrahim.net.in Sat Jan 21 19:51:10 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Sun, 22 Jan 2012 00:21:10 +0530 Subject: [BangPypers] checking return status of 'ping' in windows In-Reply-To: (Nikunj Badjatya's message of "Sat, 21 Jan 2012 23:59:40 +0530") References: Message-ID: <87bopwvqht.fsf@sanitarium.localdomain> Nikunj Badjatya writes: [...] > Now, > I was expecting the "status" in above snippet to hold '0' only in case of > no. 3) > But even when we have case 1), 'status' is holding '0'. > i.e. The exit status of ping is 0, even when destination host is > unreachable.! > > How do I make my snippet to work as desired. i.e even if destination host > is unreachable, 'status' should hold '1' and hold '0' only when it gets > reply from that ip address.?? You could grep the output of ping to check what happened but this is a clumsy way of doing this. Isn't there some service running on the remote machine that you can telnet to to ascertain whether it is up or not rather than spawning ping an checking its output status? [...] -- ~noufal http://nibrahim.net.in All generalisations are dangerous, including this one. From nikunjbadjatya at gmail.com Sat Jan 21 19:57:28 2012 From: nikunjbadjatya at gmail.com (Nikunj Badjatya) Date: Sun, 22 Jan 2012 00:27:28 +0530 Subject: [BangPypers] checking return status of 'ping' in windows In-Reply-To: <87bopwvqht.fsf@sanitarium.localdomain> References: <87bopwvqht.fsf@sanitarium.localdomain> Message-ID: Telnet service is not running and not in my hands to start it. Its a Virtual Machine basically. On Sun, Jan 22, 2012 at 12:21 AM, Noufal Ibrahim wrote: > Nikunj Badjatya writes: > > > [...] > > > > Now, > > I was expecting the "status" in above snippet to hold '0' only in case of > > no. 3) > > But even when we have case 1), 'status' is holding '0'. > > i.e. The exit status of ping is 0, even when destination host is > > unreachable.! > > > > How do I make my snippet to work as desired. i.e even if destination host > > is unreachable, 'status' should hold '1' and hold '0' only when it gets > > reply from that ip address.?? > > You could grep the output of ping to check what happened but this is a > clumsy way of doing this. Isn't there some service running on the remote > machine that you can telnet to to ascertain whether it is up or not > rather than spawning ping an checking its output status? > > [...] > > > -- > ~noufal > http://nibrahim.net.in > > All generalisations are dangerous, including this one. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at nibrahim.net.in Sat Jan 21 20:02:28 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Sun, 22 Jan 2012 00:32:28 +0530 Subject: [BangPypers] checking return status of 'ping' in windows In-Reply-To: (Nikunj Badjatya's message of "Sun, 22 Jan 2012 00:27:28 +0530") References: <87bopwvqht.fsf@sanitarium.localdomain> Message-ID: <8762g4vpyz.fsf@sanitarium.localdomain> Nikunj Badjatya writes: > Telnet service is not running and not in my hands to start it. Its a > Virtual Machine basically. [...] Isn't there anything else running? A web server perhaps? Or you could use a pure python implementation of ping[1] to check whether the machine is responding to ICMP echo requests. Footnotes: [1] https://github.com/samuel/python-ping -- ~noufal http://nibrahim.net.in I marvel at the strength of human weakness. From kracethekingmaker at gmail.com Sun Jan 22 04:22:08 2012 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Sun, 22 Jan 2012 08:52:08 +0530 Subject: [BangPypers] checking return status of 'ping' in windows In-Reply-To: <8762g4vpyz.fsf@sanitarium.localdomain> References: <87bopwvqht.fsf@sanitarium.localdomain> <8762g4vpyz.fsf@sanitarium.localdomain> Message-ID: Hi You can use https://github.com/kennethreitz/envoy r = envoy.run("ping -c4 google.com") r.status_code => will yield 0 if success r.std_out => will yield output of the command Note: Output is not parsed either, in case you want better parsed output, you can use my clone https://github.com/kracekumar/envoy Execute the same command and access r.parsed_output (list), check out readme file, you to use r.parsed_output. -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * From bugcy013 at gmail.com Sun Jan 22 10:20:26 2012 From: bugcy013 at gmail.com (Ganesh Kumar) Date: Sun, 22 Jan 2012 14:50:26 +0530 Subject: [BangPypers] Setting Network settings from Python/Django Message-ID: Hi guys I'm working on a simple web interface for an embedded computer. The computer will ship with a static default ip that will then need to be updated by the install tech who may not be tech/linux savvy. Basicly I need to change the following system settings from a Django app. 1. IP Addres 2. Subnet 3. Default Gateway 4. DNS Servers 1&2 I realize that I can could just overwrite the config files in linux but I was wondering if there is a more "Python" way of doing it. I want any ready to use module is there, please guide me. -Ganesh. Did I learn something today? If not, I wasted it. From asif.jamadar at rezayat.net Sun Jan 22 12:01:31 2012 From: asif.jamadar at rezayat.net (Asif Jamadar) Date: Sun, 22 Jan 2012 11:01:31 +0000 Subject: [BangPypers] Reportlab Tool for dynamic reports Message-ID: Dear All, I'm using django and reportlab tool generate Dynamic PDF reports. All the data in report is coming from database. I'm generating dynamic PDF report using reportlab which consist of the data from database. My problem is whenever I restart apache server my PDF reports data is changing. The generated report uses Django queries to display the data. But when I restart apache server then the correct data is not appearing in report. I checked all the queries which I written in my django views. Also I noticed that every restart of apache server showing different results. So I don't think so that this is the problem of my django queries. Is there any solution for this problem? If I restart the apache server data of already generated reports will change, what is the cause for this problem, any solutions? Thanks in advance From senthil at uthcode.com Sun Jan 22 14:35:42 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Sun, 22 Jan 2012 21:35:42 +0800 Subject: [BangPypers] checking return status of 'ping' in windows In-Reply-To: References: Message-ID: <20120122133542.GA2703@mathmagic> On Sat, Jan 21, 2012 at 11:59:40PM +0530, Nikunj Badjatya wrote: > How do I make my snippet to work as desired. i.e even if destination host > is unreachable, 'status' should hold '1' and hold '0' only when it gets > reply from that ip address.?? You are doing it right with subprocess and you can extend the same. Why don't you parse the output of the ping instead of the checking the output status? When the interpretation of output status can be ambiguous, as in your case, it is good to verify the content of the output and assert it's suitability for the next action that you wish to perform. HTH, Senthil From abpillai at gmail.com Sun Jan 22 15:04:59 2012 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Sun, 22 Jan 2012 19:34:59 +0530 Subject: [BangPypers] Fwd: Invitation for FOSSMeet 2012 at NIT Calicut In-Reply-To: References: Message-ID: Speaking engagement at this event in Calicut, Kerala. Interested folks can check it out. --Anand ---------- Forwarded message ---------- From: Speakers Team Date: Sat, Jan 21, 2012 at 5:03 PM Subject: Invitation for FOSSMeet 2012 at NIT Calicut To: abpillai at gmail.com Dear Sir/Madam, We are obliged to invite Kerala IT mission to deliver a talk or conduct a workshop at FOSSMeet 2012. FOSSMeet (http://fossmeet.in/2012/ ), abbreviation for Free and Open Source Softwares Meet, is an annual event on FOSS at National Institute of Technology Calicut. This event brings together FOSS enthusiasts from all over India. FOSSMeet is being conducted successfully for past 7 years now with a huge participation and support from the FOSS community. This edition of the event is scheduled to be held during February 25th (Saturday) and 26th(Sunday), 2012. We would like to know whether your team would be able to join us at this event. It would be grateful If you become our sponsor also. Looking forward to your reply. Thanking you -- Speakers Team FOSSMeet 2012 http://fossmeet.in/2012/ Ph No: +91 - 9745632130 "Create-Share-Collaborate" -- --Anand From kracethekingmaker at gmail.com Mon Jan 23 04:34:42 2012 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Mon, 23 Jan 2012 09:04:42 +0530 Subject: [BangPypers] Fwd: Invitation for FOSSMeet 2012 at NIT Calicut In-Reply-To: References: Message-ID: Hi Speaking engagement at this event in Calicut, Kerala. Interested > folks can check it out. > > --Anand > > ---------- Forwarded message ---------- > From: Speakers Team > Date: Sat, Jan 21, 2012 at 5:03 PM > Subject: Invitation for FOSSMeet 2012 at NIT Calicut > To: abpillai at gmail.com > > > Dear Sir/Madam, > > > > We are obliged to invite Kerala IT mission to deliver a talk or conduct a > workshop at FOSSMeet 2012. > > > > FOSSMeet (http://fossmeet.in/2012/ ), abbreviation for Free and Open > Source > Softwares Meet, is an annual event on FOSS at National Institute of > Technology Calicut. This event brings together FOSS enthusiasts from all > over India. FOSSMeet is being conducted successfully for past 7 years now > with a huge participation and support from the FOSS community. This edition > of the event is scheduled to be held during February 25th (Saturday) and > 26th(Sunday), 2012. > > > > We would like to know whether your team would be able to join us at this > event. It would be grateful If you become our sponsor also. Looking forward > to your reply. > > Thank you and I submitted my talk. -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * From mandarvaze at gmail.com Mon Jan 23 06:42:38 2012 From: mandarvaze at gmail.com (=?UTF-8?B?TWFuZGFyIFZhemUgLyDgpK7gpILgpKbgpL7gpLAg4KS14KSd4KWH?=) Date: Mon, 23 Jan 2012 11:12:38 +0530 Subject: [BangPypers] checking return status of 'ping' in windows In-Reply-To: <20120122133542.GA2703@mathmagic> References: <20120122133542.GA2703@mathmagic> Message-ID: > > Why don't you parse the output of the ping instead of the checking the > output status? When the interpretation of output status can be > If OP has requirements to run the code on non-english OS setup (Japanese, say) Then parsing for the output text may be problematic. Python implementation of ping that Noufal suggested is better, I think. -Mandar From mandarvaze at gmail.com Mon Jan 23 06:52:55 2012 From: mandarvaze at gmail.com (=?UTF-8?B?TWFuZGFyIFZhemUgLyDgpK7gpILgpKbgpL7gpLAg4KS14KSd4KWH?=) Date: Mon, 23 Jan 2012 11:22:55 +0530 Subject: [BangPypers] Setting Network settings from Python/Django In-Reply-To: References: Message-ID: > > I realize that I can could just overwrite the config files in linux but I > was wondering if there is a more "Python" way of doing it. > > I want any ready to use module is there, please guide me. > See if Fabric http://docs.fabfile.org/en/1.3.4/index.html is of any help. -Mandar From senthil at uthcode.com Mon Jan 23 08:58:19 2012 From: senthil at uthcode.com (Senthil Kumaran) Date: Mon, 23 Jan 2012 15:58:19 +0800 Subject: [BangPypers] checking return status of 'ping' in windows In-Reply-To: References: <20120122133542.GA2703@mathmagic> Message-ID: <20120123075819.GA3608@mathmagic> On Mon, Jan 23, 2012 at 11:12:38AM +0530, Mandar Vaze / ????? ??? wrote: > If OP has requirements to run the code on non-english OS setup (Japanese, Did he mention about it ? If he did, then I might have missed it and yeah, true some other strategy has to be adopted. Moreover, dealing with non-english is a different beast altogether. If not, one should not find reasons to shy away from writing simple, useful and solving the purpose solutions. -- Senthil From venkat83 at gmail.com Mon Jan 23 09:01:18 2012 From: venkat83 at gmail.com (Venkatraman S) Date: Mon, 23 Jan 2012 13:31:18 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: References: <87y5tk9lii.fsf@sanitarium.localdomain> <87ty47a2zw.fsf@sanitarium.localdomain> <87zkdnbtg8.fsf@sanitarium.localdomain> <87vcobbpd6.fsf@sanitarium.localdomain> <87k44rapw4.fsf@sanitarium.localdomain> Message-ID: On Thu, Jan 19, 2012 at 7:33 PM, Baiju M wrote: > On Thu, Jan 19, 2012 at 1:00 PM, Anand Chitipothu > wrote: > The meeting will be in "Subhashri Pride" building: > > ZeOmega Infotech Pvt. Ltd. > "Subhashri Pride", 4th Floor, Southend Road, > Basavanagudi, Bangalore-560-004 > (Just look for "Axis Bank", it's the same building) > > Did this happen? -V From noufal at nibrahim.net.in Mon Jan 23 09:17:52 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Mon, 23 Jan 2012 13:47:52 +0530 Subject: [BangPypers] How about meet-up In-Reply-To: (Venkatraman S.'s message of "Mon, 23 Jan 2012 13:31:18 +0530") References: <87y5tk9lii.fsf@sanitarium.localdomain> <87ty47a2zw.fsf@sanitarium.localdomain> <87zkdnbtg8.fsf@sanitarium.localdomain> <87vcobbpd6.fsf@sanitarium.localdomain> <87k44rapw4.fsf@sanitarium.localdomain> Message-ID: <87bopusuhb.fsf@sanitarium.localdomain> Venkatraman S writes: > On Thu, Jan 19, 2012 at 7:33 PM, Baiju M wrote: > >> On Thu, Jan 19, 2012 at 1:00 PM, Anand Chitipothu >> wrote: >> The meeting will be in "Subhashri Pride" building: >> >> ZeOmega Infotech Pvt. Ltd. >> "Subhashri Pride", 4th Floor, Southend Road, >> Basavanagudi, Bangalore-560-004 >> (Just look for "Axis Bank", it's the same building) >> >> > Did this happen? [...] Yes. I'll send out a minutes in a day or so. -- ~noufal http://nibrahim.net.in If you fall and break your legs, don't come running to me. -Samuel Goldwyn From sanjaypadubidri at gmail.com Mon Jan 23 09:41:55 2012 From: sanjaypadubidri at gmail.com (Sanjay Padubidri) Date: Mon, 23 Jan 2012 14:11:55 +0530 Subject: [BangPypers] checking return status of 'ping' in windows Message-ID: > Python implementation of ping that Noufal suggested is better, I think. Python Ping has the problem that you need root permission - any program that uses raw sockets has this issue. Another option is to try opening a socket to port 9 (the discard port). -Sanjay From santhosh.edukulla at gmail.com Mon Jan 23 14:48:57 2012 From: santhosh.edukulla at gmail.com (Santhosh Edukulla) Date: Mon, 23 Jan 2012 19:18:57 +0530 Subject: [BangPypers] Senior Technical lead openings in McAfee Message-ID: Hi Guys, We have couple of senior positions at McAfee in the experience range of 8-12 yrs and matching the below skill set. C / Python / Linux Kernel / TCP/IP Please let me know if any of you\r friends are interested. Regards, Santhosh From nikunjbadjatya at gmail.com Mon Jan 23 16:43:13 2012 From: nikunjbadjatya at gmail.com (Nikunj Badjatya) Date: Mon, 23 Jan 2012 21:13:13 +0530 Subject: [BangPypers] checking return status of 'ping' in windows In-Reply-To: References: Message-ID: Thanks for all the useful info ppl. I am using .communicate() and then using re to match for the phrases. On Mon, Jan 23, 2012 at 2:11 PM, Sanjay Padubidri wrote: > > Python implementation of ping that Noufal suggested is better, I think. > > Python Ping has the problem that you need root permission - any program > that uses raw sockets has this issue. Another option is to try opening a > socket to port 9 (the discard port). > > -Sanjay > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From vishnuprasadgaddam at gmail.com Wed Jan 25 06:08:23 2012 From: vishnuprasadgaddam at gmail.com (vishnu prasad) Date: Wed, 25 Jan 2012 10:38:23 +0530 Subject: [BangPypers] Help: How to install beautiful soup in Python Message-ID: How to install beautiful soup in python, i installed python on my c drive c:\Python32 Where i need to extract beautiful soup and please tell me the steps where i can test my soup application is installed or not ? please suggest me thanks and regards vishnu prasad [ challenge is the best to start innovation ] From thesujit at gmail.com Wed Jan 25 06:22:39 2012 From: thesujit at gmail.com (Sujit Ghosal) Date: Wed, 25 Jan 2012 10:52:39 +0530 Subject: [BangPypers] Help: How to install beautiful soup in Python In-Reply-To: References: Message-ID: Hi Vishnu, The easy way for you would be to use setup-tools and issue easy_install or else you can download the corresponding BeautifulSoup module zip file for your version of Python and install it through the command line like this: "C:\python32\python setup.py install" You can check this out for more info: http://docs.python.org/install/index.html - Sujit On Wed, Jan 25, 2012 at 10:38 AM, vishnu prasad < vishnuprasadgaddam at gmail.com> wrote: > How to install beautiful soup in python, i installed python on my c drive > c:\Python32 > Where i need to extract beautiful soup and please tell me the steps where i > can test my soup application is installed or not ? please suggest me > > > thanks and regards > > vishnu prasad > > [ challenge is the best to start innovation ] > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From syed1.mushtaq at gmail.com Wed Jan 25 06:35:11 2012 From: syed1.mushtaq at gmail.com (Syed Mushtaq) Date: Wed, 25 Jan 2012 11:05:11 +0530 Subject: [BangPypers] Help: How to install beautiful soup in Python In-Reply-To: References: Message-ID: pip install BeautifulSoup On Wed, Jan 25, 2012 at 10:52 AM, Sujit Ghosal wrote: > Hi Vishnu, > The easy way for you would be to use setup-tools and issue > easy_install or else you can download the corresponding > BeautifulSoup module zip file for your version of Python and install it > through the command line like this: "C:\python32\python setup.py install" > > You can check this out for more info: > http://docs.python.org/install/index.html > > - Sujit > > On Wed, Jan 25, 2012 at 10:38 AM, vishnu prasad < > vishnuprasadgaddam at gmail.com> wrote: > > > How to install beautiful soup in python, i installed python on my c drive > > c:\Python32 > > Where i need to extract beautiful soup and please tell me the steps > where i > > can test my soup application is installed or not ? please suggest me > > > > > > thanks and regards > > > > vishnu prasad > > > > [ challenge is the best to start innovation ] > > _______________________________________________ > > 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 asif.jamadar at rezayat.net Wed Jan 25 14:19:34 2012 From: asif.jamadar at rezayat.net (Asif Jamadar) Date: Wed, 25 Jan 2012 13:19:34 +0000 Subject: [BangPypers] read data from FingerPrint scanner Message-ID: Dear All, In one of my application I'm using fingerprinting scanner, but how can I read the data from the scanner using Python? And also if you have any other ideas share with me. From bugcy013 at gmail.com Mon Jan 30 06:02:07 2012 From: bugcy013 at gmail.com (Ganesh Kumar) Date: Mon, 30 Jan 2012 10:32:07 +0530 Subject: [BangPypers] Help Glade tutorials Message-ID: Hi Guys, I am searching for a Glade tutorial, on how to create simple projects Glade with python 1) design a simple interface in glade 2) use the glade interface to write some really simple application with python. I search in goggled i didn't get good tutorials, any guide me How to start with Glade. -Ganesh. Did I learn something today? If not, I wasted it. From hvardhan.r at gmail.com Mon Jan 30 07:04:54 2012 From: hvardhan.r at gmail.com (Harshavardhan R) Date: Mon, 30 Jan 2012 11:34:54 +0530 Subject: [BangPypers] read data from FingerPrint scanner In-Reply-To: References: Message-ID: I'm not sure how your fingerprint scanner connects to the computer. If it's a serial port you could try pySerial. I've never tried to connect to a USB device, but try searching on google or the package index. A quick search returned pyUSB. pySerial:http://pyserial.sourceforge.net/ pyusb: http://sourceforge.net/projects/pyusb/ Regards, Harsha On 25 January 2012 18:49, Asif Jamadar wrote: > Dear All, > > In one of my application I'm using fingerprinting scanner, but how can I read the data from the scanner using Python? > > And also if you have any other ideas share with me. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From roshanvid at gmail.com Tue Jan 31 12:13:51 2012 From: roshanvid at gmail.com (Roshan Vid) Date: Tue, 31 Jan 2012 16:43:51 +0530 Subject: [BangPypers] Jan 2012 Meeting minutes Message-ID: Venue: ZeOmega Infotech Pvt. Ltd., South End Road Date: Jan 21, 2012 1 Activities. -------------- - Presentation on py.test by Baiju. - Presentation on datastore by Anand. - Presentation on Jenkins by Baiju. - Discussion on ideas to keep Bangpypers alive. 2 Ideas to keep Bangpypers alive. ---------------------------------- - Regular meetings every month. - We decided to hold the meetings at different venues on the 3rd Saturday of every month. - The next one is on 18 February in Jain University (links to location will be sent out later). Agenda uncertain. - There was a suggestion to hold a meeting in the evening during a working day along with supper. This would need a hotel room with a projector or something similar. 3 Things to do at user group meetings. --------------------------------------- - Coding sessions with one senior programmer and a few junior ones around him. - Presenting other peoples presentations and discussions around them. (e.g. David Beazley's famous coroutine presentation). - Watch videos from PyCons around the world. Also, download and distribute them at the meetings. - Do meetings at colleges in the city to get students involved. - Setup a website (blog), twitter and facebook accounts so that people can stay notified. The website should have a page for employers too. Author: Noufal Ibrahim We now have a twitter handle(@bangpypers), a small blog( http://pybangalore.blogspot.in/) and a Facebook group(https://www.facebook.com/groups/bangpypers/). This should help get more people involved. Any idea who has the pictures we took that day? From noufal at nibrahim.net.in Tue Jan 31 12:14:25 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Tue, 31 Jan 2012 16:44:25 +0530 Subject: [BangPypers] Jan 2012 Meeting minutes In-Reply-To: (Roshan Vid's message of "Tue, 31 Jan 2012 16:43:51 +0530") References: Message-ID: <8739awgm3y.fsf@sanitarium.localdomain> Thanks Roshan. Just in case people skim the email, the next meeting is on Feb 18 2012. The venue and time will be announced later. It will be at Jain University but the exact address will be sent out later. Roshan Vid writes: > Venue: ZeOmega Infotech Pvt. Ltd., South End Road > Date: Jan 21, 2012 > > 1 Activities. > -------------- > - Presentation on py.test by Baiju. > - Presentation on datastore by Anand. > - Presentation on Jenkins by Baiju. > - Discussion on ideas to keep Bangpypers alive. > > 2 Ideas to keep Bangpypers alive. > ---------------------------------- > - Regular meetings every month. > - We decided to hold the meetings at different venues on the 3rd > Saturday of every month. > - The next one is on 18 February in Jain University (links to > location will be sent out later). Agenda uncertain. > - There was a suggestion to hold a meeting in the evening during a > working day along with supper. This would need a hotel room with > a projector or something similar. > > 3 Things to do at user group meetings. > --------------------------------------- > - Coding sessions with one senior programmer and a few junior ones > around him. > - Presenting other peoples presentations and discussions around > them. (e.g. David Beazley's famous coroutine presentation). > - Watch videos from PyCons around the world. Also, download and > distribute them at the meetings. > - Do meetings at colleges in the city to get students involved. > - Setup a website (blog), twitter and facebook accounts so that > people can stay notified. The website should have a page for > employers too. > > Author: Noufal Ibrahim > > We now have a twitter handle(@bangpypers), a small blog( > http://pybangalore.blogspot.in/) > and a Facebook group(https://www.facebook.com/groups/bangpypers/). This > should help > get more people involved. > > Any idea who has the pictures we took that day? > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in I never liked you, and I always will. -Samuel Goldwyn From prataprc at gmail.com Tue Jan 31 12:28:07 2012 From: prataprc at gmail.com (Pratap Chakravarthy) Date: Tue, 31 Jan 2012 16:58:07 +0530 Subject: [BangPypers] [FWD] a discussion going on in catalog-sig group. Message-ID: Those who are uploading packages to PyPi might find this thread interesting. http://mail.python.org/pipermail/catalog-sig/2012-January/004197.html Cheers, From amit.pureenergy at gmail.com Tue Jan 31 16:55:01 2012 From: amit.pureenergy at gmail.com (Amit Sethi) Date: Tue, 31 Jan 2012 21:25:01 +0530 Subject: [BangPypers] Binary blobs inside a mysql data base Message-ID: Hi all , Is it a good idea to keep binary blobs inside a mysql database . They will not actually be served through http later on. And they are of more than 500 kb usually . I have searched all over stackoverflow and the reactions are mixed . I would like to know what are the views of people on this group. Thanks Amit -- A-M-I-T S|S From kracethekingmaker at gmail.com Tue Jan 31 17:42:08 2012 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Tue, 31 Jan 2012 22:12:08 +0530 Subject: [BangPypers] Binary blobs inside a mysql data base In-Reply-To: References: Message-ID: Hi Hi all , Is it a good idea to keep binary blobs inside a mysql database . > They will not actually be served through http later on. And they are of > more than 500 kb usually . I have searched all over stackoverflow and the > reactions are mixed . I would like to know what are the views of people on > this group. > > Classic way is store images or binary blob in hard disk and store the path in database. Both database failure and hard disk failure can happen and there way to retrieve the objects after failure . It depends on the kind of data also, if the binary blobs are highly confidential you may want to store the details in db. You need to think about time taken to retrieve the object from hard disk as well as from DB. -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com *