[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

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

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

[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

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, >

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.

Re: [BangPypers] Anand S at cnnibn

2016-05-18 Thread Nitin Kumar
Wednesday 18 May 2016, Gora Mohanty <g...@mimirtech.com> wrote: > On 18 May 2016 at 21:05, Nitin Kumar <nitin.n...@gmail.com <javascript:;>> > wrote: > > > > Today evening just noticed Anand with Arnav at cnn ibn. Check my below > tweet. > > >

[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] 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

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 a

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

2015-06-03 Thread Nitin Kumar
Ohh. My Bad Nitin Kr On Wed, Jun 3, 2015 at 11:43 AM, Anand B Pillai anandpil...@letterboxes.org 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 end

[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 m...@python.org Date: 02-Jun-2015 7:08 PM Subject: [psf-members-ann] PSF Board of Directors Election Results To: PSF Members Announcements psf-members-annou...@python.org Cc: [On behalf of Ian Cordasco, our election

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 nimish.s.da...@gmail.com wrote: Guys, I am new to python. I am using ipython notebook on windows 7 platform. I get an error when I mention

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 nitin.n...@gmail.com wrote: Hi All, Yesterday I

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

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] 3rd party module, pure python or C dependent

2015-02-01 Thread Nitin Kumar
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://wiki.python.org/moin/VasudevRam On Fri, Jan 30, 2015 at 12:04 PM, Nitin Kumar nitin.n...@gmail.com wrote: Is there a way

[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

[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 all

[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 ___

[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 in news

2014-09-03 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

[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 pyshell#12,

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 dhruvbald...@gmail.com wrote: On Mon, Aug 4, 2014 at 2:38 PM, Nitin Kumar nitin.n...@gmail.com wrote: def readline(self): print 'from fn

[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

[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] 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] 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] 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] 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

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

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 nitin.n...@gmail.com wrote: Hi Sneha, Can I get the feedback from the panel. Just want to know

[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=0authkey=Gv1sRgCPXk2N_u6drFnwEfeat=directlink

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 vnbang2...@yahoo.com 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

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

2013-06-24 Thread Nitin Kumar
://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 nitin.n...@gmail.com wrote: Hi All, I even started writing a book for the same long back. http://www.slideshare.net/nitinnitp

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

[BangPypers] Female developer fired after tweeting about men's comments at PyCon 2013 and San Jose.

2013-03-23 Thread Nitin Kumar
Thought to share news eveen though it has very less to do with python. This happened at PyCon 2013. San Jose: A female developer was fired after tweeting about a group of men she said were making sexual comments at a computer programming co...

Re: [BangPypers] Female developer fired after tweeting about men's comments at PyCon 2013 and San Jose.

2013-03-23 Thread Nitin Kumar
My apology Mr Gora, I didnt knew my mail will be taken this way. As it was related to PyCon but more of gender bias and how companies reacts. Didnt knew of other forum to share this news ;) Will surely take from next time. One more thing, if I dont like anything I just refrain rather that topic

[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

[BangPypers] Looking for python trainer

2013-03-20 Thread Nitin Kumar
Hi All, Santhosh (santhosha...@yahoo.co.in) in JP Nagar is looking for Professional python training from very basics. If any one is interested or know some one good for the same then please do suggest him. Nitin K ___ BangPypers mailing list

Re: [BangPypers] trust/certify python exe

2013-02-03 Thread Nitin Kumar
baiju.m.m...@gmail.com 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 nitin.n...@gmail.com wrote: Hi All, I am trying to automate one of the application

[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,

[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

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.comwrote: http://www.masnun.me/2010/09/01/python-script-to-monitor-laptop-battery-charge-ubuntulinux-mint.html On Wed, Oct 31, 2012 at 2:32 PM, Nitin Kumar

[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

Re: [BangPypers] hook file download

2012-09-07 Thread Nitin Kumar
. Hope this time I am bit clear. Nitin K On Fri, Sep 7, 2012 at 3:42 PM, Noufal Ibrahim nou...@nibrahim.net.inwrote: Nitin Kumar nitin.n...@gmail.com writes: Hi All, I want to get a control to python before a file start downloading using any explorer or download manager. Can you

[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] 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 nou...@nibrahim.net.inwrote: Nitin Kumar nitin.n...@gmail.com 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? -- Cordially

[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] 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

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 vsapr...@gmail.com wrote: On Tue, Dec 27, 2011 at 5:34 PM, Nitin Kumar nitin.n...@gmail.com wrote: Hi

[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__',

[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] 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

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

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 dcs

[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. ?xml version=1.0 encoding=UTF-16? -WERReportMetadata

[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

Re: [BangPypers] return value

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

[BangPypers] Image comparison using Python

2011-06-14 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] 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

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 venka...@gmail.com wrote: On Mon, Jun 13, 2011 at 7:49 PM, Nitin Kumar nitin.n...@gmail.com wrote: In my framework, some

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

[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 nou...@gmail.com 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
()) socket.gethostbyname_ex(socket.gethostname()) Nitin Kumar wrote: Hi All, Is anyone aware how to fetch mac machine IP using python? -- Thanks Regards Sudharshan ___ BangPypers mailing list BangPypers@python.org

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 nou...@gmail.com wrote: On Thu, Apr 14 2011, Nitin Kumar wrote: Hi All

Re: [BangPypers] returning value from a class

2011-04-06 Thread Nitin Kumar
2011, Nitin Kumar wrote: 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

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 (EX:

[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
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 nou...@gmail.com wrote: On Mon, Mar 14 2011, Nitin Kumar wrote: [...] I used this way

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 sir...@sirtaj.netwrote: 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 this: NewClass = type('NewClass

Re: [BangPypers] MetaClass in python

2011-01-11 Thread Nitin Kumar
Nitin, 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 one function for this class created above, which will do some

[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 ___

[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

[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

[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 --

Re: [BangPypers] string to list query

2010-08-05 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 navin.ka...@gmail.com wrote: On Thu, Aug

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 rajeev.n...@mahiti.org 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

Re: [BangPypers] how to delete base class attribute

2010-07-31 Thread Nitin Kumar
+sibtey.mehndi bangpypers-bounces%2Bsibtey.mehndi= genpact@python.org] On Behalf Of Nitin Kumar Sent: Thursday, July 29, 2010 2:18 PM To: Bangalore Python Users Group - India Subject: [BangPypers] how to delete base class attribute Hi all, Say I have 10 functions in base class

[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

[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
@python.org] On Behalf Of Nitin Kumar Sent: Thursday, July 29, 2010 2:18 PM To: Bangalore Python Users Group - India Subject: [BangPypers] how to delete base class attribute Hi all, Say I have 10 functions in base class and I have inherited it in some derived class. But I only want 9

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

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 clearly

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 orsent...@gmail.comwrote: On Tue, Jun 22, 2010 at 02:23:43AM -, Vikram wrote:

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 nou...@gmail.com wrote: We have one more badge and it looks quite nice. Keep them coming! :) On Mon, Jun 21, 2010 at 4:20 PM,

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 nou...@gmail.com wrote: It would be

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 supr.e.etse...@gmail.com wrote: Python only forms part of rubrik of technology stack