Re: What's wrong with that comment?

2008-05-20 Thread Ludwig Miniatur
On 21 Mai, 00:12, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 20 May 2008 16:22:10 -0300, Joe P. Cool > <[EMAIL PROTECTED]> escribió: > > > > > Ludwig Miniatur wrote: > >> For example: > >> #!/usr/bin/env python > > >> from parser import suite, ast2list > >> fh = file(__file__) > >> s

Re: Using Python for programming algorithms

2008-05-20 Thread Paddy
On May 17, 11:32 pm, Vicent Giner <[EMAIL PROTECTED]> wrote: > Hello. > > I am new to Python. It seems a very interesting language to me. Its > simplicity is very attractive. > > However, it is usually said that Python is not a compiled but > interpreted programming language —I mean, it is not like

Re: feature proposal, debug on exception

2008-05-20 Thread alex23
On May 21, 10:59 am, Paul Rubin wrote: > I'd like to propose that debug-on-exception be made into a standard > feature that is easy to enable, e.g. with a command line option > or with a simple pdb call immediately after the import: Forgive me if I've missed your point,

Re: Removing Space and "-" from a string

2008-05-20 Thread inhahe
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Shakir, > >> I have thousands of records in MS Access database table, which records I >> am fetching using python script. One of the columns having string like >> '8 58-2155-58' >> >> Desired output: '858215558' >> >> I want to remove

Re: Python's doc problems: sort

2008-05-20 Thread alex23
On May 21, 8:53 am, Xah Lee <[EMAIL PROTECTED]> wrote: > The complaint about python doc has turned up > now and then in the past few years it seems, but always got put down > by python priests No, what was generally rejected was the idea that *you* could bring more clarity to the documentation, ba

Re: feature proposal, debug on exception

2008-05-20 Thread Ville M. Vainio
Simon Forman <[EMAIL PROTECTED]> writes: > This is not exactly an answer to your proposal, I know, but FWIW > Ipython has exactly this capability. Yes. When you %run a scripts and get exception, you can launch post-mortem pdb on it by typing %debug. -- http://mail.python.org/mailman/listinfo/pyt

Re: default gettext localedir on windows

2008-05-20 Thread ZeeGeek
On May 21, 2:31 am, Thorsten Kampe <[EMAIL PROTECTED]> wrote: > * ZeeGeek (Tue, 20 May 2008 09:31:27 -0700 (PDT)) > > > > > On May 17, 8:39 pm, Thorsten Kampe <[EMAIL PROTECTED]> wrote: > > > * ZeeGeek (Sun, 4 May 2008 10:56:52 -0700 (PDT)) > > > > On May 5, 1:16 am, Thorsten Kampe <[EMAIL PROTECTE

online computer shops

2008-05-20 Thread rema.khan
* Drives & Writers, * Hard Drives & Storage, * Headphones & Mics, * Internet / Internet Telephony, * Keyboards & Mouse, * Memory / RAM, * Memory Card & Readers, * Modems, * TV Tuner Cards, * UPS, * USB Devices, * WebCams, * Wireless Accessories...

Re: persistent deque

2008-05-20 Thread inhahe
> > i don't know how i would get around the problem, though, because i'd have > to know how to access the deque object that my class stores when i do > deque.__init__ in my constructor, so that i could pickle it and my class > variables separately. > > i decided i could just pickle deque(self),

Re: Processing in Python

2008-05-20 Thread Diez B. Roggisch
Istvan Albert schrieb: On May 20, 6:13 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: Salvatore DI DI0 schrieb: Hello, The Processing Graphics language has been implemented in Javascript. No, it hasn't. Processing is written in Java. He meant it has been re-implemented in Javascript: ht

Re: Access to sysctl on FreeBSD?

2008-05-20 Thread Thomas Heller
Skye schrieb: > Great, thanks for the help (I'm fairly new to Python, didn't know > about ctypes) > > from ctypes import * > libc = CDLL("libc.so.7") > size = c_uint(0) > libc.sysctlbyname("net.inet.ip.stats", None, byref(size), None, 0) > buf = c_char_p(" " * size.value) >

Running programs under a python program...

2008-05-20 Thread [EMAIL PROTECTED]
So I have a python program that runs a bunch of other programsit then loops forever, occasionally executing other programs. To run each of these programs my python code executes: subprocess.Popen(command_line, shell=True, stdout=fd, stderr=subprocess.STDOUT) where command_line is an appropria

Re: iterate start at second row in file not first

2008-05-20 Thread Paul Hankin
On May 20, 7:34 pm, [EMAIL PROTECTED] wrote: > i have a big file with sentences, the first file of each sentence > contains a colon(:) somewher eon that line > i want to jump past that sentence. > > if all(x != ':' for x in line): > > this way i  can check but i dont want to check for every line in

Re: Removing Space and "-" from a string

2008-05-20 Thread Paul Hankin
On May 20, 5:02 pm, "Ahmed, Shakir" <[EMAIL PROTECTED]> wrote: > I have thousands of records in MS Access database table, which records I > am fetching using python script. One of the columns having string like > '8 58-2155-58' > > Desired output: '858215558' > > I want to remove any spaces between

<    1   2   3