how to get partition information of a hard disk with python

2010-09-21 Thread Hellmut Weber
? 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

Re: logging: local functions == loss of lineno

2010-03-30 Thread Hellmut Weber
') 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

Re: logging: local functions == loss of lineno

2010-03-18 Thread 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

Re: A tool for find dependencies relationships behind Python projects

2010-03-16 Thread Hellmut Weber
/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

Re: logging: local functions == loss of lineno

2010-03-15 Thread 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

logging: local functions == loss of lineno

2010-03-10 Thread Hellmut Weber
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

Re: A tool for find dependencies relationships behind Python projects

2010-02-22 Thread Hellmut Weber
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

Accessing the name of an actual parameter

2010-01-26 Thread Hellmut Weber
(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

Re: integer and string compare, is that correct?

2010-01-11 Thread 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

integer and string compare, is that correct?

2010-01-10 Thread Hellmut Weber
= 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

Access function name from within a function

2008-03-12 Thread Hellmut Weber
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

Eurosymbol in xml document

2008-03-04 Thread Hellmut Weber
-- 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

Re: Eurosymbol in xml document

2008-03-04 Thread Hellmut Weber
. 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