what would be the regular expression for null byte present in a string

2015-01-13 Thread Shambhu Rajak
0z to be replace by empty string '', so that I can get the desired portion of string Can anyone help me with a working regex for it. Thanks, Shambhu PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the

RE: Multi-dimensional list initialization

2012-11-06 Thread Shambhu Rajak
Well said Steve, I agree with you... -Shambhu -Original Message- From: Steven D'Aprano [mailto:steve+comp.lang.pyt...@pearwood.info] Sent: Tuesday, November 06, 2012 2:35 PM To: python-list@python.org Subject: Re: Multi-dimensional list initialization On Mon, 05 Nov 2012 21:51:24

How to remotely Automate GUI using pywinauto

2012-11-01 Thread Shambhu Rajak
ther better method. Thanks, Shambhu -- http://mail.python.org/mailman/listinfo/python-list

How to execute commands on a windows machine from a Linux machine

2012-10-03 Thread Shambhu Rajak
windows machine , volume size of the machine, to create a partition, all these storage stuffs. I want to achieve all these features of windows machine, from linux. -Shambhu -- http://mail.python.org/mailman/listinfo/python-list

RE: Python Interview Questions

2012-07-09 Thread Shambhu Rajak
I agree with Christian, a developer should have hobbies other than computer stuffs. Versatile environment give more Ability to think differently. I like playing guitar :-) Be enthu, run foolishly and learn intelligently. -Shambhu -Original Message- From: Christian Heimes [mailto:li

RE: a problem about "print"

2012-07-03 Thread Shambhu Rajak
You can use : print "aList is "+repr([x,x,x,x,x,x,x,x,x]) -Shambhu From: levi nie [mailto:levinie...@gmail.com] Sent: 04/07/2012 9:43 AM To: python-list@python.org Subject: a problem about "print" aList is a list.i want to get the output seem this "aList is [x,x,x,x,

RE: exception problem

2012-06-24 Thread Shambhu Rajak
If you are not sure about the Exception, You can adopt a generic way of handling exception. try: except Exception,e: print str(e) -Shambhu -Original Message- From: MRAB [mailto:pyt...@mrabarnett.plus.com] Sent: 25/06/2012 4:14 AM To: python-list@python.org Subject: Re

RE: string to list

2012-06-14 Thread Shambhu Rajak
he lines of code u can go for this option: b = [x.strip("\"") for x in a.split(',')] So Just Cheerz, -Shambhu -Original Message- From: bruce g [mailto:bruceg113...@gmail.com] Sent: 14/06/2012 8:00 AM To: python-list@python.org Subject: string to list What is th

RE: Set Date and Time on Python

2012-04-26 Thread Shambhu Rajak
me("%Y-%m-%d-%H:%M")this will give you date time in this format " 2012-04-27-12:08" Hope this will work for you!!! Cheerz Shambhu -- http://mail.python.org/mailman/listinfo/python-list

RE: Zipping a dictionary whose values are lists

2012-04-13 Thread Shambhu Rajak
The below code should work: zip(*d.values()) when you do *d.values() its going to return tuple of elements, which then further be can be zipped to achieve your desired result. Regards, Shambhu Rajak Python Lover -Original Message- From: tkp...@gmail.com [mailto:tkp...@gmail.com

RE: Python-list Digest, Vol 101, Issue 164

2012-02-29 Thread Shambhu Rajak
Hi, I want building GNU debugger for mingw. Need the GDB to support python How should I go about it? Thanks, Shambhu This message contains information that may be privileged or confidential and is the property of the KPIT Cummins Infosystems Ltd. It is intended only for the person to whom it

RE: Total newbie question: Best practice

2011-11-30 Thread Shambhu Rajak
Regards, Shambhu -Original Message- From: Colin Higwell [mailto:colinh@somewhere.invalid] Sent: 30/11/2011 1:37 AM To: python-list@python.org Subject: Total newbie question: Best practice Hi, I am just starting to learn Python (I have been at it only a few hours), so please bear with

RE: Automatic import of submodules

2011-11-27 Thread Shambhu Rajak
s.wav_plug import WavPlug you can then use like this then WavPlug.WavPlug This will avoid the-every time importing of each method Regards, Shambhu -- http://mail.python.org/mailman/listinfo/python-list

RE: What is wrong with this code?

2011-09-19 Thread Shambhu Rajak
I think you cannnot use "\" as normal string ,it’s a metacharacter, u can use it like this: '\\begin{document}' -Shambhu -Original Message- From: Steven D'Aprano [mailto:steve+comp.lang.pyt...@pearwood.info] Sent: Monday, September 19, 2011 3:31 AM To: python-li

Prequisites required to learn Django frame work

2011-09-07 Thread Shambhu Rajak
interest of mine. Thanks, Shambhu -- http://mail.python.org/mailman/listinfo/python-list

Require information on python API for Subversion related work

2011-08-02 Thread Shambhu Rajak
Hi , I need an api that can be used to do following operations on Subversion repository tool: 1. Create branch 2. Check out 3. Check in 4. Merge Regards, Shambhu -- http://mail.python.org/mailman/listinfo/python-list

Re: os.unlink on Windows

2010-08-08 Thread Shambhu
Hi Thomas, Steven, Thanks for explanation. It is working now after using double backslash in pathname. I was misinterpreting the display output and thinking that it was being added by 'os' module. Regards, Shambhu. T On Aug 8, 6:29 pm, Steve

Re: os.unlink on Windows

2010-08-08 Thread Shambhu
Hi Thomas, I checked, file is present. Here is my sample script: import os filename = "C:\SHAMBHU\tmp\text_delete.txt" os.unlink(filename) File "C:\SHAMBHU\tmp\text_delete.txt" is accessible but "C:\\SHAMBHU\ \tmp\\text_delete.txt" is not (with extra ba

os.unlink on Windows

2010-08-07 Thread Shambhu Sharma
Hi, I am new to Python. I was trying to use os.unlink function in windows. But i am getting error: OSError: [Errno 2] No such file or directory: 'C:\\SHAMBHU\\tmp\\text_delete.txt' Input file to os.unlink is: 'C:\SHAMBHU\tmp\text_delete.txt'. But os.unlink is adding