Python String Substitution

2006-01-26 Thread Murali
gives me Wrong. Is there any syntax which will allow me to get Right using % substitution? - Murali -- http://mail.python.org/mailman/listinfo/python-list

Re: generating method names 'dynamically'

2006-01-26 Thread Murali
import inspect x = ABC() # create an instance of class ABC print inspect.getmembers(x,inspect.ismethod) Most of any introspection stuff can be done using the module inspect. -- http://mail.python.org/mailman/listinfo/python-list

Re: generating method names 'dynamically'

2006-01-26 Thread Murali
. Hope this answers your questions. - Murali -- http://mail.python.org/mailman/listinfo/python-list

Re: Python String Substitution

2006-01-27 Thread Murali
. - Murali -- http://mail.python.org/mailman/listinfo/python-list

Efficient Find and Replace

2006-01-27 Thread Murali
serial access to the list elements. - Murali -- http://mail.python.org/mailman/listinfo/python-list

Re: Efficient Find and Replace

2006-01-27 Thread Murali
(X), I mean search for X and then replace it with Y. Here every time the search starts from the beginning of the list. Hence the inefficiency. - Murali -- http://mail.python.org/mailman/listinfo/python-list

Re: Efficient Find and Replace

2006-01-28 Thread Murali
to replace single items with lists e.g. L[x:x+1]= [a,b,c], It has to be a little more clever. But with good data structure design I beleive that this overhead can be amortized to O(1). The optional argument to lst.index also makes that an linear time code. Thanks for all the help. - Murali PS: Slowly

Reading stdout and stderr of an external program

2007-07-02 Thread Murali
Hi Python programmers, I need to be able to read the stdout and stderr streams of an external program that I launch from my python script. os.system( 'my_prog' + ' err.log' ) and was planning on monitoring err.log and to display its contents. Is this the best way to do this? Thanks, Murali

Interprocess communication

2007-07-18 Thread Murali
or a preferred method for doing interprocess communication in Python. Thanks! Murali. -- http://mail.python.org/mailman/listinfo/python-list

Interprocess communication woes

2007-07-18 Thread Murali
for doing interprocess communication in Python. Thanks! Murali. -- http://mail.python.org/mailman/listinfo/python-list

Re: Interprocess communication woes

2007-07-20 Thread Murali
On Jul 19, 4:30 am, Nick Craig-Wood [EMAIL PROTECTED] wrote: Murali [EMAIL PROTECTED] wrote: After some investigation, I found out that this problem had nothing to do with my GUI app not getting refreshed and I was able to reproduce this problem with normal python scripts. Here is one

Re: Make staticmethod objects callable?

2006-02-28 Thread Murali
was still related to a staticmethod not being a callable. - Murali -- http://mail.python.org/mailman/listinfo/python-list

Re: Reverse function python? How to use?

2006-10-29 Thread Murali
Something like this? [code] foo = [x1,x2,x3,x4,x5] bar = [math.sqrt(math.fabs(x))+5*math.pow(x,3) for x in foo] bar.reverse() print bar [/code] frankie_85 wrote: Ok I'm really lost (I'm new to python) how to use the reverse function. I made a little program which basically the a, b, c, d, e

Re: append function problem?

2006-04-27 Thread Murali
A typo here? seed v/s seed1. Instead of print(seed.append(5)), try seed.append(5) followed by print seed -- print(seed) also works. The append method does not return the appended value (like many C functions). - Murali -- http://mail.python.org/mailman/listinfo/python-list

Re: reusing parts of a string in RE matches?

2006-05-10 Thread Murali
string[p:q] matches pattern - Murali -- http://mail.python.org/mailman/listinfo/python-list

Re: reusing parts of a string in RE matches?

2006-05-10 Thread Murali
): return re.findall(r'(?=(%s))'%pat,str) all_occurences(a.a,abacadabcda) returns [aba,aca,ada] as required. - Murali -- http://mail.python.org/mailman/listinfo/python-list

Re: how to delete matplotlib data between ploting

2006-12-07 Thread Murali
pylab.clf() or some such thing clears the current canvas. [EMAIL PROTECTED] wrote: I want to make few plots from CSV files. I have the code below - it works - the first plot is ok, the second one has the first and the current data set and so on - I can't delete the plot data between plots.

Re: problem with special characters in filename

2009-01-23 Thread Murali Murali
Try this: import shutil,os file1 = open('a.dat','r') #opens file for reading for line in file1: print line ##old_name = line[0:len(line)-1] #gets rid of \n suffix ##print old_name line.strip() #gets rid of \n suffix print line os.rename('b.dat',line) #renames file

Need script to download file from a server using python script

2009-01-23 Thread Murali Murali
else to handle change in the build no.? Advance Thanks, Murali. -- http://mail.python.org/mailman/listinfo/python-list

speech recognition help

2009-03-20 Thread Murali kumar
hi all.. I want* to add speech recognition *to my application for *disabled persons*. (running in python 2.6 with wxpython 2.8.9..) *problem:* actually i have some buttons scanned one by one.. button name is 'add' and if i tell 'add' then add button click event must be performed.. For that i

Re: speech recognition help

2009-03-21 Thread Murali kumar
thanks for the reply.. now working on cmu sphinx project.. do u know which one 1. cmu sphinx 2. natural speaking 3. windows sapi is best ( in accuray and speed ) for predefined vocabulary.. and worth for learning as well.? -- http://mail.python.org/mailman/listinfo/python-list

Re: speech recognition help

2009-04-02 Thread Murali kumar
hi all.. I tried following tools by ur advice.. 1. cmu sphinx: tried and managed run the demo programs.. but the accuracy is so bad. for that i tried for how to train the grammer. but for that i had no guidance.. docs give me the headache.. after 2 weeks.. i concluded that it will

python installer

2009-04-02 Thread Murali kumar
hi all.. To distribute my application.. what will be the best..? python installer.. or py2exe..? using : python 2.6 , wxpython 2.8.9 -- http://mail.python.org/mailman/listinfo/python-list

config parser -help

2009-04-03 Thread Murali kumar
hi all, i want to all my configuration file names in current/user/home directory.. for that i came across following function in configparser class.. Is it must to specify file names? or only directories enough.. if there anyway to read conf filenames in current/user directory...

Re: config parser -help

2009-04-03 Thread Murali kumar
Is there anyway to read all my configuration filenames with extension (.cfg)? Advanced thanks.. On Fri, Apr 3, 2009 at 3:15 PM, Murali kumar murali...@gmail.com wrote: hi all, i want to all my configuration file names in current/user/home directory.. for that i came across following

Re: config parser -help - anybody please immediately help for me...

2009-04-03 Thread Murali kumar
On Fri, Apr 3, 2009 at 3:59 PM, Murali kumar murali...@gmail.com wrote: Is there anyway to read all my configuration filenames with extension (.cfg)? Advanced thanks.. On Fri, Apr 3, 2009 at 3:15 PM, Murali kumar murali...@gmail.com wrote: hi all, i want to all my configuration file

communication between objects - help

2009-04-10 Thread Murali kumar
hi all.. I'm posted in a word doc becoz to add a image to explain my problem.. also I think gmail automatically scans for attachments.. anyway.. here's my problem...( see the image) http://www.2shared.com/file/5299759/45e4c614/load.html Using : Python 2.6 , wxPython 2.8.9 *Scenario: *In my

communication between objects - help

2009-04-11 Thread Murali kumar
thanks a lot.. I think passing the main object only by reference.. so, this does not causes any overhead.. am i correct..? On Fri, Apr 10, 2009 at 4:02 PM, Dave Angel da...@ieee.org wrote: Murali kumar wrote: hi all.. I'm posted in a word doc becoz to add a image to explain my problem

Re: communication between objects - help

2009-04-11 Thread Murali kumar
Thanks a lot for help.. On Sat, Apr 11, 2009 at 6:27 PM, Dave Angel da...@dejaviewphoto.com wrote: Murali kumar wrote: thanks a lot.. I think passing the main object only by reference.. so, this does not causes any overhead.. am i correct..? On Fri, Apr 10, 2009 at 4:02 PM, Dave

message handling in Python / wxPython

2007-01-30 Thread murali iyengar
and Regards, Murali M.S -- http://mail.python.org/mailman/listinfo/python-list

problem in with keyword

2009-05-01 Thread Murali kumar
hi all.. my application runs fine in windows xp using python 2.6 and wxpython 2.8.9 but in ubuntu 8.10 following error appears.. using python 2.5.2 and wxpython 2.8.9 /home/murali/Desktop/mathdemo-configfinal/manageprofile.py:63: Warning: 'with' will become a reserved keyword in Python 2.6

help for documentation and license

2009-05-05 Thread Murali kumar
hi all.. I finished my application using python 2.6 and wxpython 2.8.9 I want to generate documentation for my application.. please suggest me and provide links to generate documents in easy way.. I want to host my product as open source.. I'dont know about licensing.. help me for

[issue39111] Misleading documentation

2019-12-20 Thread Murali Ganapathy
Murali Ganapathy added the comment: === # python3 class Base: def __eq__(self, other): print("base called") return super().__eq__(other) class Foo(Base): def __eq__(self, other): print("foo called") return NotImplemented Foo() == Foo() # foo calle

[issue39111] Misleading documentation

2019-12-20 Thread Murali Ganapathy
New submission from Murali Ganapathy : The documentation at https://docs.python.org/3.6/library/constants.html#NotImplemented states If all attempts return NotImplemented, the interpreter will raise an appropriate exception. However this is not true for __eq__. === class Foo: def __eq__

[issue9305] Don't use east/west of UTC in date/time documentation

2020-02-14 Thread Murali Ravipudi
Change by Murali Ravipudi : -- nosy: +Murali Ravipudi ___ Python tracker <https://bugs.python.org/issue9305> ___ ___ Python-bugs-list mailing list Unsubscribe:

Python app setup

2021-06-01 Thread Murali Pa
64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> Thanks, Murali PA Disclaimer: The information in this email is the property of IBM and may be IBM Confidential and privi