Re: Enumerating Regular Expressions

2006-05-08 Thread blair . bethwaite
James Stroud wrote: > You see the difficulty don't you? How will the computer know in advance > that the regex matches only a finite set of possible strings? Well sure it might be a little difficult to figure _that_ out, although probably not all that hard if you converted to an FSA or something.

Is there any plan to port python to ACCESS Palm Linux Platform?

2006-05-08 Thread heidan
Another quick question about python and palm? As we all have known that ACCESS has planned to build Palm OS on top of Linux, is there any plan to port python to THIS future PALM OS? Regards, Phipps -- http://mail.python.org/mailman/listinfo/python-list

Re: python 2.5a2, gcc 4.1 and memory problems

2006-05-08 Thread [EMAIL PROTECTED]
Michele Petrazzo wrote: > [EMAIL PROTECTED] wrote: > > Michele Petrazzo wrote: > >> I haven't tried to recompile py 2.4 myself with gcc 4.1 because it > >> is already compiled with it (4.0.3), so I think (only think) that > >> is a py 2.5 problem. I'm right? or I have to compile it with > >> someth

Problem - Serving web pages on the desktop (SimpleHTTPServer)

2006-05-08 Thread test
Hi there, Perhaps someone can help me. For some reason, when my Python script runs and loads an HTML page in a new browser window at the local host (desktop), the links to my stylesheet and all the images are broken. I did check the HTML file by itself...everything loaded fine ;) Here's my script

Re: Python's DSLs

2006-05-08 Thread Alex Martelli
Cameron Laird <[EMAIL PROTECTED]> wrote: ... > On this one isolated matter, though, I'm confused, Alex: I sure > think *I* have been writing DSLs as specializations of Python, > and NOT as "a language in its own right". Have I been fooling > myself, or are you making the point that Lisp-based

Re: A critic of Guido's blog on Python's lambda

2006-05-08 Thread Alex Martelli
Joe Marshall <[EMAIL PROTECTED]> wrote: ... > Doesn't Google also employ such people as the inventor of Limbo > programming language, one of the inventors of Dylan, and a Smalltalk > expert? ...not to mention Lisp gurus (such as Peter Norvig), C++ gurus (such as Matt Austern) and Java ones (suc

Re: A critic of Guido's blog on Python's lambda

2006-05-08 Thread Alex Martelli
Patrick May <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] (Alex Martelli) writes: > > ...an alleged reply to me, which in fact quotes (and responds to) > > only to statements by Brian, without mentioning Brian... > > > > Mr May, it seems that you're badly confused regarding Usenet's > > quoting c

Re: A critic of Guido's blog on Python's lambda

2006-05-08 Thread M Jared Finder
Alex Martelli wrote: > Joe Marshall <[EMAIL PROTECTED]> wrote: >... >> If you language allows unnamed integers, unnamed strings, unnamed >> characters, unnamed arrays or aggregates, unnamed floats, unnamed >> expressions, unnamed statements, unnamed argument lists, etc. why >> *require* a name

Problem - Serving web pages on the desktop (SimpleHTTPServer)

2006-05-08 Thread test
Hi there, Perhaps someone can help me. For some reason, when my Python script runs and loads an HTML page in a new browser window at the local host (desktop), the links to my stylesheet and all the images are broken. I did check the HTML file by itself...everything loaded fine ;) Here's my script

Problem - Serving web pages on the desktop (SimpleHTTPServer)

2006-05-08 Thread test
Hi there, Perhaps someone can help me. For some reason, when my Python script runs and loads an HTML page in a new browser window at the local host (desktop), the links to my stylesheet and all the images are broken. I did check the HTML file by itself...everything loaded fine ;) Here's my script

Re: Enumerating Regular Expressions

2006-05-08 Thread Michael J. Fromberger
In article <[EMAIL PROTECTED]>, James Stroud <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > James Stroud wrote: > > > >>You mean like re.compile(r'.*') ? > > > > > > No. I mean like: > > > regex = re.compile(r'a|b') > regex.enumerate() > > > > a > > b > > You see the dif

Delivery failure notification

2006-05-08 Thread Symantec_Mail_Security_for_SMTP
Your message with Subject: could not be delivered to the following recipients: [EMAIL PROTECTED] Please do not resend your original message. Delivery attempts will continue to be made for 5 day(s). -- http://mail.python.org/mailman/listinfo/python-list

Problem - Serving web pages on the desktop (SimpleHTTPServer)

2006-05-08 Thread Ben
Hi there, Perhaps someone can help me. For some reason, when my Python script runs and loads an HTML page in a new browser window at the local host (desktop), the links to my stylesheet and all the images are broken. I did check the HTML file by itself...everything loaded fine ;) Here's my scr

Re: the print statement

2006-05-08 Thread Tim Roberts
Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >On Sun, 07 May 2006 00:09:06 GMT, Tim Roberts <[EMAIL PROTECTED]> declaimed >the following in comp.lang.python: > >> [EMAIL PROTECTED] wrote: >> >> >6) Would it be correct to infer that the print statement is aware of >> >characters beyond the 128 cha

Sorry, I didn't mean to spam...

2006-05-08 Thread Ben
I posted more than once by mistake...I was trying to configure Thunderbird. -- http://mail.python.org/mailman/listinfo/python-list

Re: Enumerating Regular Expressions

2006-05-08 Thread blair . bethwaite
Michael J. Fromberger wrote: > > You see the difficulty don't you? How will the computer know in advance > > that the regex matches only a finite set of possible strings? > > You don't. Hence, you want something that behaves like a generator, and > will produce the strings one at a time. Preferab

Re: A critic of Guido's blog on Python's lambda

2006-05-08 Thread Alex Martelli
M Jared Finder <[EMAIL PROTECTED]> wrote: ... > Any time you want an anonymous function (or class, or type, or number) > it would be because that thing is sufficiently small and simple that the > best name for it is the code itself. In one game I worked on, there was That's not what I see happ

Import data from Excel

2006-05-08 Thread N/A
Hi, Is it possible to import data from Excel for doing numerical analysis in Python? If so how? Thank u! -- http://mail.python.org/mailman/listinfo/python-list

Re: Import data from Excel

2006-05-08 Thread Paddy
The CSV module? -- http://mail.python.org/mailman/listinfo/python-list

Re: A critic of Guido's blog on Python's lambda

2006-05-08 Thread Pisin Bootvong
Kaz Kylheku wrote: > > Now imagine you had to do this with every object. > > def add_five(x) > # return x + 5 <-- anonymous integer literal, not allowed!!! >five = 5 # define it first >return x + five > I mentioned that as Slippery slope fallacious argument in other reply. > [

Re: A critic of Guido's blog on Python's lambda

2006-05-08 Thread Ketil Malde
[EMAIL PROTECTED] (Alex Martelli) writes: >> Any time you want an anonymous function (or class, or type, or number) >> it would be because that thing is sufficiently small and simple that the >> best name for it is the code itself. > In the real world, people don't choose anonymous functions only

Re: Import data from Excel

2006-05-08 Thread N/A
sorry, can you say it more clearly? In Matlab, I can easily import data from Excel just simply use 'xlsread' command. How to do that in Python environment? thank u! Paddy wrote: > The CSV module? > -- http://mail.python.org/mailman/listinfo/python-list

do "some action" once a minute

2006-05-08 Thread Petr Jakes
I would like to do "some action" once a minute. My code (below) works, I just wonder if there is some more pythonic approach or some "trick" how to do it differently. minutes=time.localtime()[4] while 1: min, sec = time.localtime()[4:6] if sec==0 and minutes!=min: # first occur of sec==0

<    1   2   3