Jack wrote:
> ...snip...
> If Python is not the best candidate for embedded systems because
> of the size, what (scripting) language would you recommend?
>
TCL is fairly popular in the embedded space. Fairly small footprint.
The syntax is not to everyone's taste.
--
http://mail.python.org/mailma
What exceptions (if any) can the python builtin compile() function
throw besides SyntaxError?
--
http://mail.python.org/mailman/listinfo/python-list
Thank you,
James
Martin v. Löwis wrote:
> James Thiele wrote:
> > What exceptions (if any) can the python builtin compile() function
> > throw besides SyntaxError?
>
> - TypeError, if the parameters are wrong/too many/too few
> - Any errors that a codec may raise,
Currently -u specifies that stdin, stdout and stderr are all
unbuffered. I propose a that -U make all files unbuffered. It could be
useful for programs that log to files.
Comments solicited.
--
http://mail.python.org/mailman/listinfo/python-list
This probably will meet your needs:
import os
os.system("csound play.orc play.sco")
If you need more control try the subprocess module.
[EMAIL PROTECTED] wrote:
> I have been auto-generating .bat files and then running
> os.startfile('whatever.bat'). I don't
> seem to be having much luck when I
Try:
for x in occupants:
if x not in uniqueUsers and x not in staff:
uniqueUsers.append(x)
elif x in staff and x not in uniqueStaff:
uniqueStaff.append(x)
--
http://mail.python.org/mailman/listinfo/python-list
Seattle Python Interest Group meeting 7 PM Thursday 14 June 2007.
See http://www,seapig.org for location and directions.
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 9, 8:35 pm, James Thiele <[EMAIL PROTECTED]> wrote:
> Seattle Python Interest Group meeting 7 PM Thursday 14 June 2007.
>
> Seehttp://www,seapig.orgfor location and directions.
Ooops!
http://www.seapig.org
--
http://mail.python.org/mailman/listinfo/python-list
Just got the trunk out of svn to build 2.6 alpha on OS X 10.4(Tiger).
No readline. I can't remember what I did to get it when I built 2.5
but it works there. Google searches are bringing up what to do for the
Python 2.3 that comes with OS X 10.4. Could someone point me in the
right direction?
Than
7pm at the bar below Third Place books in Ravenna:
http://www.seapig.org/ThirdPlaceMeetingLocation
--
http://mail.python.org/mailman/listinfo/python-list
if you invoke python with the -u option the output of print is
unbuffered.
On Jan 11, 7:04 am, Tommy Grav <[EMAIL PROTECTED]> wrote:
> This certainly does work when running the interpreter interactively,
> but when inserted into a script it seems to buffer the print statement
> and not write it ou
don wrote:
> I have a string from a clearcase cleartool ls command.
>
> /main/parallel_branch_1/release_branch_1.0/dbg_for_python/CHECKEDOUT
> from /main/parallel_branch_1/release_branch_1.0/4
>
> I want to write a regex that gives me the branch the file was
> checkedout on ,in this case - 'dbg_fo
I was helping a guy at work with regular expressions and found
something I didn't expect:
>>> re.match('\d', '7').group()
'7'
>>> re.match('\\d', '7').group()
'7'
>>>
It's not clear to me why these are the same. Could someone please
explain?
--
http://mail.python.org/mailman/listinfo/python-lis
Posted for Brian Dorsey
Hello everyone,
On behalf of the Seattle Python Interest Group, I'd like to invite you
to join us for an informal day of Python talks & socializing.
When: January, 31st 9am - 5pm
Where: University of Washington campus, Seattle, Washington
Price: Free!
Details and updated
I'd like to know which version of sqlite the python 2.6 sqlite3 module
supports.
Any help would be appreciated.
Thanks,
James
--
http://mail.python.org/mailman/listinfo/python-list
This is crude, but works:
>>> import re
>>> RX= re.compile('^something')
>>> str(RX).find("<_sre.SRE_Pattern") == 0
True
--
http://mail.python.org/mailman/listinfo/python-list
I'd like to access the name of a function from inside the function. My
first idea didn't work.
>>> def foo():
... print func_name
...
>>> foo()
Traceback (most recent call last):
File "", line 1, in ?
File "", line 2, in foo
NameError: global name 'func_name' is not defined
My second atte
OK. But that's just as ugly as my attempt.
--
http://mail.python.org/mailman/listinfo/python-list
I noticed in PEP 3000 that print will become a function. The PEP
references a thread where Guido explains this decision. The thread does
not specify what the function will return. Has this been decided?
--
http://mail.python.org/mailman/listinfo/python-list
Martin chimedin:
> James Thiele wrote:
> > I noticed in PEP 3000 that print will become a function. The PEP
> > references a thread where Guido explains this decision. The thread does
> > not specify what the function will return. Has this been decided?
>
> My intui
20 matches
Mail list logo