>>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'.
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 transfo
>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 gro
Wow!! gr8..
Regards,
Srini T.
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers
+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
>>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.
Your goal matters not the means.:)
Regards,
Srini T.
___
+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
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@
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,
S
FYI,
http://stackoverflow.com/questions/3062701/why-dont-we-require-interfaces-in-dynamic-languages
A good discussion though, thanks for all who answered.
Regards,
Srini T.
--The real failure is failing to try for success.
___
BangPypers mailing list
>>Well, actually your interface does exist (if my object exposes the same set
of methods as an instance of String, then it is a String),
This is what i am referring ,duck typing.
>>The concept of an interface exists in all OO languages I've used, even when
there was no keyword 'interface'.
In m
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/
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
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.or
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://m
>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 "Lea
> 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
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
>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 r
correct me.
Thanks&Regards,
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 h
Ah! I never checked out that link.
thanks!!
Thanks&Regards,
Srinivas Reddy Thatiparthy,
Mobile:9393099772,
-Original Message-
From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft@python.org on
behalf of BR!j!TH
Sent: Wed 6/2/2010 11:28 AM
To: Bangalore Python Users G
What are the best python books you have read? should be at least on par with
python cookbook.
TIA for suggestions.
Thanks&Regards,
Srinivas Reddy Thatiparthy,
Mobile:9393099772,
___
BangPypers mailing list
BangPypers@python.org
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.
Thanks&Regards,
Srinivas Reddy Thatiparthy,
Mobile:9393099772,
___
BangPypers mailing list
BangPypers@python
>"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
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?
Thanks&Regards,
Srinivas Reddy Thatipa
parts are floats.
Thanks&Regards,
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: R
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
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.
Thanks&Regards,
Srinivas Reddy Thatiparthy,
Mobile:9393099772,
___
BangPypers mailing list
BangPypers
xpert and
you were taught by a mediocre. :)
Thanks&Regards,
Srinivas Reddy Thatiparthy,
Mobile:9393099772,
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers
e 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.
Thanks&Regards,
Srinivas Reddy Thatiparthy,
M
You would have started a separate thread for it..:(
Thanks&Regards,
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 U
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.
Thanks&Regards,
Srinivas Reddy Thatiparthy,
Mobile:9393099772,
-Original Message-
I think in github you can make project *private*.
Am i wrong?
Thanks&Regards,
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 P
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 ...
Thanks&Regards,
Srinivas Reddy Thatiparthy,
Mobile:9393099772,
-Original Message-
From: bangpypers-bou
Probably this link could help.
Anyway, i am not sarcastic about your question,
http://www.google.co.in/search?q=idle+font+size+mac
Thanks&Regards,
Srinivas Reddy Thatiparthy,
Mobile:9393099772,
-Original Message-
From: bangpypers-bounces+srinivas_thatiparthy=akebono
>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"
Thanks&Regards,
Srinivas Reddy Thatiparthy
>>This is because AND operator short-circuits. So when 1 < foo() is false, it
>>terminates then and there.
is there any language which doesn't short circuit and,or,(|| ,&&)?
just curious .I never heard of any.
Thanks&Regards,
Srinivas Reddy
I mean it to the function foo().
Thanks&Regards,
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 - I
Here my cents,Instead of combining the three images to get the color of
the final image,You can use RGB values to generate the random image on
the fly.
r=random.choice(range(256))
g=random.choice(range(256))
b=random.choice(range(256))
I don't know what you are trying to achieve(no knowledge on
It's called TWICE , no matter with or without side effects.
I asked this on SO,somebody came up with this answer!
>>> def check():
print 'Called Once'
return 2
>>> 1>> 1>>
Happy Hacking.
Regards,
~ Srini T
___
BangPypers mailing li
>>a < b < c is equivalent to a < b and b < c *except that* b is
evaluated only once.
Did u mean to say that evaluating b only once applies to a
Regards,
~ Srini T
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/m
>>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 ahttp://mail.python.org/mailman/listinfo/bangpypers
___
BangPypers mailing list
BangPypers@python.org
http
>>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 ey
>>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 ,startdatehttp://mail.python.org/mailman/listinfo/bangpypers
>> But practicality beats purity. Given a choice, I will always use the
latter instead of the former, irrespective of the "elegance", which is
questionable and subjective anyway :)
Shall I say,Go with your personal preference in personal
projects,provided milliseconds performance is not a constra
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
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.s
>>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 writ
>>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
1.The other day my friend was saying ;Since python is opensource ,so
many companies fear that their product's byte code
could be reverse engineered.To protect their Intellectual Property
rights they stay away from python,
is it true?
2.What hinders python from becoming a popular OOP language,l
>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
http://www.artima.com/scalazine/articles/twitter_on_scala.html
Regards,
~ Srini T
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers
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&
To: Bangalore Python Users Group - India
Subject: Re: [BangPypers] Future of Python Programmers
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
> &
>> 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
>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 yo
>> 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
>>>Can you elaborate a little about the "free" part?
>>>Do you expect the Google to treat Python like Sun treated Java in the
early days?
+1 for this question.
I am very much eager to hear from AB.
Regards,
Srini T
--
~noufal
http://nibrahim.net.in
___
Though I never tried it, Reportlab has a pdf library (If I am not
wrong).
Have you tried it??
When the limestone of imperative programming is worn away, the granite
of functional programming will be observed. ---Simon Peyton Jones.
-Original Message-
From: bangpypers-bounces+srinivas_th
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
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
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
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 attitu
>>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
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 a
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 R
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
Just now , i have gone through this article regarding the differences
between
"Abstraction and Encapsulation and Information hiding"
thought of sharing with you people.
http://www.itmweb.com/essay550.htm
Regards,
Srinivas Reddy Thatiparthy.
--
I hear and I forget. I
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
>> The best rules are those which are never imposed :)
+1,excellent.
Regards,
Srinivas Reddy Thatiparthy.
--
I hear and I forget. I see and I remember. I do and I understand.
- Confucius.
___
BangPypers mailing list
BangPypers@pyth
>>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
)
i dont know where to start off.
TIA.
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
)
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
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
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
ing
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
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.
77 matches
Mail list logo