Re: [BangPypers] Python training material

2015-01-23 Thread Saager Mhatre
On Mon, Jan 19, 2015 at 11:39 PM, Suyash Bhatt wrote: > Hi Friends, > > I am looking for any Basic training material for Python which can be > shared across (with due credit). > Please let me know if anyone can help me with that. There's a list the Pune Python community compiled => http://pune.

Re: [BangPypers] Python certifications in India

2014-12-29 Thread Saager Mhatre
On Wed, Dec 24, 2014 at 12:02 AM, Noufal Ibrahim KV wrote: > On Wed, Dec 24 2014, Saager Mhatre wrote: > > > [...] > > > > > We... I wouldn't put quite as much stock in the CCNA given the > > people we interviewed at TW for a sysad position. >

Re: [BangPypers] combine multiple modules in one

2014-12-23 Thread Saager Mhatre
On Wed, Dec 17, 2014 at 1:05 PM, Nitin Kumar wrote: > Hi, > > say I am installing a module "abc" and it got multiple dependent modules > say xyz pqr. > pip easy install will take care of downloading and installing these. > > but i need to install "abc" on a device which doesnt have net connection

Re: [BangPypers] Python certifications in India

2014-12-23 Thread Saager Mhatre
is large enough (e.g. Java), you can cut off a piece and > certify people in that department. I have my own views about language/framework certifications <http://www.quora.com/What-IT-training-institution-in-Mumbai-Maharashtra-India-will-best-help-me-in-attaining-a-certification-in-the-J

Re: [BangPypers] Python certifications in India

2014-12-23 Thread Saager Mhatre
On Mon, Dec 22, 2014 at 2:36 AM, Bibhas Ch Debnath wrote: > Is there anyone or any company here that actually values a certificate for > Python? In my experience, certification courses mean nothing, at least for > Python developers. None of the people I know or have worked with, cares > about a c

Re: [BangPypers] How to dynamically load modules in Django/Python

2014-12-23 Thread Saager Mhatre
On Thu, Dec 18, 2014 at 12:18 AM, mithun chackravarthy < vbnetmit...@gmail.com> wrote: > Thanks Saager, got it. http://imdb.to/glad-to => One is glad to be of service. - d ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailm

Re: [BangPypers] How to dynamically load modules in Django/Python

2014-12-23 Thread Saager Mhatre
On Wed, Dec 17, 2014 at 11:19 PM, Navin Kabra wrote: > Saager Mhatre writes: > > > I suppose the __import__ function > > <https://docs.python.org/3/library/functions.html#__import__> should be > a > > good start. > > Also check out the "imp" modu

Re: [BangPypers] How to dynamically load modules in Django/Python

2014-12-17 Thread Saager Mhatre
On Mon, Dec 15, 2014 at 1:52 AM, mithun chackravarthy wrote: > > > How can I achieve this.Thanks for your time. > I suppose the __import__ function should be a good start. - d ___ BangPypers

Re: [BangPypers] Python Gotcha Fibonacci

2014-10-06 Thread Saager Mhatre
Spend some time to logically think about what is semantically different in the two implementations, focus on the types of the values and operations invoked thereon. - d ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/lis

Re: [BangPypers] Return values

2014-09-24 Thread Saager Mhatre
On Sat, Sep 20, 2014 at 6:53 AM, Noufal Ibrahim KV wrote: > On Sat, Sep 20 2014, Anand Chitipothu wrote: > > > [...] > > > Oh, that feels like PHP. That style seems to be popular in that side of > the > > world. > > > > It might be a good idea to add consolidate method on the return value. > > So

Re: [BangPypers] Python is still greek to india's top IT firms

2014-09-24 Thread Saager Mhatre
On Wed, Sep 17, 2014 at 6:54 AM, Senthil Kumaran wrote: > [...] > > From my experience at Akamai Bangalore, when we had to hire Java developers > for my team, we had 100s of resumes competing for single spot, but we > looked for "quality" python developers, there were very less < 10 (and all > of

Re: [BangPypers] Python is still greek to india's top IT firms

2014-09-24 Thread Saager Mhatre
On Wed, Sep 17, 2014 at 6:54 AM, Senthil Kumaran wrote: > [...] Given that world is moving to multiple language shops and almost all > companies will use more than one language in their offerings Some would beg to differ http://tek.io/1yjHw0U - d

Re: [BangPypers] python in news

2014-09-03 Thread Saager Mhatre
On Wed, Sep 3, 2014 at 11:36 AM, Palak Mathur wrote: > > > On Sep 3, 2014, at 10:26 AM, Saager Mhatre > wrote: > > On Wed, Sep 3, 2014 at 2:37 AM, Nitin Kumar wrote: > > > > > > http://economictimes.indiatimes.com/tech/software/programming-language-

Re: [BangPypers] python in news

2014-09-03 Thread Saager Mhatre
On Wed, Sep 3, 2014 at 2:37 AM, Nitin Kumar wrote: > > http://economictimes.indiatimes.com/tech/software/programming-language-python-yet-to-find-place-in-teaching-curriculum-in-india-despite-its-popularity/articleshow/41464925.cms Anyone have a link to that IEEE report mentioned in the article

Re: [BangPypers] "The Python I would like to see" - Armin Ronacher

2014-08-19 Thread Saager Mhatre
On Tue, Aug 19, 2014 at 12:45 PM, Noufal Ibrahim wrote: > > On 2014-08-19 12:31, Saager Mhatre wrote: > >> That's just a question of testing strategy. If you're writing 'elaborate' >> tests at every layer, you're probably validating too much or exer

Re: [BangPypers] "The Python I would like to see" - Armin Ronacher

2014-08-19 Thread Saager Mhatre
On Tue, Aug 19, 2014 at 11:23 AM, Noufal Ibrahim wrote: > On 2014-08-19 11:11, Sriram Narayanan wrote: > > Hi Noufal, could you elaborate on this? I have enjoyed the freedom >> of non-static typing that Python and Ruby offer, but also sometimes miss >> the static type checking that C# and Java o

Re: [BangPypers] Mailing list etiquette

2014-08-07 Thread Saager Mhatre
On Fri, Aug 8, 2014 at 12:03 AM, Noufal Ibrahim KV wrote: > On Mon, Aug 04 2014, Jeffrey Jose wrote: > [...] > > >> ​.. and since I use browser, I appreciate an email that's nicely > > formatted. Yes, that includes contextual information with embedded > > images.​ > > Fair enough. However, large

Re: [BangPypers] how to override sys.stdin

2014-08-04 Thread Saager Mhatre
On Mon, Aug 4, 2014 at 2:38 PM, Nitin Kumar wrote: > Hi All, > > is there a way i can override raw_input or input function. This sooo smells of the XY Problem . What are you really trying to do here? - d ___ BangPypers mai

Re: [BangPypers] Mailing list etiquette

2014-08-04 Thread Saager Mhatre
On Mon, Aug 4, 2014 at 9:06 PM, Anand Chitipothu wrote: > > > > Not only that, it is a pain to download something and open it in some > >> application just to know what is inside. It is a lot better to send a > link > >> instead of sending attachments. > >> > > > > ​Anand, how do you consume your

Re: [BangPypers] [OT] New Python core developer

2014-04-20 Thread Saager Mhatre
On Sun, Apr 20, 2014 at 11:02 PM, Sayan Chowdhury < sayan.chowdhury2...@gmail.com> wrote: > Hi, > > Kushal Das[1] is now a Python core developer. Gratz Kushal! - d ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listi

Re: [BangPypers] Packaging in Python

2014-01-11 Thread Saager Mhatre
On Jan 10, 2014 4:26 AM, "Venu Murthy" wrote: > > Hello friend! > > This was the first time, we are actually writing some serious code and it > found it quite not like Python when packing for the code to be deployed on > a windows machine. > > We were using the setuptools build and install to do t

Re: [BangPypers] Object Oriented Programming in python

2013-10-22 Thread Saager Mhatre
On Oct 22, 2013 10:54 AM, "Sirtaj Singh Kang" wrote: > > I agree with you partially - MOP in python can get ugly, but there's plenty of power there. I'll try to explain, though this stuff is notoriously hard to articulate (may be just for me). > Oh, trust me, it's not just you! We should start a

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Saager Mhatre
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 lo

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Saager Mhatre
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/speaker/138/raymond-hettinger > > I have some serious reservations on how OO is packaged here. Wanted to > p

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Saager Mhatre
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 that was based on syntactic or stylistic differences, I believe I responded to that statement by saying that the d

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Saager Mhatre
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: > >> > >> On Mon, Oct 21, 2013 at 11:53 AM, Saager Mhatre < saager.mha...@

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Saager Mhatre
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: > >> > >> On Mon, Oct 21, 2013 at 10:55 AM, Saager Mhatre < saager.mha...@gmai

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Saager Mhatre
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 digress. > > Leaky ?? :) For the most part, yes. > > > >> I th

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Saager Mhatre
On Oct 21, 2013 11:34 AM, "Noufal Ibrahim" wrote: > > [...] > > It's the final frontier beyond which space lies (sorry). > Dude, Space __is__ the final frontier! (Heh, see what I did there? :) Anyway, thanks for the other refs. - d ___ BangPypers mail

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Saager Mhatre
On Oct 21, 2013 11:14 AM, "Noufal Ibrahim" wrote: > > Saager Mhatre writes: > > > [...] > > > since even slots are accessible from outside an object > > __slots__ are not meant for data hiding. They're meant as a final "trick" to save memo

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Saager Mhatre
On Oct 21, 2013 1:18 AM, "s|s" wrote: > > Lets look at integer as an example in Python (int) > > class int(object) >int(x[, base]) -> integer > > which is unlike java where int is a "basic" non-class type. An explicit upgrade to **Integer** class is required to use OOP features. This is done w

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Saager Mhatre
On Oct 18, 2013 10:54 AM, "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 should "loo

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Saager Mhatre
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 programming in python, but i just found out that there are no private variables in python. Does anyone know why python classes have no p

Re: [BangPypers] Noob trying to get into python

2013-10-07 Thread Saager Mhatre
On Mon, Oct 7, 2013 at 3:18 PM, Avneesh Chadha wrote: > Hi, > I have been working in java for the last 6 months, but really want to get > into python .Could anyone point me to any open source project which could > help me get relevant experience for a python based development. http://pune.python

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

2013-10-05 Thread Saager Mhatre
On Thu, Oct 3, 2013 at 11:01 AM, Mandar Vaze / मंदार वझे < mandarv...@gmail.com> wrote: > http://bit.ly/1dXgwqD Dude, that was mean! :S A lmgtfy link behind a bitly link!?! :) - d ___ BangPypers mailing list BangPypers@python.org https://mail.python.o

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

2013-10-04 Thread Saager Mhatre
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) > > But I have heard so much praise about pycharm from everyone in every > > (python related) forum that I can't wait to

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

2013-09-16 Thread Saager Mhatre
On Mon, Sep 16, 2013 at 5:38 PM, Dhananjay Nene wrote: > 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

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

2013-09-16 Thread Saager Mhatre
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. Just saying... 'cause, even though I may have myself used the phrase in previous responses on this

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

2013-09-16 Thread Saager Mhatre
On Sep 16, 2013 12:50 PM, "Dhananjay Nene" wrote: > > 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 pres

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

2013-09-15 Thread Saager Mhatre
On Sep 16, 2013 12:38 AM, "Kiran Jonnalagadda" wrote: > > We deploy multiple times a day and I don't find that the gap between a > Travis test and production deployment is so long that an upstream release > within those few seconds broke compatibility. > > Kiran > Dude, can I quote you on that? '

Re: [BangPypers] Mail formatting for this list

2013-09-15 Thread Saager Mhatre
On Sun, Sep 15, 2013 at 9:14 AM, Mandar Vaze / मंदार वझे < mandarv...@gmail.com> wrote: > On the other hand, most people code only on screens that definitely support > more than 80-characters horizontally. (I mean no one reads/writes code on > mobile/tablet or general smaller screens) print '\n'

Re: [BangPypers] Mail formatting for this list

2013-09-15 Thread Saager Mhatre
On Sun, Sep 15, 2013 at 9:14 AM, Mandar Vaze / मंदार वझे < mandarv...@gmail.com> wrote: > > I dont understand. What's your viewport width? Can that only support > 80ish > > chars? Are you on mobile/tablet? > > > > It is not uncommon for people to read/respond to emails on mobile/tablet. > So for e

Re: [BangPypers] Regd feedback (was: Online Python workshop)

2013-09-15 Thread Saager Mhatre
On Sun, Sep 15, 2013 at 9:25 PM, Saager Mhatre wrote: > > On Sep 15, 2013 6:12 PM, "Noufal Ibrahim" wrote: > > > > Annapoornima Koppad writes: > > > > > HI Noufal, > > > > > > Thanks for the tutorial. I read through the tutori

[BangPypers] Regd feedback (was: Online Python workshop)

2013-09-15 Thread Saager Mhatre
On Sep 15, 2013 6:12 PM, "Noufal Ibrahim" wrote: > > Annapoornima Koppad writes: > > > HI Noufal, > > > > Thanks for the tutorial. I read through the tutorial. The topic was > > definitely different than most of the tutorials that are online. So I have > > to write the code myself before I give o

Re: [BangPypers] Debugging functions/tools/ways

2013-09-15 Thread Saager Mhatre
On Sep 14, 2013 11:00 AM, "Balachandran Sivakumar" wrote: > When you find some time, please do post a few Python > dtrace one-liners here. It would be useful to the rest of us. Thanks Oh... man... I want to +1 this... so... many... times!!! Ram, you should totally share your experiences with thi

Re: [BangPypers] Debugging functions/tools/ways

2013-09-13 Thread Saager Mhatre
On Sep 14, 2013 6:37 AM, "Sriram Narayanan" wrote: > [...] > I think using dtrace will be most effective going forward. Hear, hear! DTrace FTW!! - d ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers

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

2013-09-13 Thread Saager Mhatre
On Sep 13, 2013 9:10 PM, "venkatakrishnan g" wrote: > > Oh, dexterous just blew my head! Music to my ears. :D - d ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers

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

2013-09-13 Thread Saager Mhatre
On Fri, Sep 13, 2013 at 6:50 PM, Dhananjay Nene wrote: > Nice. I reached out for the "Favourite" button but realised > emails/mailing lists don't have it. > (takes a bow) I do think it can be a little easier to understand by doing > s/package-module/namespace/g. Having done that I realised a few

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

2013-09-13 Thread Saager Mhatre
On Fri, Sep 13, 2013 at 5:01 PM, Dhruv Baldawa wrote: > d = [''.join(x) for x in itertools.product(a, b, c)] > Actually, using itertools.imap would ensure that the elements aren't computed till necessary. So... d = itertools.imap(''.join, itertools.product(a, b, c)) - d

Re: [BangPypers] Favorite tips/techniques

2013-09-13 Thread Saager Mhatre
On Sep 9, 2013 8:51 PM, "CsquaredinOmaha" wrote: > > > For a while I had thought it would be interesting to hear "tips/techniques you > find yourself often using" - or perhaps found useful at one point (and thus would be valuable to newbies). > > It could be simple snippet, or some description of

[BangPypers] Mail formatting for this list

2013-09-13 Thread Saager Mhatre
Mods/Admins, Is there a specific reason we've set this list to wrap all mail messages at 80 characters? Just that it seems a little unnecessary to me, give all the hi-resolution wide-screen displays in general use. Just saying. - d ___ BangPypers mailing

Re: [BangPypers] Debugging functions/tools/ways

2013-09-13 Thread Saager Mhatre
On Fri, Sep 13, 2013 at 2:46 PM, Anand Chitipothu wrote: > On Fri, Sep 13, 2013 at 2:36 PM, Dhruv Baldawa >wrote: > > > This is what I use for debugging: > > from IPython.core.debugger import Tracer; Tracer()() > > > > works mostly like pdb, with some nice features like tab completions > > > > Th

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

2013-09-13 Thread Saager Mhatre
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 package-module[*] ?. > Ah, there it is... the sound of your head explo

Re: [BangPypers] Favorite tips/techniques

2013-09-13 Thread Saager Mhatre
On Sep 9, 2013 8:51 PM, "CsquaredinOmaha" wrote: > > > For a while I had thought it would be interesting to hear "tips/techniques you > find yourself often using" - or perhaps found useful at one point (and thus would be valuable to newbies). > > It could be simple snippet, or some description of

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

2013-09-13 Thread Saager Mhatre
On Sep 13, 2013 9:19 AM, "Dhananjay Nene" wrote: > [...] > Given adequate test coverage to verify negative side effects of any transitive dependency version upgrades, pinning could be skipped imo. > > Dhananjay +1 for automated tests to cover relevant API contracts of dependencies. That's a great

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

2013-09-12 Thread Saager Mhatre
On Thu, Sep 12, 2013 at 6:16 PM, Aditya Laghate wrote: > On Thu, Sep 12, 2013 at 05:50:27PM +0530, Vineet Naik wrote: > > I always pin requirements. Here is a related article on the topic - > > http://nvie.com/posts/pin-your-packages/ > > Interesting blog link. > > I did like the idea of using '==

Re: [BangPypers] Help Required with understanding Python Import

2013-09-12 Thread Saager Mhatre
On Tue, Sep 10, 2013 at 3:39 PM, konark modi wrote: > Hi Jagan, > > This should be of your interest : > http://pyvideo.org/video/1707/how-import-works Jagan, This makes for an interesting read too => http://lucumr.pocoo.org/2009/7/24/singletons-and-their-problems-in-python/ - d __

Re: [BangPypers] Favorite tips/techniques

2013-09-12 Thread Saager Mhatre
On Tue, Sep 10, 2013 at 4:54 PM, Noufal Ibrahim wrote: > Saju M writes: > [...] > > > * Why dir(json) not showing "tool" ?? > > Because of the __all__ variable in the module. > http://docs.python.org/2/tutorial/modules.html > Noufal, Well, not quite, right? I posit it's basically because as per

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

2013-09-12 Thread Saager Mhatre
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 to avoid using 'pip freeze' as part of my dev flow for just this re

Re: [BangPypers] How to run a block of code just before the interpreter is being exited like END{} in perl ??

2013-09-12 Thread Saager Mhatre
On Mon, Sep 9, 2013 at 7:23 PM, Anand B Pillai wrote: > [...] > > I gave that example as it was given in the Python documentation > for atexit module. > > http://docs.python.org/2/library/atexit.html#module-atexit Wow, hadn't noticed that the example was in the docs. Still, doesn't make too muc

Re: [BangPypers] Favorite tips/techniques

2013-09-12 Thread Saager Mhatre
On Tue, Sep 10, 2013 at 10:39 AM, Shabda Raaj wrote: > > https://github.com/webpy/webpy/blob/master/web/utils.py#L52 > > Wow, thats better than the "bare" bunch impl. Gonna use it now. It's just s much nicer when the map/dict in your platform

Re: [BangPypers] Python "Wat"s

2013-09-12 Thread Saager Mhatre
On Tue, Sep 10, 2013 at 10:14 AM, Shabda Raaj wrote: > This is a popular talk on quircks of ruby/js > > https://www.destroyallsoftware.com/talks/wat > > What are the quircks/unexpected behavior you find in Python? (Aka Python > "wats"). > Wait a second... wasn't there a talk about just this capt

Re: [BangPypers] folder initialization issues

2013-09-08 Thread Saager Mhatre
On Thu, Aug 29, 2013 at 9:43 AM, Noufal Ibrahim wrote: > Anand Chitipothu writes: > > [...] > > > Lets say you a python file x.py. > > You can import it just using "import x". > > > > If you have y/x.py, you would import it using "import y.x" or "from y > > import x". Here x is a submodule of y a

Re: [BangPypers] How to run a block of code just before the interpreter is being exited like END{} in perl ??

2013-09-08 Thread Saager Mhatre
On Tue, Sep 3, 2013 at 8:47 AM, Anand B Pillai wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Tuesday 03 September 2013 06:27 AM, Anand Chitipothu wrote: > >> This is another version of this by mucking around directly with > >> sys.exitfunc using a with context. > >> > >> from con

Re: [BangPypers] How to run a block of code just before the interpreter is being exited like END{} in perl ??

2013-09-08 Thread Saager Mhatre
On Tue, Sep 3, 2013 at 1:27 AM, Anand B Pillai wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Monday 02 September 2013 08:09 PM, venkatakrishnan g wrote: > > import atexit > > > > def callback(): print "about to exit!" > > > > atexit.register( callback ) > > Better use it as decor

[BangPypers] XPOST: Pyladies Bangalore

2013-08-23 Thread Saager Mhatre
XPOSTING to PythonPune. -- Forwarded message -- From: Annapoornima Koppad Date: Thu, Aug 22, 2013 at 4:04 PM Subject: [BangPypers] Pyladies Bangalore To: bangpypers@python.org Dear All, I recently started the Pyladies Bangalore chapter. I wanted to know how many lady python pro

Re: [BangPypers] A Comparison of Mocking Frameworks

2013-05-11 Thread Saager Mhatre
On Thu, May 9, 2013 at 8:36 AM, Sriram Narayanan wrote: > Hi everyone: > > A colleague pointed me to this comparison of mocking frameworks: > http://garybernhardt.github.io/python-mock-comparison/ That list is pretty dated. If I were starting a new project I'd just reach for doublex

Re: [BangPypers] [Ticket #27] A Comparison of Mocking Frameworks

2013-05-11 Thread Saager Mhatre
That list is pretty dated. If I were starting a new project I'd just reach for doublex . It's got, by far, the nicest API of test doubles I've encountered. - d On Thu, May 9, 2013 at 1:52 PM, Prashant R. Naik < prash...@triconinfotech.com> wrote: > On May 09

Re: [BangPypers] [OT] Microsoft Office 365 for Education made mandatory for approved institutions by AICTE

2013-04-19 Thread Saager Mhatre
On Mon, Apr 15, 2013 at 8:54 PM, Kaushik Kalyanaraman < dialkforkaus...@gmail.com> wrote: > 10 replies to Godwin Damn, nice catch! ;) - d ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Feb meetup

2013-02-12 Thread Saager Mhatre
On Fri, Feb 8, 2013 at 4:54 PM, kracekumar ramaraju < kracethekingma...@gmail.com> wrote: > All, > > Feb Meetup will be on 16th, as usual 3.00 PM, shall we have meetup in CIS Just checking, is this confirmed? - d ___ BangPypers mailing list BangPypers

Re: [BangPypers] Interactive shell for python application

2013-02-01 Thread Saager Mhatre
On Mon, Jan 28, 2013 at 7:42 PM, JAGANADH G wrote: > I need a shell like environment for my program batteries included? http://docs.python.org/3/library/cmd.html - d ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/lis

Re: [BangPypers] Python/Perl Scripting resource

2012-05-25 Thread Saager Mhatre
On Thu, May 24, 2012 at 6:42 PM, Noufal Ibrahim wrote: > Senthil Kumaran writes: > > > [...] > > [...] Could someone just point the OP to the Posting guidelines for this list, especially the ones around job postings? Harpal, at the least, job postings are required to have their subjects prefix

Re: [BangPypers] Handling bit sized fields in network headers

2012-05-04 Thread Saager Mhatre
On Fri, May 4, 2012 at 5:09 PM, Saager Mhatre wrote: > On Fri, May 4, 2012 at 3:40 PM, Balachandran Sivakumar < > benignb...@gmail.com> wrote: > >> Hi, >> >> What is the best way to handle bit sized fileds in network >> headers, if the data is bin

Re: [BangPypers] Handling bit sized fields in network headers

2012-05-04 Thread Saager Mhatre
On Fri, May 4, 2012 at 3:40 PM, Balachandran Sivakumar wrote: > Hi, > > What is the best way to handle bit sized fileds in network > headers, if the data is binary ? The struct module doesn't support > sizes in bits, and I have scenarios where there are fields of 2 bits, > 3 bits and 5 b

Re: [BangPypers] JOB - Senior Web Developer - Talented Team!

2012-03-15 Thread Saager Mhatre
On Fri, Mar 16, 2012 at 10:39 AM, Anand Balachandran Pillai < abpil...@gmail.com> wrote: > Ah well, that was supposed to go to the sender. My bad. Ignore it. Was about to call a troll alert on that just then :) - d ___ BangPypers mailing list BangPype

Re: [BangPypers] JOB - Senior Web Developer - Talented Team!

2012-03-15 Thread Saager Mhatre
On Fri, Mar 16, 2012 at 11:44 AM, Noufal Ibrahim wrote: > Anand Balachandran Pillai writes: > > > On Fri, Mar 16, 2012 at 11:30 AM, Kenneth Gonsalves >wrote: > > > >> On Fri, 2012-03-16 at 10:39 +0530, Anand Balachandran Pillai wrote: > >> > Ah well, that was supposed to go to the sender. My bad

Re: [BangPypers] Truth Tests (bool)

2012-01-13 Thread Saager Mhatre
On Wed, Jan 11, 2012 at 9:49 AM, Noufal Ibrahim wrote: > Gora Mohanty writes: > > > [...] > > > It is not clear what you want from your description. To check if a > > list is empty, see if len( list ) is zero. > > [...] > > You don't want to do that. Your "list" might be a generator (unless you

Re: [BangPypers] Truth Tests (bool)

2012-01-11 Thread Saager Mhatre
https://gist.github.com/1327614#file_truth.py I hacked together this little script to cover (hopefully) all the cases for my reference. - d ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] python framework for android

2012-01-10 Thread Saager Mhatre
On Tue, Jan 10, 2012 at 7:43 AM, Anand Chitipothu wrote: > 2012/1/4 Navin Kabra > > > On Wed, Jan 4, 2012 at 11:37 AM, Kenneth Gonsalves > > wrote: > > > can anyone recommend a python framework for android? > > > > Negative vote for SL4A (previously known as ASE - Android Scripting > > Environme

Re: [BangPypers] Background ping - check for server availability

2011-12-30 Thread Saager Mhatre
On Fri, Dec 30, 2011 at 1:02 AM, Nikunj Badjatya wrote: > Hi, > > I think the commands.getstatusoutput() is only for unix systems. > When I run on windows I get this error: > > {{{ > >>> ret = commands.getstatusoutput('ping 192.168.1.1') > >>> ret > (1, "'{' is not recognized as an internal or ext

Re: [BangPypers] Auto Login to Website and Capturing more details

2011-12-22 Thread Saager Mhatre
On Thu, Dec 22, 2011 at 10:27 PM, Noufal Ibrahim wrote: > [snip] > > The Python stdlib can handle this using urllib2 and cookielib. I've managed > something like this here https://gist.github.com/3811b566df4005a012c7which > you can use as a starting point. > > After this, you have a session. No

Re: [BangPypers] ElementTree object instance evaluates to False?

2011-12-06 Thread Saager Mhatre
Refer https://gist.github.com/1327614#file_truth.py to see if it helps any. - d On Tue, Dec 6, 2011 at 11:15 AM, Noufal Ibrahim wrote: > Vikas BN writes: > > [...] > > > Anyone else encountered this or even have any insights regarding > > this behaviour? I'm using Python2.7.2 on Linux > >

[BangPypers] Mailing list etiquette

2011-11-15 Thread Saager Mhatre
http://catb.org/~esr/faqs/smart-questions.html Considering there's been a spate of similar incidents, I figured it might just be valuable to collect all these references into a thread of their own. - d PS- If I had a nickel for every time I've wanted to point people to this article, I'd be a ric

Re: [BangPypers] collections

2011-11-09 Thread Saager Mhatre
On Wed, Nov 9, 2011 at 5:30 PM, Kenneth Gonsalves wrote: > On Wed, 2011-11-09 at 17:23 +0530, Saager Mhatre wrote: > > [snip] > > > other than Callable that I used in a bunch of test utilities, but that > usage wasn't really valuable. > > but it must be useful f

Re: [BangPypers] collections

2011-11-09 Thread Saager Mhatre
On Wed, Nov 9, 2011 at 5:05 PM, Kenneth Gonsalves wrote: > hi, > > python collections are cool and I am dying to use them in production. > But so far I am yet to find a use case for using them - any experiences? > I'm assuming you mean the Python collections package that provides 'High-performan

Re: [BangPypers] [chennaipy 1126] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective

2011-11-02 Thread Saager Mhatre
On Wed, Nov 2, 2011 at 11:33 PM, Saager Mhatre wrote: > On Wed, Nov 2, 2011 at 10:47 PM, Rajeev J Sebastian < > rajeev.sebast...@gmail.com> wrote: > >> As you suggested, the most important change we can make is to test >> directly with code. >> > > +1 to Si

Re: [BangPypers] [chennaipy 1126] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective

2011-11-02 Thread Saager Mhatre
On Wed, Nov 2, 2011 at 10:47 PM, Rajeev J Sebastian < rajeev.sebast...@gmail.com> wrote: > As you suggested, the most important change we can make is to test > directly with code. > +1 to Sidu's suggestion about having candidates write code before they come in; have used that to much success. >

Re: [BangPypers] [chennaipy 1126] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective

2011-11-02 Thread Saager Mhatre
On Wed, Nov 2, 2011 at 11:15 PM, kracekumar ramaraju < kracethekingma...@gmail.com> wrote: > In most support project you don't change code until there is a requirement > from client, else you end up supporting the tickets etc... They're not all support (as in keep the lights on) projects, there'

Re: [BangPypers] [chennaipy 1126] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective

2011-11-02 Thread Saager Mhatre
On Wed, Nov 2, 2011 at 10:56 PM, kracekumar ramaraju < kracethekingma...@gmail.com> wrote: > I am advanced python novice. > There's an interesting tautology I can use, and... People who learn python are passionate about programming, others learn > java and c# to get a job. ... there's a line t

Re: [BangPypers] [chennaipy 1126] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective

2011-11-02 Thread Saager Mhatre
On Wed, Nov 2, 2011 at 10:31 PM, kracekumar ramaraju < kracethekingma...@gmail.com> wrote: > > True... to some extent. Like just about anything else, you have to choose > > wisely. > > My four years at Kanbay (now CapGemini) taught me a lot of lessons in > > organization, management as well as pre

Re: [BangPypers] [chennaipy 1126] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective

2011-11-02 Thread Saager Mhatre
On Wed, Nov 2, 2011 at 9:26 PM, kracekumar ramaraju < kracethekingma...@gmail.com> wrote: > I'd go so far as to suggest that they join a mid-to-large sized company and > > spend the first couple of years maintaining somebody else's crap code. > It's > > one hell of a learning experience. > > > >

Re: [BangPypers] Generate Dynamic lists

2011-10-20 Thread Saager Mhatre
On Fri, Oct 21, 2011 at 12:40 AM, Gora Mohanty wrote: > On Fri, Oct 21, 2011 at 12:38 AM, Gora Mohanty wrote: > > On Fri, Oct 21, 2011 at 12:10 AM, Asif Jamadar > wrote: > [...] > > list1 = [] > > for i in criteria_list[:2]: > >for j in range(4): > >l.append( ( i, j + 1 ) ) > > Oops

Re: [BangPypers] About pypy and bangpypers

2011-09-26 Thread Saager Mhatre
On Mon, Sep 26, 2011 at 10:57 PM, Sriram Narayanan wrote: > I can talk about my experiences with porting it. > > -- Sriram > Porting it to... Belenix? - d ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpyp