Re: getting linux distro used...

2009-04-27 Thread Marcin Stępnicki
Dnia Sun, 26 Apr 2009 22:35:29 -0700, deostroll napisał(a): > Hi, > > I just found that you could use platform.system() to get the underlying > os used. But is there a way to get the distro used...? Perhaps reading /etc/issue is sufficient? However, I know that for example Slackware puts its ve

Re: lib to auto-click mouse

2009-03-17 Thread Marcin Stępnicki
Dnia Tue, 17 Mar 2009 15:43:27 +0800, oyster napisał(a): > is there any this kind of lib for python? thanx If you plan to use it for some sort of automatic testing, look here: http://pycheesecake.org/wiki/PythonTestingToolsTaxonomy#GUITestingTools -- http://mail.python.org/mailman/listinfo/pytho

Re: scope, modyfing outside object from inside the method

2007-09-26 Thread Marcin Stępnicki
Dnia Mon, 24 Sep 2007 10:41:22 -0300, Ricardo Aráoz napisał(a): > Would this work for you? Thank you both for help. Well - yes and no :). It's getting more interesting: First, your code: class myrow(): def __init__(self, idict = {}): self.container = idict def __str__ (self):

scope, modyfing outside object from inside the method

2007-09-23 Thread Marcin Stępnicki
Hello. I thought I understand this, but apparently I don't :(. I'm missing something very basic and fundamental here, so redirecting me to the related documentation is welcomed as well as providing working code :). Trivial example which works as expected: >>> x = {'a':123, 'b': 456} >>> y = x >

XML from SQL result

2007-06-27 Thread Marcin Stępnicki
Hello. I've skimmed through many Python&XML related books/articles but I am unable to find anything that is similar to my problem - but it seems to me that it should be common. Anyway: I've got the SQL query which returns: col1 | col2 | col3 -+--+- a | a10 | b20 a | a10 | b30

Re: Installing Python 2.4 on Linux

2005-04-05 Thread Marcin Stępnicki
Dnia Tue, 05 Apr 2005 21:21:37 +, Edward Diener napisal(a): > I can install Python 2.4 on the Fedora 3 Linux system, but after I do a > number of Linux utilities and commands, like yum, stop working because > they were dependent on the Python 2.3 installation. What happens is that > Python