First  |  Prev |  Next  |  Last
Pages: 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
Pythonic way to trim and keep leading and trailing whitespace
On 3/23/2010 3:09 PM python(a)bdurham.com said... I'm looking for a pythonic way to trim and keep leading whitespace in a string. Use case: I have a bunch of text strings with various amounts of leading and trailing whitespace (spaces and tabs). I want to grab the leading and trailing whitespace, save i... 23 Mar 2010 20:36
Miracles of the devil and beat of the revolution of religious reform
Follow what god revealed to the Almighty Peace be upon you Those who wish to familiarized themselves after you click on the link please wait a little until it opens the link Miracles of the devil and beat of the revolution of religious reform http://www.ushaaqallah.com/forum/viewtopic.php?f=22&t=19225... 23 Mar 2010 15:56
Unicode blues in Python3
I know that unicode is the way to go in Python 3.1, but it is getting in my way right now in my Unix scripts. How do I write a chr(253) to a file? #nntst2.py import sys,codecs mychar=chr(253) print(sys.stdout.encoding) print(mychar) ./nntst2.py ISO8859-1 ý ./nntst2.py >nnout2 Traceback (most rec... 24 Mar 2010 15:49
using message loop for hotkey capturing
Hi all, but mainly Tim Golden: Tim, I am using your wonderful message loop for keyboard input, the one on your site that you pointed me to a few months ago. It has been working perfectly as long as I had only one dictionary of keys mapping to one dictionary of functions, but now I want two of each. My program has ... 24 Mar 2010 07:41
Python is cool!!
I have been learning Python, and it is amazing .... I am using the tutorial that comes with the official distribution. At the end my goal is to develop applied mathematic in engineering applications to be published on the Web, specially on app. oriented to simulations and control systems, I was about to start lea... 25 Mar 2010 11:27
How to find the best solution ?
I have a text and would like to split the text into smaller parts, say into 100 characters each. But if the 100th character is not a blank ( but word) this must be less than 100 character.That means the word itself can not be split. These smaller parts must contains only whole( not split) words. I was thinking ... 23 Mar 2010 13:37
short-circuiting any/all ?
I have a list of items L, and a test function is_invalid that checks the validity of each item. To check that there are no invalid items in L, I could check the value of any(map(is_invalid, L)). But this approach is suboptimal in the sense that, no matter what L is, is_invalid will be executed for all elemen... 23 Mar 2010 07:49
chroot fails with mount point passed to subprocess.Popen?
Hi, I'm trying to use subprocess.Popen() to do a Linux chroot to a mount point passed in as a parameter to the following function: def getInstalledKernelVersion(mountPoint): linuxFsRoot = mountPoint + "/root" print "type of linuxFsRoot is %s" % type(linuxFsRoot) installedKernelVersionResult = sub... 25 Mar 2010 07:58
[ANN] PyInstaller 1.4
Hello, I'm happy to announce PyInstaller 1.4, the first formal release after several years of quiet development. http://www.pyinstaller.org === What it is === PyInstaller is a program that converts (packages) Python programs into stand-alone executables, under Windows, Linux, and Mac OS X. It's simi... 21 Mar 2010 20:50
add an entry to twentyquestions.org (please)
add an entry to http://www.twentyquestions.org (please) ... 22 Mar 2010 11:50
First  |  Prev |  Next  |  Last
Pages: 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177