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
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
.
Hope this answers your questions.
- Murali
--
http://mail.python.org/mailman/listinfo/python-list
.
- Murali
--
http://mail.python.org/mailman/listinfo/python-list
serial access to the list elements.
- Murali
--
http://mail.python.org/mailman/listinfo/python-list
(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
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
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
or a preferred method for
doing interprocess communication in Python.
Thanks!
Murali.
--
http://mail.python.org/mailman/listinfo/python-list
for
doing interprocess communication in Python.
Thanks!
Murali.
--
http://mail.python.org/mailman/listinfo/python-list
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
was still related to a
staticmethod not being a callable.
- Murali
--
http://mail.python.org/mailman/listinfo/python-list
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
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
string[p:q]
matches pattern
- Murali
--
http://mail.python.org/mailman/listinfo/python-list
):
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
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.
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
else to handle change in the build no.?
Advance Thanks,
Murali.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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...
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
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
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
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
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
and Regards,
Murali M.S
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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__
Change by Murali Ravipudi :
--
nosy: +Murali Ravipudi
___
Python tracker
<https://bugs.python.org/issue9305>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
36 matches
Mail list logo