Re: How to unescape a raw string?

2010-05-19 Thread python
Hi Chris, > That's not what the notion of raw strings in Python technically means, but > anyway... Agree - I was having a difficult time trying to describe my dilemma - thanks for hanging in there with my rather awkward intro :) > I'll assume you're quoting the file contents itself verbatim her

Re: Newbie Alert: subprocess.call

2010-05-19 Thread Patrick Maupin
On May 19, 10:28 pm, Ben Finney wrote: > Better is to use ‘shlex.split’ to split the string as a shell parser > would do http://docs.python.org/library/shlex#shlex.split>. Good point. I always forget about shlex.split because I'm usually passing (relatively) constant strings with no funny quoti

Re: help need to write a python spell checker

2010-05-19 Thread alex23
Patrick Maupin wrote: > Although it makes > perfect sense, I never really thought much about the possibility that > the school year would be "upside down" "down under"... Yes, having the school year run within the actual year instead of across two is such a topsy-turvy concept, it's pretty obviou

Re: Display file names in Tkinter Listbox

2010-05-19 Thread John McMonagle
r...@home.com wrote: > Hello, > > My first attenpt at a simple python Tkinter application. I wanted to > see how to load file names into a listbox from a menu. This is what I > got until the part of displaying the file names in a listbox, which I > could not figfure out how to do? > > Any help w

error importing numpy

2010-05-19 Thread sanam singh
Hi, when i import numpy in python i get following error : Python 2.6.5 (r265:79063, May 2 2010, 10:47:11) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy Traceback (most recent call last): File "", line 1, in ImportError: No modu

Re: Loading C extension from memory

2010-05-19 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/13/2010 06:14 AM, mk wrote: > I wonder if there is a way to load C extension from in-memory object, > not from the file on the disk? > > I'm asking bc I would like to download C extensions over network and > load them into Python interpreter (wi

Re: Loading C extension from memory

2010-05-19 Thread Christian Heimes
mk wrote: I wonder if there is a way to load C extension from in-memory object, not from the file on the disk? No, that's not possible since Python depends on the operating system. A lot of operating systems require a physical file to load the shared library from. Python uses dlopen() on most

Re: What's the matter with docs.python.org?

2010-05-19 Thread Christian Mertes
On Mi, 2010-05-19 at 16:42 -0700, Aahz wrote: > > IPv6 has sometimes been problematical -- try disabling it. Wow, can I have that on a t-shirt? ;) > Also, I think you need to pass the host HTTP header to access > docs.python.org Look, I don't really want to read Python docs via telnet. I basica

Re: How to unescape a raw string?

2010-05-19 Thread Gary Herron
On 05/19/2010 08:34 PM, pyt...@bdurham.com wrote: How can I unescape a raw string so that it behaves as a non-raw string? For example, if I read the string "\n\t A B C\" D E F \xa0 \u1234" from a text file, how can I convert (unescape?) this string so that \n, \t, \", \x, and \u get converted t

helo

2010-05-19 Thread cosmeticsafrolatino
hi -- http://mail.python.org/mailman/listinfo/python-list

<    1   2