[BangPypers] Python freshers.

2020-12-10 Thread Noufal Ibrahim KV
Hello everyone, The list seems to be inactive these days. However, I'm sure some of the old timers are still here so I'll post away! I've been running The Lycaeum program for a while now and I've managed to train a decent number of people who found good jobs mostly in the startup eco

Re: [BangPypers] [Commercial] Python companies hiring freshers

2020-08-29 Thread Noufal Ibrahim KV
On Sat, Aug 29 2020, Aakanksha Jain wrote: > Hi Noufal, > > Is this program career fair open to freshers who haven't been part of the > training programs mentioned by you? [...] Oh yes. Definitely. My original email was originally looking for companies who might be interested in this so that I c

[BangPypers] [Commercial] Python companies hiring freshers

2020-08-29 Thread Noufal Ibrahim KV
Hello everyone, We're a startup headquartered in Kozhikode, Kerala and have been operating for a while. Our mission is to bridge the skill gap in engineering in India and we've been working towards that with a combination of online and offline training programs. We used to run a low volume h

Re: [BangPypers] Teaching yourself machine learning

2018-08-09 Thread Noufal Ibrahim KV
On Thu, Aug 09 2018, Rohit Chormale wrote: > Thanks everyone for kind replies. [...] Much of ML is applied statistics. I recently refreshed some of my high school statistics using http://greenteapress.com/thinkstats/ and https://greenteapress.com/wp/think-bayes/ and found it fun. These might hel

Re: [BangPypers] Capture and save running process on Python 3.6

2017-11-03 Thread Noufal Ibrahim KV
On Thu, Nov 02 2017, Ajinkya Bobade wrote: [...] > However, I want to write this code for "*.bag" extension files that is > sys.stdout = open("/Volumes/aj/hello world.bag", 'w') . This file is > defined as Binary(application/octect-stream). The above code doesn't > work in this scenario. How do

Re: [BangPypers] Capture and save running process on Python 3.6

2017-11-02 Thread Noufal Ibrahim KV
On Thu, Nov 02 2017, Ajinkya Bobade wrote: > Hello, > > Hope someone can help me on this. In the following code, I want to capture > print('Recording GPS Position...') on sd card, for now, this is printing > on terminal directly I want to capture this runtime process (p_1) from > terminal and sto

Re: [BangPypers] [Discussion] Monthly Webinar

2017-05-16 Thread Noufal Ibrahim KV
On Tue, May 16 2017, kracekumar ramaraju wrote: [...] > To engage the large crowd, how about conducting a monthly webinar for one > hour? Along with the physical meetup, experiment with webinar and have one > talk per session. This sounds like an excellent idea. +1 As an aside, here's an arti

Re: [BangPypers] [Bangpypers][Commercial][Job] We are hiring a Software Engineer, Data Scientist at AdStock

2017-03-22 Thread Noufal Ibrahim KV
On Wed, Mar 22 2017, Bhavin Patel via BangPypers wrote: > What about genuine queries about python with attachments ? Let's not > have a knee jerk reaction to a one off issue. Like what? I've been on mailing lists for quite a while and the general way is to upload it somewhere and send a link rat

Re: [BangPypers] Registration for PyCon Pune 2017 is Open Now!

2016-11-18 Thread Noufal Ibrahim KV
On Fri, Nov 18 2016, Shanki Singh Gandhi wrote: > Really astonished after visiting CFP site of pune pycon, wondering why > Junction is not being used for it. If we are not using the product > developed by use, then why other will use it. [...] Let's not go there. Junction is one option for man

Re: [BangPypers] Query on correct use of threading

2016-11-08 Thread Noufal Ibrahim KV
On Tue, Nov 08 2016, Rajesh Deo wrote: > Dear All, > > I was exploring the threading module and came up with following, after > going through @raymondh's talk (https://www.youtube.com/watch?v=Bv25Dwe84g0) > > http://pastebin.com/usKE6nME Can you put it on another pastebin service? My ISP is block

Re: [BangPypers] [Inpycon] Pycon India 2016 Keynote Speaker: Van Lindberg

2016-08-30 Thread Noufal Ibrahim KV
On Tue, Aug 30 2016, chandan kumar wrote: > Hello, > > We are delighted to announce our third keynote speaker for PyCon India > 2016: Van Lindberg [...] Wonderful! -- Cordially, Noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers@pyt

Re: [BangPypers] Python 2.x Vs 3 & Books - Frequently Asked Question but on latest context

2016-08-04 Thread Noufal Ibrahim KV
I think Python 3 has arrived. There are a few libraries that are not ported and there's legacy code which you might have to work on but apart from that, 3 is the way to go. Learn Python the Hard way is a good book to start with and the HTML version is available online. -- Cordially, Noufal htt

Re: [BangPypers] framework to write functional test cases

2016-06-01 Thread Noufal Ibrahim KV
On Wed, Jun 01 2016, anu sree wrote: > Hi, > > I am looking for a framework which helps to write functional test > cases. Right now i am using unittest framework to do that, but that > is ugly. I consider py.test as one of Python's "killer applications". I've used it since 2010 or so for almost

Re: [BangPypers] Plotting Range [1e13 to 1e19] in linear scale

2016-05-09 Thread Noufal Ibrahim KV
On Mon, May 09 2016, Santosh Chiniwar wrote: > I have sent a mail but its held until approval. For that I have attached > code. Now again I got same email. > I don't have to attach plots? [...] Attachments are either scrubbed or blocked. You should write a "minimal, complete and verifiable" exam

Re: [BangPypers] Plotting Range [1e13 to 1e19] in linear scale

2016-05-09 Thread Noufal Ibrahim KV
On Mon, May 09 2016, Santosh Chiniwar wrote: > Please find correct Python code for above mail. Thank you > [...] This doesn't help either. You need to be a little more specific and detailed about the problem that you're facing. I've found http://www.catb.org/esr/faqs/smart-questions.html to be a

Re: [BangPypers] Looking for corporate Python Trainers

2016-05-04 Thread Noufal Ibrahim KV
On Thu, May 05 2016, Manjushree Hegde wrote: > Hello, > > > I am looking for Python trainers for corporate training. Please let me > know if anyone is interested in this. [...] We do corporate trainings on Python and other technologies via pipal.in. If you're interested, please email us at he...

Re: [BangPypers] Looking for corporate Python Trainers

2016-05-04 Thread Noufal Ibrahim KV
On Thu, May 05 2016, Suman Debnath via BangPypers wrote: > I would highly recommend Mr. Chandrashekhar Babu > (https://www.linkedin.com/in/chandrashekarbabu?authType=name&authToken=WHf > d&trk=wonton-desktop). > He is the best training I have ever come across. [...] +1. I know him personally and

Re: [BangPypers] Tools/libraries to determine the call graph(call flow) of an python program (module/package)

2016-01-12 Thread Noufal Ibrahim KV
On Tue, Jan 12 2016, ashish makani wrote: > thanks & true Noufal, but 2 points : > > 1. i imagine this is a fairly common usecase > you are given some source python codebase , X which is moderately complex > > i just want to give X & some typical args which X takes, to a > tool/library, so i get a

Re: [BangPypers] Tools/libraries to determine the call graph(call flow) of an python program (module/package)

2016-01-12 Thread Noufal Ibrahim KV
On Tue, Jan 12 2016, ashish makani wrote: [...] > Is there a python library/tool/module , to which i give input the start > point of X, x.py > and the input arguments, arg1, arg2, ..., argn I once needed something like this but went about it statically using this http://code.activestate.com/reci

Re: [BangPypers] Call for proposals PyDelhi Conference

2016-01-11 Thread Noufal Ibrahim KV
On Mon, Jan 11 2016, yogesh gupta wrote: > Does the event happens in mumbai anytime of the year ? [...] If you know sufficient Pythonistas in Mumbai, you should try to conduct a small scale conference by yourself. Lots of regional events is a good thing. :) -- Cordially, Noufal http://nibrahim.

Re: [BangPypers] Python comparisons

2015-12-05 Thread Noufal Ibrahim KV
On Sat, Dec 05 2015, Gora Mohanty wrote: [...] > Maybe because that was the historical way that C did it? I agree that > the Python 3 exception makes more sense. [...] We can only guess but you'll have to explicitly code this in and I can't think of any situation where it would make sense. -

Re: [BangPypers] Python comparisons

2015-12-05 Thread Noufal Ibrahim KV
On Sat, Dec 05 2015, Anand Chitipothu wrote: [...] > Thats why you should use Python 3. Here is what you get with Python 3. [...] Yet another reason to move. I'm still curious why they did it the other way in 2.x though. -- Cordially, Noufal http://nibrahim.net.in __

[BangPypers] Python comparisons

2015-12-05 Thread Noufal Ibrahim KV
So I came across this today.. >>> class Number(object): ...def __init__(self, n): ... self.n = n ... >>> m = Number(10) >>> n = Number(5) >>> >>> m < n True This is documented like so > If no __cmp__(), __eq__() or __ne__() operation is defined, class > instances are compared by obj

Re: [BangPypers] Zendesk

2015-11-25 Thread Noufal Ibrahim KV
On Wed, Nov 25 2015, ashish makani wrote: > Weird. > I don't see such an error. > > Maybe some side effect of your mail program ? [...] Yup. Looks like it's just me. -- Cordially, Noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers

[BangPypers] Zendesk

2015-11-24 Thread Noufal Ibrahim KV
Is "in...@surendran.zendesk.com" subscribed to the list? I get an automated reply for each and every email that comes on this list from that address. If others see something similar, please remove the address from the list roster. -- Cordially, Noufal http://nibrahim.net.in _

Re: [BangPypers] Funding FOSS through CSR

2015-11-20 Thread Noufal Ibrahim KV
On Sat, Nov 21 2015, Harsh Gupta wrote: [...] > So, what do you think about it? [...] I'm sceptical of organisations and much prefer that companies directly hire people to work on free software rather than first make x, then donate a small fraction of x to some organisation who then donate a f

Re: [BangPypers] Life lessons shared by Jesse Noller

2015-10-29 Thread Noufal Ibrahim KV
On Fri, Oct 30 2015, Gora Mohanty wrote: [...] > OK, we will have to agree to disagree, Incidentally, this was posted > to the bangpypers list which is explicitly devoted to Python, and not > to the Pycon list. Yeah. I meant to say python but mistyped it. [...] -- Cordially, Noufal http://n

Re: [BangPypers] Life lessons shared by Jesse Noller

2015-10-29 Thread Noufal Ibrahim KV
On Thu, Oct 29 2015, Gora Mohanty wrote: [...] > With all due respect to Mr. Noller, the article is not germane to this > list. Please refrain from off-topic posts. [...] Perhaps not completely relevant to PyCon but it is, I think, useful to many people who are putting in time and energy to ke

Re: [BangPypers] Online communication channel

2015-08-15 Thread Noufal Ibrahim KV
On Sun, Aug 16 2015, kracekumar ramaraju wrote: >> >> [...] >> "Surely people who "want to participate and contribute" ..." Let's not >> limit these conversations to only those who want to code. >> >> > +1. This will make huge difference. > > Significant amount of users are on windows and lot pref

Re: [BangPypers] Online communication channel

2015-08-15 Thread Noufal Ibrahim KV
On Sun, Aug 16 2015, kracekumar ramaraju wrote: [...] > AFAIK having apps in all platforms helps users to stick to the > conversation and get notification. How awesome will it be if someone > asks a question and gets an answer after 5 hours and notified for it. [...] Kind of like a mailing lis

Re: [BangPypers] Online communication channel

2015-08-15 Thread Noufal Ibrahim KV
On Sun, Aug 16 2015, sankarshan wrote: [...] > An anecdote_of_one: a reason Slack or, Scrollback like services are > often preferred over IRC/email is because of the asynchronous nature > of request-response. For example, you seek some answer and unless you > are logged in, the responses will not

Re: [BangPypers] Online communication channel

2015-08-15 Thread Noufal Ibrahim KV
On Sat, Aug 15 2015, kracekumar ramaraju wrote: [...] > Biggest problem with IRC is to on board new comers. The learning curve is > steep for normal tech users. > It only makes life for already acquainted users easier not for new comers. > It hardly takes 5-15 minutes get new person to get used

Re: [BangPypers] Python script to open hyper terminal and send password text file

2015-08-14 Thread Noufal Ibrahim KV
On Fri, Aug 14 2015, Python Consultant wrote: > Hi Guys, > > I am writing a script to open hyper terminal and send password file for > serial port reprocessing. > > using subprocess.Popen i am able to open hyper terminal > > >>> subprocess.Popen(["Hyperterminal path", "saved session pa

Re: [BangPypers] Connecting developers and companies

2015-07-20 Thread Noufal Ibrahim KV
I still think it's a worthwhile experiment and should be tried. If things go awry, it can be cancelled. -- Cordially, Noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Connecting developers and companies

2015-07-19 Thread Noufal Ibrahim KV
On Mon, Jul 20 2015, vijay kumar wrote: [...] > Am one among them hence i want to see it continue to be what it is > today. [...] That's great and I'm sure it'll get better. My comments were just my own thoughts. -- Cordially, Noufal http://nibrahim.net.in ___

Re: [BangPypers] Connecting developers and companies

2015-07-19 Thread Noufal Ibrahim KV
On Mon, Jul 20 2015, vijay kumar wrote: [...] > We expect companies to be alteast be active in community in share knowledge > rather than just coming for job posting announcement. Companies are not interested in "sharing knowledge". They're interested in hiring and making money as it should be.

Re: [BangPypers] Connecting developers and companies

2015-07-19 Thread Noufal Ibrahim KV
On Sun, Jul 19 2015, Deep Sukhwani wrote: > One major concern of all is that people showing up on meetups ONLY > with an agenda of getting a chance to speak with employers. True but I think this distinction between "community" and "companies" is not as clear cut as it's made out to be. Companies

Re: [BangPypers] Connecting developers and companies

2015-07-19 Thread Noufal Ibrahim KV
On Sun, Jul 19 2015, kracekumar ramaraju wrote: [...] > There was a suggestion of having 10 minutes slot at the end of the meetup > where companies can speak about them and openings for 2 minutes. +1 atleast as an experiment. Companies are part of the "community". [...] -- Cordially, Noufal h

Re: [BangPypers] real use case of gevent context switch gevent.sleep(0)

2015-06-21 Thread Noufal Ibrahim KV
On Sun, Jun 21 2015, anu sree wrote: [...] > This code has two pause (gevent.sleep(0)), in Consumer.start and > Worker.run. Here control goes to Worker.run when Consumer.start > pauses and Consumer.start gets control back when Worker.run > pauses. There may be benefit from this switching, but I

Re: [BangPypers] real use case of gevent context switch gevent.sleep(0)

2015-06-20 Thread Noufal Ibrahim KV
On Sat, Jun 20 2015, anu sree wrote: > Hi, > > I have seen an example of gevent context switch > http://sdiehl.github.io/gevent-tutorial/#synchronous-asynchronous-execution > > Could you please give some real use case with example. > It would be fine If you can share link of github project which u

Re: [BangPypers] Anyone who has worked on Lamson?

2015-05-27 Thread Noufal Ibrahim KV
On Wed, May 27 2015, Ramdas S wrote: > Noufal, > > I want to use this for setting up an interim SMTP server which based > on certain rules should decide whether the mails need to go through > the normal corporate server, or should go through an alternate SMTP > server. This is primarily to reduce

Re: [BangPypers] Anyone who has worked on Lamson?

2015-05-27 Thread Noufal Ibrahim KV
On Wed, May 27 2015, Ramdas S wrote: > Need to have an offline call, if they have time and if available, to > take a quick decision to take a call on to shelve or use this tool or > build somethig from scratch... [...] I wrote an email interface to a ticketing system using lamson once. It's ve

Re: [BangPypers] fresher jobs help

2015-04-20 Thread Noufal Ibrahim KV
On Mon, Apr 20 2015, Abishek wrote: > Myself Abishek ,2015 B.E passout (computer science and engineering ) > fresher, looking for python based jobs in bangalore.If anyone know job > opportunities pls let me know. I am so much interested in python > programming,networks and security... [...] Try

Re: [BangPypers] April Meetup

2015-04-12 Thread Noufal Ibrahim KV
On Sun, Apr 12 2015, kracekumar ramaraju wrote: [...] > No, it is third saturday day of the month, following same tradition. > Unfortunately, this time we had hiccup with venue host. [...] Cool. -- Cordially, Noufal http://nibrahim.net.in ___ BangPy

Re: [BangPypers] April Meetup

2015-04-11 Thread Noufal Ibrahim KV
On Sun, Apr 12 2015, kracekumar ramaraju wrote: > Hi > > We're hosting April meetup on 25 in IBM Accelerator, Domlur. RSVP is open > http://www.meetup.com/BangPypers/events/178049472/. [...] Krace, Is it always on the last Saturday of the month? Thanks. -- Cordially, Noufal http://nib

Re: [BangPypers] [JOBS] pythonistas with Django + JS + HTML5 + WS experience

2015-03-07 Thread Noufal Ibrahim KV
On Sat, Mar 07 2015, HHB wrote: > Hi Guys, > > Here’s more info: based on what people asked: > > 1. It’s an established product company, so competitive pay. (I am no > HR though) [...] Surely it's simpler just mention the name of the company? Why all this cloak and dagger secrecy? :) -- Cord

Re: [BangPypers] 3rd party module, pure python or C dependent

2015-01-30 Thread Noufal Ibrahim KV
On Fri, Jan 30 2015, Nitin Kumar wrote: > Is there a way (command/tool) to find if a third party which i want to use > is a pure python or it got c code which need to be compiled while > installing. > > ex: numpy requires C code compilation. Can we know it before hand. I think looking into the s

Re: [BangPypers] Python training material

2015-01-19 Thread Noufal Ibrahim KV
.pdf > > On Tue, Jan 20, 2015 at 11:47 AM, Noufal Ibrahim KV > wrote: > >> I wrote this for an early training I conducted. It's out of date though >> and needs fixing but you might be able to get something out of it. >> http://nibrahim.net.in/self-defence/ >

Re: [BangPypers] Python training material

2015-01-19 Thread Noufal Ibrahim KV
On Tue, Jan 20 2015, 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. I wrote this for an early training I conducted. It's out of date though and need

Re: [BangPypers] Terrible choices: MySQL. What is the way ahead?

2014-12-30 Thread Noufal Ibrahim KV
On Tue, Dec 30 2014, Gora Mohanty wrote: > On 30 December 2014 at 19:32, Noufal Ibrahim KV > wrote: > [...] >> I can't offer anything normative but in my experience (and it's a little >> dated since I don't use mySQL for anything these days), mySQL

Re: [BangPypers] Terrible choices: MySQL. What is the way ahead?

2014-12-30 Thread Noufal Ibrahim KV
On Tue, Dec 30 2014, Okan bhan wrote: [...] > My major reason to continue will be no exposure to PostgreSQL. And > after struggling so much with MySQL, if I use Postgre I will be in a > domain of unknown again. Can anyone please point to articles comparing > latest version of both or share their

[BangPypers] Python books online (was: BangPypers Digest, Vol 88, Issue 21)

2014-12-29 Thread Noufal Ibrahim KV
On Mon, Dec 29 2014, piyush singhai wrote: > Hello, > > You can download from here. > > python essential reference 3rd edition > > https://microembedded.googlecode.com/files/Python_Essential_Reference_3rd_Edition.pdf [...] This looks like it's being hosted in violation of copyright. Please don't

Re: [BangPypers] mysqlclient not getting installed in python3 env

2014-12-28 Thread Noufal Ibrahim KV
On Sun, Dec 28 2014, Mukesh Yadav wrote: [...] > I have installed all the prerequisite i.e, python-dev. You probably need python3-dev for Python3. -- Cordially, Noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers@python.org https://

Re: [BangPypers] Python certifications in India

2014-12-23 Thread Noufal Ibrahim KV
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. CCNA's are the lowest rung as far as I know. They're fairly easy to get too. CCIEs are very hard to get and the ones I k

Re: [BangPypers] Python certifications in India

2014-12-21 Thread Noufal Ibrahim KV
On Mon, Dec 22 2014, 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 certificate. >

Re: [BangPypers] List of n but same objects

2014-12-11 Thread Noufal Ibrahim KV
On Thu, Dec 11 2014, Rajiv Subramanian M wrote: [...] > Question: > 1. How in the first case i.e [iter(x)] * 3 creates a list of 3 but the > same objects? The * operator when applied to a list (or any sequence type) is a repetition. You can see the code for list_repeat here [1]. The line I'v

Re: [BangPypers] [Inpycon] [X-Post] Diversity

2014-11-18 Thread Noufal Ibrahim KV
On Tue, Nov 18 2014, Vanitha Shanmugam wrote: [...] > We have the mailing list ( > http://lists.pssi.org.in/mailman/listinfo/diversity) created. This > mailing list only for female pythonistas and the archives are not > public so the discussions are kept private. [...] There is a Python diversi

Re: [BangPypers] about python code

2014-11-17 Thread Noufal Ibrahim KV
On Mon, Nov 17 2014, narayan naik wrote: > hi, >when I am running face detection code ,I am getting this error. > [...] This is a very basic question. You should go probably go through a python tutorial before attempting this. I'm presuming that you actually want to do something with opencv.

Re: [BangPypers] Does Python have lexical scoping?

2014-11-09 Thread Noufal Ibrahim KV
On Sun, Nov 09 2014, Abhishek L wrote: [...] > Here x was a mutable variable, doing a similiar ML construct, ie > > val x = ref 2 > fun f y = !x + 2 > > f 10 ; evals to 12 > x := 10 > f 10 ; evals to 20 > > So this becomes a problem of closures over mutable variables? ie

[BangPypers] Does Python have lexical scoping?

2014-11-08 Thread Noufal Ibrahim KV
Okay, I've been struggling through the proglang course on coursera and this thing came up val x = 2; fun f y = x + y; The second line creates a function that adds `x` to it's argument. Since ML is statically scoped, this is really a function that adds 2 to its argument. Even if I later cr

[BangPypers] eval (was: BangPypers Digest, Vol 86, Issue 16)

2014-10-27 Thread Noufal Ibrahim KV
Please ignore my earlier reply to your email. I hit send by accident. Please edit the subject line when you're replying to a digest. On Mon, Oct 27 2014, Okan bhan wrote: [...] >> 2. A mapping object is similar to a dictionary. It should >>return the actual object if you try to access it.

Re: [BangPypers] BangPypers Digest, Vol 86, Issue 16

2014-10-27 Thread Noufal Ibrahim KV
On Mon, Oct 27 2014, Okan bhan wrote: > Hi Noufal, > > Thanks for responding and helping me explaining these. I see lots of my > doubts are clear, except last (c). My explanations are inline. > >> A simple implementation of this is: >> > >> > class SimpleMapping: >> > def __init__(self, items

Re: [BangPypers] Evaluating a string against mapping in python.

2014-10-26 Thread Noufal Ibrahim KV
On Sun, Oct 26 2014, Okan bhan wrote: [...] > A simple implementation of this is: > > class SimpleMapping: > def __init__(self, items): > self._items = items > > def __getitems__(self, subitem): > print('*' * 20) > for item in self._items: > if subitem in item: > re

Re: [BangPypers] Return values

2014-10-03 Thread Noufal Ibrahim KV
On Thu, Sep 25 2014, Saager Mhatre wrote: [...] > Alternatively, would it be possible to model Stats/StatsList as a composite > hierarchy (potentially with Courtesy Implementations > )? [...] I didn't know about Courtesy implementation

Re: [BangPypers] Return values

2014-10-03 Thread Noufal Ibrahim KV
On Thu, Sep 25 2014, Saager Mhatre wrote: [...] > Alternatively, would it be possible to model Stats/StatsList as a composite > hierarchy (potentially with Courtesy Implementations > )? [...] I didn't know about Courtesy implementation

Re: [BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
On Sat, Sep 20 2014, Sriram Karra wrote: [...] > Anand's solution is good. But with the added context you have given - why > are you not creating classes for CPU and Machine, with get_stats() and > set_stats() methods for them? Something like: This is a higher level abstraction and something I m

Re: [BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
On Sat, Sep 20 2014, Sriram Karra wrote: [...] > But your problem can be addressed by naming the functions after what they > do - after all your consolidate function does something tangible other than > just return a different type of data. [...] Let me give you a specific example. The psuti

Re: [BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
On Sat, Sep 20 2014, Sriram Karra wrote: [...] > Having a method do two different things based on a flag is not > a clean answer to anything. [...] That's a useful rule of thumb. Thank you. -- Cordially, Noufal http://nibrahim.net.in ___ BangPyper

Re: [BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
On Sat, Sep 20 2014, Sriram Karra wrote: [...] > I think the comparison is not strictly apples to apples. In case of sort > ascending / descending flag parameterises the same sort algorithm. In your > case, you do some additional things (loop through and add up stuff, > perhaps) based on the val

Re: [BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
On Sat, Sep 20 2014, Vivek Ramakrishna wrote: > Hi Noufal > > Why not create two methods, get_stats() and get_stats_list(). Both can > share logic in a common function which takes the consolidate flag - meaning > your logic is localised to one point only. It makes for more readable code > when cal

Re: [BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
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. > Something like: > > class StatsList(list): > def consolidate(self): >

Re: [BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
On Sat, Sep 20 2014, Senthil Kumaran wrote: [...] > One option to me looks like, don't have consolidate as parameter for > this function, but do the operation outside. Like providing a > function called get_consolidated_stats, which will call get_stats and > provide the consolidated result. > >

Re: [BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
On Sat, Sep 20 2014, Harish Vishwanath wrote: > Couple of approaches: > > - Break the api into two. get_stats and get_stats_consolidated. This way, > the caller who doesn't know what is your default value of "consolidated" > argument is will not be confused. This explodes the API. It's similar to

[BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
I've recently come across something that I'd like some comments on. It's a stylistic issue so not something that there's an objective answer for. Nevertheless. I have a function that gets some statistics from some source and returns it to the user as a Stats object. Let's call it get_stats. This

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

2014-09-13 Thread Noufal Ibrahim KV
On Sun, Sep 14 2014, sayantan bhattacharya wrote: > Hello all, > > I work at TCS and they didn't know about Python either. Now that I > have written a script that does the log monitoring easy for the > Application support guys, they have accepted the language. But there > seems to be a resistance

Re: [BangPypers] Mailing list etiquette

2014-08-07 Thread Noufal Ibrahim KV
On Mon, Aug 04 2014, Jeffrey Jose wrote: [...] > ​I'm curious how do you read your mails? Noufal, if my memory serves me > right you're an emacs person. So emacs perhaps? > > I'm in the vim camp, so I use my browser for email.​ I download my email when I'm online and read them using either mutt

Re: [BangPypers] how to override sys.stdin

2014-08-04 Thread Noufal Ibrahim KV
On Mon, Aug 04 2014, Nitin Kumar wrote: > thats a typo error. > > in simple term my question would be: How to override sys.stdin. [...] The StringIO module gives you file like objects into which you can put data. They might work as substitues for sys.std* -- Cordially, Noufal http://nibrahim.n

Re: [BangPypers] how to override sys.stdin

2014-08-04 Thread Noufal Ibrahim KV
On Mon, Aug 04 2014, Nitin Kumar wrote: > Hi All, > > is there a way i can override raw_input or input function. Create a function like def my_input(prompt): # Your code here and then assign it to raw_input raw_input = my_input. [...] -- Cordially, Noufal http://nibrahim.net.in _

Re: [BangPypers] Mailing list etiquette

2014-08-04 Thread Noufal Ibrahim KV
On Mon, Aug 04 2014, Jeffrey Jose wrote: > I agree with almost all of it, except for these 2. > > 1. No HTML emails I don't like HTML emails because usual textual matter doesn't need it. It simply bloats things and if the renderer your client is using doesn't have some feature that the sender use

Re: [BangPypers] How to Distribute Commercial Python Applications

2014-08-03 Thread Noufal Ibrahim KV
On Mon, Aug 04 2014, Deepak Tripathi wrote: > Hi, > How to distribute commercial python application without giving source code > to the customer, dev platform in Unix (FreeBSD), Python2.x. [...] This is what I did. http://stackoverflow.com/questions/5661385/packaging-and-shipping-a-python-libr

[BangPypers] [Commercial] Mentoring course using Python

2014-06-11 Thread Noufal Ibrahim KV
Hello everyone, One of the reasons I moved out of Calicut was to try to start a hacker school like setup in North Kerala. There's plenty of colleges and talented students there but many of them lack direction and motivation. I've found myself a little place and am offerring a 3 month

Re: [BangPypers] Restart when python script hangs

2014-06-02 Thread Noufal Ibrahim KV
On Mon, Jun 02 2014, Rahul Gopan wrote: > Hello, > > When I run a python script it hangs at random places. Is there any way to > identify when the script hangs and to resume it automatically. When I see > that it is not responding i do ^Z (Ctrl -Z) to stop and then use fg command > to start it aga

[BangPypers] Replying to digests (was: BangPypers Digest, Vol 82, Issue 1)

2014-06-02 Thread Noufal Ibrahim KV
On Mon, Jun 02 2014, JERIN JACOB wrote: > Dear friends > > thanks for all your supports [...] Please reply to individual threads rather than to a digest. It's hard to follow the conversations. -- Cordially, Noufal http://nibrahim.net.in ___ BangPypers

Re: [BangPypers] introduction

2014-06-01 Thread Noufal Ibrahim KV
On Sun, Jun 01 2014, JERIN JACOB wrote: > Dear friends > > I am new to the user group and also python,my main aim to study the > phyton will the help of these group [...] You're very welcome. This is what I recommend to most people who want to learn python from scratch http://learnpythonthe

Re: [BangPypers] Redefine concepts, Rewrite Books

2014-05-27 Thread Noufal Ibrahim KV
On Tue, May 27 2014, Venkatraman S wrote: > https://github.com/django/django/pull/2692 [...] There should be a button to "not allow comments" on a github pull request. That whole "thread" is a waste of time. -- Cordially, Noufal http://nibrahim.net.in __

Re: [BangPypers] Fwd: Python script hangs after using logging module

2014-05-27 Thread Noufal Ibrahim KV
On Tue, May 27 2014, Rahul Gopan wrote: > -- Forwarded message -- > From: Rahul Gopan > Date: Tue, May 27, 2014 at 12:06 PM > Subject: Re: [BangPypers] Python script hangs after using logging module > To: Noufal Ibrahim KV > > > 1. Used subprocess.che

Re: [BangPypers] Python script hangs after using logging module

2014-05-26 Thread Noufal Ibrahim KV
On Tue, May 27 2014, Rahul Gopan wrote: > #!/usr/local/bin/python2.7 > import commands > import subprocess > items = commands.getoutput('COMMAND| wc -l') > print items > > -- Works -- > > #!/usr/local/bin/python2.7 > import commands > import subprocess > import logging > logging.basicConfig(fi

Re: [BangPypers] Multiple return values from a function : Where to draw the line ?

2014-05-23 Thread Noufal Ibrahim KV
On Fri, May 23 2014, kracekumar ramaraju wrote: > Rohit > > Probably ease of writing may be right here. It's also more future proof. An attribute can be replaced by a property which implements access controls and other things without breaking API contracts. It's harder to do that while subscript

Re: [BangPypers] Multiple return values from a function : Where to draw the line ?

2014-05-23 Thread Noufal Ibrahim KV
On Fri, May 23 2014, kracekumar ramaraju wrote: > You can use namedtuple. > > from collections import namedtuple > Person = namedtuple('Person', ['foo', 'bar', 'baz']) > p = Person(foo='foo', bar='bar', baz='baz') [...] Much better although with namedtuple, the attributes are fixed aren't they?

Re: [BangPypers] Multiple return values from a function : Where to draw the line ?

2014-05-23 Thread Noufal Ibrahim KV
On Fri, May 23 2014, Mandar Vaze / मंदार वझे wrote: > Currently I came across the code that returned 9 values (return statement > spanned 5 lines due to pep8 limitation of 79 characters per line) > > The function returns various values that are used by the template to render > HTML > > To give you

Re: [BangPypers] Multiple return values from a function : Where to draw the line ?

2014-05-23 Thread Noufal Ibrahim KV
On Fri, May 23 2014, Rohit Chormale wrote: > How is it if you use DataContainer class & set attributes of that class. > Something like, > > class Data(object): > > def __init__(self, **kwargs): > object.__setattr__(self, 'attribs', kwargs) > > def __getattr__(self, item): > if

Re: [BangPypers] Raising issue WRT Bangpypers mailing list

2014-05-22 Thread Noufal Ibrahim KV
Let's just let this pass? I, for one, don't have the time or interest to handle these kinds of things. If any of the people want to discuss this on the list, please do but I don't really want to spend any of my time on it. -- Cordially, Noufal http://nibrahim.net.in

Re: [BangPypers] Raising issue WRT Bangpypers mailing list

2014-05-22 Thread Noufal Ibrahim KV
Just for context, here's the email where Danny says that he was not offended by the first email and didn't interpret it in the way that Pratham did https://mail.python.org/pipermail/bangpypers/2014-May/010161.html and my follow up reply saying that I didn't mean it that way either. https://mail.p

Re: [BangPypers] Who do I contact in regards to PyCon India sponsorship?

2014-05-19 Thread Noufal Ibrahim KV
On Mon, May 19 2014, Pratham Gadre wrote: > The message was not targetted at one person :-) [...] The occasional arrogance and lack of good faith will be there. It's part of getting things done. -- Cordially, Noufal http://nibrahim.net.in ___ BangP

Re: [BangPypers] Who do I contact in regards to PyCon India sponsorship?

2014-05-18 Thread Noufal Ibrahim KV
in, thank you for making my feelings a priority. > > Sincerely, > > Daniel Greenfeld > > > On Sun, May 18, 2014 at 9:25 PM, Pratham Gadre wrote: > >> On 5/17/14, Noufal Ibrahim KV wrote: >> > On Sat, May 17 2014, Daniel Greenfeld wrote: >> > >> >

Re: [BangPypers] Who do I contact in regards to PyCon India sponsorship?

2014-05-17 Thread Noufal Ibrahim KV
On Sat, May 17 2014, Daniel Greenfeld wrote: > I've looked all over the site and can't figure out how to submit a request > for sponsoring the conference. I would love a contact point! :-) The link is in the leftmost "square" in the middle of the site (Call for sponsors). It looks quite obvious t

Re: [BangPypers] Event based programming

2014-05-02 Thread Noufal Ibrahim KV
On Fri, May 02 2014, Nitin Kumar wrote: > Hi All, > > libevent and libisc2 are C based event-driven libraries. I need wrapper for > such libraries. > > We need to use asynchronous callback functionality from these > libraries. I'm not a big fan of callback based programming. We use gevent in our

Re: [BangPypers] Imaging Library: Pillow vs PIL, any insights?

2014-04-16 Thread Noufal Ibrahim KV
On Thu, Apr 17 2014, Vineet Panchbhaiyye wrote: > Is there any particular reason you are not considering opencv. > If not, check out opencv. Aren't they different? OpenCV is a computer vision. PIL/Pillow are still image processing. [...] -- Cordially, Noufal http://nibrahim.net.in ___

Re: [BangPypers] Iterators

2014-04-01 Thread Noufal Ibrahim KV
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 keep a small core. > Anybody want to join efforts to write a generic library to fill this > gap? Damn you. I googled for this. This happens to

Re: [BangPypers] JSON PARSER

2014-03-21 Thread Noufal Ibrahim KV
On Fri, Mar 21 2014, lokesh bobby wrote: > Hi Prashant, > > I have 2 concerns here > > 1. As I mentioned earlier, my file consists of more than 2 lac > lines. So it is not possible to load that many number of lines inside > json.loads(). We need to pass the file, which itself is a limitation > as

  1   2   >