?
Any idea is appreciated ;-)
TIA
Hellmut
--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq
--
http://mail.python.org/mailman/listinfo/python-list
')
else:
raise TypeError, bogus type error for testing
class MyClass(object):
@trace
def __init__(self, *args, **kwargs):
print 'MyClass.__init__'
@trace
def mymethod(self, *args, **kwargs):
print 'MyClass.mymethod'
foo.info_log(End importing +__name__)
--
Dr. Hellmut Weber
Am 11.03.2010 12:14, schrieb Peter Otten:
Hellmut Weber wrote:
Logging works very well giving the filename and line number of the point
where it is called. As long as I use the loggers directly.
BUT when I have to wrap the logger call in some other function, I always
get file name and line
/sprox_dot.png
TurboGears2:
http://static.ez2learn.com/gluttony/tg2_dot.png
Hope this could be helpful :P
Regards.
Victor Lin.
--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs
Am 11.03.2010 12:14, schrieb Peter Otten:
Hellmut Weber wrote:
Logging works very well giving the filename and line number of the point
where it is called. As long as I use the loggers directly.
BUT when I have to wrap the logger call in some other function, I always
get file name and line
this information in this situation too?
TIA
Hellmut
--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq
--
http://mail.python.org/mailman/listinfo/python
Regards.
Victor Lin.
--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq
--
http://mail.python.org/mailman/listinfo/python-list
(a)
- -
The output should be:
'a' 1
'b' 'abcd'
- -
I tried to look at globals() and locals(), gave a look to the frames
(sys._getframe(0) and sys._getframe(1),
but did not see a possibility to access the information a want
How can this be done?
TIA
Hellmut
--
Dr. Hellmut Weber
, schrieb Nobody:
Hellmut Weber wrote:
being a causal python user (who likes the language quite a lot)
it took me a while to realize the following:
max = '5'
n = 5
n= max
False
Section 5.9 Comparison describes this.
Can someone give me examples of use cases
Peter Otten wrote
= 5
n = max
False
n + max
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: unsupported operand type(s) for +: 'int' and 'str'
Section 5.9 Comparison describes this.
Can someone give me examples of use cases
TIA
Hellmut
--
Dr. Hellmut Weber m
I'm looking for is:
def bar():
name = some_function(some-parameter)
print name
should print 'bar'
Any ideas appreciated
Hellmut
--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs
--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq
--
http://mail.python.org/mailman/listinfo/python-list
.
I found that file mentioned in the excellent online book 'Diving into
python'
Thanks again + happy pythoning
Hellmut
--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why
13 matches
Mail list logo