basic grammer error..

2009-12-16 Thread codefly
class codefly:

 def WaitFreecatz(self, hours):
 hours = self.hours
 i = 1
 while i < hours:
  print 'i wait %s hours' %(i)
  i = i+1
 if i == hours:
  print '\nhe never comes'


run error// what's wrong??
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: basic grammer error..

2009-12-16 Thread codefly
On 12월17일, 오전12시23분, "Diez B. Roggisch"  wrote:
> codefly wrote:
> > class codefly:
>
> >  def WaitFreecatz(self, hours):
> >  hours = self.hours
> >  i = 1
> >  while i < hours:
> >   print 'i wait %s hours' %(i)
> >   i = i+1
> >  if i == hours:
> >   print '\nhe never comes'
>
> > run error// what's wrong??
>
> Next time, be so kind to tell us what the actual error *is*, will you?
>
> Because there is none for me after c'n'p-ing that code into a source-file...
>
> Diez

Thank you Sir.^^
-- 
http://mail.python.org/mailman/listinfo/python-list


i re-write it

2009-12-16 Thread codefly
error message is here..
when i type import code2

Traceback (most recent call last):
  File "", line 1, in 
  File "code2.py", line 11
~
   ^
SyntaxError: invalid syntax


and source code is here
class codefly:
  def WaitFreecatz(self, hours):
  hours = self.hours
  i =1
  while i < hours:
print ' i wait for %s hours' %(i)
i = i+1
  if i ==hours:
print 'he never comes'


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: i re-write it

2009-12-16 Thread codefly
On Dec 17, 12:43 am, "Diez B. Roggisch"  wrote:
> codefly wrote:
> > error message is here..
> > when i type import code2
>
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File "code2.py", line 11
> >     ~
> >                        ^
> > SyntaxError: invalid syntax
>
> > and source code is here
>
> No, it isn't. The above error says "line 11", but the code you show doesn't
> have 11 lines.
>
> From the above error, it looks as if you have a stray "tilde"-character on
> the last or so line in code.py. Remove it.
>
> Diez

Oh my Thanks..
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: i re-write it

2009-12-16 Thread codefly
On Dec 17, 12:43 am, "Diez B. Roggisch"  wrote:
> codefly wrote:
> > error message is here..
> > when i type import code2
>
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File "code2.py", line 11
> >     ~
> >                        ^
> > SyntaxError: invalid syntax
>
> > and source code is here
>
> No, it isn't. The above error says "line 11", but the code you show doesn't
> have 11 lines.
>
> From the above error, it looks as if you have a stray "tilde"-character on
> the last or so line in code.py. Remove it.
>
> Diez

now.. another problem..

when i type me = code2()

the error is here..
Traceback (most recent call last):
  File "", line 1, in 
TypeError: 'module' object is not callable


-- 
http://mail.python.org/mailman/listinfo/python-list


another problem..

2009-12-16 Thread codefly
now.. another problem..
when i type me = code2()
the error is here..
Traceback (most recent call last):
  File "", line 1, in 
TypeError: 'module' object is not callable
-- 
http://mail.python.org/mailman/listinfo/python-list