Bug in pythpn 1.5.2. for Win32
Pavel Khmelinsky
hmepas at tls.msk.ru
Tue May 8 17:40:08 EDT 2001
Hi!
Ok, lets try this source code:
-------------------
def f(m):
for i in m:
print i
m1 = range(5,10)
f(m1)
------------------
The output is:
------------------
5
6
7
8
9
------------------
All right, but lets try few differ source code:
------------------
class cl:
def f(m):
for i in m:
print i
c=cl()
m1 = range(5,10)
c.f(m1)
-----------------
And python interpretator returns me this error message:
-----------------
Traceback (innermost last):
File "test3.py", line 11, in ?
c.f(m1)
TypeError: too many arguments; expected 1, got 2
-----------------
Not working!
Why? I think that is it must working!
I send just one argument to function.
But is not working....
Please help me. May be you have solution of this problem.
P.S.: Sorry for my English, my 1st language is Russian.
P.P.S.: I am using W2k professional
BG,
Pavel Khmelinsky
More information about the Python-list
mailing list