From satishsagar83 at gmail.com Sun Nov 2 06:14:53 2014 From: satishsagar83 at gmail.com (L Radhakrishna Rao) Date: Sun, 2 Nov 2014 10:44:53 +0530 Subject: [BangPypers] Python Interview Preparataion Message-ID: Hi, Is there any great material which can get me to prepare for python interview? I have an interview schedules on 5th November,2014, the coming wednesday. This is my first Python interview so thought of asking it. Regards, Radhakrishna From vikneshwaren.u at gmail.com Sun Nov 2 07:31:32 2014 From: vikneshwaren.u at gmail.com (Vikneshwaren) Date: Sun, 2 Nov 2014 12:01:32 +0530 Subject: [BangPypers] Python Interview Preparataion In-Reply-To: References: Message-ID: This might help you. http://www.reddit.com/r/Python/comments/2b4ytx/python_interview_questions/ -- Vikneshwaren Free Software Foundation, Tamil Nadu On Sun, Nov 2, 2014 at 10:44 AM, L Radhakrishna Rao wrote: > Hi, > > Is there any great material which can get me to prepare for python > interview? > > I have an interview schedules on 5th November,2014, the coming wednesday. > > This is my first Python interview so thought of asking it. > > Regards, > > Radhakrishna > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From satishsagar83 at gmail.com Sun Nov 2 07:59:46 2014 From: satishsagar83 at gmail.com (L Radhakrishna Rao) Date: Sun, 2 Nov 2014 12:29:46 +0530 Subject: [BangPypers] Python Interview Preparataion In-Reply-To: References: Message-ID: Thanks On Sun, Nov 2, 2014 at 12:01 PM, Vikneshwaren wrote: > This might help you. > http://www.reddit.com/r/Python/comments/2b4ytx/python_interview_questions/ > > -- > Vikneshwaren > Free Software Foundation, Tamil Nadu > > On Sun, Nov 2, 2014 at 10:44 AM, L Radhakrishna Rao < > satishsagar83 at gmail.com > > wrote: > > > Hi, > > > > Is there any great material which can get me to prepare for python > > interview? > > > > I have an interview schedules on 5th November,2014, the coming wednesday. > > > > This is my first Python interview so thought of asking it. > > > > Regards, > > > > Radhakrishna > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From apratim.ankur at gmail.com Sun Nov 2 18:55:17 2014 From: apratim.ankur at gmail.com (apratim ankur) Date: Sun, 2 Nov 2014 23:25:17 +0530 Subject: [BangPypers] django+twisted meetup this Wednesday-6 pm @IBM Bangalore Message-ID: Hi, There's a python meetup @IBM Innovation Center, Block A, Embassy Golf Links Domlur, Bangalore - this wednesday @6 pm -- http://www.meetup.com/Bangalore-Django-User-Group/events/216733612/ If you or anyone in your circle is interested, just rsvp and drop by. From apratim.ankur at gmail.com Sun Nov 2 18:50:59 2014 From: apratim.ankur at gmail.com (apratim ankur) Date: Sun, 2 Nov 2014 23:20:59 +0530 Subject: [BangPypers] django+twisted meetup this Wednesday-6 pm @IBM Bangalore Message-ID: Hi, There's a python meetup @IBM Innovation Center, Block A, Embassy Golf Links Domlur - this wednesday @6 pm -- http://www.meetup.com/Bangalore-Django-User-Group/events/216733612/ If you or anyone in your circle is interested, just rsvp and drop by. From shashidhar85 at gmail.com Mon Nov 3 06:30:42 2014 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Mon, 3 Nov 2014 11:00:42 +0530 Subject: [BangPypers] django+twisted meetup this Wednesday-6 pm @IBM Bangalore In-Reply-To: References: Message-ID: Hello Apratim Thanks for sharing info. I am interested to join. Is there any agenda what session is going happen! On Sunday, November 2, 2014, apratim ankur wrote: > Hi, > There's a python meetup @IBM Innovation Center, Block A, Embassy Golf Links > Domlur - this wednesday @6 pm -- > http://www.meetup.com/Bangalore-Django-User-Group/events/216733612/ > If you or anyone in your circle is interested, just rsvp and drop by. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- ----------------------------------- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919900093835 From subhendu at venturesity.com Fri Nov 7 10:54:18 2014 From: subhendu at venturesity.com (Subhendu Panigrahi) Date: Fri, 7 Nov 2014 15:24:18 +0530 Subject: [BangPypers] Inviting BangPypers for a Web App Hackathon Message-ID: Dear Members, Hackathons have gained a lot of popularities in few years and companies are also embracing the hacker culture. Hackathons are paving a new way to showcase coding skills and get in front of employers. We are doing a 24 hour hackathon on 15th and 16th November with Zivame and the challenge is on web apps. Zivame is looking for coding ninjas and it is a great chance for you to participate and get discovered. You can find more about Zivame hackathon here : http://www.venturesity.com/zivame-hackathon.html Please form a team of two participants and hack on 15th. If you are looking for team members, let us know. ?Look for complementary skills. ? Regards, Subhendu ? -- Subhendu Panigrahi Co-Founder, Venturesity Alumnus, Indian Institute of Technology, Kharagpur Mob# +919739835921 -- Subhendu Panigrahi Co-Founder, Venturesity Alumnus, Indian Institute of Technology, Kharagpur Mob# +919739835921 From noufal at nibrahim.net.in Sun Nov 9 06:08:31 2014 From: noufal at nibrahim.net.in (Noufal Ibrahim KV) Date: Sun, 09 Nov 2014 10:38:31 +0530 Subject: [BangPypers] Does Python have lexical scoping? Message-ID: <8761epq7u8.fsf@nibrahim.net.in> Okay, I've been struggling through the proglang course on coursera and this thing came up val x = 2; fun f y = x + y; The second line creates a function that adds `x` to it's argument. Since ML is statically scoped, this is really a function that adds 2 to its argument. Even if I later create a new binding for x later like so val x = 10; f (3); I will still get back 5 (i.e. 2 + 3) instead of 13 (10 + 3). This makes sense to me as an example of lexical scoping. The bindings are at the time of definition rather than invocation. With python, it's different. The claim is that it has lexical scoping but. x = 2 def f(y): return x + y x = 10 f(3) The answer is, distressingly, 13. The explanation was that although Python has lexical scoping, that closure "close over variables rather than values". Meaning that the variables (and not their values) at definition time are stored in the closure. This is how elisp does it which claims to be, by default, dynamically scoped. (setq m 5) (defun test (x) (+ x m)) (test 3) ; -> 8 (setq m 15) (test 3) ; -> 18 So, my question is, how different is this from dynamic scoping (like in elisp) where the values are actually picked up from the execution (rather than definition) environment. This business of "closes over variables rather than values" sounds like a cop out. Comments? -- Cordially, Noufal http://nibrahim.net.in From kracethekingmaker at gmail.com Sun Nov 9 09:05:33 2014 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Sun, 9 Nov 2014 13:35:33 +0530 Subject: [BangPypers] December Py101 meetup session Message-ID: Hi As part of BangPypers meetup group we are organising Py101 session for a day on November 15 from 10.00 AM to 4.00 PM. If you are planning to learn Python or any one who will be interested please pass on the url http://www.meetup.com/BangPypers/events/160108012/ and RSVP. Over past months we have conducted various workshop for beginner, intermediate, advanced topics. Interested people can join the meetup group http://bangalore.python.org.in. Twitter: https://twitter.com/__bangpypers__ FaceBook: https://www.facebook.com/bangpypers If you would like to give a talk or conduct a workshop, please ping me off the list. -- *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus Torvaldshttp://kracekumar.com * From abhishek.lekshmanan at gmail.com Sun Nov 9 09:20:40 2014 From: abhishek.lekshmanan at gmail.com (Abhishek L) Date: Sun, 9 Nov 2014 13:50:40 +0530 Subject: [BangPypers] Does Python have lexical scoping? In-Reply-To: <8761epq7u8.fsf@nibrahim.net.in> References: <8761epq7u8.fsf@nibrahim.net.in> Message-ID: I'll try to explain a bit, have to admit though, even my understanding is not all that clear, and all is open for further discussion. Noufal Ibrahim KV writes: > Okay, I've been struggling through the proglang course on coursera and > this thing came up > > val x = 2; > fun f y = x + y; > > The second line creates a function that adds `x` to it's argument. Since > ML is statically scoped, this is really a function that adds 2 to its > argument. Even if I later create a new binding for x later like so > > val x = 10; > f (3); > > I will still get back 5 (i.e. 2 + 3) instead of 13 (10 + 3). This makes > sense to me as an example of lexical scoping. The bindings are at the > time of definition rather than invocation. > Here, technically ML's val bindings are actually immutable. When you actually do a val x = 10; you're creating a new binding for x *shadowing* the previous binding. Something like fun f y = x + y; creates a closure with f, and the free variable x.The closure locks the function with the environment the function was defined in, locking x to 2, as variables are always looked up in the dynamic environment they are defined in before they are called, x is bound to 2. Also ML will not allow you to define a function with x not previously defined, (ie no forward lookups) > With python, it's different. The claim is that it has lexical scoping > but. > > x = 2 > def f(y): return x + y > > x = 10 > f(3) > > The answer is, distressingly, 13. The explanation was that although > Python has lexical scoping, that closure "close over variables rather > than values". Here x was a mutable variable, doing a similiar ML construct, ie val x = ref 2 fun f y = !x + 2 f 10 ; evals to 12 x := 10 f 10 ; evals to 20 So this becomes a problem of closures over mutable variables? ie every closure looks up the value of same variable, x which gets mutated around. WDYT? PS I'm not sure whether this mail is going to hit twice in the list, had replied some 30 mins ago, but the mail still failed to appear in the list -- Regards Abhishek From kracethekingmaker at gmail.com Sun Nov 9 09:24:16 2014 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Sun, 9 Nov 2014 13:54:16 +0530 Subject: [BangPypers] Does Python have lexical scoping? In-Reply-To: References: <8761epq7u8.fsf@nibrahim.net.in> Message-ID: On Sun, Nov 9, 2014 at 1:50 PM, Abhishek L wrote: > I'll try to explain a bit, have to admit though, even my understanding > is not all that clear, and all is open for further discussion. > > Noufal Ibrahim KV writes: > > > Okay, I've been struggling through the proglang course on coursera and > > this thing came up > > > > val x = 2; > > fun f y = x + y; > > > > The second line creates a function that adds `x` to it's argument. Since > > ML is statically scoped, this is really a function that adds 2 to its > > argument. Even if I later create a new binding for x later like so > > > > val x = 10; > > f (3); > > > > I will still get back 5 (i.e. 2 + 3) instead of 13 (10 + 3). This makes > > sense to me as an example of lexical scoping. The bindings are at the > > time of definition rather than invocation. > > > Here, technically ML's val bindings are actually immutable. When you > actually do a val x = 10; you're creating a new binding for x *shadowing* > the previous binding. Something like > > fun f y = x + y; > > creates a closure with f, and the free variable x.The closure locks > the function with the environment the function was defined in, locking x > to 2, as variables are always looked up in the dynamic environment they > are defined in before they are called, x is bound to 2. Also ML will not > allow you to define a function with x not previously defined, (ie no > forward lookups) > > > With python, it's different. The claim is that it has lexical scoping > > but. > > > > x = 2 > > def f(y): return x + y > > > > x = 10 > > f(3) > > > > The answer is, distressingly, 13. The explanation was that although > > Python has lexical scoping, that closure "close over variables rather > > than values". > > Here x was a mutable variable, doing a similiar ML construct, ie > > val x = ref 2 > fun f y = !x + 2 > > f 10 ; evals to 12 > x := 10 > f 10 ; evals to 20 > > So this becomes a problem of closures over mutable variables? ie every > closure looks up the value of same variable, x which gets mutated > around. WDYT? > > PS I'm not sure whether this mail is going to hit twice in the list, > had replied some 30 mins ago, but the mail still failed to appear in the > list > Unless attachments are present, it should reach in time . > -- > Regards > Abhishek > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus Torvaldshttp://kracekumar.com * From noufal at nibrahim.net.in Sun Nov 9 10:14:26 2014 From: noufal at nibrahim.net.in (Noufal Ibrahim KV) Date: Sun, 09 Nov 2014 14:44:26 +0530 Subject: [BangPypers] Does Python have lexical scoping? In-Reply-To: (Abhishek L.'s message of "Sun, 9 Nov 2014 13:50:40 +0530") References: <8761epq7u8.fsf@nibrahim.net.in> Message-ID: <87y4rkpwgd.fsf@nibrahim.net.in> On Sun, Nov 09 2014, Abhishek L wrote: [...] > Here x was a mutable variable, doing a similiar ML construct, ie > > val x = ref 2 > fun f y = !x + 2 > > f 10 ; evals to 12 > x := 10 > f 10 ; evals to 20 > > So this becomes a problem of closures over mutable variables? ie every > closure looks up the value of same variable, x which gets mutated > around. WDYT? [...] So the explanation I got is that it binds the environment at definition time but the environment means a mutable table of key value pairs. In other words, the closure closes only over the name of the variable and not the value at definition time. I don't really understand how useful this is unless you have some kind of environment that you can't get to (e.g. non local inside a function etc.). Also, and this is my real question, How is lexical scoping with a mutable environment different from dynamic scoping? -- Cordially, Noufal http://nibrahim.net.in From aditya.athalye at gmail.com Sun Nov 9 19:11:22 2014 From: aditya.athalye at gmail.com (Aditya Athalye) Date: Sun, 9 Nov 2014 23:41:22 +0530 Subject: [BangPypers] Does Python have lexical scoping? (Noufal Ibrahim KV) Message-ID: Ref: This mail thread: https://mail.python.org/pipermail/bangpypers/2014-November/010549.html > Date: Sun, 09 Nov 2014 14:44:26 +0530 > From: Noufal Ibrahim KV > Subject: Re: [BangPypers] Does Python have lexical scoping? > Message-ID: <87y4rkpwgd.fsf at nibrahim.net.in> > > [ ... snip ...] > > How is lexical scoping with a mutable environment different from > dynamic scoping? Here's my 0.0002 BTC; trying to reason from first principles: Context: In SML (and perhaps all strongly "functional" PLs), all values are immutable by default. Re-stating facts: Now, any function in SML is just a value (that can be passed around). This value is, semantically, a "closure" that consists of (A) the function definition and (B) the environment that was current at the time it was defined. This closure, though somewhat "special"--semantically a pair of (A) and (B)--is really designed to be just a value. Intuition: If the PL is to guarantee the immutability of this function closure, then _both_ (A) and (B) must be guaranteed immutable as well. Re: Python semantics: I'm not terribly familiar with Python semantics. But I think if values/variables are mutable by default, then the function closure's "contract" differs from to SML exactly the way Noufal describes it... i.e. the closure _cannot_ close over values, it can only close over variables defined within the lexical scope of a function. Contrast with a mutable SML variant: I think if I defined 'x' as a mutable ref in SML and reassigned some other value to it (set-bang), I can violate the function closure contract. Re: Dynamic scope: AFAIK, this goes one step beyond (behind?) mutable variables. Even if *we* don't mutate the value of symbol 'x', another process is free to inject some identically named symbol 'x' into our current environment, just in time to mess with the wiring of an otherwise sane function. Hopefully I'm making sense. - Aditya https://twitter.com/adityaathalye From senthil at uthcode.com Sun Nov 9 22:57:07 2014 From: senthil at uthcode.com (Senthil Kumaran) Date: Sun, 9 Nov 2014 13:57:07 -0800 Subject: [BangPypers] Does Python have lexical scoping? In-Reply-To: <87y4rkpwgd.fsf@nibrahim.net.in> References: <8761epq7u8.fsf@nibrahim.net.in> <87y4rkpwgd.fsf@nibrahim.net.in> Message-ID: On Sun, Nov 9, 2014 at 1:14 AM, Noufal Ibrahim KV wrote: > How is lexical scoping with a mutable environment different from dynamic > scoping? > I think you should post this in python-dev and you might get answers with rigorous definitions. Here is my short snippet which shows a behavior which does not indicate a dynamic binding nature. # example.py x = 10 y = lambda: x def f(): x = 20 # This is not rebinding. It is creating a new local variable by name x # But we are referring to x in y function call, so for the definition of dynamic binding (?) # should y() see x defined in the local scope instead of the previously assigned value. print(y()) return y() x = 30 # This is rebinding in the same scope. print(f()) $ python example.py 30 30 From abhishek.lekshmanan at gmail.com Mon Nov 10 07:17:20 2014 From: abhishek.lekshmanan at gmail.com (Abhishek L) Date: Mon, 10 Nov 2014 11:47:20 +0530 Subject: [BangPypers] Does Python have lexical scoping? In-Reply-To: References: <8761epq7u8.fsf@nibrahim.net.in> <87y4rkpwgd.fsf@nibrahim.net.in> Message-ID: <87h9y7zij3.fsf@gmail.com> Senthil Kumaran writes: > On Sun, Nov 9, 2014 at 1:14 AM, Noufal Ibrahim KV > wrote: > >> How is lexical scoping with a mutable environment different from dynamic >> scoping? >> > > I think you should post this in python-dev and you might get answers with > rigorous definitions. > > Here is my short snippet which shows a behavior which does not indicate a > dynamic binding nature. > > > # example.py > x = 10 > y = lambda: x > > def f(): > x = 20 # This is not rebinding. It is creating a new local variable by > name x > # But we are referring to x in y function call, so for the > definition of dynamic binding (?) > # should y() see x defined in the local scope instead of the > previously assigned value. > print(y()) > return y() > > x = 30 # This is rebinding in the same scope. > print(f()) > > $ python example.py > 30 > 30 Just for understanding, trying the same snippet in emacs lisp which has dynamic binding will reveal the value of `x' as 20, as expected in dynamic binding as we change the value of x inside the function. (setq x 10) (defun y () x) (defun f () (setq x 20) (print (y)) (y)) (print (f)) ; 20 20 -- Abhishek From anandology at gmail.com Mon Nov 10 07:47:16 2014 From: anandology at gmail.com (Anand Chitipothu) Date: Mon, 10 Nov 2014 12:17:16 +0530 Subject: [BangPypers] Does Python have lexical scoping? In-Reply-To: <8761epq7u8.fsf@nibrahim.net.in> References: <8761epq7u8.fsf@nibrahim.net.in> Message-ID: On Sun, Nov 9, 2014 at 10:38 AM, Noufal Ibrahim KV wrote: > > Okay, I've been struggling through the proglang course on coursera and > this thing came up > > val x = 2; > fun f y = x + y; > > The second line creates a function that adds `x` to it's argument. Since > ML is statically scoped, this is really a function that adds 2 to its > argument. Even if I later create a new binding for x later like so > > val x = 10; > f (3); > > I will still get back 5 (i.e. 2 + 3) instead of 13 (10 + 3). This makes > sense to me as an example of lexical scoping. The bindings are at the > time of definition rather than invocation. > > With python, it's different. The claim is that it has lexical scoping > but. > > x = 2 > def f(y): return x + y > > x = 10 > f(3) > > The answer is, distressingly, 13. The explanation was that although > Python has lexical scoping, that closure "close over variables rather > than values". Meaning that the variables (and not their values) at > definition time are stored in the closure. This is how elisp does it > which claims to be, by default, dynamically scoped. > > (setq m 5) > (defun test (x) > (+ x m)) > > (test 3) ; -> 8 > (setq m 15) > (test 3) ; -> 18 > > > So, my question is, how different is this from dynamic scoping (like in > elisp) where the values are actually picked up from the execution > (rather than definition) environment. This business of "closes over > variables rather than values" sounds like a cop out. > > Comments? > There are cases where both lexical scope and dynamic scope produce same results. The example that you gave falls into that category. Try the following example: (setq x 5) (defun getx () x) (getx) (defun f (x) (getx)) (f 10) (setq x 4) (f 10) The function getx takes the values of x that is closest to in the stack, not the one that is lexically closest. Another example to demonstrate that. (defun g (x) (h x)) (defun h (y) (getx)) (g 3) With lexical scoping a can be resolved at the time of declaring the function it self (as in name x in getx is alias to x defined in the top-level), where as with dynamic scoping it can only be determined at the run time. Because of this lexical scoping is usually faster. Anand From anandology at gmail.com Mon Nov 10 08:04:22 2014 From: anandology at gmail.com (Anand Chitipothu) Date: Mon, 10 Nov 2014 12:34:22 +0530 Subject: [BangPypers] Does Python have lexical scoping? In-Reply-To: References: <8761epq7u8.fsf@nibrahim.net.in> Message-ID: On Mon, Nov 10, 2014 at 12:17 PM, Anand Chitipothu wrote: > On Sun, Nov 9, 2014 at 10:38 AM, Noufal Ibrahim KV > wrote: > >> >> Okay, I've been struggling through the proglang course on coursera and >> this thing came up >> >> val x = 2; >> fun f y = x + y; >> >> The second line creates a function that adds `x` to it's argument. Since >> ML is statically scoped, this is really a function that adds 2 to its >> argument. Even if I later create a new binding for x later like so >> >> val x = 10; >> f (3); >> >> I will still get back 5 (i.e. 2 + 3) instead of 13 (10 + 3). This makes >> sense to me as an example of lexical scoping. The bindings are at the >> time of definition rather than invocation. >> >> With python, it's different. The claim is that it has lexical scoping >> but. >> >> x = 2 >> def f(y): return x + y >> >> x = 10 >> f(3) >> >> The answer is, distressingly, 13. The explanation was that although >> Python has lexical scoping, that closure "close over variables rather >> than values". Meaning that the variables (and not their values) at >> definition time are stored in the closure. This is how elisp does it >> which claims to be, by default, dynamically scoped. >> >> (setq m 5) >> (defun test (x) >> (+ x m)) >> >> (test 3) ; -> 8 >> (setq m 15) >> (test 3) ; -> 18 >> >> >> So, my question is, how different is this from dynamic scoping (like in >> elisp) where the values are actually picked up from the execution >> (rather than definition) environment. This business of "closes over >> variables rather than values" sounds like a cop out. >> >> Comments? >> > > There are cases where both lexical scope and dynamic scope produce same > results. The example that you gave falls into that category. > Sorry, forgot to add the output. > > Try the following example: > > (setq x 5) > (defun getx () x) > (getx) > > (defun f (x) (getx)) > > (f 10) > prints 10, the x from function f, not global x. > (setq x 4) > (f 10) > prints 10 again. changing the global x don't have any affect. Python or scheme (lexical scoping) would produce 4 in this case. > > The function getx takes the values of x that is closest to in the stack, > not the one that is lexically closest. > > Another example to demonstrate that. > > (defun g (x) (h x)) > (defun h (y) (getx)) > (g 3) > prints 3. Picks x from 2 stack frames below. > With lexical scoping a can be resolved at the time of declaring the > function it self (as in name x in getx is alias to x defined in the > top-level), where as with dynamic scoping it can only be determined at the > run time. Because of this lexical scoping is usually faster. > Anand From avinash.s at paladion.net Tue Nov 11 11:53:36 2014 From: avinash.s at paladion.net (Avinash) Date: Tue, 11 Nov 2014 16:23:36 +0530 Subject: [BangPypers] SPOJ : PALIN problem ... Message-ID: ?Hi pals, I need littele help .. I made a program as per the given discription in the problem but when I submit it , Spoj is not accepting it . Can anyone tell me where I am doing wrong ! here is the problem set: http://www.spoj.com/problems/PALIN/ and here is my solution: ??N=int(raw_input()) if N>0: for i in range(0,N): IN=(raw_input()) if(int(IN)>=0 and int(IN)<1000000): while(True): IN=int(IN)+1 IN=str(IN) RIN=reversed(IN) if(list(IN)==list(RIN)): print IN break ? -- From kishorbhat at gmail.com Tue Nov 11 17:35:03 2014 From: kishorbhat at gmail.com (Kishor Bhat) Date: Tue, 11 Nov 2014 22:05:03 +0530 Subject: [BangPypers] SPOJ : PALIN problem ... In-Reply-To: References: Message-ID: Hi Avinash, I'd like to point out that the problem statement says that the given integer K has at max 10 ^ 6 digits. This does not mean that K is bounded by 10 ^ 6 ! Someone else correct me if I'm wrong, but I don't think this approach will hold for such large inputs. Regards, Kishor Bhat On Tue, Nov 11, 2014 at 4:23 PM, Avinash wrote: > Hi pals, > I need littele help .. > I made a program as per the given discription in the problem > but when I submit it , Spoj is not accepting it . > Can anyone tell me where I am doing wrong ! > > here is the problem set: > http://www.spoj.com/problems/PALIN/ > > > and here is my solution: > N=int(raw_input()) > if N>0: > for i in range(0,N): > IN=(raw_input()) > if(int(IN)>=0 and int(IN)<1000000): > > while(True): > IN=int(IN)+1 > IN=str(IN) > RIN=reversed(IN) > if(list(IN)==list(RIN)): > print IN > break > > > -- > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers From nikhil.ikhar at gmail.com Tue Nov 11 17:56:52 2014 From: nikhil.ikhar at gmail.com (Nikhileshkumar Ikhar) Date: Tue, 11 Nov 2014 22:26:52 +0530 Subject: [BangPypers] SPOJ : PALIN problem ... In-Reply-To: References: Message-ID: I see 2 potential problems. 2nd raw_input is surrounded by (), is it correct? In if condition conversion to list is not required. Also instead of converting to string u can take difference of number and reversed number. U can use tools like http://www.pythontutor.com/visualize.html#mode=edit For better understanding of logic. Regards Nikhil On 11 Nov 2014 21:54, "Avinash" wrote: > ?Hi pals, > I need littele help .. > I made a program as per the given discription in the problem > but when I submit it , Spoj is not accepting it . > Can anyone tell me where I am doing wrong ! > > here is the problem set: > http://www.spoj.com/problems/PALIN/ > > > and here is my solution: > ??N=int(raw_input()) > if N>0: > for i in range(0,N): > IN=(raw_input()) > if(int(IN)>=0 and int(IN)<1000000): > > while(True): > IN=int(IN)+1 > IN=str(IN) > RIN=reversed(IN) > if(list(IN)==list(RIN)): > print IN > break > ? > > -- > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From nikhil.ikhar at gmail.com Tue Nov 11 18:01:37 2014 From: nikhil.ikhar at gmail.com (Nikhileshkumar Ikhar) Date: Tue, 11 Nov 2014 22:31:37 +0530 Subject: [BangPypers] SPOJ : PALIN problem ... In-Reply-To: References: Message-ID: Hi Kishor, 10^6 is upper limit n is not a huge value. Memory footprint won't be high because we need to find only next palindrome number. Or if required for loop should be replaced with incremental while loop. Let me know ur thoughts. Regards, Nikhil On 11 Nov 2014 22:11, "Kishor Bhat" wrote: > Hi Avinash, > > I'd like to point out that the problem statement says that the given > integer K has at max 10 ^ 6 digits. > This does not mean that K is bounded by 10 ^ 6 ! > > Someone else correct me if I'm wrong, but I don't think this approach > will hold for such large inputs. > > Regards, > Kishor Bhat > > On Tue, Nov 11, 2014 at 4:23 PM, Avinash wrote: > > Hi pals, > > I need littele help .. > > I made a program as per the given discription in the problem > > but when I submit it , Spoj is not accepting it . > > Can anyone tell me where I am doing wrong ! > > > > here is the problem set: > > http://www.spoj.com/problems/PALIN/ > > > > > > and here is my solution: > > N=int(raw_input()) > > if N>0: > > for i in range(0,N): > > IN=(raw_input()) > > if(int(IN)>=0 and int(IN)<1000000): > > > > while(True): > > IN=int(IN)+1 > > IN=str(IN) > > RIN=reversed(IN) > > if(list(IN)==list(RIN)): > > print IN > > break > > > > > > -- > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From kishorbhat at gmail.com Tue Nov 11 18:34:26 2014 From: kishorbhat at gmail.com (Kishor Bhat) Date: Tue, 11 Nov 2014 23:04:26 +0530 Subject: [BangPypers] SPOJ : PALIN problem ... In-Reply-To: References: Message-ID: Hi Nikhil, 10 ^ 6 is the maximum number of digits, not the maximum number. In this solution, you're going to start from K and increment by one, checking at each stage whether ' n == rev(n)', which is a linear operation. Ultimately, this solution will be O(n ^ 2). A better approach might be to modify the input number directly (by manipulating the digits). Also, the extra parentheses around the second raw_input() is not necessary, but causes no errors. Regards, Kishor Bhat On Tue, Nov 11, 2014 at 10:31 PM, Nikhileshkumar Ikhar wrote: > Hi Kishor, > 10^6 is upper limit n is not a huge value. Memory footprint won't be high > because we need to find only next palindrome number. Or if required for > loop should be replaced with incremental while loop. > > Let me know ur thoughts. > > Regards, > Nikhil > On 11 Nov 2014 22:11, "Kishor Bhat" wrote: > >> Hi Avinash, >> >> I'd like to point out that the problem statement says that the given >> integer K has at max 10 ^ 6 digits. >> This does not mean that K is bounded by 10 ^ 6 ! >> >> Someone else correct me if I'm wrong, but I don't think this approach >> will hold for such large inputs. >> >> Regards, >> Kishor Bhat >> >> On Tue, Nov 11, 2014 at 4:23 PM, Avinash wrote: >> > Hi pals, >> > I need littele help .. >> > I made a program as per the given discription in the problem >> > but when I submit it , Spoj is not accepting it . >> > Can anyone tell me where I am doing wrong ! >> > >> > here is the problem set: >> > http://www.spoj.com/problems/PALIN/ >> > >> > >> > and here is my solution: >> > N=int(raw_input()) >> > if N>0: >> > for i in range(0,N): >> > IN=(raw_input()) >> > if(int(IN)>=0 and int(IN)<1000000): >> > >> > while(True): >> > IN=int(IN)+1 >> > IN=str(IN) >> > RIN=reversed(IN) >> > if(list(IN)==list(RIN)): >> > print IN >> > break >> > >> > >> > -- >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > https://mail.python.org/mailman/listinfo/bangpypers >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> https://mail.python.org/mailman/listinfo/bangpypers >> > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers From nikhil.ikhar at gmail.com Wed Nov 12 05:48:26 2014 From: nikhil.ikhar at gmail.com (Nikhileshkumar Ikhar) Date: Wed, 12 Nov 2014 10:18:26 +0530 Subject: [BangPypers] SPOJ : PALIN problem ... In-Reply-To: References: Message-ID: my bad. I'm wrong at many levels. Yes you are correct, for very large input it will be O(n^2). Regards, Nikhil On 11 November 2014 23:04, Kishor Bhat wrote: > Hi Nikhil, > > 10 ^ 6 is the maximum number of digits, not the maximum number. > > In this solution, you're going to start from K and increment by one, > checking at each stage whether ' n == rev(n)', which is a linear > operation. > > Ultimately, this solution will be O(n ^ 2). > > A better approach might be to modify the input number directly (by > manipulating the digits). > > Also, the extra parentheses around the second raw_input() is not > necessary, but causes no errors. > > Regards, > Kishor Bhat > > On Tue, Nov 11, 2014 at 10:31 PM, Nikhileshkumar Ikhar > wrote: > > Hi Kishor, > > 10^6 is upper limit n is not a huge value. Memory footprint won't be high > > because we need to find only next palindrome number. Or if required for > > loop should be replaced with incremental while loop. > > > > Let me know ur thoughts. > > > > Regards, > > Nikhil > > On 11 Nov 2014 22:11, "Kishor Bhat" wrote: > > > >> Hi Avinash, > >> > >> I'd like to point out that the problem statement says that the given > >> integer K has at max 10 ^ 6 digits. > >> This does not mean that K is bounded by 10 ^ 6 ! > >> > >> Someone else correct me if I'm wrong, but I don't think this approach > >> will hold for such large inputs. > >> > >> Regards, > >> Kishor Bhat > >> > >> On Tue, Nov 11, 2014 at 4:23 PM, Avinash > wrote: > >> > Hi pals, > >> > I need littele help .. > >> > I made a program as per the given discription in the problem > >> > but when I submit it , Spoj is not accepting it . > >> > Can anyone tell me where I am doing wrong ! > >> > > >> > here is the problem set: > >> > http://www.spoj.com/problems/PALIN/ > >> > > >> > > >> > and here is my solution: > >> > N=int(raw_input()) > >> > if N>0: > >> > for i in range(0,N): > >> > IN=(raw_input()) > >> > if(int(IN)>=0 and int(IN)<1000000): > >> > > >> > while(True): > >> > IN=int(IN)+1 > >> > IN=str(IN) > >> > RIN=reversed(IN) > >> > if(list(IN)==list(RIN)): > >> > print IN > >> > break > >> > > >> > > >> > -- > >> > _______________________________________________ > >> > BangPypers mailing list > >> > BangPypers at python.org > >> > https://mail.python.org/mailman/listinfo/bangpypers > >> _______________________________________________ > >> BangPypers mailing list > >> BangPypers at python.org > >> https://mail.python.org/mailman/listinfo/bangpypers > >> > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From hardythe1 at gmail.com Fri Nov 14 07:22:28 2014 From: hardythe1 at gmail.com (Hardik Ghaghada) Date: Fri, 14 Nov 2014 11:52:28 +0530 Subject: [BangPypers] [ANN] CFP: SciPy India 2014: Dec 5 - 7, IIT Bombay Message-ID: Hello, This is reminder mail. We have extended the date for CFP till 20th Nov. The CFP and registration for SciPy India 2014 (http://scipy.in) is open. SciPy India 2014 will be held in IIT Bombay between December 5th to December 7th, 2014. Please spread the word! SciPy India is an annual conference on using Python for science and engineering research and education. The conference is currently in its sixth year and provides an opportunity to learn and implement Python in education and research. Call for Papers ================ We look forward to your submissions on the use of Python for scientific computing and education. This includes pedagogy, exploration, modeling and analysis from both applied and developmental perspectives. We welcome contributions from academia as well as industry. For details on the paper submission please see here: http://scipy.in/2014/call-for-proposals/ Important Dates ================ - Call for proposals end: 20th November 2014 We look forward to seeing you at SciPy India. Regards, Prabhu Ramachandran and Jarrod Millman From hardythe1 at gmail.com Fri Nov 14 12:08:41 2014 From: hardythe1 at gmail.com (Hardik Ghaghada) Date: Fri, 14 Nov 2014 16:38:41 +0530 Subject: [BangPypers] Link Correction for CFP SciPy India 2014 In-Reply-To: References: Message-ID: Dear All, There is a correction in the link. Kindly follow this link for CFP SciPy India 2014. http://scipy.in/2014/call-for-proposals/ Apologies for the Inconvenience. From narayannaik.05 at gmail.com Mon Nov 17 10:00:37 2014 From: narayannaik.05 at gmail.com (narayan naik) Date: Mon, 17 Nov 2014 14:30:37 +0530 Subject: [BangPypers] about python code Message-ID: hi, when I am running face detection code ,I am getting this error. Traceback (most recent call last): File "/home/nv/read.py", line 2, in import cv2 ImportError: No module named cv2 >>> please help me. From satishsagar83 at gmail.com Mon Nov 17 10:13:17 2014 From: satishsagar83 at gmail.com (L Radhakrishna Rao) Date: Mon, 17 Nov 2014 14:43:17 +0530 Subject: [BangPypers] about python code In-Reply-To: References: Message-ID: Put entire details, have you downloaded cv2 module? What's the python version you are using, and the operating system? Thanks On Mon, Nov 17, 2014 at 2:30 PM, narayan naik wrote: > hi, > when I am running face detection code ,I am getting this error. > > Traceback (most recent call last): > File "/home/nv/read.py", line 2, in > import cv2 > ImportError: No module named cv2 > >>> > > please help me. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From narayannaik.05 at gmail.com Mon Nov 17 10:21:54 2014 From: narayannaik.05 at gmail.com (narayan naik) Date: Mon, 17 Nov 2014 14:51:54 +0530 Subject: [BangPypers] about python code In-Reply-To: References: Message-ID: I am using ---Python 2.7.3 (default, Feb 27 2014, 20:00:17) version operating system-ubuntu 12.04 LTS and also I have downloaded openCV On Mon, Nov 17, 2014 at 2:43 PM, L Radhakrishna Rao wrote: > Put entire details, have you downloaded cv2 module? > > What's the python version you are using, and the operating system? > > Thanks > > On Mon, Nov 17, 2014 at 2:30 PM, narayan naik > wrote: > > > hi, > > when I am running face detection code ,I am getting this error. > > > > Traceback (most recent call last): > > File "/home/nv/read.py", line 2, in > > import cv2 > > ImportError: No module named cv2 > > >>> > > > > please help me. > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From noufal at nibrahim.net.in Mon Nov 17 10:24:56 2014 From: noufal at nibrahim.net.in (Noufal Ibrahim KV) Date: Mon, 17 Nov 2014 14:54:56 +0530 Subject: [BangPypers] about python code In-Reply-To: (narayan naik's message of "Mon, 17 Nov 2014 14:30:37 +0530") References: Message-ID: <8761eeb2mv.fsf@nibrahim.net.in> On Mon, Nov 17 2014, narayan naik wrote: > hi, > when I am running face detection code ,I am getting this error. > [...] This is a very basic question. You should go probably go through a python tutorial before attempting this. I'm presuming that you actually want to do something with opencv. If you don't understand the basics of importing modules, you'll keep hitting roadblocks. -- Cordially, Noufal http://nibrahim.net.in From narayannaik.05 at gmail.com Mon Nov 17 10:25:17 2014 From: narayannaik.05 at gmail.com (narayan naik) Date: Mon, 17 Nov 2014 14:55:17 +0530 Subject: [BangPypers] about python code In-Reply-To: References: Message-ID: when I entered in terminal nv at ubuntu:~$ pkg-config --modversion opencv it shows like 2.3.1 On Mon, Nov 17, 2014 at 2:51 PM, narayan naik wrote: > I am using ---Python 2.7.3 (default, Feb 27 2014, 20:00:17) version > operating system-ubuntu 12.04 LTS > and also I have downloaded openCV > > On Mon, Nov 17, 2014 at 2:43 PM, L Radhakrishna Rao < > satishsagar83 at gmail.com> wrote: > >> Put entire details, have you downloaded cv2 module? >> >> What's the python version you are using, and the operating system? >> >> Thanks >> >> On Mon, Nov 17, 2014 at 2:30 PM, narayan naik >> wrote: >> >> > hi, >> > when I am running face detection code ,I am getting this error. >> > >> > Traceback (most recent call last): >> > File "/home/nv/read.py", line 2, in >> > import cv2 >> > ImportError: No module named cv2 >> > >>> >> > >> > please help me. >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > https://mail.python.org/mailman/listinfo/bangpypers >> > >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> https://mail.python.org/mailman/listinfo/bangpypers >> > > From jeffjosejeff at gmail.com Mon Nov 17 10:31:31 2014 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Mon, 17 Nov 2014 15:01:31 +0530 Subject: [BangPypers] about python code In-Reply-To: References: Message-ID: Your error says you don't have opencv python bindings or python can't find the bindings. The command you showed, however, tells me that you have opencv installed. Those 2 are different. On Nov 17, 2014 2:55 PM, "narayan naik" wrote: > when I entered in terminal > nv at ubuntu:~$ pkg-config --modversion opencv > it shows like > 2.3.1 > > > On Mon, Nov 17, 2014 at 2:51 PM, narayan naik > wrote: > > > I am using ---Python 2.7.3 (default, Feb 27 2014, 20:00:17) version > > operating system-ubuntu 12.04 LTS > > and also I have downloaded openCV > > > > On Mon, Nov 17, 2014 at 2:43 PM, L Radhakrishna Rao < > > satishsagar83 at gmail.com> wrote: > > > >> Put entire details, have you downloaded cv2 module? > >> > >> What's the python version you are using, and the operating system? > >> > >> Thanks > >> > >> On Mon, Nov 17, 2014 at 2:30 PM, narayan naik > > >> wrote: > >> > >> > hi, > >> > when I am running face detection code ,I am getting this error. > >> > > >> > Traceback (most recent call last): > >> > File "/home/nv/read.py", line 2, in > >> > import cv2 > >> > ImportError: No module named cv2 > >> > >>> > >> > > >> > please help me. > >> > _______________________________________________ > >> > BangPypers mailing list > >> > BangPypers at python.org > >> > https://mail.python.org/mailman/listinfo/bangpypers > >> > > >> _______________________________________________ > >> BangPypers mailing list > >> BangPypers at python.org > >> https://mail.python.org/mailman/listinfo/bangpypers > >> > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From baiju.m.mail at gmail.com Mon Nov 17 10:47:24 2014 From: baiju.m.mail at gmail.com (Baiju M) Date: Mon, 17 Nov 2014 15:17:24 +0530 Subject: [BangPypers] about python code In-Reply-To: References: Message-ID: I found this in my system, may be you are looking for this package: $ apt-cache search opencv | grep python python-opencv - Python bindings for the computer vision library On Mon, Nov 17, 2014 at 3:01 PM, Jeffrey Jose wrote: > Your error says you don't have opencv python bindings or python can't find > the bindings. The command you showed, however, tells me that you have > opencv installed. Those 2 are different. > On Nov 17, 2014 2:55 PM, "narayan naik" wrote: > >> when I entered in terminal >> nv at ubuntu:~$ pkg-config --modversion opencv >> it shows like >> 2.3.1 >> >> >> On Mon, Nov 17, 2014 at 2:51 PM, narayan naik >> wrote: >> >> > I am using ---Python 2.7.3 (default, Feb 27 2014, 20:00:17) version >> > operating system-ubuntu 12.04 LTS >> > and also I have downloaded openCV >> > >> > On Mon, Nov 17, 2014 at 2:43 PM, L Radhakrishna Rao < >> > satishsagar83 at gmail.com> wrote: >> > >> >> Put entire details, have you downloaded cv2 module? >> >> >> >> What's the python version you are using, and the operating system? >> >> >> >> Thanks >> >> >> >> On Mon, Nov 17, 2014 at 2:30 PM, narayan naik > > >> >> wrote: >> >> >> >> > hi, >> >> > when I am running face detection code ,I am getting this error. >> >> > >> >> > Traceback (most recent call last): >> >> > File "/home/nv/read.py", line 2, in >> >> > import cv2 >> >> > ImportError: No module named cv2 >> >> > >>> >> >> > >> >> > please help me. >> >> > _______________________________________________ >> >> > BangPypers mailing list >> >> > BangPypers at python.org >> >> > https://mail.python.org/mailman/listinfo/bangpypers >> >> > >> >> _______________________________________________ >> >> BangPypers mailing list >> >> BangPypers at python.org >> >> https://mail.python.org/mailman/listinfo/bangpypers >> >> >> > >> > >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> https://mail.python.org/mailman/listinfo/bangpypers >> > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers From vikneshwaren.u at gmail.com Mon Nov 17 10:06:20 2014 From: vikneshwaren.u at gmail.com (Vikneshwaren) Date: Mon, 17 Nov 2014 14:36:20 +0530 Subject: [BangPypers] about python code In-Reply-To: References: Message-ID: I think your code imports OpenCV module and seems to be that it was not properly imported or the module is completely missing. Please check into that and try installing the module if missing. -- Vikneshwaren Free Software Foundation, Tamil Nadu On Nov 17, 2014 2:30 PM, "narayan naik" wrote: > hi, > when I am running face detection code ,I am getting this error. > > Traceback (most recent call last): > File "/home/nv/read.py", line 2, in > import cv2 > ImportError: No module named cv2 > >>> > > please help me. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From satishsagar83 at gmail.com Mon Nov 17 11:12:33 2014 From: satishsagar83 at gmail.com (L Radhakrishna Rao) Date: Mon, 17 Nov 2014 15:42:33 +0530 Subject: [BangPypers] about python code In-Reply-To: References: Message-ID: Also, try with this: http://askubuntu.com/questions/447409/how-to-install-opencv-2-9-for-python On Mon, Nov 17, 2014 at 3:36 PM, L Radhakrishna Rao wrote: > Try with import opencv, without giving cv2 > > On Mon, Nov 17, 2014 at 2:36 PM, Vikneshwaren > wrote: > >> I think your code imports OpenCV module and seems to be that it was not >> properly imported or the module is completely missing. Please check into >> that and try installing the module if missing. >> >> -- >> Vikneshwaren >> Free Software Foundation, Tamil Nadu >> On Nov 17, 2014 2:30 PM, "narayan naik" wrote: >> >> > hi, >> > when I am running face detection code ,I am getting this error. >> > >> > Traceback (most recent call last): >> > File "/home/nv/read.py", line 2, in >> > import cv2 >> > ImportError: No module named cv2 >> > >>> >> > >> > please help me. >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > https://mail.python.org/mailman/listinfo/bangpypers >> > >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> https://mail.python.org/mailman/listinfo/bangpypers >> > > From satishsagar83 at gmail.com Mon Nov 17 11:06:40 2014 From: satishsagar83 at gmail.com (L Radhakrishna Rao) Date: Mon, 17 Nov 2014 15:36:40 +0530 Subject: [BangPypers] about python code In-Reply-To: References: Message-ID: Try with import opencv, without giving cv2 On Mon, Nov 17, 2014 at 2:36 PM, Vikneshwaren wrote: > I think your code imports OpenCV module and seems to be that it was not > properly imported or the module is completely missing. Please check into > that and try installing the module if missing. > > -- > Vikneshwaren > Free Software Foundation, Tamil Nadu > On Nov 17, 2014 2:30 PM, "narayan naik" wrote: > > > hi, > > when I am running face detection code ,I am getting this error. > > > > Traceback (most recent call last): > > File "/home/nv/read.py", line 2, in > > import cv2 > > ImportError: No module named cv2 > > >>> > > > > please help me. > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From narayannaik.05 at gmail.com Mon Nov 17 11:56:13 2014 From: narayannaik.05 at gmail.com (narayan naik) Date: Mon, 17 Nov 2014 16:26:13 +0530 Subject: [BangPypers] about python code In-Reply-To: References: Message-ID: hi can you please send me the required terminal package On Mon, Nov 17, 2014 at 2:36 PM, Vikneshwaren wrote: > I think your code imports OpenCV module and seems to be that it was not > properly imported or the module is completely missing. Please check into > that and try installing the module if missing. > > -- > Vikneshwaren > Free Software Foundation, Tamil Nadu > On Nov 17, 2014 2:30 PM, "narayan naik" wrote: > > > hi, > > when I am running face detection code ,I am getting this error. > > > > Traceback (most recent call last): > > File "/home/nv/read.py", line 2, in > > import cv2 > > ImportError: No module named cv2 > > >>> > > > > please help me. > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From praveengshirali at gmail.com Mon Nov 17 15:45:53 2014 From: praveengshirali at gmail.com (Praveen Shirali) Date: Mon, 17 Nov 2014 20:15:53 +0530 Subject: [BangPypers] [JOB] Python Developer in Test at Riptide IO Message-ID: We have one position open for a Python Developer in Test at Riptide IO, Bangalore. We are a startup based in Santa Barbara, US, with one office in Bangalore (near Leela Palace, HAL). We are looking for a candidate who can do both white-box testing as well as contribute to test development and automation in Python. You may review the full job description and apply through the HasJob board. https://hasjob.co/view/yj9pd Please visit our website http://www.riptideio.com for more information. Regards, Praveen From vani.pree at gmail.com Tue Nov 18 15:58:04 2014 From: vani.pree at gmail.com (Vanitha Shanmugam) Date: Tue, 18 Nov 2014 20:28:04 +0530 Subject: [BangPypers] [X-Post] Diversity Message-ID: Hi, This is regarding diversity group organized by PSSI. I have been actively volunteering for PyCon India from past 3 years and I see the female python developers participation getting reduced year by year. This was one of the concern PSSI had discussed during the AGM. PSSI has come up with the initiative, diversity, where we all female developers can share and discuss to see how we can improve the active participation from female developers. If we have any concerns/expectations, PSSI can help us the way they can. We have the mailing list ( http://lists.pssi.org.in/mailman/listinfo/diversity) created. This mailing list only for female pythonistas and the archives are not public so the discussions are kept private. I would request all female developers to join in the mailing list and share your thoughts. Please spread the word. Thanks, Vanitha From noufal at nibrahim.net.in Tue Nov 18 18:12:39 2014 From: noufal at nibrahim.net.in (Noufal Ibrahim KV) Date: Tue, 18 Nov 2014 22:42:39 +0530 Subject: [BangPypers] [Inpycon] [X-Post] Diversity In-Reply-To: (Vanitha Shanmugam's message of "Tue, 18 Nov 2014 20:28:04 +0530") References: Message-ID: <87fvdg5t6g.fsf@nibrahim.net.in> On Tue, Nov 18 2014, Vanitha Shanmugam wrote: [...] > We have the mailing list ( > http://lists.pssi.org.in/mailman/listinfo/diversity) created. This > mailing list only for female pythonistas and the archives are not > public so the discussions are kept private. [...] There is a Python diversity list at https://mail.python.org/mailman/listinfo/diversity which you might want to send your email to. There are folks from there from India and other countries who are interested and will probably be able to contribute. -- Cordially, Noufal http://nibrahim.net.in From me at bibhas.in Tue Nov 18 18:28:33 2014 From: me at bibhas.in (Bibhas) Date: Tue, 18 Nov 2014 22:58:33 +0530 Subject: [BangPypers] [X-Post] Diversity In-Reply-To: References: Message-ID: <546B81C1.9090901@bibhas.in> Hi Venitha, On 11/18/2014 08:28 PM, Vanitha Shanmugam wrote: > Hi, > > This is regarding diversity group organized by PSSI. > > I have been actively volunteering for PyCon India from past 3 years and I > see the female python developers participation getting reduced year by > year. This was one of the concern PSSI had discussed during the AGM. > > PSSI has come up with the initiative, diversity, where we all female > developers can share and discuss to see how we can improve the active > participation from female developers. If we have any concerns/expectations, > PSSI can help us the way they can. > > We have the mailing list ( > http://lists.pssi.org.in/mailman/listinfo/diversity) created. This mailing > list only for female pythonistas and the archives are not public so the > discussions are kept private. It's really good to see you taking active steps. From what I've seen in last 4 years, I'd say this was very much necessary. This is a new movement for a lot of the people in our community. So to anyone who's thinking that they don't get it or this is separating the community and hence is bad, I'd like you to read this blog post[1] by Hynek Schlawack and the section with the heading "Why Women Only?" here[2]. Maybe it'll help. Thanks, Bibhas [1]: https://hynek.me/articles/how-i-stopped-worrying-and-started-loving-pyladies/ [2]: http://boston.pyladies.com/resources/ > > I would request all female developers to join in the mailing list and share > your thoughts. > Please spread the word. > > > Thanks, > Vanitha > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From narayannaik.05 at gmail.com Wed Nov 19 10:10:44 2014 From: narayannaik.05 at gmail.com (narayan naik) Date: Wed, 19 Nov 2014 14:40:44 +0530 Subject: [BangPypers] about python code In-Reply-To: References: Message-ID: hi, can any one tell,which simulator is best for python On Mon, Nov 17, 2014 at 4:26 PM, narayan naik wrote: > hi > can you please send me the required terminal package > > On Mon, Nov 17, 2014 at 2:36 PM, Vikneshwaren > wrote: > >> I think your code imports OpenCV module and seems to be that it was not >> properly imported or the module is completely missing. Please check into >> that and try installing the module if missing. >> >> -- >> Vikneshwaren >> Free Software Foundation, Tamil Nadu >> On Nov 17, 2014 2:30 PM, "narayan naik" wrote: >> >> > hi, >> > when I am running face detection code ,I am getting this error. >> > >> > Traceback (most recent call last): >> > File "/home/nv/read.py", line 2, in >> > import cv2 >> > ImportError: No module named cv2 >> > >>> >> > >> > please help me. >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > https://mail.python.org/mailman/listinfo/bangpypers >> > >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> https://mail.python.org/mailman/listinfo/bangpypers >> > > From kiran.daredevil at gmail.com Wed Nov 19 11:56:02 2014 From: kiran.daredevil at gmail.com (Kiran Gangadharan) Date: Wed, 19 Nov 2014 16:26:02 +0530 Subject: [BangPypers] about python code In-Reply-To: References: Message-ID: Hi, On Wed, Nov 19, 2014 at 2:40 PM, narayan naik wrote: > hi, > can any one tell,which simulator is best for python > Kindly take a look at the mailing guidelines[1] before you send another mail. [1] http://www.shakthimaan.com/downloads/glv/presentations/mailing-list-etiquette.pdf > On Mon, Nov 17, 2014 at 4:26 PM, narayan naik > wrote: > > > hi > > can you please send me the required terminal package > > > > On Mon, Nov 17, 2014 at 2:36 PM, Vikneshwaren > > wrote: > > > >> I think your code imports OpenCV module and seems to be that it was not > >> properly imported or the module is completely missing. Please check into > >> that and try installing the module if missing. > >> > >> -- > >> Vikneshwaren > >> Free Software Foundation, Tamil Nadu > >> On Nov 17, 2014 2:30 PM, "narayan naik" > wrote: > >> > >> > hi, > >> > when I am running face detection code ,I am getting this error. > >> > > >> > Traceback (most recent call last): > >> > File "/home/nv/read.py", line 2, in > >> > import cv2 > >> > ImportError: No module named cv2 > >> > >>> > >> > > >> > please help me. > >> > _______________________________________________ > >> > BangPypers mailing list > >> > BangPypers at python.org > >> > https://mail.python.org/mailman/listinfo/bangpypers > >> > > >> _______________________________________________ > >> BangPypers mailing list > >> BangPypers at python.org > >> https://mail.python.org/mailman/listinfo/bangpypers > >> > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- Cheers, Kiran Gangadharan http://kirang.in From info.martinanto at gmail.com Wed Nov 19 14:13:44 2014 From: info.martinanto at gmail.com (Martin Anto) Date: Wed, 19 Nov 2014 18:43:44 +0530 Subject: [BangPypers] about python code In-Reply-To: References: Message-ID: Simulator?? You mean interpreter? On Nov 19, 2014 2:48 PM, "narayan naik" wrote: > hi, > can any one tell,which simulator is best for python > > On Mon, Nov 17, 2014 at 4:26 PM, narayan naik > wrote: > > > hi > > can you please send me the required terminal package > > > > On Mon, Nov 17, 2014 at 2:36 PM, Vikneshwaren > > wrote: > > > >> I think your code imports OpenCV module and seems to be that it was not > >> properly imported or the module is completely missing. Please check into > >> that and try installing the module if missing. > >> > >> -- > >> Vikneshwaren > >> Free Software Foundation, Tamil Nadu > >> On Nov 17, 2014 2:30 PM, "narayan naik" > wrote: > >> > >> > hi, > >> > when I am running face detection code ,I am getting this error. > >> > > >> > Traceback (most recent call last): > >> > File "/home/nv/read.py", line 2, in > >> > import cv2 > >> > ImportError: No module named cv2 > >> > >>> > >> > > >> > please help me. > >> > _______________________________________________ > >> > BangPypers mailing list > >> > BangPypers at python.org > >> > https://mail.python.org/mailman/listinfo/bangpypers > >> > > >> _______________________________________________ > >> BangPypers mailing list > >> BangPypers at python.org > >> https://mail.python.org/mailman/listinfo/bangpypers > >> > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From narayannaik.05 at gmail.com Thu Nov 20 05:18:47 2014 From: narayannaik.05 at gmail.com (narayan naik) Date: Thu, 20 Nov 2014 09:48:47 +0530 Subject: [BangPypers] about python code In-Reply-To: References: Message-ID: Ya, am talking the same On 19 Nov 2014 18:49, "Martin Anto" wrote: > Simulator?? > > You mean interpreter? > On Nov 19, 2014 2:48 PM, "narayan naik" wrote: > > > hi, > > can any one tell,which simulator is best for python > > > > On Mon, Nov 17, 2014 at 4:26 PM, narayan naik > > wrote: > > > > > hi > > > can you please send me the required terminal package > > > > > > On Mon, Nov 17, 2014 at 2:36 PM, Vikneshwaren < > vikneshwaren.u at gmail.com> > > > wrote: > > > > > >> I think your code imports OpenCV module and seems to be that it was > not > > >> properly imported or the module is completely missing. Please check > into > > >> that and try installing the module if missing. > > >> > > >> -- > > >> Vikneshwaren > > >> Free Software Foundation, Tamil Nadu > > >> On Nov 17, 2014 2:30 PM, "narayan naik" > > wrote: > > >> > > >> > hi, > > >> > when I am running face detection code ,I am getting this error. > > >> > > > >> > Traceback (most recent call last): > > >> > File "/home/nv/read.py", line 2, in > > >> > import cv2 > > >> > ImportError: No module named cv2 > > >> > >>> > > >> > > > >> > please help me. > > >> > _______________________________________________ > > >> > BangPypers mailing list > > >> > BangPypers at python.org > > >> > https://mail.python.org/mailman/listinfo/bangpypers > > >> > > > >> _______________________________________________ > > >> BangPypers mailing list > > >> BangPypers at python.org > > >> https://mail.python.org/mailman/listinfo/bangpypers > > >> > > > > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From kavit at aptira.com Fri Nov 21 03:15:16 2014 From: kavit at aptira.com (Kavit Munshi) Date: Fri, 21 Nov 2014 07:45:16 +0530 Subject: [BangPypers] Developers! Developers! Developers! Message-ID: Are you a python developer who wishes to work with the latest cloud technology? Do unfixed bugs keep you up at night? Do you want to learn more about OpenStack and write software that may run on some of the biggest clusters and platforms on this planet? Are you looking to be different than the usual, run of the mill 9 to 5 mass recruited IT professionals? If you answered "Yes" to most of the questions above, we should talk. Because you are exactly the kind of candidate we are looking to talk to. Aptira is one of the hottest startups in the cloud scene in Asia-Pacific. We are well known in the community for being positively disruptive. Aptira is a Gold Member of the OpenStack Foundation, and you will also have the opportunity to raise your own profile in the OpenStack community. You will do challenging work with an international, young and dynamic team. You will work in a result and goal oriented environment, where the minutiae of a normal corporate job will never bother you. Positions available for good programmers of all experience levels Requirements: - Good to indepth Knowledge of Python programming, some exposure to cloud technologies would be welcome. Knowledge of OpenStack would be highly desirable but not essential. - Knowledge of CI/CD frameworks desirable but not essential. - We work in an international team overlapping several time zones. We may sometimes require you to work odd hours to solve a problem. Flexibility is essential for this role. - Ability to learn and adapt quickly to new technologies and opportunities - Freshers welcome to apply What we offer: - Flexibility. Most of the time you can work when you like, where you like, so long as we know what you're up to and you deliver on time. - All about the improvement. If Agile taught us one thing, it?s that we're never really good enough. - Our remuneration packages are pretty damn good, we send big teams to conferences, and stuff. - Training on OpenStack will be provided - Commit directly to the OpenStack codebase and elevate your profile If you think you fit the bill and are up to the task, drop me an email with your resume and we would love to get the conversation started. regards, Kavit ------------------------------ *Kavit Munshi* *Chief Technology Officer* *EVP Aptira India * +91 97129 29850 +612 8030 2333 1800 APTIRA aptira.com Follow @aptira Follow @kavitaptira From jeffjosejeff at gmail.com Fri Nov 21 07:46:15 2014 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Fri, 21 Nov 2014 12:16:15 +0530 Subject: [BangPypers] about python code In-Reply-To: References: Message-ID: The default one works for almost all purposes. If you are feeling adventurous, try ipython -jeff On Nov 20, 2014 9:49 AM, "narayan naik" wrote: > Ya, am talking the same > On 19 Nov 2014 18:49, "Martin Anto" wrote: > > > Simulator?? > > > > You mean interpreter? > > On Nov 19, 2014 2:48 PM, "narayan naik" > wrote: > > > > > hi, > > > can any one tell,which simulator is best for python > > > > > > On Mon, Nov 17, 2014 at 4:26 PM, narayan naik < > narayannaik.05 at gmail.com> > > > wrote: > > > > > > > hi > > > > can you please send me the required terminal package > > > > > > > > On Mon, Nov 17, 2014 at 2:36 PM, Vikneshwaren < > > vikneshwaren.u at gmail.com> > > > > wrote: > > > > > > > >> I think your code imports OpenCV module and seems to be that it was > > not > > > >> properly imported or the module is completely missing. Please check > > into > > > >> that and try installing the module if missing. > > > >> > > > >> -- > > > >> Vikneshwaren > > > >> Free Software Foundation, Tamil Nadu > > > >> On Nov 17, 2014 2:30 PM, "narayan naik" > > > wrote: > > > >> > > > >> > hi, > > > >> > when I am running face detection code ,I am getting this error. > > > >> > > > > >> > Traceback (most recent call last): > > > >> > File "/home/nv/read.py", line 2, in > > > >> > import cv2 > > > >> > ImportError: No module named cv2 > > > >> > >>> > > > >> > > > > >> > please help me. > > > >> > _______________________________________________ > > > >> > BangPypers mailing list > > > >> > BangPypers at python.org > > > >> > https://mail.python.org/mailman/listinfo/bangpypers > > > >> > > > > >> _______________________________________________ > > > >> BangPypers mailing list > > > >> BangPypers at python.org > > > >> https://mail.python.org/mailman/listinfo/bangpypers > > > >> > > > > > > > > > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From nikhil.ikhar at gmail.com Fri Nov 21 08:00:30 2014 From: nikhil.ikhar at gmail.com (Nikhileshkumar Ikhar) Date: Fri, 21 Nov 2014 12:30:30 +0530 Subject: [BangPypers] about python code In-Reply-To: References: Message-ID: Python terminal on linux is sufficient. But many people are fans of ipython and idle. -Nikhil On 20 November 2014 09:48, narayan naik wrote: > Ya, am talking the same > On 19 Nov 2014 18:49, "Martin Anto" wrote: > > > Simulator?? > > > > You mean interpreter? > > On Nov 19, 2014 2:48 PM, "narayan naik" > wrote: > > > > > hi, > > > can any one tell,which simulator is best for python > > > > > > On Mon, Nov 17, 2014 at 4:26 PM, narayan naik < > narayannaik.05 at gmail.com> > > > wrote: > > > > > > > hi > > > > can you please send me the required terminal package > > > > > > > > On Mon, Nov 17, 2014 at 2:36 PM, Vikneshwaren < > > vikneshwaren.u at gmail.com> > > > > wrote: > > > > > > > >> I think your code imports OpenCV module and seems to be that it was > > not > > > >> properly imported or the module is completely missing. Please check > > into > > > >> that and try installing the module if missing. > > > >> > > > >> -- > > > >> Vikneshwaren > > > >> Free Software Foundation, Tamil Nadu > > > >> On Nov 17, 2014 2:30 PM, "narayan naik" > > > wrote: > > > >> > > > >> > hi, > > > >> > when I am running face detection code ,I am getting this error. > > > >> > > > > >> > Traceback (most recent call last): > > > >> > File "/home/nv/read.py", line 2, in > > > >> > import cv2 > > > >> > ImportError: No module named cv2 > > > >> > >>> > > > >> > > > > >> > please help me. > > > >> > _______________________________________________ > > > >> > BangPypers mailing list > > > >> > BangPypers at python.org > > > >> > https://mail.python.org/mailman/listinfo/bangpypers > > > >> > > > > >> _______________________________________________ > > > >> BangPypers mailing list > > > >> BangPypers at python.org > > > >> https://mail.python.org/mailman/listinfo/bangpypers > > > >> > > > > > > > > > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From ramkoncha at gmail.com Fri Nov 21 08:41:35 2014 From: ramkoncha at gmail.com (ram mohan) Date: Fri, 21 Nov 2014 13:11:35 +0530 Subject: [BangPypers] Developers! Developers! Developers! In-Reply-To: References: Message-ID: On Fri, Nov 21, 2014 at 7:45 AM, Kavit Munshi wrote: > Are you a python developer who wishes to work with the latest cloud > technology? Do unfixed bugs keep you up at night? Do you want to learn more > about OpenStack and write software that may run on some of the biggest > clusters and platforms on this planet? Are you looking to be different than > the usual, run of the mill 9 to 5 mass recruited IT professionals? > > If you answered "Yes" to most of the questions above, we should talk. > Because you are exactly the kind of candidate we are looking to talk to. > > Aptira is one of the hottest startups in the cloud scene in Asia-Pacific. > We are well known in the community for being positively disruptive. Aptira > is a Gold Member of the OpenStack Foundation, and you will also have the > opportunity to raise your own profile in the OpenStack community. > > You will do challenging work with an international, young and dynamic team. > You will work in a result and goal oriented environment, where the minutiae > of a normal corporate job will never bother you. > > Positions available for good programmers of all experience levels > > Requirements: > - Good to indepth Knowledge of Python programming, some exposure to cloud > technologies would be welcome. Knowledge of OpenStack would be highly > desirable but not essential. > - Knowledge of CI/CD frameworks desirable but not essential. > - We work in an international team overlapping several time zones. We may > sometimes require you to work odd hours to solve a problem. Flexibility is > essential for this role. > - Ability to learn and adapt quickly to new technologies and opportunities > - Freshers welcome to apply > > What we offer: > - Flexibility. Most of the time you can work when you like, where you like, > so long as we know what you're up to and you deliver on time. > - All about the improvement. If Agile taught us one thing, it?s > that we're never really good enough. > - Our remuneration packages are pretty damn good, we send big teams to > conferences, and stuff. > - Training on OpenStack will be provided > - Commit directly to the OpenStack codebase and elevate your profile > > If you think you fit the bill and are up to the task, drop me an email with > your resume and we would love to get the conversation started. > > regards, > > Kavit > ------------------------------ > *Kavit Munshi* > *Chief Technology Officer* > *EVP Aptira India * > > +91 97129 29850 > +612 8030 2333 > 1800 APTIRA > aptira.com > Follow @aptira > Follow @kavitaptira > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- RAM From karra.etc at gmail.com Fri Nov 21 15:03:03 2014 From: karra.etc at gmail.com (Sriram Karra) Date: Fri, 21 Nov 2014 19:33:03 +0530 Subject: [BangPypers] Asynchronous method calls in python In-Reply-To: References: Message-ID: On Fri, Oct 10, 2014 at 2:06 PM, Okan bhan wrote: > Hi, > > I'm working on an appengine + flask application which makes multiple > requests to third party APIs as part of one request. All of these are > independent. > Have you explored Appengine Task Queues? From rajalokan at gmail.com Sun Nov 23 10:48:17 2014 From: rajalokan at gmail.com (Okan bhan) Date: Sun, 23 Nov 2014 15:18:17 +0530 Subject: [BangPypers] Asynchronous method calls in python Message-ID: > > > > > Hi, > > > > I'm working on an appengine + flask application which makes multiple > > requests to third party APIs as part of one request. All of these are > > independent. > > > > Have you explored Appengine Task Queues? > > > Hi Sriram, I had a look on task queues but don't think that was for my issue. I ended up taking Anand's suggestion of making asynchronous requests using Appengine's urlfetch ( https://cloud.google.com/appengine/docs/python/urlfetch/asynchronousrequests ). Thanks for your help. Thanks & Regards Alok From nitin.nitp at gmail.com Sun Nov 23 14:29:59 2014 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Sun, 23 Nov 2014 18:59:59 +0530 Subject: [BangPypers] PyQt Query Message-ID: code: QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.xyz) QtCore.QMetaObject.connectSlotsByName(DeviceConnect) def xyz(self): print 'pqr' when pushButton is clicked xyz is not getting called. but if i put xyz function outside class it gets called. Any Idea? Nitin K From asif.jamadar at rezayat.net Sun Nov 23 14:32:32 2014 From: asif.jamadar at rezayat.net (Asif Jamadar) Date: Sun, 23 Nov 2014 13:32:32 +0000 Subject: [BangPypers] PyQt Query In-Reply-To: References: Message-ID: Missing function call -> self.xyz() -----Original Message----- From: BangPypers [mailto:bangpypers-bounces+asif.jamadar=rezayat.net at python.org] On Behalf Of Nitin Kumar Sent: Sunday, November 23, 2014 4:30 PM To: Bangalore Python Users Group - India Subject: [BangPypers] PyQt Query code: QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.xyz) QtCore.QMetaObject.connectSlotsByName(DeviceConnect) def xyz(self): print 'pqr' when pushButton is clicked xyz is not getting called. but if i put xyz function outside class it gets called. Any Idea? Nitin K _______________________________________________ BangPypers mailing list BangPypers at python.org https://mail.python.org/mailman/listinfo/bangpypers From narayannaik.05 at gmail.com Sun Nov 23 16:33:41 2014 From: narayannaik.05 at gmail.com (narayan naik) Date: Sun, 23 Nov 2014 21:03:41 +0530 Subject: [BangPypers] about python code In-Reply-To: References: Message-ID: Thank you all On Fri, Nov 21, 2014 at 12:30 PM, Nikhileshkumar Ikhar < nikhil.ikhar at gmail.com> wrote: > Python terminal on linux is sufficient. > But many people are fans of ipython and idle. > > -Nikhil > > On 20 November 2014 09:48, narayan naik wrote: > > > Ya, am talking the same > > On 19 Nov 2014 18:49, "Martin Anto" wrote: > > > > > Simulator?? > > > > > > You mean interpreter? > > > On Nov 19, 2014 2:48 PM, "narayan naik" > > wrote: > > > > > > > hi, > > > > can any one tell,which simulator is best for python > > > > > > > > On Mon, Nov 17, 2014 at 4:26 PM, narayan naik < > > narayannaik.05 at gmail.com> > > > > wrote: > > > > > > > > > hi > > > > > can you please send me the required terminal package > > > > > > > > > > On Mon, Nov 17, 2014 at 2:36 PM, Vikneshwaren < > > > vikneshwaren.u at gmail.com> > > > > > wrote: > > > > > > > > > >> I think your code imports OpenCV module and seems to be that it > was > > > not > > > > >> properly imported or the module is completely missing. Please > check > > > into > > > > >> that and try installing the module if missing. > > > > >> > > > > >> -- > > > > >> Vikneshwaren > > > > >> Free Software Foundation, Tamil Nadu > > > > >> On Nov 17, 2014 2:30 PM, "narayan naik" > > > > > wrote: > > > > >> > > > > >> > hi, > > > > >> > when I am running face detection code ,I am getting this > error. > > > > >> > > > > > >> > Traceback (most recent call last): > > > > >> > File "/home/nv/read.py", line 2, in > > > > >> > import cv2 > > > > >> > ImportError: No module named cv2 > > > > >> > >>> > > > > >> > > > > > >> > please help me. > > > > >> > _______________________________________________ > > > > >> > BangPypers mailing list > > > > >> > BangPypers at python.org > > > > >> > https://mail.python.org/mailman/listinfo/bangpypers > > > > >> > > > > > >> _______________________________________________ > > > > >> BangPypers mailing list > > > > >> BangPypers at python.org > > > > >> https://mail.python.org/mailman/listinfo/bangpypers > > > > >> > > > > > > > > > > > > > > _______________________________________________ > > > > BangPypers mailing list > > > > BangPypers at python.org > > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From avneesh.chadha at gmail.com Sun Nov 23 20:17:36 2014 From: avneesh.chadha at gmail.com (Avneesh Chadha) Date: Mon, 24 Nov 2014 00:47:36 +0530 Subject: [BangPypers] First Open Source Project Message-ID: Hi, Is their anyone who is currently working on an open source project or has something of his/her own and would like to get help with. I can write tests and documentation to begin with. Thanks, Avneesh From narayannaik.05 at gmail.com Tue Nov 25 09:20:43 2014 From: narayannaik.05 at gmail.com (narayan naik) Date: Tue, 25 Nov 2014 13:50:43 +0530 Subject: [BangPypers] About code Message-ID: Hi, import numpy as np import cv2 img=cv2.imread('4.jpg',0) cv2.imshow('image',img) k=cv2.waitKey(0) if k == 27: cv2.destroyAllWindows() #cv2.destroyWindow('image') elif k == ord('S'): cv2.imwrite('image.png',img) cv2.destroyAllWindows() when I run this code,it is not possible to close the image window by pressing esc key,and if going to close by using mouse the window will hang. From nitin.nitp at gmail.com Tue Nov 25 12:23:18 2014 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Tue, 25 Nov 2014 16:53:18 +0530 Subject: [BangPypers] python new class embedding in C++ Message-ID: say we have python class: class XYZ(object): ------- PyObject* instance = PyInstance_New(klass, NULL, NULL); above c++ embedding is not working. but if we convert python class to old style it work. What need to be taken care? Nitin K From sudheer.zzz at sudheer.net Wed Nov 26 09:39:12 2014 From: sudheer.zzz at sudheer.net (Sudheer Satyanarayana) Date: Wed, 26 Nov 2014 14:09:12 +0530 Subject: [BangPypers] First Open Source Project In-Reply-To: References: Message-ID: Hi Avneesh, Take a look at . There are a few to-do items. Perhaps you could help me with that. -- Sudheer On Mon, Nov 24, 2014 at 12:47 AM, Avneesh Chadha wrote: > Hi, > Is their anyone who is currently working on an open source project or has > something of his/her own and would like to get help with. I can write tests > and documentation to begin with. > > Thanks, > Avneesh > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From nimit.svnit at gmail.com Wed Nov 26 09:54:31 2014 From: nimit.svnit at gmail.com (Nimit Shah) Date: Wed, 26 Nov 2014 14:24:31 +0530 Subject: [BangPypers] First Open Source Project In-Reply-To: References: Message-ID: Hi Avneesh, You can also take a look at a project that I co-maintain for GNOME: https://github.com/getting-things-gnome/gtg We would really like some help with tests :) Nimit Shah On Wed, Nov 26, 2014 at 2:09 PM, Sudheer Satyanarayana < sudheer.zzz at sudheer.net> wrote: > Hi Avneesh, > > Take a look at . > > There are a few to-do items. Perhaps you could help me with that. > > -- > Sudheer > > On Mon, Nov 24, 2014 at 12:47 AM, Avneesh Chadha > > wrote: > > > Hi, > > Is their anyone who is currently working on an open source project or > has > > something of his/her own and would like to get help with. I can write > tests > > and documentation to begin with. > > > > Thanks, > > Avneesh > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers >