Re: [BangPypers] how to delete base class attribute
fine, but isn't there any way to hide few function of base class into derived one??? I didn't get what is meant by hiding? You can override the function/method of base class in sub class. In that method, you can modify the behaviour for subclass or raise an exception or simply include 'pass'. Anyway, deleting any property of a class in it's subclasses clearly violates the liksov substitution principle. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] nested list question
I read from Python 2.6.3 docs that,copied from chm Note that filter(function, iterable) is equivalent to [item for item in iterable if function(item)] if function is not None and [item for item in iterable if item] if function is None. Since they said *equivalent* ,i thought both transform to same byte code.I missed the point that they are equal *logically*. Regards, Srini T. -- ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] nested list question
map (function, list1, list2) where in function you can create your desired list. List comprehensions are preferred to map and filter functions.In fact, filter is a syntactic sugar to list comprehension. Regards, Srini T. --When you are playing cricket, you should hit the ball out of the ground OR get bowled.Both are fine ;But what you shouldn't do is defending your wickets. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] [OT] David Goodger is our keynote speaker
Wow!! gr8.. Regards, Srini T. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] [OT] Non tech. meta talk at PyCon India
+1 I am very much keen on this. Regards, Srini T. --The real failure is failing to try for success. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] designing programs
well, we seemed have almost reached a consensus - now all we need to decide is the pros and cons of pen versus pencil. Well Kenneth, that's a personal decision.My best suggestion is ,use whatever you are comfortable with. rant Your goal matters not the means.:) /rant Regards, Srini T. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Facebook Event for PyCon India 2010
+1 for this... Regards, Srini T. --The real failure is failing to try for success. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] missing something
Here goes my 2 cents, What you are trying to do is method overloading ,in static language terms. This doesn't exist in python.I am not sure about this..but probably python finds function objects with method name. If anybody clarifies on this topic,it's worth while to learn. anybody? Regards, Srini T. --Every day is a school day for me ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] missing something
A small correction, I am not sure about this..but probably python finds function objects with method name * and with out including method parameters.* Regards, Srini T. --Every day is a school day for me ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] duck typing -A random thought
is it just because of duck typing we don't require a concept of interfaces(like in Java and C#) in python? i think so.what you say? Regards, Srini T. --The real failure is failing to try for success. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] duck typing -A random thought
I am really enjoying your book.Thanks a lot for writing it. :) Regards, Srini T. --The real failure is failing to try for success. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] duck typing -A random thought
Dear Senthil, +sys.maxint for the sheer effort you took for me to write. :) Regards, Srini T. --The real failure is failing to try for success. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] biopython
i am still waiting for some help. You seem to be posting question after question with out even trying to solve them( i can count 10 in three or four days on varying topics) in Bangpypers and comp.lang.python,literally spamming these lists.You better learn basics first , grab a book of Learning Python by Mark Lutz or point your browser to www://docs.python.org. Seriously, nobody will spoon feed you in the mailing lists. Regards, Srini T. --The real failure is failing to try for success. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] biopython
Haha... We don't have internet(usually), i manually typed it thinking something else. it usually happens with us programmers. Regards, Srini T. --The real failure is failing to try for success. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] PyCon India 2010 CFP open!
Way to go folks , can't wait to meet you all there.. Regards, Srini T. --The real failure is failing to try for success. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] PyCon India 2010 CFP open!
Thanks Srini. Do help spread the word and get more proposals. A conference is only as good as the talks presented. Yes, i did ,Sent mail to all of my friends. Regards, Srini T. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] python for management studies
Getting an application up and running with a few clicks of a mouse has the same effect as eating junk food. Your appetite goes away, you can claim that you've eaten something but there's close to zero nourishment. I love this analogy.gr8. +1 for all of your points. Regards, Srini T. --The real failure is failing to try for success. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] PyPDF to read hindi
Hindhi is a unicode text , your input data should be treated as Unicode instead of ASCII and last but not the least the encoding format in editor should be set to unicode ,otherwise you see garbled text. This is my guess , i have never worked with unicode in python.If i am wrong please correct me. ThanksRegards, Srinivas Reddy Thatiparthy, Mobile:9393099772, -Original Message- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.org on behalf of AADITYA SRIRAM Sent: Wed 6/2/2010 2:22 PM To: bangpypers@python.org Subject: [BangPypers] PyPDF to read hindi Hi guys, i am writing a small program to convert pdf to text files(i know its easy and lame but need to start somewhere !!), anyway i am not bale to rip the hindi text in readable form :( can anyone please help ? Its working fine with english text . ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] Pygments help
I am playing around with Pygments 1.3.1 source .I have a couple of questions. 1.Pygments docs says use python 2.4 or above.(from Pygments-1.3.1/docs/build/installation.html) ;there are lots of print statements in source but in 3.0 it has a become a function,so how does it work in 3.0 ? 2.I have installed it from source (well,i have windows xp) by running python setup.py install and when i looked for docs to invoke on a file say Test.cs there is a pygmentize file to invoke it.It looks like a *nix file.How to invoke Pygments in windows? ThanksRegards, Srinivas Reddy Thatiparthy, Mobile:9393099772, ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Pygments help
pygmentize is just a normal python script. You should have no problems running it under windows. Well, it's a shell script with no extension , i opened it in an editor ,it contains python code.see the below code. #here goes the path to python interpreter,actually i overriden that data,so lost it... import sys, pygments.cmdline try: sys.exit(pygments.cmdline.main(sys.argv)) except KeyboardInterrupt: sys.exit(1) so i changed this to ... import sys, pygments.cmdline if __name__==__main__: try: sys.exit(pygments.cmdline.main(sys.argv)) except KeyboardInterrupt: sys.exit(1) and put the extension of the file to .py and tried to invoke it with the command line options given , i got errors then included the __init__.py file in that directory with no data.Still, i get TypeError.Is this a PATH problem? or Am i doing anything wrong? Well , i don't have internet to search ,otherwise i would have searched. :( -- Srini T ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Pygments help
Oops,my bad! My version of python is 3.0.I didn't notice it and un-installed it and Pygments working nice on 2.6. ThanksRegards, Srinivas Reddy Thatiparthy, Mobile:9393099772, ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] What are the best python books , you have read.
What are the best python books you have read? should be at least on par with python cookbook. TIA for suggestions. ThanksRegards, Srinivas Reddy Thatiparthy, Mobile:9393099772, ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] packing floating data
Yes, you need to pack real and imaginary parts separately.I mean ,there is no way to pass Complex object to pack method(well,struct performs conversions between Python values and C structs represented as Python bytes objects),so struct.pack('ff',realpart,imaginarypart) #provided both parts are floats. ThanksRegards, Srinivas Reddy Thatiparthy, Mobile:9393099772, -Original Message- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.org on behalf of murugadoss Sent: Mon 5/31/2010 6:22 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] packing floating data hi, When i pack and unpack, i am able to get real part of the float number. can anyone please tell me, how i can pack both the real and imaginary part. Do i need to split n store the values ?? -- Thanks Regards V.Murugadoss On Mon, May 31, 2010 at 9:14 PM, Noufal Ibrahim nou...@gmail.com wrote: On Mon, May 31, 2010 at 5:34 PM, murugadoss murugadoss2...@gmail.com wrote: Hi all, I am trying to pack a float value like 45.90,43.78,543.87. i am using struct.pack( ) function. When i unpack (using struct.unpack) and print it i am getting only real part of the number. Type of the variable is long, var = 45.90 data = struct.pack(!l,float(var)) http://docs.python.org/library/struct.html#format-characters -- ~noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] Any compiled all PEP's into pdf
Hi list, Does anyone compiled all PEP's into a PDF document or chm file.I searched the internet but didn't get it.If you guys found pdf/chm file, please send the link. TIA, Srinivas Reddy Thatiparthy. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] python supports frameworks ?
and also please can any one tell is there any openings for freshers in python in bangalore ? Subscribe the feed of this site for job openings.. http://pythonjobs.blogspot.com/ if any openings in bangalore , python for freshers i would like to relocate to bangalore. Relocating to Banglore is always a better idea if you can afford,IMO.The more number of companies the better the chances of getting a call or job. ThanksRegards, Srinivas Reddy Thatiparthy, Mobile:9393099772, ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Coaching institute in Bangalore.
To answer your question. Ask a proposal from some of the freelancers in this list to conduct a training for you or your institute. That is be best coaching center you might get. I have seen a couple of exceptions here in Hyderabad,just like the guy chandrasekhar, http://www.chandrashekar.info/training/free-weekend-core-python-bootcamp.html One is , VEDA institute guy who teaches linux 2.6 kernel,Though the pace of the course is a bit fast, he is always ready to offer help even after the course is done.I heard this from my friends. Another one is worked for DRDO (forgot his name and institute), teaches device drivers programming and C/C++ programming in UNIX .And he is also helpful after the course. But the bottom line is ,Learn technologies from who have a passion for them(I do second senthil).Not from those who do for money.I think you could sense this once you attend the demo class and asked questions. Ofcourse, the above analogy applies for who love technology,then only you can judge based on factors like clarity of thought in his expression and exposure he has on technology. ThanksRegards, Srinivas Reddy Thatiparthy, Mobile:9393099772, ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Coaching institute in Bangalore.
But the bottom line is ,Learn technologies from who have a passion for them(I do second senthil).Not from those who do for money.I think you could sense this once you attend the demo class and asked questions. Hyderabad coaching institutes became so smart that demo given by an expert and you were taught by a mediocre. :) ThanksRegards, Srinivas Reddy Thatiparthy, Mobile:9393099772, ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Coaching institute in Bangalore.
You would have started a separate thread for it..:( ThanksRegards, Srinivas Reddy Thatiparthy, Mobile:9393099772, -Original Message- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.org on behalf of ?? Sent: Fri 4/16/2010 5:52 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Coaching institute in Bangalore. On Fri, Apr 16, 2010 at 16:43, Adityendra Rawat adityendra.rawa...@gmail.com wrote: Hi, Can some one tell me about some good coaching centers for Python around Kormangala or Indiranagar area. Hi, I dont know any coaching institutes. However I like the concept of dojorio.org [0] and if there are enough folks interested in Bangalore this is an interesting experiment. Their 'about' page states : Who we are passionate programmers get together to work on a programming challenge random. Rather than trying to solve the problem no matter what, we take small steps towards the solution and try to focus on software development best practices. Rather than Trying to solve the problem in the matter what, we take small steps Towards the solution and try to focus on software development best practices. Sharing and learning tips and tricks that may improve our daily activities is the real goal behind our meetings. Sharing and learning tips and tricks That May Improve Our Daily Activities is the real goal behind Our meetings. All skill levels are welcome and our environment is totally collaborative. All skill levels are welcome and Our environment is totally collaborative. There is no competition. There is no competition. We have two sessions per week. We Have two sessions per week. Every wednesday at 6:30 pm in Rio Downtown, and every thursday at 6:30 pm in Niterói. Every wednesday at 6:30 pm in Downtown Rio, and Every thursday at 6:30 pm in Niteroi. /quote [0] http://translate.google.com/translate?hl=ensl=ptu=http://dojorio.wordpress.com/ei=z7GyS7OtCIvYsgOAvqTMBAsa=Xoi=translatect=resultresnum=1ved=0CBQQ7gEwAAprev=/search%3Fq%3Ddojorio%26hl%3Den%26prmd%3Dv Thoughts? -- thanks and regards, vid || http://svaksha.com ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] [COMMERCIAL] CodersCombat project hosting servicefor all
I think in github you can make project *private*. Am i wrong? ThanksRegards, Srinivas Reddy Thatiparthy, Mobile:9393099772, -Original Message- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.org on behalf of Azhagu selvan Sent: Wed 4/14/2010 12:23 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] [COMMERCIAL] CodersCombat project hosting servicefor all Many small enterprises and college students who wants an efficient project tracking tool, doesn't want to make their source code and project info public - atleast till the project ends. In our service people can make their projects as *private* and I think almost all free project hosting providers require the project details and info to be made public. This we see as a key differentiator among the dozens of free hosting provider available out there. We will be adding a FAQ section soon which will have these queries answered. -- Azhagu Selvan On Wed, Apr 14, 2010 at 11:32 AM, Shashwat Anand anand.shash...@gmail.com wrote: why should someone using github or mercurial migrate to coderscombat ? On Wed, Apr 14, 2010 at 11:26 AM, Senthil Kumaran orsent...@gmail.comwrote: On Wed, Apr 14, 2010 at 08:28:06AM +0530, Azhagu selvan wrote: We are a bunch of students who have come up with this solution in order to provide project hosting service for our fellow students in colleges of India. For more information please visit http://www.coderscombat.com/ First off, well done with your project. Secondly, would you like to elucidate what are positives of coderscombat which I may not get if I use code.google.com or github or sf.net or sarovar.org considering that those services are available for free. -- Senthil http://uthcode.sarovar.org ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Fwd: [Inpycon] letterhead and seal
How about using Pycon-2009(banglore) logo as a seal? or official logo entries sent for logo contest? or atleast making some changes to them and come up with instead of designing from scratch. ThanksRegards, Srinivas Reddy Thatiparthy, Mobile:9393099772, -Original Message- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.org on behalf of Noufal Ibrahim Sent: Wed 4/14/2010 1:07 PM To: Bangalore Python Users Group - India Subject: [BangPypers] Fwd: [Inpycon] letterhead and seal Forwarding to a wider audience. -- Forwarded message -- From: Kenneth Gonsalves law...@au-kbc.org Date: Wed, Apr 14, 2010 at 12:59 PM Subject: [Inpycon] letterhead and seal To: inpy...@python.org hi, for the bank account and for filing returns and dealing with officials we unfortunately require a letter head and a seal. So we need to print maybe a 100 letterheads and have two seals - one in Ooty and one in Bangalore. Since we are doing this - might has well do it well. So anyone with any design skills please design this - it is needed by tomorrow as today is a holiday and no work can be done. So whatever looks cool by the deadline will be chosen - otherwise I will make something plain. -- regards Kenneth Gonsalves Senior Associate NRC-FOSS http://certificate.nrcfoss.au-kbc.org.in ___ Inpycon mailing list inpy...@python.org http://mail.python.org/mailman/listinfo/inpycon -- ~noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] User group meeting this/next weekend?
I second that opinion. Like patterns used and variations of them and extendability of an app.. future prospects and counterparts .. and many more i can think of ... ThanksRegards, Srinivas Reddy Thatiparthy, Mobile:9393099772, -Original Message- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.org on behalf of Noufal Ibrahim Sent: Tue 4/13/2010 11:37 AM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] User group meeting this/next weekend? On Tue, Apr 13, 2010 at 11:34 AM, Arvind Jamuna Dixit ard...@gmail.com wrote: On Tue, Apr 13, 2010 at 10:43 AM, Noufal Ibrahim nou...@gmail.com wrote: I'm not in a condition to participate in the sprint we talked about last time because I've been completely tied up with some other work. Any other ideas? If a sprint's not possible we could pull up the source of a random open source python project ( like pygmentshttp://dev.pocoo.org/projects/pygments/browser) and discuss on that on the spot. I think that would be fun.[..] What did you have in mind? I've generally felt that for code related discussions, a bit of homework makes the whole thing more interesting. -- ~noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] running python on mac...
Probably this link could help. Anyway, i am not sarcastic about your question, http://www.google.co.in/search?q=idle+font+size+mac ThanksRegards, Srinivas Reddy Thatiparthy, Mobile:9393099772, -Original Message- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.org on behalf of anuj abhishek Sent: Tue 3/30/2010 3:25 PM To: bangpypers@python.org Subject: [BangPypers] running python on mac... Hi everyone... I bought myself a new mac this weekend..and I am having some trouble resizing the default font size on idle which is very small... I tried changing the settings through preferences but nothing happens when I click to apply the settings.. Mac users out there who could help me with this please..? Thanx... Anuj Abhishek ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Hi
All error conditions are abstracted into exceptions which your calling code can catch. My 2 cents;from the Zen of Python , Errors should never pass silently,Unless explicitly silenced ThanksRegards, Srinivas Reddy Thatiparthy, Mobile:9393099772, ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] date range
I mean it to the function foo(). ThanksRegards, Srinivas Reddy Thatiparthy, Mobile:9393099772, -Original Message- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.org on behalf of Vinay Shastry Sent: Thu 2/25/2010 9:28 AM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] date range On 25 February 2010 09:21, Shashwat Anand anand.shash...@gmail.com wrote: It can be called just once too... def foo(): ... print called ... return 0 ... 1 foo() and foo() 3 called False This is because AND operator short-circuits. So when 1 foo() is false, it terminates then and there. Srinivas is correct here. Yes, I'm just countering: It's called TWICE , no matter with or without side effects. -- Vinay S Shastry http://thenub.one09.net ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] date range
more compact is_in_range startdate date enddate I am very much interested to know how the above expression is evaluated in compiler? If the compiler evaluates left to right ,startdatedate becomes True or false depending on the values and Now, my question is how this (True/Flase enddate) will be evaluated since they are of different types? Or am I missing something? Regards, ~ Srini T ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] date range
Formally, if a, b, c, ..., y, z are expressions and op1, op2, ..., opN are comparison operators, then a op1 b op2 c ... y opN z is equivalent to a op1 b and b op2 c and ... y opN z, except that each expression is evaluated at most once. Ok..Got it... Especially last sentence caught my eye.. Does the python compiler behaves same for below expression also? 1.If(ab and bc): My guess is, it behaves the same but just wanna double check.. Regards, ~ Srini T ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] date range
a b c is equivalent to a b and b c *except that* b is evaluated only once. Do mean to say that evaluating b only once applies to abc expression only. NOT for expressions like ab and bc. Regards, ~ Srini T Roshan ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] date range
a b c is equivalent to a b and b c *except that* b is evaluated only once. correction Did u mean to say that evaluating b only once applies to abc expression only,NOT for expressions like ab and bc.? /correction Regards, ~ Srini T ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Regarding Python popularity
The fact that Python is open source is orthogonal to the fact that it compiles source into bytecode which can be decompiled. Also Python can't be open source. Python is a programming language. A concrete implementation (eg. CPython) can be open source. By your logic, C is opensource (in it's gcc incarnation) and therefore should also suffer from the reverse engineering problem you're raising. Oops!! Didn't have brains to think of gcc when my friend said it. :).My bad. Thanks for pointing out the difference between a 'language' and 'Implementation'. This is subjective. I personally think it's mainly marketing (Java had Sun and C# had MS). This leads to secondary effects like certifications (which are useful for non-tech hiring managers to evaluate potential employees), availability of 'resources' (since most engineering grads jump onto the now popular language in the hope of getting a job) Ok.My Question is.. What was PSF's in general, Guido's in particular thoughts about marketing python? And I heard Perl's marketing was excellent.How did they manage it with limited funds? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Regarding Python popularity
If you look beyond the Marketing and a bit of the resultant herd mentality, you will realise that most languages have a good sweetspot they manage to excel at. I never searched for it .But in what domains Python is excellent compared to other OOP languages? I know that for AI ,you need to write code in LISP. If you write AI application in Java,then you selected a bad tool for that particular problem. So pls answer me accordingly. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] which one is the best pythonic way .
I have written four solutions to a problem(self explanatory) ,out of them ,which one is the pythonic way of doing and is there any other ways of solving it? 1.sum([i for i in range(1000) if i%3==0 or i%5==0]) 2.gen=(i for i in range(1000)) sum([i for i in gen if i%3==0 or i%5==0]) 3.sum(filter(lambda a:a%3==0 or a%5==0,range(1000))) 4.def generator(m): count=0 while countm: if count%3==0 or count%5==0: yield count count+=1 sum([i for i in generator(1000)]) Regards, ~ Srini T ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] which one is the best pythonic way .
Thanks for the replies and I avoid using lambdas.. Btw,Shall I avoid using filter and map ? Because what ever filter and map do,I could seem to do the same with Listcomprehensions.. Is there any situation in which they fare better than list comprehensions? Regards, ~ Srini T ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Internationals getting Python/Programming Jobs
Umm, widen your choice beyond Bangalore. Consider places like Pune, Delhi (including NCR) and Hyderabad. In Hyderabad , I know of two companies which use python for Automation testing. One is Emerson Network Power Two is Intoto inc,Now part of freescale semiconductor. As noufal and steve said I don't know of any companies which develop products in python in Hyderabad(correct me if I am wrong?). Even in Web development also , I never heard of any company which thrown an ad for Python/django dev's. May be, I could be wrong . Here people are gung-ho about Sharepoint,.NET and Java and am yet to see a coaching institute for python. And well ,that is my experience with Python here in Hyderabad. Regards, ~ Srini T ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Future of Python Programmers
As Noufal said, don't become a language specialist, as that amounts to limiting yourself too much upfront. . I didn't get this point. I would like to know.please clarify on this point .In my experience, companies prefer well-skilled generalists than deeply skilled specialists, unless one is an ultimate genius in what he does and irreplacable. This point also, because i want to be a python,c# specialist.Your answer help me a great deal.Please clarify. Thanks AB. Regards, ~ Srini T ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Future of Python Programmers
OMG! This is the best of piece of advice I have ever got. Thanks a lot to Roshan,Asokan( you r an IIT prof,right? [If my memory is correct].If so,I still remember your grey hair Jokes :) , No offence ) . Regards, ~ Srini T -Original Message- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.org [mailto:bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.org] On Behalf Of Asokan Pichai Sent: Monday, February 01, 2010 4:43 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Future of Python Programmers Let me use one On Mon, Feb 1, 2010 at 4:08 PM, Srinivas Reddy Thatiparthy srinivas_thatipar...@akebonosoft.com wrote: As Noufal said, don't become a language specialist, as that amounts to limiting yourself too much upfront. . I didn't get this point. I would like to know.please clarify on this point Let me use an analogy--a favourite of mine. Let us say there is a two-wheeler mechanic. He puts up a board, I am the best expert in using the monkey wrench. I fix any problem in a two-wheeler using nothing but my trusted monkey wrench. Would you use his services? Programming languages are tools. It is okay to have favourites. It is a given that each language is good in a set of areas. It is also agreed that you can do better with a language you know well, than with a language you dont know well, even for problems unsuited for your favourite language. But they are still tools. So develop an expertise in two wheelers not monkey wrenches. HTH and all the best -- Asokan Pichai *---* We will find a way. Or, make one. (Hannibal) ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Help plzz..
The official tutorial : http://docs.python.org/tutorial/index.html (best place to start) Mark Pilgrims Dive into Python : http://diveintopython.org/toc/index.html(excellent read) +1 for dive into python ;An excellent one,indeed. Regards, Srinivas Reddy T - You never learn something until you have to write something in it(a programming language), until you have to live and breathe it. It's one thing to go learn a language for fun, but until you write some big, complex system in it,you don't really learn it. ---Brad Fitzpatrick ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] [Fwd: Contribution to Opensource]
Is it possible to guide newbies like me whenever faced with errors generated during running of any of py program ?[..] The entry barrier is *really* low. You can contribute from anything to typo fixes in the documentation to architecture of the whole system. And you're free to do as much or as little as you can/want. There will always be rash people and more polite ones but once you recognise the fact that everyone is a volunteer, the whole process will be smooth. I have seen this kind of rash people when I asked java questions in google groups, 2.6 years back.Dont take anything personal.just be patient. Having said that our Banpypers is a closely(exaggerated?) knit list.Never seen a flame war here since I joined ,well for one year. That's a good thing. -- ~noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Do not know how much truth
Yep, it's true... http://groups.google.com/group/unladen-swallow/browse_thread/thread/4edb c406f544643e# Regards, Srinivas Reddy T - You never learn something until you have to write something in it(a programming language), until you have to live and breathe it. It's one thing to go learn a language for fun, but until you write some big, complex system in it,you don't really learn it. ---Brad Fitzpatrick -Original Message- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.org [mailto:bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.o rg] On Behalf Of Praveen Kumar Sent: Thursday, December 17, 2009 10:15 PM To: Bangalore Python Users Group - India Subject: [BangPypers] Do not know how much truth Google employees are being discouraged from using Python for new projectshttp://www.reddit.com/r/Python/comments/a2qxs/bad_news_google_e mployees_are_being_discouraged/ http://www.reddit.com/r/Python/comments/a2qxs/bad_news_google_employees_ are_being_discouraged/ -- Praveen Kumar +91 9620621342 http://praveensunsetpoint.wordpress.com Bangalore ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] Python Videos
I generally watch NPTel videos for programming stuff. They are good in content and sound clarity is excellent. I searched for python related videos on blip.tv,found GVR Py3K intro video but sound clarity is not good. Can somebody suggest me the good python video links (should pertain to python language itself ,not some frameworks ,apps in python; e.g: design decisions,architecture and libraries etc) . P.S: i can search but i cant double check each and every video whether it is good in content and sound. Regards, Srinivas Reddy T - You never learn something until you have to write something in it(a programming language), until you have to live and breathe it. It's one thing to go learn a language for fun, but until you write some big, complex system in it,you don't really learn it. ---Brad Fitzpatrick ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Suggest me a book for ORM
Thanks for the link. Regards, Srinivas Reddy Thatiparthy. -- So say...Day by day, in every way, I am getting better, better and better !!! A Strong and Positive attitude creates more miracles than anything else.Because...Life is 10% how you make it, and 90% how you take it Diamond is another piece of coal that did well under pressure? Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human, Failure Keeps u Humble, Success keeps u Glowing, But only God Keeps u Going.Keep Going. -Original Message- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.org [mailto:bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.o rg] On Behalf Of Dhananjay Nene Sent: Tuesday, December 01, 2009 1:37 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Suggest me a book for ORM Srinivas, While I am not aware of a book, some useful readings are likely to be found in the Data section at http://www.ambysoft.com/onlineWritings.html (I read a lot of his articles many years ago, and did find them quite useful then. Dhananjay -- blog:http://blog.dhananjaynene.com twitter: http://twitter.com/dnene ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] Suggest me a book for ORM
Hi all, Can anybody suggest me a good book for ORM(Object Relational Mapping) , better if it is language agnostic? Regards, Srinivas Reddy Thatiparthy. -- So say...Day by day, in every way, I am getting better, better and better !!! A Strong and Positive attitude creates more miracles than anything else.Because...Life is 10% how you make it, and 90% how you take it Diamond is another piece of coal that did well under pressure? Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human, Failure Keeps u Humble, Success keeps u Glowing, But only God Keeps u Going.Keep Going. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] BangPypers monthly meetup.
Vishal ,I asked this erlier.. Nobody seems to be interested or, To put it in another way ,don't have time to do it.. :( Regards, Srinivas Reddy Thatiparthy. -- So say...Day by day, in every way, I am getting better, better and better !!! A Strong and Positive attitude creates more miracles than anything else.Because...Life is 10% how you make it, and 90% how you take it Diamond is another piece of coal that did well under pressure? Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human, Failure Keeps u Humble, Success keeps u Glowing, But only God Keeps u Going.Keep Going. -Original Message- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.org [mailto:bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.o rg] On Behalf Of Vishal Sent: Tuesday, November 17, 2009 11:32 AM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] BangPypers monthly meetup. Hi, For all those who cannot attend, is it possible to do a screencast for any demos etc, or post ppt/impress slides somewhere? Unfortunately, not all interested souls would have the chance to attend this important talk. Any help on this would be highly appreciated. Thanks and best regards, Vishal Sapre On Mon, Nov 16, 2009 at 3:17 PM, Noufal Ibrahim nou...@gmail.com wrote: So I guess it's settled then. Time : 4:00 pm Date : 22 Nov 2009 Venue : Thought Works, Diamond District. Highlights : Mahadevan's talk on python bindings for llvm Is this okay? P.S. If any of the people attending have the conference recordings, please bring them. Thanks. -- ~noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers -- Thanks and best regards, Vishal Sapre --- So say...Day by day, in every way, I am getting better, better and better !!! A Strong and Positive attitude creates more miracles than anything else. Because...Life is 10% how you make it, and 90% how you take it Diamond is another piece of coal that did well under pressure Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human, Failure Keeps u Humble, Success keeps u Glowing, But only God Keeps u Going.Keep Going. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] BangPypers monthly meetup.
Vishal ,I asked this erlier.. Nobody seems to be interested or, To put it in another way ,don't have time to do it.. :( [..] Usually, these meetings are a bunch of people sitting in a room and one guy standing up to talk about something. Sometimes, there are slides and a projector is used but usually it's a lot more informal. I think heavy infrastructure like a camera/mic setup are too much. If something like recordmydesktop works, we can use that and upload the talk somewhere. Let's try it at this meetup. Thanks a ton if that turns out to be fruitful. ~ Srinivas . ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] [X-Post] How about organizing Hyderabad Python Meetings??
Hello all, Since Bangpypers and ChennaiPy users are organizing weekend/monthly meetings ,It would be nice to organize the same for Hyderabad people also. So Hyderabadis who are in BangPypers and ChennaiPy lists please stand up!!! We can talk something about it. Regards, Srinivas Reddy T - You never learn something until you have to write something in it(a programming language), until you have to live and breathe it. It's one thing to go learn a language for fun, but until you write some big, complex system in it,you don't really learn it. ---Brad Fitzpatrick ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] 3rd saturday 21st
Is it possible for you people to share the slides or pdf's of talks you have?? Atleast if you upload them on slideshare or scribd that would be very much helpful to people like me who live in Hyderabad.!! - you never learn something until you have to write something in it, until you have to live and breathe it. It's one thing to go learn a language for fun, but until you write some big, complex system in it,you don't really learn it. ---Brad Fitzpatrick -Original Message- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.org [mailto:bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.o rg] On Behalf Of Noufal Ibrahim Sent: Tuesday, November 10, 2009 4:57 PM To: ram...@gmail.com; Bangalore Python Users Group - India Subject: Re: [BangPypers] 3rd saturday 21st On Tue, Nov 10, 2009 at 4:49 PM, Ramdas S ram...@gmail.com wrote: What's the plan? Speakers/presenters please standup Is it possible to get the LLVM talk then? That would be nice. -- ~noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Let's have an indepth session on some opensolaristechnologies
Some time ago I read an article regarding Linus complaining about the license of a file system,Is it the ZFS? Anyway I am not much into linux, just want to double check.. Regards, Srinivas Reddy Thatiparthy. -- I hear and I forget. I see and I remember. I do and I understand. - Confucius. -Original Message- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.org [mailto:bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.o rg] On Behalf Of Sriram Narayanan Sent: Thursday, October 22, 2009 1:18 AM To: sriram...@gmail.com Subject: [BangPypers] Let's have an indepth session on some opensolaristechnologies [BCC: Various Bangalore tech lists that I'm a member of] Folks: A number of us have heard of opensolaris and of technologies such as ZFS, Dtrace, Zones, etc. After giving small intro sessions on ZFS and on Zones, I've been approached by various attendees who have wanted an indepth intro to opensolaris technologies. The survey below will help us decide on the date/time/venue/topics of this session. http://tinyurl.com/blr2009opensolaris -- Sriram ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Suggest me an opensource project!!
Pick something in your general area of interest and try to fix bugs on it. That should gradually boost your confidence to a level where you can contribute. Size will stop becoming a big problem then. Check out the python package index for Python related projects that are lying around. Thanks noufal, I never saw python package index link. -- ~noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] Sudoku solver
thanks AB and Kenneth. Yeah, it was a blessing in disguise.I am far far better than my Infy friends in programming :) I wrote a program to solve the sudoku puzzle . This is my own program,i never copied and i didn't even see somebody's logic even in other programming languages. :) Comments,improvements are welcome!!! http://2.bp.blogspot.com/_ni5lhkmn0nQ/StghQIhf0bI/AAM/txjMQic_9l U/s1600-h/2009-10-16_125017.jpg http://xorola.wordpress.com/2009/07/27/a-sudoku-solver-program-in-python / Regards, Srinivas Reddy Thatiparthy. -- I hear and I forget. I see and I remember. I do and I understand. - Confucius. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] Why do indians copy?
Hi list, This is my first post to the list though I have been following this list since 7 or 8 months. I have been programming for a 1.5 years or so.Comparatively i have very less exposure and exp as you people have and please excuse me if u think this is a troll or flame. I know that this is not related to python, but i can't resist discussing this. Why do indian programmers ask for code in Usenet (particularly Google groups) ? ,saying that it's very urgent and on top of that they can't even able to put their problem across correctly.In some cases they ask you to send it to their mail ID's. Having tried the problem and asking for help is OK.but this is something like disgusting. I have been following Reddit and News groups and forums and no matter where ever i go these type of people are there(99% of them are indians).They don't even have the patience to do googling..is copying seeped into our blood?? I have worked at infosys , i have had a chance to work with westerns,they never ever copy their home work(In training ,we used to do assignments and submit at the EOD).They do submit what they did , if they can't do it,they ask permission to submit later.But we (Indians) used to copy.Yeah,i did copy and learnt lessons. :) Regards, Srinivas Reddy Thatiparthy. -- I hear and I forget. I see and I remember. I do and I understand. - Confucius. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] Re
May be we Indians always think the other person to be better or smarter. To quote from your own post: Comparatively i have very less exposure and exp as you people have I have attended Pycon and observed you people(noufal,senthil,ShyamShankar,AB,Kenneth) talking that's why i said. Regards, Srinivas Reddy Thatiparthy. -- I hear and I forget. I see and I remember. I do and I understand. - Confucius. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] Why Indians copy
Why? That's probably the answer you're looking for. That was a big story noufal.To tell in short, I couldn't understand what they are teaching(in training) me? they taught entire java in 5 days and expected to do programming by the end of it which i couldn't.OOPS was a big ghost to me back then. I have had no choice than to copy though i disgusted it and felt guilt of it.i mean this from my heart. i was caught and infy sent me out. Regards, Srinivas Reddy Thatiparthy. -- I hear and I forget. I see and I remember. I do and I understand. - Confucius. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] Suggest me a book
Just completed reading the book, The Coders At Work,It's just an excellent book and It's great to see behind the eye balls of programmers. Can any one suggest me some other books of such kind? Regards, Srinivas Reddy Thatiparthy. -- I hear and I forget. I see and I remember. I do and I understand. - Confucius. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers