First  |  Prev |  Next  |  Last
Pages: 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
executable builder
Hi, I am trying to build python a cross platform python executable builder to deploy python app. I tried various tools such as py2exe, pyinstaller, cx_freeze but some how they are not upto the mark except py2exe. Unfortunately py2exe is working only on windows based systems. The task is divide into 3 steps: 1... 1 Jul 2010 03:26
Solutions for hand injury from computer use (was: I strongly dislike Python 3)
geremy condra <debatem1(a)gmail.com> writes: Right. I'm much more concerned about the position of my Ctrl key, to avoid hand injury from all the key chording done as a programmer. Not saying its a cure-all, but I broke my hand pretty badly a few years ago and had a lot of luck with a homemade foot sw... 1 Jul 2010 02:22
Reversing backslashed escape sequences
I have a byte-string which is an escape sequence, that is, it starts with a backslash, followed by either a single character, a hex or octal escape sequence. E.g. something like one of these in Python 2.5: '\\n' '\\xFF' '\\023' If s is such a string, what is the right way to un-escape them to single chara... 1 Jul 2010 02:22
Very odd output from subprocess
I have this function: def GetMakeOutput(make, rules, out=None): p = subprocess.Popen('%s %s' % (make,rules), shell=True, bufsize=1024, stderr=subprocess.PIPE, stdout=subprocess.PIPE, ... 5 Jul 2010 18:51
Composition of functions
If I write things with the intermediate variables like below, everything works: x="quick brown fox jumps over a lazy dog" y=list(x) y ['q', 'u', 'i', 'c', 'k', ' ', 'b', 'r', 'o', 'w', 'n', ' ', 'f', 'o', 'x', ' ', 'j', 'u', 'm', 'p', 's', ' ', 'o', 'v', 'e', 'r', ' ', 'a', ' ', 'l', 'a', 'z', '... 1 Jul 2010 22:15
automate minesweeper with python
I would like to create a python script that plays the Windows game minesweeper. The python code logic and running minesweeper are not problems. However, "seeing" the 1-8 in the minesweeper map and clicking on squares is. I have no idea how to proceed. ... 2 Jul 2010 19:03
Ignorance and Google Groups (again)
On Wed, 30 Jun 2010 14:06:05 -0700 Stephen Hansen <me+list/python(a)ixokai.io> wrote: Gmail and Google Groups are not one and the same. There's a number of people who subscribe to the list directly, use Gmail, and don't go anywhere near Google Groups. I know that. My filter doesn't catch them. If a... 2 Jul 2010 09:04
Python/C++ timer intermittent bug
I have a problem with threading using the Python/C API. I have an extension that implements a timer, and the C++ timer callback function calls a Python function. The relevant code looks like this: static PyObject *timer_setmodname( PyObject *pSelf, PyObject *pArgs ) { char *b; PyArg_ParseTuple( pArgs, "s", ... 1 Jul 2010 18:56
Ancient C string conventions
Jorgen Grahn <grahn+nntp(a)snipabacken.se> writes: It's somewhat believable. If I handled thousands of student names in a big C array char[30][], I would resent the fact that 1/30 of the memory was wasted on NUL bytes. But you'd be wasting even more of the memory on bytes left unused when the student's name... 30 Jun 2010 15:20
Hwy doesn't len(None) return zero ?
On 6/30/10 11:39 AM, Stef Mientki wrote: hello, I've lot of functions that returns their result in some kind of tuple / list / array, and if there is no result, these functions return None. Now I'm often what to do something if I've more than 1 element in the result. So I test: if len ( ... 30 Jun 2010 18:41
First  |  Prev |  Next  |  Last
Pages: 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72