Re: Python for Embedded Systems?

2006-07-14 Thread James Thiele
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

builtin function compile exceptions thrown?

2006-07-26 Thread James Thiele
What exceptions (if any) can the python builtin compile() function throw besides SyntaxError? -- http://mail.python.org/mailman/listinfo/python-list

Re: builtin function compile exceptions thrown?

2006-07-27 Thread James Thiele
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,

Proposal for new option -U extending -u

2006-07-29 Thread James Thiele
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

Re: looking for a better way to call a file.

2006-12-31 Thread James Thiele
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

Re: what am I missing (syntax error)

2006-03-05 Thread James Thiele
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

2007-06-09 Thread James Thiele
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

Re: Seattle Python Interest Group meeting 7 PM Thursday

2007-06-09 Thread James Thiele
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

Readline on OS X for trunk build

2007-10-28 Thread James Thiele
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

Seattle Python Interest Group Thursday at 7:00 PM

2007-01-10 Thread James Thiele
7pm at the bar below Third Place books in Ravenna: http://www.seapig.org/ThirdPlaceMeetingLocation -- http://mail.python.org/mailman/listinfo/python-list

Re: Progress count in terminal (Mac OS X)

2007-01-11 Thread James Thiele
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

Re: Reg Ex help

2006-05-11 Thread James Thiele
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

escapes in regular expressions

2006-05-21 Thread James Thiele
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

NorthwestPythonDay, 31 Jan 2009

2009-01-10 Thread James Thiele
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

sqlite version for python 2.6

2008-10-25 Thread James Thiele
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

Re: check object being a compiled regular expression

2006-03-25 Thread James Thiele
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

Accessing func_name from inside a function

2006-03-25 Thread James Thiele
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

Re: Accessing func_name from inside a function

2006-03-25 Thread James Thiele
OK. But that's just as ugly as my attempt. -- http://mail.python.org/mailman/listinfo/python-list

print() in Python 3000 return value?

2006-04-02 Thread James Thiele
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

Re: print() in Python 3000 return value?

2006-04-02 Thread James Thiele
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