Re: [BangPypers] parsing xml

2011-08-01 Thread Dhananjay Nene
On Mon, Aug 1, 2011 at 12:43 AM, Noufal Ibrahim wrote: > Dhananjay Nene writes: > > > [...] > > > re.search("\s*(\d+)\s*",data).group(1) > > > > would appear to be the most succinct and quite fast. Adjust for > whitespace > > as and if necessa

[BangPypers] #lazyweb - How would the wsgi lite proposal help in ..

2011-08-01 Thread Dhananjay Nene
After Armin Ronacher's post http://lucumr.pocoo.org/2011/7/27/the-pluggable-pipedream/ P. J. Eby responded with http://dirtsimple.org/2011/07/wsgi-is-dead-long-live-wsgi-lite.html with an implementation at https://bitbucket.org/pje/wsgi_lite/ While I could potentially read up the details and find

Re: [BangPypers] if not with comparision statement in python

2011-08-01 Thread Dhananjay Nene
On Sat, Jul 30, 2011 at 2:15 PM, Asif Jamadar wrote: > What if I have two lists for both minimum and maximum values > > Minimum  Maximum > 0               10 > 11              20 > 21              30 > 31              40 > > > Now how should I check if actual result is not laying between above ran

Re: [BangPypers] parsing xml

2011-08-01 Thread Dhananjay Nene
On Mon, Aug 1, 2011 at 12:46 AM, Noufal Ibrahim wrote: > Venkatraman S writes: > > >> Hang around in #django or #python. The most elegant code that you >> *should* write would invariably be pretty fast (am not ref to asm). > > I agree with you here. Pythonicity is best defined as what the > exper

Re: [BangPypers] if not with comparision statement in python

2011-08-01 Thread Dhananjay Nene
On Mon, Aug 1, 2011 at 4:17 PM, Anand Chitipothu wrote: > 2011/8/1 Dhananjay Nene : >> On Sat, Jul 30, 2011 at 2:15 PM, Asif Jamadar >> wrote: >>> What if I have two lists for both minimum and maximum values >>> >>> Minimum  Maximum >>&g

Re: [BangPypers] if not with comparision statement in python

2011-08-01 Thread Dhananjay Nene
On Mon, Aug 1, 2011 at 5:07 PM, Anand Chitipothu wrote: > 2011/8/1 Dhananjay Nene : >> On Mon, Aug 1, 2011 at 4:17 PM, Anand Chitipothu >> wrote: >>> 2011/8/1 Dhananjay Nene : >>>> On Sat, Jul 30, 2011 at 2:15 PM, Asif Jamadar >>>> wrote: >

Re: [BangPypers] if not with comparision statement in python

2011-08-01 Thread Dhananjay Nene
On Mon, Aug 1, 2011 at 4:41 PM, Baishampayan Ghose wrote: > On Mon, Aug 1, 2011 at 4:38 PM, Dhananjay Nene > wrote: >> I also find map much more atomic and portable construct to think in - >> after all every list comprehension is syntactic sugar around map + >> filter, a

Re: [BangPypers] #lazyweb - How would the wsgi lite proposal help in ..

2011-08-01 Thread Dhananjay Nene
On Mon, Aug 1, 2011 at 5:41 PM, Anand Chitipothu wrote: > 2011/8/1 Dhananjay Nene : >> [..] >> >> How could the above proposal (if it does) help in >> >> a) Creating simpler, lighter frameworks (eg. flask) >> b) Help support greater asynchronicity (a la to

Re: [BangPypers] if not with comparision statement in python

2011-08-01 Thread Dhananjay Nene
On Mon, Aug 1, 2011 at 5:44 PM, Dhananjay Nene wrote: > On Mon, Aug 1, 2011 at 5:07 PM, Anand Chitipothu wrote: >> 2011/8/1 Dhananjay Nene : >>> On Mon, Aug 1, 2011 at 4:17 PM, Anand Chitipothu >>> wrote: >>>> 2011/8/1 Dhananjay Nene : >>>

Re: [BangPypers] if not with comparision statement in python

2011-08-01 Thread Dhananjay Nene
On Mon, Aug 1, 2011 at 7:26 PM, Anand Balachandran Pillai wrote: >  IMHO, map/filter/reduce and the inevitable companion lambda were >  added on to Python when it was still trying to find its identity on where >  it stood in the pantheon of dynamic typed languages - since it wanted >  to be everyt

Re: [BangPypers] parsing xml

2011-08-01 Thread Dhananjay Nene
On Mon, Aug 1, 2011 at 7:51 PM, Noufal Ibrahim wrote: > Anand Balachandran Pillai writes: > >> On Mon, Aug 1, 2011 at 6:08 AM, Anand Chitipothu wrote: > > [...] > >> It is more subtler than that. >> >> List comprehensions are faster than map functions when >> the latter needs to invoke a user-def

Re: [BangPypers] List Comprehensions Vs. map/filter (Was: if not with comparision statement in python)

2011-08-01 Thread Dhananjay Nene
On Mon, Aug 1, 2011 at 8:30 PM, Anand Chitipothu wrote: >> I knew there was a way to better implement flatmap - its a combination >> of itertools.chain.from_iterable and map. Here's a much cleaner code >> >> from itertools import chain >> >> print filter(lambda (x,y,z) : x*x + y*y == z*z, >>    ch

Re: [BangPypers] List Comprehensions Vs. map/filter (Was: if not with comparision statement in python)

2011-08-01 Thread Dhananjay Nene
On Mon, Aug 1, 2011 at 8:30 PM, Anand Chitipothu wrote: > I was trying to translate Python list-comprehensions into Javascript > and here is what I've come up with. > > $pyjs.listcomp( >    function(x, y, z) { return [x, y, z]}, >    [ >        range(1, 100), >        function(x) { return range(x

Re: [BangPypers] if not with comparision statement in python

2011-08-02 Thread Dhananjay Nene
On Tue, Aug 2, 2011 at 11:12 AM, Anand Balachandran Pillai wrote: > On Mon, Aug 1, 2011 at 7:51 PM, Dhananjay Nene > wrote: > >> On Mon, Aug 1, 2011 at 7:26 PM, Anand Balachandran Pillai >> wrote: >> >  IMHO, map/filter/reduce and the inevitable companion lambda

Re: [BangPypers] PyPy outperforms C in microbenchmark

2011-08-03 Thread Dhananjay Nene
On Wed, Aug 3, 2011 at 1:22 PM, Noufal Ibrahim wrote: > Anand Balachandran Pillai writes: > >> On Wed, Aug 3, 2011 at 12:50 PM, Noufal Ibrahim wrote: >> >>> >>> PyPy outperforms C in a little benchmark capitalising on gcc's inability >>> to optimise across files. >>> >>> >>> http://morepypy.blog

Re: [BangPypers] PyPy outperforms C in microbenchmark

2011-08-03 Thread Dhananjay Nene
On Wed, Aug 3, 2011 at 9:58 PM, Gopalakrishnan Subramani wrote: > I could not understand the PyPy intention in having another run-time. > > Can we see having PyPy running Python programs, > > 1.  As a challenge? (A language can have its own runtime with little > improved performance) or > 2.  Pote

[BangPypers] Would pypy result in a recast of what are the more efficient pythonic idioms ?

2011-08-11 Thread Dhananjay Nene
I had done some benchmarking of code in various languages 3 years ago. I had not chosen to implement either the most efficient code, instead preferring to stick to a specific style of implementation. (The experiment is documented at http://blog.dhananjaynene.com/2008/07/performance-comparison-c-jav

Re: [BangPypers] Create Better Python community

2011-08-21 Thread Dhananjay Nene
On Fri, Aug 19, 2011 at 10:05 PM, Noufal Ibrahim wrote: > Anand Chitipothu writes: > >>> Since Noufal is out this week-end, how about next Sat or Sun ? >>> We can all do a bit of reading up of PyPy this week-end, >>> discuss in the mailing list over next week, arrive (hopefully) >>> at a common p

[BangPypers] Embedded python mail server

2011-08-23 Thread Dhananjay Nene
What would be good options to embed a python mail server ? The scope is strictly restricted to automated testing. So the embedded mail server (embedded in the test cases) acts as the server which receives email and is in turn further queried to ensure receipt of email correctly. One option is htt

Re: [BangPypers] Embedded python mail server

2011-08-23 Thread Dhananjay Nene
On Wed, Aug 24, 2011 at 11:06 AM, Anand Chitipothu wrote: > 2011/8/24 Dhananjay Nene : >> What would be good options to embed a python mail server ? >> >> The scope is strictly restricted to automated testing. So the embedded >> mail server (embedded in the test case

Re: [BangPypers] Embedded python mail server

2011-08-23 Thread Dhananjay Nene
at the system boundaries. So it has to test the released version of the artifact - without *any* changes. I presume that would constrain me from introducing a different smtpd.py > Gopal > > > > > On Tue, Aug 23, 2011 at 11:39 PM, Dhananjay Nene > wrote: > >> On We

Re: [BangPypers] Embedded python mail server

2011-08-24 Thread Dhananjay Nene
. Dhananjay > > On Wed, Aug 24, 2011 at 12:42 AM, Dhananjay Nene > wrote: > >> On Wed, Aug 24, 2011 at 12:03 PM, Gopalakrishnan Subramani >> wrote: >> > Use the http://hg.python.org/cpython/file/2.7/Lib/smtpd.py server. smtpd >> is >> > a proxy so onl

Re: [BangPypers] Embedded python mail server

2011-08-24 Thread Dhananjay Nene
On Wed, Aug 24, 2011 at 12:34 PM, Dhananjay Nene wrote: > On Wed, Aug 24, 2011 at 12:25 PM, Gopalakrishnan Subramani > wrote: >> So you basically look for SMTP and also a POP3 access to the server? With >> that you could send a mail using SMTP and retrieve using POP3 to mak

Re: [BangPypers] Embedded python mail server

2011-08-24 Thread Dhananjay Nene
Just discovered http://www.lastcraft.com/fakemail.php On Wed, Aug 24, 2011 at 12:37 PM, Dhananjay Nene wrote: > On Wed, Aug 24, 2011 at 12:34 PM, Dhananjay Nene > wrote: >> On Wed, Aug 24, 2011 at 12:25 PM, Gopalakrishnan Subramani >> wrote: >>> So you basically lo

Re: [BangPypers] Embedded python mail server

2011-08-24 Thread Dhananjay Nene
looks like a very appropriate tool. Dhananjay > On Wed, Aug 24, 2011 at 1:10 AM, Dhananjay Nene > wrote: > >> Just discovered http://www.lastcraft.com/fakemail.php >> >> On Wed, Aug 24, 2011 at 12:37 PM, Dhananjay Nene >> wrote: >> > On Wed, Aug 24, 2011 a

Re: [BangPypers] Language Parsing and output generation

2011-08-24 Thread Dhananjay Nene
On Tue, Aug 23, 2011 at 11:15 AM, Gopalakrishnan Subramani wrote: > I could make a grammar compiled myself. I will look into SPARK.. Anybody has > experience in pyparsing http://pyparsing.wikispaces.com/ ? > Under Examples http://pyparsing.wikispaces.com/Examples Python language > example is promi

[BangPypers] [JOB] Vayana Services seeking curious and committed python programmers

2011-09-23 Thread Dhananjay Nene
Vayana Services helps Small and Medium Enterprises (SMEs), get working capital loans from banks and helps bank expand their lending reach. We keep the technology simple to the point of being invisible to end customers. We work on Python, Scala and Erlang with our SAAS offerings deployed on AWS and

Re: [BangPypers] parsing xml

2011-09-30 Thread Dhananjay Nene
On Fri, Jul 29, 2011 at 10:47 AM, Anand Chitipothu wrote: > 2011/7/28 Venkatraman S : > > parsing using minidom is one of the slowest. if you just want to extract > the > > distance and assuming that it(the tag) will always be consistent, then i > > would always suggest regexp. xml parsing is a pa

Re: [BangPypers] Generate Dynamic lists

2011-11-06 Thread Dhananjay Nene
On Fri, Oct 21, 2011 at 12:10 AM, Asif Jamadar wrote: > So I'm trying to generate dynamic choices for django form. Here i'm usig > formset concept (CODE is mentioned below) > > > > Suppose i have list called criteria_list = ['education', 'know how', > 'managerial', 'interpersonal', ] > > > > now

Re: [BangPypers] Generate Dynamic lists

2011-11-06 Thread Dhananjay Nene
On Mon, Nov 7, 2011 at 5:11 AM, Dhananjay Nene wrote: > > > On Fri, Oct 21, 2011 at 12:10 AM, Asif Jamadar > wrote: > >> So I'm trying to generate dynamic choices for django form. Here i'm usig >> formset concept (CODE is mentioned below) >> >&g

Re: [BangPypers] Timestamp error

2011-11-10 Thread Dhananjay Nene
On Thu, Nov 10, 2011 at 5:05 PM, Shashidhar Paragonda < shashidha...@gmail.com> wrote: > Dear Python hackers, > > >>> I am facing *ValueError : **timestamp out of range for > platform time_t > * > * >>> *I am working on Zope v. 2.8.11 with Python v2.4.4 on > Debian v6.0

Re: [BangPypers] google api and facebook api ?

2011-11-15 Thread Dhananjay Nene
On Sat, Nov 12, 2011 at 7:35 PM, vishnu prasad wrote: > Hi to all > > How google internally running the code my doubt is python ? > i mean api means we need to learn the code for separately apart from > andriod,python,php, ruby ? > knowing the api code and how can i start that ? is it python api

Re: [BangPypers] python framework for android

2012-01-09 Thread Dhananjay Nene
On Wed, Jan 4, 2012 at 12:25 PM, Kenneth Gonsalves wrote: > On Wed, 2012-01-04 at 14:24 +0800, Senthil Kumaran wrote: > > On Wed, Jan 4, 2012 at 2:18 PM, Kenneth Gonsalves > > wrote: > > > > > > am looking at kivy right now > > > > Looks neat. I would like to try that one too. > > there was a wo

Re: [BangPypers] Sad demise of our dear KG (Keneth Gonsalvas)

2012-08-03 Thread Dhananjay Nene
On Fri, Aug 3, 2012 at 3:25 PM, JAGANADH G wrote: > Hi All, > > Just now I got a message that our dear KG (Kenneth Gonsalvas) passed away. > He was admitted in hospital due to Asthma attack and passed away today > morning. > Cremation will be held at ooty on 4th Aug 2012. > > Shocking and extreme

[BangPypers] Appropriate list conduct (was Re: Fwd: Fw: Fwd: https://github.com/pythonhacker/ladies.py)

2013-09-08 Thread Dhananjay Nene
Top posting since am making some rather broad comments rather than to specific lines in particular. This is a thread which has been bothering me since morning. For a number of reasons. None of them have to do with the very essence of the thread, since I never got to see the repository and the co

Re: [BangPypers] Favorite tips/techniques

2013-09-10 Thread Dhananjay Nene
Ignoring classes for the moment, how likely do you think you would have a dict like that :) On a separate note if you are using primitive types, I cannot think of any scenarios, where not coercing keys to be of the same type would be considered inappropriate (except in case of reverse dicts) On T

Re: [BangPypers] Python "Wat"s

2013-09-12 Thread Dhananjay Nene
On Thu, Sep 12, 2013 at 11:22 PM, Shabda Raaj wrote: >> whole qx business than Python programmers are with os and subprocess. > > That because subprocess and os module have a very bad api. I prefer using > envoy whenevr I can. > > https://github.com/kennethreitz/envoy Interesting. Haven't worked

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-12 Thread Dhananjay Nene
On Fri, Sep 13, 2013 at 12:38 AM, Saager Mhatre wrote: > On Thu, Sep 12, 2013 at 6:30 PM, Abdul Muneer wrote: > >> I also pin requirements. But when I do 'pip freeze', I remove the packages >> that are installed as a dependency to main libraries which were explicitly >> installed. >> > > I tend t

Re: [BangPypers] Favorite tips/techniques

2013-09-13 Thread Dhananjay Nene
On Fri, Sep 13, 2013 at 12:49 PM, Saju M wrote: > Import sub-modules with alias. > Is it a bug ? > import json from json import tool > > > import json as sjson from sjson import tool > Traceback (most recent call last): > File "", line 1, in > ImportE

Re: [BangPypers] Python packages and modules (was: Favorite tips/techniques)

2013-09-13 Thread Dhananjay Nene
On Fri, Sep 13, 2013 at 3:58 PM, Saager Mhatre wrote: > On Fri, Sep 13, 2013 at 1:10 PM, Saju M wrote: > >> Saager, >> >> As per python module-import semantics, sub-modules don't end up as names >> in the >> package-module[*] unless explicitly added. >> >> I didn't get it, what you mean by packag

Re: [BangPypers] Python packages and modules (was: Favorite tips/techniques)

2013-09-13 Thread Dhananjay Nene
On Fri, Sep 13, 2013 at 6:50 PM, Dhananjay Nene wrote: > On Fri, Sep 13, 2013 at 3:58 PM, Saager Mhatre > wrote: >> On Fri, Sep 13, 2013 at 1:10 PM, Saju M wrote: >> >>> Saager, >>> >>> As per python module-import semantics, sub-modules don&#x

Re: [BangPypers] Python packages and modules (was: Favorite tips/techniques)

2013-09-13 Thread Dhananjay Nene
On 13 Sep 2013 19:21, "Saager Mhatre" wrote: > > > Your result is not bad, but I still prefer my original approach. No > offence. :) None perceived :) > Oh, and I'm still waiting on an answer for [3]. ;) I have my theories :) Don't know the facts. > > - d > __

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-14 Thread Dhananjay Nene
On Sat, Sep 14, 2013 at 2:56 PM, Noufal Ibrahim wrote: > Baishampayan Ghose writes: > > > Oh! Is that a big deal? Of course we pin our requirements (in all > > languages) and that's how it should be done. Otherwise you can't get > > repeatable builds. ~BG > > I sometimes go futher and bundle the

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-14 Thread Dhananjay Nene
> (Sent from my phone) > On Sep 14, 2013 10:50 PM, "Noufal Ibrahim" wrote: > > > Dhananjay Nene writes: > > > > > > [...] > > > > > The difficulty with that approach (I've never actually done it) is > > > that it requires ve

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-14 Thread Dhananjay Nene
rectly used specified the transient dependency as >= x.0 say. Or then perhaps I couldn't understand something. > > -- > Kiran Jonnalagadda > http://jace.zaiki.in/ > http://hasgeek.com/ > > (Sent from my phone) > On Sep 14, 2013 11:58 PM, "Dhananjay Nene"

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-15 Thread Dhananjay Nene
On Mon, Sep 16, 2013 at 12:37 AM, Kiran Jonnalagadda wrote: > > > Pinned requirements == complacency == future breakage, when maintenance is > much more expensive than it is today. imo there are is two underlying independent issues here. Having said that let me state that while I pin requirements

Re: [BangPypers] need help w.r.t itertools

2013-09-16 Thread Dhananjay Nene
On Mon, Sep 16, 2013 at 12:27 PM, Suyash Bhatt wrote: > thanks for the response.. > > what if i have another list > > *e = [*'*my1name1is1','**my2name2is1','xyz','abc']* > *and in the list d, I want only the elements which are present in e..* > * Python 2.7.3 (default, Apr 10 2013, 05:13:16) [GCC

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-16 Thread Dhananjay Nene
On Mon, Sep 16, 2013 at 4:18 PM, Saager Mhatre wrote: > On Sep 16, 2013 8:46 AM, "Dhananjay Nene" wrote: >> let me state that while I pin requirements.txt > > To be just a little pedantic here- you pin version of dependencies, not the > entire requirements.txt.

Re: [BangPypers] decorator help

2013-09-20 Thread Dhananjay Nene
On Fri, Sep 20, 2013 at 6:06 PM, babmis wrote: > I want to print entry and exit message for functions , i have bunch of such > function . How can i do it in decorator. >>> from functools import wraps >>> >>> def trace(f): ... @wraps(f) ... def wrap(*args, **kwargs): ... print("Ent

Re: [BangPypers] Pyladies Bangalore in Times of India

2013-09-23 Thread Dhananjay Nene
On Mon, Sep 23, 2013 at 11:24 AM, Annapoornima Koppad wrote: > Dear All, > > Pyladies Bangalore was recently featured in Times of India dated, 22nd sept > and later on 23 sept as well. [1]. I am not able to find the link for the > 23rd edition. > > I thank Anand Chitipothu for making Pycon India 2

Re: [BangPypers] (no subject)

2013-09-24 Thread Dhananjay Nene
On Tue, Sep 24, 2013 at 10:38 AM, bab mis wrote: > Hi ,Any XML parser which gives the same kind of data structure as yaml parser > gives in python. Tried with xmlmindom but ir's not of a proper datastrucure > ,every time i need to read by element and create the dict. Just think about it for a

Re: [BangPypers] (no subject)

2013-09-24 Thread Dhananjay Nene
On Tue, Sep 24, 2013 at 5:48 PM, Vineet Naik wrote: > Hi, > > On Tue, Sep 24, 2013 at 10:38 AM, bab mis wrote: > >> Hi ,Any XML parser which gives the same kind of data structure as yaml >> parser gives in python. Tried with xmlmindom but ir's not of a proper >> datastrucure ,every time i need t

Re: [BangPypers] (no subject)

2013-09-24 Thread Dhananjay Nene
On Tue, Sep 24, 2013 at 6:04 PM, Dhananjay Nene wrote: > On Tue, Sep 24, 2013 at 5:48 PM, Vineet Naik wrote: >> Hi, >> >> On Tue, Sep 24, 2013 at 10:38 AM, bab mis wrote: >> >>> Hi ,Any XML parser which gives the same kind of data structure as yaml >

Re: [BangPypers] (no subject)

2013-09-24 Thread Dhananjay Nene
On Tue, Sep 24, 2013 at 6:11 PM, Dhananjay Nene wrote: > On Tue, Sep 24, 2013 at 6:04 PM, Dhananjay Nene > wrote: >> On Tue, Sep 24, 2013 at 5:48 PM, Vineet Naik wrote: >>> Hi, >>> >>> On Tue, Sep 24, 2013 at 10:38 AM, bab mis wrote: >>> >

Re: [BangPypers] (no subject)

2013-09-25 Thread Dhananjay Nene
On Wed, Sep 25, 2013 at 7:09 PM, Vineet Naik wrote: > On Tue, Sep 24, 2013 at 6:19 PM, Dhananjay Nene > wrote: > >> On Tue, Sep 24, 2013 at 6:11 PM, Dhananjay Nene >> wrote: [..] >> >> which just trashed the ordering of an and followed by a plus followed by

Re: [BangPypers] What are you using for developing desktop GUIs?

2013-09-27 Thread Dhananjay Nene
On Fri, Sep 27, 2013 at 2:49 AM, Amber Jain wrote: > On Fri, Sep 27, 2013 at 2:25 AM, Bibhas wrote: > >> I used Kivy a year back. Not sure of it's state now. You could look into >> it once. >> >> > +1 for Kivy (under active development). The same code runs unmodified on > Linux, OSX, Windows, And

Re: [BangPypers] What are you using for developing desktop GUIs?

2013-09-27 Thread Dhananjay Nene
On Fri, Sep 27, 2013 at 6:52 PM, Sriram Karra wrote: > On Fri, Sep 27, 2013 at 2:19 AM, Shabda Raaj wrote: > >> I am building my first desktop app with Python and I would like to get >> recommendation on what toolkit to use. >> >> I am planning to use either PyGTK or PyQT. >> (Are there anything

Re: [BangPypers] What are you using for developing desktop GUIs?

2013-09-27 Thread Dhananjay Nene
On Fri, Sep 27, 2013 at 7:21 PM, Sriram Karra wrote: > On Fri, Sep 27, 2013 at 7:06 PM, Dhananjay Nene > wrote: > >> Overall background: I write desktop apps but not in python, I do write the backends in python. So my desktop awareness is more generic. I did try wxPython years ago

Re: [BangPypers] What are you using for developing desktop GUIs?

2013-09-27 Thread Dhananjay Nene
On Fri, Sep 27, 2013 at 7:35 PM, Noufal Ibrahim wrote: > Sriram Karra writes: > > > [...] > >> Isn't that the case with any cross-platform toolkit - if the intent is >> to be cross platform? > > Yes but going inside the browser is more of a sacrifice than other > approaches. I mean, just launchin

Re: [BangPypers] What are you using for developing desktop GUIs?

2013-09-27 Thread Dhananjay Nene
On Fri, Sep 27, 2013 at 10:04 PM, Sriram Karra wrote: > On Fri, Sep 27, 2013 at 8:55 PM, Dhananjay Nene > wrote: > > >> >> In most cases I find users want a installer. Basically just point and >> click. So if there is no installer where a user selects a install >

Re: [BangPypers] Fwd: How to do clustering in python.

2013-09-30 Thread Dhananjay Nene
On Mon, Sep 30, 2013 at 4:37 PM, uday sankar wrote: > Hi, > > I have a engine built in python. I implemented a webserver in python it > will listen to the request sent and will responsed back with the necessary > result. Now the problem is that I am able to run this engine in one node, > if this n

Re: [BangPypers] the pyCharm from Jetbrains has been opensourced i.e. its free now!

2013-10-02 Thread Dhananjay Nene
On Thu, Oct 3, 2013 at 8:19 AM, Mandar Vaze / मंदार वझे wrote: > Downloaded it, bit not used it, yet. (still using vim) > But I have heard so much praise about pycharm from everyone in every > (python related) forum that I can't wait to use it Any links to the discussions? > > -Mandar > > > On Tu

Re: [BangPypers] BangPypers Digest, Vol 74, Issue 3

2013-10-03 Thread Dhananjay Nene
On Thu, Oct 3, 2013 at 1:01 PM, Aditya Laghate wrote: > On Thu, Oct 03, 2013 at 12:24:27PM +0530, Venu Murthy wrote: >> As far as I know, this is permanent move Rahul, Pycharm is going to have >> two versions, the basic one is opensourced for ever and then there one with >> more bells and whistles

Re: [BangPypers] the pyCharm from Jetbrains has been opensourced i.e. its free now!

2013-10-04 Thread Dhananjay Nene
On Fri, Oct 4, 2013 at 4:30 PM, Saager Mhatre wrote: > On Oct 3, 2013 9:40 AM, "Dhananjay Nene" wrote: >> >> On Thu, Oct 3, 2013 at 8:19 AM, Mandar Vaze / मंदार वझे >> wrote: >> > Downloaded it, bit not used it, yet. (still using vim) >> > B

Re: [BangPypers] Object Oriented Programming in python

2013-10-14 Thread Dhananjay Nene
On Tue, Oct 15, 2013 at 1:46 AM, Pranav Raj wrote: > Hi fellow python lovers, > > I wanted to do OOPS programming in python, but i just found out that there > are no private variables in python. Does anyone know why python classes have > no private variables and why python's OOPS concept are a l

Re: [BangPypers] First python interview

2013-10-14 Thread Dhananjay Nene
On Tue, Oct 15, 2013 at 11:25 AM, Navin Kabra wrote: > If I were interviewing you, I would not really be checking your python > knowledge (unless you claimed to be good in Python in your resume). I > would really check how good you are in Java (your primary language), and > your general programmin

Re: [BangPypers] Object Oriented Programming in python

2013-10-17 Thread Dhananjay Nene
On Tue, Oct 15, 2013 at 2:33 PM, Dhruv Baldawa wrote: > Also take a look at videos by Raymond Hettinger > http://pyvideo.org/speaker/138/raymond-hettinger I have some serious reservations on how OO is packaged here. Wanted to post a detailed and articulate opinion, but it is going to take a while

Re: [BangPypers] Object Oriented Programming in python

2013-10-17 Thread Dhananjay Nene
On Tue, Oct 15, 2013 at 4:44 PM, s|s wrote: > Hi Pranav, > > I would pose a counter question regarding object oriented programming. How > did you learn OOP concepts? I am assuming like most of us, probably through > a C++ or Java course. These courses ingrain a certain expectation of what > OOP sh

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Dhananjay Nene
On Fri, Oct 18, 2013 at 5:58 PM, s|s wrote: > On Fri, Oct 18, 2013 at 11:31 AM, Dhananjay Nene > wrote: > >> On Tue, Oct 15, 2013 at 4:44 PM, s|s wrote: >> > Hi Pranav, >> > >> > I would pose a counter question regarding object oriented programming. &g

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Dhananjay Nene
On Mon, Oct 21, 2013 at 10:55 AM, Saager Mhatre wrote: > On Oct 15, 2013 4:10 AM, "Dhananjay Nene" wrote: >> >> On Tue, Oct 15, 2013 at 1:46 AM, Pranav Raj > wrote: >> > Hi fellow python lovers, >> > >> > I wanted to do OOPS programm

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Dhananjay Nene
On Mon, Oct 21, 2013 at 11:53 AM, Saager Mhatre wrote: > On Oct 21, 2013 11:39 AM, "Dhananjay Nene" wrote: >> >> On Mon, Oct 21, 2013 at 10:55 AM, Saager Mhatre > wrote: >> >> > Which generally lead to poor (or at least poorer) abstractions; but I >

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Dhananjay Nene
On Mon, Oct 21, 2013 at 3:02 PM, Saager Mhatre wrote: > On Oct 21, 2013 12:09 PM, "Dhananjay Nene" wrote: >> >> On Mon, Oct 21, 2013 at 11:53 AM, Saager Mhatre > wrote: >> > On Oct 21, 2013 11:39 AM, "Dhananjay Nene" > wrote: >>

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Dhananjay Nene
On Mon, Oct 21, 2013 at 6:42 PM, Saager Mhatre wrote: > On Oct 21, 2013 3:21 PM, "Dhananjay Nene" wrote: >> >> On Mon, Oct 21, 2013 at 3:02 PM, Saager Mhatre > wrote: >> > On Oct 21, 2013 12:09 PM, "Dhananjay Nene" > wrote: >>

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Dhananjay Nene
On Mon, Oct 21, 2013 at 11:46 PM, Saager Mhatre wrote: > On Fri, Oct 18, 2013 at 11:33 AM, Dhananjay Nene > wrote: > >> On Tue, Oct 15, 2013 at 2:33 PM, Dhruv Baldawa >> wrote: >> > Also take a look at videos by Raymond Hettinger >> > http://pyvideo.org/spe

Re: [BangPypers] Object Oriented Programming in python

2013-10-22 Thread Dhananjay Nene
On Mon, Oct 21, 2013 at 11:40 PM, Saager Mhatre wrote: > On Mon, Oct 21, 2013 at 7:11 PM, Dhananjay Nene > wrote: > >> Since you suggested that "Superior constructs >> implemented inferiorly." and did not respond to the line which >> wondered if tha

Re: [BangPypers] Object Oriented Programming in python

2013-10-22 Thread Dhananjay Nene
Am going to sign out of this discussion. It would not be correct to say it is reaching the point of diminishing returns. In fact for myself it has turned more interesting. But its turned a bit esoteric. Have been doing up some more reading and I drew a few conclusions for myself * Terms don't mean

Re: [BangPypers] BangPypers Digest, Vol 74, Issue 3

2013-10-23 Thread Dhananjay Nene
On Thu, Oct 3, 2013 at 2:02 PM, Aditya Laghate wrote: > On Thu, Oct 03, 2013 at 01:18:24PM +0530, Dhananjay Nene wrote: >> > >> Its in the downloaded tar.gz. You'll find the jar in lib/src >> Besides the community edition clearly mentions "Free, open-sour

Re: [BangPypers] Issue with list comprehension

2013-10-30 Thread Dhananjay Nene
Thats surprising. The code runs just fine http://ideone.com/06qjoM (Ans: 986) As an aside I renamed _sum to sum_ When avoiding naming conflicts, its recommended to postfix a underscore Prefixing an underscore is to provide a hint that the value that gets assigned to the variable is going to be

Re: [BangPypers] list question

2013-12-05 Thread Dhananjay Nene
from itertools import groupby x = [['cat','NM123',12],['cat','NM234',12], ['dog', 'NM56',65]] y = [['cat','NM123, NM234', 12], ['dog', 'NM56', 65]] def grouper(t) : return (t[0],t[2]) assert y == list(list((keys[0],", ".join(val[1] for val in vals),keys[1])) for keys, vals in g

Re: [BangPypers] Iterators

2014-04-02 Thread Dhananjay Nene
On Tue, Apr 1, 2014 at 11:19 PM, Anand Chitipothu wrote: > On Tue, Apr 1, 2014 at 11:16 PM, Noufal Ibrahim KV > wrote: > > > On Tue, Apr 01 2014, Pradip Caulagi wrote: > > > > > It is rather late in the day to bring this up but ... > > > > > > I heard they are removing iterators from Python to kee

Re: [BangPypers] How to model these entities?

2015-03-29 Thread Dhananjay Nene
One reason I am not fond of singletons is that they make unit testing a lot harder Dhananjay On Wed, Mar 25, 2015 at 7:02 PM, Abhaya Agarwal wrote: > Hi, > > I need to model four entities that share some attributes and behaviors and > also have some unique attributes and behaviors. I need to be

<    1   2