Re: [BangPypers] CBSE to teach introduction to python in class 11 and 12

2013-06-23 Thread Nitin Kumar
Hi All, I even started writing a book for the same long back. http://www.slideshare.net/nitinnitp/python-xi-copy But the bad news came by that time. CBSE announced that now it not only Python, we can opt between Python and C++ after big protest from schools. DAV already announced they will go wi

Re: [BangPypers] CBSE to teach introduction to python in class 11 and 12

2013-06-24 Thread Nitin Kumar
lly updated. The site will be hosted at RTD: > https://readthedocs.org/ > > I will update the README.txt file with these details. > > Let me know, if you have any other ideas. > > > > > On Sun, Jun 23, 2013 at 6:24 PM, Nitin Kumar wrote: > > > Hi All, > > > >

Re: [BangPypers] Volunteer to conduct workshop on August 24 at SJBIT, Bangalore

2013-08-21 Thread Nitin Kumar
What will be the timing as its a working day? Nitin K On Tue, Aug 20, 2013 at 7:58 PM, vijay wrote: > Hi , >We are looking for 2 more volunteer to conduct workshop > at SJBIT,Bangalore on august 24. it's a basic python workshop . >College will take care of transportation . > > With T

[BangPypers] Python workshop at svce, Bangalore held on 21st Sept

2013-09-22 Thread Nitin Kumar
Hi All, We visited Sri Venkateshwara College of Engineering - Bangalore this saterday (21st Sept). There were around 130 participants. Please find some snaps of the same. https://picasaweb.google.com/111252001459627038611/PythonWorkshop?authuser=0&authkey=Gv1sRgCPXk2N_u6drFnwE&feat=directlink

Re: [BangPypers] [JOB] DreamWorks Dedicated Unit, Technicolor India: Pipeline Technical Director (TD)

2013-10-15 Thread Nitin Kumar
Hi Sneha, Can I get the feedback from the panel. Just want to know where is my process or I am out of the Queue itself :) Anticipating your reply. Nitin K On Wed, Sep 18, 2013 at 2:18 PM, Venkatraman Sneha < sneha.venkatra...@technicolor.com> wrote: > Openings at DreamWorks Dedicated Unit Tech

Re: [BangPypers] [JOB] DreamWorks Dedicated Unit, Technicolor India: Pipeline Technical Director (TD)

2013-10-15 Thread Nitin Kumar
Sorry for my last mail. I wish reply would have gone to the originator and not to the group, the way it used to work earlier. :( Sorry for spamming. Nitin K On 15-Oct-2013 4:42 PM, "Nitin Kumar" wrote: > Hi Sneha, > > Can I get the feedback from the panel. Just want

Re: [BangPypers] list question

2013-12-05 Thread Nitin Kumar
long but this too works :) >>> p=[] >>> x=[['cat','NM123',12],['cat','NM234',12], ['dog', 'NM56',65]] >>> import copy >>> def fn(a,b): if len(a)==3 and a[0]==b[0] and a[-1]==b[-1] and a[1]!=b[1]: a.insert(-1,b[1]) p.append(a) else: p.append(b) return p >>> reduce(fn, copy.deepcopy(x)) [['cat', 'N

[BangPypers] class instance getting passed to other class obj creation

2014-03-09 Thread Nitin Kumar
Hi All, I am looking for some better way to implement below scenario. Say there is a class login class login: def __init_(self, user, pwd): - now user uses this class to login a session and then I am using the object of this class being passed to other class. So that other class can use thi

[BangPypers] Query with respect to mock module

2014-03-25 Thread Nitin Kumar
Hi All, I am try to write test case with mocking original libraries. But we have scenario that some time we need this mock but some time we need to create object of original class so that test run on real scenario. Is there a way we can play with mock library or any other way that some time same

[BangPypers] python callback module

2014-04-30 Thread Nitin Kumar
Hi All, I am trying to write a code which talks with C. Is there a module in python which can talk to asynchronous calls. I have done that on windows using pythoncom. but need to do the same on linux Nitin K ___ BangPypers mailing list BangPypers@python

[BangPypers] Event based programming

2014-05-02 Thread Nitin Kumar
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. Nitin K ___ BangPypers mailing list BangPypers@python.org https://mail.python.or

[BangPypers] Python doc using sphinx

2014-05-25 Thread Nitin Kumar
I need to document python code under github repo with Sphinx for auto doc generation. Anyone got good tips & tricks, samples? ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] Test python interpreter

2014-07-08 Thread Nitin Kumar
Hi All, We will have instrumented python in our proprietary OS. Is their a way/tool to test the basic functionality of Python. Nitin K ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] Is there a way to find the import originator?

2014-07-15 Thread Nitin Kumar
Hi All, Say there are 3 files. a.py and b.py uses *import c* (which is the third python file c.py) is there a way we can know inside c.py that whether its a or b who is doing the importing? Nitin K ___ BangPypers mailing list BangPypers@python.org htt

[BangPypers] how to override sys.stdin

2014-08-04 Thread Nitin Kumar
Hi All, is there a way i can override raw_input or input function. I tried with below code but getting error import sys class xyz(object): def readline(self): print 'from fn readline',var sys.stdin = xyz >>> raw_input('hi:') hi: Traceback (most recent call last): File "", line 1,

Re: [BangPypers] how to override sys.stdin

2014-08-04 Thread Nitin Kumar
thats a typo error. in simple term my question would be: How to override sys.stdin. Nitin K On Mon, Aug 4, 2014 at 2:44 PM, Dhruv Baldawa wrote: > On Mon, Aug 4, 2014 at 2:38 PM, Nitin Kumar wrote: > > > def readline(self): > > print 'from fn readline

[BangPypers] python in news

2014-09-02 Thread Nitin Kumar
http://economictimes.indiatimes.com/tech/software/programming-language-python-yet-to-find-place-in-teaching-curriculum-in-india-despite-its-popularity/articleshow/41464925.cms Nitin K ___ BangPypers mailing list BangPypers@python.org https://mail.python.

[BangPypers] PyQt Query

2014-11-23 Thread Nitin Kumar
code: QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.xyz) QtCore.QMetaObject.connectSlotsByName(DeviceConnect) def xyz(self): print 'pqr' when pushButton is clicked xyz is not getting called. but if i put xyz function outside class

[BangPypers] python new class embedding in C++

2014-11-25 Thread Nitin Kumar
say we have python class: class XYZ(object): --- PyObject* instance = PyInstance_New(klass, NULL, NULL); above c++ embedding is not working. but if we convert python class to old style it work. What need to be taken care? Nitin K ___ BangPyper

[BangPypers] combine multiple modules in one

2014-12-17 Thread Nitin Kumar
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. So do i need to copy tar.gz for each abc, pqr, xyz and install

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

2015-01-29 Thread Nitin Kumar
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. Nitin K ___ BangPypers mailing li

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

2015-02-01 Thread Nitin Kumar
earch/label/python > xtopdf posts: http://jugad2.blogspot.com/search/label/xtopdf > xtopdf: "a Swiss army knife for PDF creation" > xtopdf on Slid.es: http://slid.es/vasudevram/xtopdf > xtopdf on Google Slides: http://bit.ly/xtopdf-google-slides > On the Python Wiki: https

Re: [BangPypers] Problem in setup.py file

2015-03-12 Thread Nitin Kumar
Hi Priyal, The content posted of your setup was needed to understand the issue. So ignore mailing etiquette replies :) If you install using "pip install ***" it will take care of what you want to achieve using your setup.py content. python setup.py install will generally create .egg (if it can)

Re: [BangPypers] PyCon India 2015 Call for Proposals

2015-03-14 Thread Nitin Kumar
Hi All, Yesterday I proposed one talk http://in.pycon.org/cfp/pycon-india-2015/proposals/growing-popularity-of-python-in-networking-data-center-companies/ but if check out at: http://in.pycon.org/cfp/pycon-india-2015/proposals/ it shows just 2 and not listing mine. Is this a bug or it has been r

Re: [BangPypers] PyCon India 2015 Call for Proposals

2015-03-14 Thread Nitin Kumar
My bad. Thanks Krace. Nitin K On Sat, Mar 14, 2015 at 4:06 PM, kracekumar ramaraju < kracethekingma...@gmail.com> wrote: > No, you must have saved the proposal in draft mode. Make it public. > > On Sat, Mar 14, 2015 at 3:57 PM, Nitin Kumar wrote: > > > Hi All, > >

Re: [BangPypers] ImportError: cannot import name 'unquote'

2015-03-20 Thread Nitin Kumar
Which version of Python are you using. Older version (<2.6) of Python urllib didn't had unquote. Nitin K On Fri, Mar 20, 2015 at 8:43 PM, Nimish Dalal wrote: > Guys, I am new to python. > I am using ipython notebook on windows 7 platform. > > I get an error when I mention "from urllib import un

[BangPypers] Fwd: [psf-members-ann] PSF Board of Directors Election Results

2015-06-02 Thread Nitin Kumar
Congrats kushal. -- Forwarded message -- From: "M.-A. Lemburg" Date: 02-Jun-2015 7:08 PM Subject: [psf-members-ann] PSF Board of Directors Election Results To: "PSF Members Announcements" Cc: [On behalf of Ian Cordasco, our election administrator...] Hey all, Yesterday I tallie

Re: [BangPypers] Fwd: [psf-members-ann] PSF Board of Directors Election Results

2015-06-02 Thread Nitin Kumar
Ohh. My Bad Nitin Kr On Wed, Jun 3, 2015 at 11:43 AM, Anand B Pillai wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Tuesday 02 June 2015 07:28 PM, Nitin Kumar wrote: > > Congrats kushal. > > I think you didn't read the article all the way to the en

Re: [BangPypers] Connecting developers and companies

2015-07-20 Thread Nitin Kumar
> > Many companies have sponsored space and snacks without expecting any thing in return. So in such case isn't it our responsibility to give a chance (to speak about opportunity) to the company hosting the workshop. Even I feel some of the audience would be quite interested in them (after having

Re: [BangPypers] generating cisco config using templates?

2015-09-30 Thread Nitin Kumar
Hi Atul, You can refer below link. This is an example which is used to configure Juniper devices. the code is using YAML and Jinja2 as you are looking for. https://github.com/vnitinv/pyez-examples/blob/master/6_load_temp_conf.py corresponding yaml and jinja2 template can be found at https://gith

[BangPypers] Anand S at cnnibn

2016-05-18 Thread Nitin Kumar
Today evening just noticed Anand with Arnav at cnn ibn. Check my below tweet. https://twitter.com/nitinsview/status/732956770495123457 Someone might quote this as off topic ;) but I was sure about posting it over this alias as uses python to do all those plotting used on back screen _

Re: [BangPypers] Anand S at cnnibn

2016-05-18 Thread Nitin Kumar
Wednesday 18 May 2016, Gora Mohanty wrote: > On 18 May 2016 at 21:05, Nitin Kumar > > wrote: > > > > Today evening just noticed Anand with Arnav at cnn ibn. Check my below > tweet. > > > > https://twitter.com/nitinsview/status/732956770495123457 > > > &

Re: [BangPypers] [OT] Anand S at cnnibng

2016-05-18 Thread Nitin Kumar
I totally agree with these terms "This group is for discussions related to the Python programming language. We welcome all kinds of discussions related to Python." What exactly about this statement is lacking in clarity? Now what was presented @cnn had been also demoed at PyCon by Anand. http

Re: [BangPypers] Python Software Foundation

2016-06-01 Thread Nitin Kumar
Congrats :} Nitin Kr On Wed, Jun 1, 2016 at 7:39 PM, Annapoornima Koppad wrote: > Dear All, > > I am one of the Directors of the Python Software Foundation. The results > were out today morning. > > Thanks to one and all who voted for me. > > -- > Thanks and regards, > Annapoornima Koppad > ___

[BangPypers] [JOB] C & Python Developer

2016-07-19 Thread Nitin Kumar
Hi All, My team (@ Juniper Networks) is looking for a candidate with C & Python experience (3+ yrs). Do unicast me your profile if interested. Nitin Kr ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] [Meetup] March IoT Workshop

2017-03-20 Thread Nitin Kumar
56%, This is bad. I really wanted to attend this one but could not make it as I was waitlisted. I think we should charge some minimal amount, say 200rs to register and return it back once they turn up for event. :) So if 75 ppl dont make it, we have 15k to do something for the community. Nitin

Re: [BangPypers] Improving meetup attendance

2017-03-20 Thread Nitin Kumar
I would vote for paying 100rs and let that be used for snacks and goodies for the speaker. Nitin Kr On Mon, Mar 20, 2017 at 9:44 PM, Anand Chitipothu wrote: > On Mon, Mar 20, 2017 at 8:32 PM, kracekumar ramaraju < > kracethekingma...@gmail.com> wrote: > > > Hi > > > > As of today, there are 53

[BangPypers] [JOB] C/C++/5+ yrs exp

2017-11-21 Thread Nitin Kumar
Hi All, My team is looking for a candidate with 5+ year of experience who should be very good in C/C++ with knowledge of Python. refer below link for JD: https://careers.juniper.net/careers/careers/jobdescription.html?jid=937120 Can share the resume with me if interested. Thanks Nitin Kr __

[BangPypers] [JOB] Python/Ansible 6+ exp

2018-01-10 Thread Nitin Kumar
Hi, My team at Juniper Networks is looking for a candidate who is having 6+ year of experience and got a strong knowledge of Python and Ansible/SaltStack. Please unicast me with your resume if interested. Thanks Nitin Kr ___ BangPypers mailing list Ban

Re: [BangPypers] June meet up

2010-06-20 Thread Nitin Kumar
hi Noufal, Can you please send me some mail which expalins pycon and other things in more detail, which i can attach to the mail i am supposed to send to my company higher authority. Thanks in advance. Nitin K On Sun, Jun 20, 2010 at 8:44 PM, Noufal Ibrahim wrote: > It would be a pity if the gr

Re: [BangPypers] Indian Python Software Society

2010-06-20 Thread Nitin Kumar
I want to present some good features from pywinauto and sikuli (which are being developed from python.) that can be used for many of our automation efforts Can i do that? On Sun, Jun 20, 2010 at 11:03 PM, s|s wrote: > Python only forms part of rubrik of technology stack that everyone of > us us

Re: [BangPypers] [X-post] : PyCon India artwork

2010-06-21 Thread Nitin Kumar
hi Noufal, i wrote 2 mails, but couldn't get any response from you. are you getting my mails or not?? Nitin K On Mon, Jun 21, 2010 at 10:03 PM, Noufal Ibrahim wrote: > We have one more badge and it looks quite nice. Keep them coming! :) > > On Mon, Jun 21, 2010 at 4:20 PM, Noufal Ibrahim wro

Re: [BangPypers] list to dictionary problem

2010-06-22 Thread Nitin Kumar
for such things, always try to prefer tuple ex: >>> cache= (('cat',2),('cat',5),('cat',9),('dog',6)) >>> for x,y in cache: print (x,y) cat 2 cat 5 cat 9 dog 6 On Tue, Jun 22, 2010 at 8:43 AM, Senthil Kumaran wrote: > On Tue, Jun 22, 2010 at 02:23:43AM -, Vikram wrote: > > Suppose i have t

Re: [BangPypers] Volunteers to spread the word

2010-06-27 Thread Nitin Kumar
i am also planning to present paper. but couldn't fill in the form as there were many details asked. On Sun, Jun 27, 2010 at 1:48 PM, Anand Balachandran Pillai < abpil...@gmail.com> wrote: > Hi, > > It is nearly two week since we posted the CFP > and we have had only 3-4 responses. So clea

Re: [BangPypers] [Job]: Urgent Opening for Python Professionals in Bangalore

2010-06-28 Thread Nitin Kumar
EFI is also having opening for python exp people of around 2-3 years. On Mon, Jun 28, 2010 at 3:22 PM, Shobhit Nayal < shobhit.na...@abcconsultants.net> wrote: > > > Requirement : Front end & Back end Developers to be based in Bangalore for > an European company. > > Experience 2- 6 Years > > K

Re: [BangPypers] nested list question

2010-07-13 Thread Nitin Kumar
I think you can very well use map function map (function, list1, list2) where in function you can create your desired list. What map will do is it will call function for each element from list1 and list2 (same indexed) and will do the stuff defined in the function. Do let me know if i am close to

[BangPypers] how to delete base class attribute

2010-07-29 Thread Nitin Kumar
Hi all, Say I have 10 functions in base class and I have inherited it in some derived class. But I only want 9 of the base class function to be available in child class. (and I don’t want to make that one class private) class x: def __init__(self): self.a =3 self.b= 4

Re: [BangPypers] how to delete base class attribute

2010-07-29 Thread Nitin Kumar
is not in the > dictionary only 'a' and 'b' exist in the dict that's why it is giving the > attribute error. > > > Sibtey > > -Original Message- > From: bangpypers-bounces+sibtey.mehndi=genpact@python.org [mailto: > bangpypers-bounces+

Re: [BangPypers] how to delete base class attribute

2010-07-31 Thread Nitin Kumar
> > -Original Message- > > From: bangpypers-bounces+sibtey.mehndi=genpact@python.org [mailto: > > bangpypers-bounces+sibtey.mehndi = > > genpact@python.org] On Behalf Of Nitin Kumar > > Sent: Thursday, July 29, 2010 2:18 PM > > To: Bangalore Python Users Gro

[BangPypers] how to handle attribute access

2010-07-31 Thread Nitin Kumar
Hi, I am working on automating some application. In one window say i have two ComboBox, but that window have scroll bar. Only one combo Box is visible at one time. I have functions to handle scroll of window. What i want is that how to handle attributes so that one i want to set some value in th

Re: [BangPypers] string to list query

2010-08-04 Thread Nitin Kumar
Below answer from Navin if good one, to make it more complex :) you can use >>> z 'AT/CG' >>> re.split('[A-Z]/[A-Z]',z) ['A', 'G'] >>> re.search('[A-Z]/[A-Z]',z).group() 'T/C' using these two you can get your answer On Thu, Aug 5, 2010 at 10:15 AM, Navin Kabra wrote: > On Thu, Aug 5, 2010 at 1

Re: [BangPypers] Re - [Training Requirement] Python crash course in Reva engineering college on August 7th

2010-08-05 Thread Nitin Kumar
I am interested, but the date/ time mentioned is bit difficult for me :( On Thu, Aug 5, 2010 at 4:32 PM, Rajeev Nair wrote: > Hi > > As part of the awareness building programme for PyCon India, i have been > doing the rounds of a few colleges in and around Bangalore, Reva > engineering > college

Re: [BangPypers] pycon

2010-09-23 Thread Nitin Kumar
the Supreme Court has deferred the Allahabad High Court verdict on Ayodhya title suit till September 28. :) On Thu, Sep 23, 2010 at 3:36 PM, Pranav Prakash wrote: > There has been no official words, but as per the latest news, Ayodhya > verdict has been delayed by one week. So, I don't think P

[BangPypers] How to retrieve file from another server using Python

2010-10-08 Thread Nitin Kumar
Hi all, I want to fetch/copy one file from a server. what all things i can do for the same? Plz help -- Nitin K ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] Python debugger help

2010-10-23 Thread Nitin Kumar
Hi All, I am using python 2.6.5 for one of testing framework development in my company. But the framework sometimes carses. I need to debug it. Can anyone please help me with some kind of Document/link or similar things. The think to notice is I need to debug the crash. Thanks in Advance -- Niti

[BangPypers] parsing directory and subdirecties

2010-11-17 Thread Nitin Kumar
hi all, is there any simple way where a can parse into directory and subdirectories to get the detail of files and count. or do i need to use looping and other functionalities. -- Nitin K ___ BangPypers mailing list BangPypers@python.org http://mail.p

[BangPypers] Job opening with Python 1yr and 3yrs of exp

2011-01-10 Thread Nitin Kumar
Hi All, My Company is looking for Python and C knowledge guys for 1and 3yr exp. Work in in automation framework and kind supporting existing framework with new features and bug fixes. Interested person can send me their resume. -- Nitin K ___ BangPype

[BangPypers] MetaClass in python

2011-01-10 Thread Nitin Kumar
Hi all, I am trying to create one meta Class which can create classes at runtime. This I am able to achieve by the code snippet below >>> class ChattyType(type): def __new__(cls, name, bases, dct): print "Allocating memory for class", name for attributeName, attribute in dct.items(): if type(at

Re: [BangPypers] MetaClass in python

2011-01-11 Thread Nitin Kumar
> > On 01/11/2011 01:15 PM, Nitin Kumar wrote: > >> Hi all, >> >> I am trying to create one meta Class which can create classes at runtime. >> This I am able to achieve by the code snippet below >> >> [...snip...] >> >> but I am looking for o

Re: [BangPypers] MetaClass in python

2011-01-12 Thread Nitin Kumar
Hi Taj, On Wed, Jan 12, 2011 at 3:43 PM, Sirtaj Singh Kang wrote: > > On 11-Jan-11, at 8:47 PM, Nitin Kumar wrote: > [snip] > > So i do know who to create a class and its function dynamically at >> runtime??? >> > > You can dynamically create a class like th

[BangPypers] issues using constructor in unittest

2011-03-14 Thread Nitin Kumar
Hi All, See below small example. I am trying to have one constructor for a class with unittest inherited. But with any of the permutation combination I am getting the error. Any idea for reason behind this?? import unittest2 class XMLSupport(unittest2.TestCase): def __init__(self):

Re: [BangPypers] issues using constructor in unittest

2011-03-14 Thread Nitin Kumar
Navin Kabra wrote: > On Mon, Mar 14, 2011 at 1:56 PM, Nitin Kumar wrote: > > > See below small example. I am trying to have one constructor for a class > > with unittest inherited. > > Avoid overriding the constructor of TestCase. That is not recommended. > > > &g

Re: [BangPypers] issues using constructor in unittest

2011-03-14 Thread Nitin Kumar
Agree Noufal, But we already have a framework using unittest2 in my product (organization), its working perfectly fine for our requirements. Nitin K On Mon, Mar 14, 2011 at 4:54 PM, Noufal Ibrahim wrote: > On Mon, Mar 14 2011, Nitin Kumar wrote: > > [...] > > > I used this w

Re: [BangPypers] Regular Expressions

2011-03-22 Thread Nitin Kumar
use this way r'(/|\\)cmd\.com$' Its raw string stuff which i guess you are missing out. Nitin K On Wed, Mar 16, 2011 at 11:27 PM, Santhosh Edukulla < santhosh.eduku...@gmail.com> wrote: > Hi All, > > I have a list of regular expressions under a file(EX: inp.txt). Then, I > have > another file

[BangPypers] returning value from a class

2011-04-06 Thread Nitin Kumar
Hi All, I am looking for a return value when an object is created. but can see different behavior in different python version. Python 3 gives >>> class x: def __new__(self): return 5 >>> x() 5 Python 2.6.5 gives >>> class x: def __new__(self): return 5 >>> x() <__main__.x instance at 0x017CFD

Re: [BangPypers] returning value from a class

2011-04-06 Thread Nitin Kumar
;> F() > <__main__.F instance at 0x7fa759a4e908> > >>> > > > will not even print the "Hello" since there was no __new__. > > Thirdly : What are you trying to do? > > > Why do you want to create a class th

[BangPypers] mac IP

2011-04-14 Thread Nitin Kumar
Hi All, Is anyone aware how to fetch mac machine IP using python? -- Nitin K ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] mac IP

2011-04-14 Thread Nitin Kumar
Ya this is the issue, I am writing code generic to all OS (windows 7, XP, mac) so ioctl wont be good to use. Nitin K On Thu, Apr 14, 2011 at 7:15 PM, Noufal Ibrahim wrote: > On Thu, Apr 14 2011, Ruchir Shukla wrote: > > > here is a sample code > > > > > import fcntl, socket, struct >

Re: [BangPypers] mac IP

2011-04-14 Thread Nitin Kumar
t; import socket > > socket.gethostbyname(socket.gethostname()) > > socket.gethostbyname_ex(socket.gethostname()) > > > > > > > > > > > > Nitin Kumar wrote: > > > >> Hi All, > >&

Re: [BangPypers] mac IP

2011-04-14 Thread Nitin Kumar
Hi Noufal, I am not in a condition to use any third party, I need any way to fetch ip using normal python command. Should i use Popen with ipconfig? Nitin k On Thu, Apr 14, 2011 at 6:26 PM, Noufal Ibrahim wrote: > On Thu, Apr 14 2011, Nitin Kumar wrote: > > > Hi All, > > &

Re: [BangPypers] Internship opportunity for students in Bangalore

2011-04-26 Thread Nitin Kumar
Even my company (http://w3.efi.com/) is looking or the same. Duration: 4-6 Months Facility: Cab and lunch only Requirment: BE or similar profile willing to work in wxpython/pyqt (python) Thanks Nitin K On Tue, Apr 26, 2011 at 1:29 PM, devjyoti patra wrote: > Hi Friends, > > Beevolve (http://ww

Re: [BangPypers] Learning BioPython

2011-05-01 Thread Nitin Kumar
Hello, If you are beginner in python then you should first learn few basics of python(like module package list dict etc), then BioPython will be an easy task for you.No need to take separate class for BioPython for sure. Thanks Nitin K On Mon, May 2, 2011 at 7:54 AM, Ananya Sharma wrote: > Hey

[BangPypers] return value

2011-06-13 Thread Nitin Kumar
HI All, In my framework, some of function returns a Tuple. def fn (): return a,b x,y = fn() Going forward, I got such a situation where we need to return single value from function. (Don't ask me to retain old behavior :) ) Now the problem is we need to maintain backward compatibility too.

Re: [BangPypers] return value

2011-06-13 Thread Nitin Kumar
Yes, It takes, *arg as well as**args. I just gave an example to show the return from function behavior. Thanks Nitin K On Mon, Jun 13, 2011 at 8:02 PM, Venkatraman S wrote: > On Mon, Jun 13, 2011 at 7:49 PM, Nitin Kumar wrote: > > > > > In my framework, some of functi

Re: [BangPypers] return value

2011-06-13 Thread Nitin Kumar
Couldn't solve your puzzle :( On Mon, Jun 13, 2011 at 9:39 PM, Venkatraman S wrote: > On Mon, Jun 13, 2011 at 9:11 PM, Nitin Kumar wrote: > > > It takes, *arg as well as**args. > > I just gave an example to show the return from function behavior. > > > > Then

[BangPypers] Image comparison using Python

2011-06-13 Thread Nitin Kumar
HI All, We are looking for python comparison tool (Don't suggest PIL as it was not useful for us). please do let me know if you any good one. we are looking for the tool to compare two pdf files. -- Nitin K ___ BangPypers mailing list BangPypers@pytho

Re: [BangPypers] Image comparison using Python

2011-06-13 Thread Nitin Kumar
we need to compare text also but most of the time Image Quality between two pdf. On Tue, Jun 14, 2011 at 11:47 AM, Noufal Ibrahim wrote: > Depends on what you want out of it. You could extract text and just > diff it or you can check sum the files and compare the hashes. > > On 6/

[BangPypers] remote ip change

2011-06-22 Thread Nitin Kumar
Hi All, I want to change the IP of remote server. I can do it manually using control panel. But i need to do that in a script. So is there any simple API in python which can be used for the same? -- Nitin K ___ BangPypers mailing list BangPypers@python

[BangPypers] python32 bit crash on win7 64bit machine

2011-06-24 Thread Nitin Kumar
Hi All, I am facing python crash with my script on win7 64 bit machine. I am using 32bit Python. Some of the info (from the file C:\Users\admin\AppData\Local\Temp\WERD22.tmp.WERInternalMetadata.xml) which I was able to collect is shown below. - - 6.1 7601 Service Pack 1 (0x30): Windows 7 Profess

Re: [BangPypers] [Small Hitch]Minidom and xml parsing.

2011-07-12 Thread Nitin Kumar
are you limited to use DOM? if not then you can also use elementtree for ex: from xml.etree import ElementTree as ET fp=open('try.xml') #your xml file xmlData = fp.read() tree = ET.XML( xmlData ) listroot = list(tree) for item in listroot: if(item.tag == "parent"): for dc

Re: [BangPypers] Python T-shirt

2011-08-10 Thread Nitin Kumar
whatever we got in last pycon was of very good quality and with good logo. So i don't know how you wrote that On Wed, Aug 10, 2011 at 6:56 PM, kracekumar ramaraju < kracethekingma...@gmail.com> wrote: > I am attending pycon :), but quality matters > ___

Re: [BangPypers] remove svn checkout folder

2011-10-23 Thread Nitin Kumar
There are .svn hidden files which create this error. Your need to use: shutil.rmtree(path,ignore_errors=True) Thanks Nitin K On Fri, Oct 21, 2011 at 12:37 PM, Shashidhar Paragonda < shashidha...@gmail.com> wrote: > Dear Python hackers > > >> I checkout folder from repository to sat c:/M

[BangPypers] colored o/p

2011-12-20 Thread Nitin Kumar
Hi All, I am trying to format o/p (colored bold string) on console. say IDLE or python command prompt using python modules. Please help me with an example. -- Nitin K ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/lis

[BangPypers] Reading registry keys

2011-12-22 Thread Nitin Kumar
Hi All, I am in learning phase to handle registry keys and manipulate it. I guess we can use winreg as well as win32com for the same purpose. can anyone please tell me the difference in their usage. -- Nitin K ___ BangPypers mailing list BangPypers@py

[BangPypers] win32com.client.Dispatch

2011-12-27 Thread Nitin Kumar
Hi All, Say I did x=win32com.client.Dispatch("{6BF52A52-394A-11d3-B153-00C04F79FAA6}") where the clsid used is for window media palyer. Now if i do: >>> dir(x) ['_ApplyTypes_', '_FlagAsMethod', '_LazyAddAttr_', '_NewEnum', '_Release_', '__AttrToID__', '__LazyMap__', '__call__', '__doc__', '__eq__

Re: [BangPypers] win32com.client.Dispatch

2011-12-28 Thread Nitin Kumar
Thanks Visal/Sujit/Noufal, All of your reply was of great help. Specially COM Raider and makepy.py (from PyWin32 libraries) Thanks again Nitin K On Wed, Dec 28, 2011 at 4:02 PM, Vishal wrote: > On Tue, Dec 27, 2011 at 5:34 PM, Nitin Kumar wrote: > > > Hi All, > > &

[BangPypers] class inheritance query

2012-02-28 Thread Nitin Kumar
Hi All, Let say I have some classes X,Y and Z with some static values class X: a=1 class Y: b=2 class Z: c=3 Now I want to have class A such that it can have variables from class Y or Z (any one only) depending on runtime so that while using i can use X.a and X.b or X.a a

[BangPypers] Can we simulate USB using python

2012-06-11 Thread Nitin Kumar
Hi All, We use VMWare virtual machine for testing purpose with script in Python. We want to test some USB functionality, Ex: "When USB is plugged In, we expect a Pop up". So need to simulate USB on VM, Is this possible using python (or any 3rd party module of python)? If then please suggest. --

[BangPypers] virdual drive

2012-06-29 Thread Nitin Kumar
Hi All, I want to create a virtual drive (floppy or CD) on my machine using Python. Can anyone please suggest me? -- Nitin K ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] virdual drive

2012-06-29 Thread Nitin Kumar
windows 7/xp On Fri, Jun 29, 2012 at 3:00 PM, Noufal Ibrahim wrote: > Nitin Kumar writes: > > > Hi All, > > > > I want to create a virtual drive (floppy or CD) on my machine using > > Python. Can anyone please suggest me? > > What platform? > > -- >

[BangPypers] to find dlls loaded with an exe

2012-08-03 Thread Nitin Kumar
Hi All, I need to find if there is any dll loaded to a running executable (windows) using python. Are you aware of any such function in wmi or win32api or any another module? if then please suggest with some exapmle. Nitin K ___ BangPypers mailing list

[BangPypers] How to fetch a file from url

2012-08-10 Thread Nitin Kumar
Hi, I am trying to download a file from url. but every time it redirecting to login url only even if i provide username and password? ex: import urllib >>> x = >>> urllib.urlopen("https://abcd/versionLabel/CURRENT

[BangPypers] hook file download

2012-09-07 Thread Nitin Kumar
Hi All, I want to get a control to python before a file start downloading using any explorer or download manager. Do we have any module or sample code to do the same. -- Nitin K ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/m

Re: [BangPypers] hook file download

2012-09-07 Thread Nitin Kumar
ing python. Hope this time I am bit clear. Nitin K On Fri, Sep 7, 2012 at 3:42 PM, Noufal Ibrahim wrote: > Nitin Kumar writes: > > > Hi All, > > > > I want to get a control to python before a file start downloading using > any > > explorer or download manager. >

[BangPypers] Charging state of windows machine (laptop/notebook)

2012-10-31 Thread Nitin Kumar
Hi All, Is there any module in python which can be used to track the charging state of laptop (on windows) like its on battery or on power or standby mode? -- Nitin K ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/list

Re: [BangPypers] Charging state of windows machine (laptop/notebook)

2012-10-31 Thread Nitin Kumar
This link is linux specific. I am looking for windows OS machine. On Wed, Oct 31, 2012 at 2:41 PM, Prashant Gaur <91prashantg...@gmail.com>wrote: > > http://www.masnun.me/2010/09/01/python-script-to-monitor-laptop-battery-charge-ubuntulinux-mint.html > > > On Wed, Oct 31, 2

[BangPypers] Library creation and modification on Windows 7

2012-11-14 Thread Nitin Kumar
Hi All, I need to create or modify Libraries in windows 7 like Music, Documents. I couldn't find any modules to do the same. I also tried: import pythoncom from win32com.shell import shell shortcut = pythoncom.CoCreateInstance(shell.CLSID_ShellLibrary, None,pythoncom.CLSCTX_INPROC_SERVER, shell.

[BangPypers] function parameter query

2013-01-23 Thread Nitin Kumar
>>> def show(c, d=False, **kwargs): print 'c',c print 'd',d print kwargs >>> def test(c, **kwargs): if (kwargs is None): kwargs = {} kwargs['d'] = 4 kwargs['e'] = 5 show(c, **kwargs) >>> test(1) c 1 d 4 {'e': 5} Can anyone explain me why d (2nd parameter of function show

Re: [BangPypers] trust/certify python exe

2013-02-03 Thread Nitin Kumar
:44 PM, Baiju M wrote: > Hi Nitin, > > The procedure to verify Python EXEs is given here (using PGP/GPG): > http://www.python.org/download/#openpgp-public-keys > > On Fri, Feb 1, 2013 at 3:16 PM, Nitin Kumar wrote: > > Hi All, > > > > I am trying to automat

[BangPypers] [JOB] In my company

2013-03-20 Thread Nitin Kumar
Hi All, My Company(McAfee) is looking for few Python Engineer at different level. If anyone interested can apply on the company site or forward to me I can refer the same. Nitin K ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/

  1   2   >