Re: Issue with inspect module

2008-04-19 Thread ilanschnell
On Apr 19, 1:41 pm, Karl-Heinz Ruskowski <[EMAIL PROTECTED]> wrote: > > Why does the inspect module cause the output > > to be printed twice? > > I also tested it, no problem here either. I realized what the problem was. I called the file inspect.py, stupid me. Thanks -- http://mail.python.org/m

Re: Issue with inspect module

2008-04-19 Thread Karl-Heinz Ruskowski
> Why does the inspect module cause the output > to be printed twice? I also tested it, no problem here either. -- http://mail.python.org/mailman/listinfo/python-list

Re: Issue with inspect module

2008-04-19 Thread Cristina Yenyxe González García
2008/4/19, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Hi, Hello, > I have this trivial program: > > import inspect > class A: > def __init__(self, a): > self.a = a > def __str__(self): > return 'A(%s)' % self.a > a = A(8) > print a > > the output is: > A(8) > A(8) >

Issue with inspect module

2008-04-19 Thread ilanschnell
Hi, I have this trivial program: import inspect class A: def __init__(self, a): self.a = a def __str__(self): return 'A(%s)' % self.a a = A(8) print a the output is: A(8) A(8) Why does the inspect module cause the output to be printed twice? Thanks -- http://mail.python