anybody know how to use python to communicate with UART?

2004-12-13 Thread Arnold
I want to use python to communicate with UART port in my PC, how can I achieve this? any modules need to be installed? Thanks -- http://mail.python.org/mailman/listinfo/python-list

C/C++ on UNIX Developer required in Woodmead, Johannesburg

2007-12-01 Thread arnold
We seek the following sort of experience / skill for developer resources (if u do not qualify - we offer a handsome referral fee if you refer someone that is succesfully placed:-) . C Programming 5 years C++ Programming 2 years SQL Programming 2 years Software Design 2 years Software Engineeri

fabric problem with ssh

2012-08-24 Thread Tim Arnold
.7.3 (default, Aug 22 2012, 13:09:20) [GCC 3.4.6 20060404 (Red Hat 3.4.6-11)] on linux2 thanks, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

communicate with external process via pty

2012-10-09 Thread Tim Arnold
I have an external process, 'tralics' that emits mathml when you feed it latex equations. I want to get that mathml into a string. The problem for me is that tralics wants to talk to a tty and I've never done that before; it basically starts its own subshell. I have the following code which w

xhtml encoding question

2012-01-31 Thread Tim Arnold
I have to follow a specification for producing xhtml files. The original files are in cp1252 encoding and I must reencode them to utf-8. Also, I have to replace certain characters with html entities. I think I've got this right, but I'd like to hear if there's something I'm doing that is dangero

Re: xhtml encoding question

2012-02-01 Thread Tim Arnold
On 2/1/2012 3:26 AM, Stefan Behnel wrote: Tim Arnold, 31.01.2012 19:09: I have to follow a specification for producing xhtml files. The original files are in cp1252 encoding and I must reencode them to utf-8. Also, I have to replace certain characters with html entities

Re: XSLT to Python script conversion?

2012-02-15 Thread Tim Arnold
On 2/13/2012 6:20 AM, Matej Cepl wrote: Hi, I am getting more and more discouraged from using XSLT for a transformation from one XML scheme to another one. Does anybody could share any experience with porting moderately complicated XSLT stylesheet (https://gitorious.org/sword/czekms-csp_bible/bl

multiprocessing timing issue

2011-08-09 Thread Tim Arnold
ocessing before, but never with a Queue like this. Any notes or suggestions are very welcome. The task starts off with: Reporter(chapters).report() thanks, --Tim Arnold from Queue import Empty from multiprocessing import Process, Queue def run_mp(objects,fn): q = Queue() procs = dict()

Re: multiprocessing timing issue

2011-08-11 Thread Tim Arnold
On 8/10/2011 11:36 PM, Philip Semanchuk wrote: On Aug 9, 2011, at 1:07 PM, Tim Arnold wrote: Hi, I'm having problems with an empty Queue using multiprocessing. The task: I have a bunch of chapters that I want to gather data on individually and then update a report database with the re

sqlite3 with context manager

2011-09-02 Thread Tim Arnold
Hi, I'm using the 'with' context manager for a sqlite3 connection: with sqlite3.connect(my.database,timeout=10) as conn: conn.execute('update config_build set datetime=?,result=? where id=?', (datetime.datetime.now(), success, self.b['id'])) my question

Re: sqlite3 with context manager

2011-09-06 Thread Tim Arnold
On 9/3/2011 3:03 AM, Carl Banks wrote: On Friday, September 2, 2011 11:43:53 AM UTC-7, Tim Arnold wrote: Hi, I'm using the 'with' context manager for a sqlite3 connection: with sqlite3.connect(my.database,timeout=10) as conn: conn.execute('update confi

Re: Literate Programming

2011-04-08 Thread Tim Arnold
;ve got a system in reasonable shape. You have full control over the display and you can make the code files go anywhere you like when you run pdflatex on your file. --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

Re: Literate Programming

2011-04-11 Thread Tim Arnold
"Hans Georg Schaathun" wrote in message news:aca678-b87@svn.schaathun.net... > On Fri, 8 Apr 2011 12:58:34 -0400, Tim Arnold > wrote: > : If you already know LaTeX, you might experiment with the *.dtx docstrip > : capability. > > Hi. Hmmm. That's a

Re: Best way to share a python list of objects

2005-10-11 Thread Tim Arnold
"Magnus Lycka" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > kyle.tk wrote: >> So I have a central list of python objects that I want to be able to >> share between different process that are possibly on different >> computers on the network. Some of the processes will add objects

pyparsing and LaTeX?

2005-11-30 Thread Tim Arnold
Anyone parsing simple LaTeX constructs with pyparsing? I'm playing around with it (and looking at John Hunter's matplotlib stuff), but I thought I'd ask here if anyone had other TeX/LaTeX examples. thanks, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

Re: pyparsing and LaTeX?

2005-12-09 Thread Tim Arnold
>"Ezequiel, Justin" <[EMAIL PROTECTED]> wrote in message > >news:[EMAIL PROTECTED] >> Anyone parsing simple LaTeX constructs with pyparsing? > > Greetings Tim, > > Have always wanted a way to parse LaTeX myself. > Unfortunately, I have been moved to a different project. > However, I am still very

JOB: Python/web developer/network contract

2005-08-01 Thread Steven Arnold
Neosynapse Inc is seeking an experienced Python developer for a short- term engagement with a new Neosynapse government customer. The task will require 5-7 years of overall programming experience; at least two years of Python experience; experience writing web applications; and a good basic

Re: Python IDE (was: PythonWin troubleshooting)

2005-12-16 Thread Tim Arnold
"chuck" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Apparently not too many people use or are interested in PythonWin. I'm > giving up on it. It used to work pretty good. > > I'm lucky that I have found PyScripter (http://www.mmm-experts.com/) a > python IDE for the windows pl

Re: Parser or regex ?

2005-12-16 Thread Tim Arnold
"Fuzzyman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello all, > > I'm writing a module that takes user input as strings and (effectively) > translates them to function calls with arguments and keyword > arguments.to pass a list I use a sort of 'list constructor' - so the > s

Help please with binary file read

2006-01-01 Thread Stewart Arnold
I'm trying to convert a Real Basic routine into Python and I can't read the long integer data from a file. Here is the Real Basic code: b=f.OpenAsBinaryFile b.LittleEndian=True i=b.ReadByte titles=b.ReadLong shows=b.ReadLong i=b.ReadLong And here is my code:

Re: Help please with binary file read

2006-01-01 Thread Stewart Arnold
Grant Perfect! Thanks :) Stewart "Grant Edwards" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 2006-01-01, Stewart Arnold <[EMAIL PROTECTED]> wrote: > >> I'm trying to convert a Real Basic routine into Python and I >> can'

Re: Marshaling unicode WDDX

2006-01-05 Thread Tim Arnold
"isthar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi ! > i am trying to serialise object which contains some unicode objects > but looks like there is no way to do it. > hi, I'm sure you'll get better answers for the unicode part of your problem (I'd start with a look at th

testing machine responsiveness

2006-10-06 Thread Tim Arnold
up command) I'm no expert--I bet what I'm doing could be done better. I'd appreciate any tips, caveats, etc. Thanks in advance for looking at the code. --Tim Arnold Say the host names are in a global list tmpList... # The final sorted list of cpus is called as: cpuLi

wddx problem with entities

2006-06-07 Thread Tim Arnold
I'm confused about why I get this error: UnicodeError: ASCII encoding error: ordinal not in range(128) when I try to load a wddx file containing this string: The image file, gif/aperçu.png, does not exist. When I loop through the file as if it's text and check the ord() value of

Re: wddx problem with entities

2006-06-09 Thread Tim Arnold
"Tim Arnold" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm confused about why I get this error: > UnicodeError: ASCII encoding error: ordinal not in range(128) > > when I try to load a wddx file containing this string: >

xinclude and pathnames

2006-09-13 Thread Tim Arnold
be read via an http server. My question: is there a way to make xinclude work with relative paths or perhaps urls? Any ideas welcome--to me it looks like I'll have to restructure this part of the system since I've basically programmed myself into a corner. thanks, --Tim Arnold --

Re: xinclude and pathnames

2006-09-14 Thread Tim Arnold
"Tim Arnold" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm using ElementTree to access some xml configuration files, and using > the module's xinclude capability. I've got lines like this in the parent > xml file (which lives in the

Re: latex openoffice converter

2006-09-14 Thread Tim Arnold
"Fabian Braennstroem" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I would like to use python to convert 'simple' latex > documents into openoffice format. Maybe, anybody has done > something similar before and can give me a starting point!? > Would be nice to hear some hi

Re: xinclude and pathnames

2006-09-14 Thread Tim Arnold
You guys saved me a bunch of hair-pulling. I'm going to check out the default_loader implementation too. --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

Re: php and python: how to unpickle using PHP?

2006-10-03 Thread Tim Arnold
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ted Zeng: >> I store some test results into a database after I use python >> To pickle them (say, misfiles=['file1','file2']) >> Now I want to display the result on a web page which uses PHP. >> How could the web page unpickle the resu

where to look for python employees/contractors?

2005-05-19 Thread Steven Arnold
Where are some of the better places to look for Python developers? I'm aware of the employer's job board on python.org; are there any other places that are especially recommended? I appreciate any thoughts or suggestions, steve -- http://mail.python.org/mailman/listinfo/python-list

pypdf assert error on documentinfo

2007-06-28 Thread Tim Arnold
Using pyPdf, nice user interface. Maybe it doesn't handle pdf 1.4? I'm getting an assertion error from the following code. The pdf file shows it does have a title in its document info (using acrobat 8 or reader 5). pdf is version 1.4, produced with pdfeTex (pdflatex) 1.304 using python 2.4.1 #=

Re: Quote aware split

2007-05-16 Thread Tim Arnold
I implemented a quick and dirty > function that suits my purposes. Take a look at pyparsing--you'll like it I think. esp. http://pyparsing.wikispaces.com/Examples --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

extra xml header with ElementTree?

2007-05-25 Thread Tim Arnold
Hi, I'm using ElementTree which is wonderful. I have a need now to write out an XML file with these two headers: My elements have the root named tocbody and I'm using: newtree = ET.ElementTree(tocbody) newtree.write(fname) I assume if I add the encoding arg I'll get the xml header: newtree = E

Re: extra xml header with ElementTree?

2007-05-25 Thread Tim Arnold
"Gerard Flanagan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On May 25, 3:55 pm, "Tim Arnold" <[EMAIL PROTECTED]> wrote: >> Hi, I'm using ElementTree which is wonderful. I have a need now to write >> out >> an XML file

encode/decode misunderstanding

2007-07-26 Thread Tim Arnold
Hi, I'm beginning to understand the encode/decode string methods, but I'd like confirmation that I'm still thinking in the right direction: I have a file of latin1 encoded text. Let's say I put one line of that file into a string variable 'tocline', as follows: tocline = 'Ficha Datos de p\xe9rdi

Re: encode/decode misunderstanding

2007-07-27 Thread Tim Arnold
> If I read in the latin1 file using > codecs.open(filename,encoding='latin1') and write out the utf8 file by > opening with > codecs.open(othername,encoding='utf8'), would I no longer have a > problem -- I could just read in latin1 and write out utf8 with no more > worries about encoding? > >

encoding misunderstanding

2007-07-27 Thread Tim Arnold
Hi, I'm beginning to understand the encode/decode string methods, but I'd like confirmation that I'm still thinking in the right direction: I have a file of latin1 encoded text. Let's say I put one line of that file into a string variable 'tocline', as follows: tocline = 'Ficha Datos de p\xe9rdid

Re: encode/decode misunderstanding

2007-07-30 Thread Tim Arnold
"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Tim Arnold schrieb: >> Hi, I'm beginning to understand the encode/decode string methods, but I'd >> like confirmation that I'm still thinking in the right direction: >

encoding confusions

2007-03-29 Thread Tim Arnold
work and I read some more and did this: tFile.write(self.contents.encode('latin-1')) but that gives me the same error UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 48: ordinal not in range(128) this is python2.4.1 (hpux) sys.getdefaultencoding() 'ascii' thanks, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

subprocess confusion

2007-04-16 Thread Tim Arnold
h in the actual command instead of preexec_fn? thanks, --Tim Arnold --- if machine == socket.gethostname(): shname = None else: shname = lambda :'/bin/remsh %s ' % (machine) p = subprocess.Popen(preexec_fn = shname, shell = True, args

Re: subprocess confusion

2007-04-17 Thread Tim Arnold
"Nick Craig-Wood" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Tim Arnold <[EMAIL PROTECTED]> wrote: >> Should I just put the remsh in the actual command instead of >> preexec_fn? > > Yes. > > The preexec_fn is run after the

cvs module

2007-09-18 Thread Tim Arnold
Hi, I need to do some scripting that interacts with CVS. I've been just doing system calls and parsing the output to figure out what's going on, but it would be nice to deal with CVS directly. Does anyone know of a python module I can use to interface with CVS? thanks, --Tim Arnold

elementtree question

2007-09-21 Thread Tim Arnold
ody' tag and somehow copying the rest of the tree under that SubElement, but it's beyond my comprehension. How can I accomplish this? (I know I could put the class on the body tag itself, but that won't satisfy the powers-that-be). thanks, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

Re: elementtree question

2007-09-24 Thread Tim Arnold
Thanks for the great answers--I learned a lot. I'm looking forward to the ET 1.3 version. I'm currently working on some older HP10.20ux machines and haven't been able to compile lxml all the way through yet. thanks again, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

image resize question

2007-10-18 Thread Tim Arnold
image.png') Can someone point me to a better way so I don't lose the reference lines in the images? thanks, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

Re: image resize question

2007-10-19 Thread Tim Arnold
"Matimus" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Oct 18, 11:56 am, "Tim Arnold" <[EMAIL PROTECTED]> wrote: >> Hi, I'm using the Image module to resize PNG images from 300 to 100dpi >> for >> use in HTML pages, bu

elementtree w/utf8

2007-10-25 Thread Tim Arnold
sic, but I tried installing cElementTree, but while I could compile with setup.py build, I didn't end up with a cElementTree.py file anywhere. The directory structure on my system (HPux, but no root access) doesn't work well with setup.py install. thanks, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

Re: elementtree w/utf8

2007-10-26 Thread Tim Arnold
"Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, 25 Oct 2007 17:15:36 -0400, Tim Arnold wrote: > >> Hi, I'm getting the by-now-familiar error: >> return codecs.charmap_decode(input,errors,decodin

Re: elementtree w/utf8

2007-10-29 Thread Tim Arnold
"Stefan Behnel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Tim Arnold wrote: >> On a related note, I have another question--where/how can I get the >> cElementTree.py module? Sorry for something so basic, but I tried >> installing >&

Re: Finding non ascii characters in a set of files

2007-02-23 Thread Tim Arnold
"Peter Bengtsson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Feb 23, 2:38 pm, [EMAIL PROTECTED] wrote: >> Hi, >> >> I'm updating my program to Python 2.5, but I keep running into >> encoding problems. I have no ecodings defined at the start of any of >> my scripts. What I'd l

Re: Finding non ascii characters in a set of files

2007-02-23 Thread Tim Arnold
"Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In <[EMAIL PROTECTED]>, Tim Arnold wrote: > > Untested: > > import os, sys, codecs > > def checkfile(filename): >f = codecs.open(filename

Re: Finding non ascii characters in a set of files

2007-02-23 Thread Tim Arnold
"Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In <[EMAIL PROTECTED]>, Tim Arnold wrote: > >> Here's what I do (I need to know the line number). >> >> import os,sys,codecs >> def c

insert comments into elementtree

2007-11-16 Thread Tim Arnold
7;: comElem = ET.SubElement(elem,ET.Comment('stopindex')) self.addComments(tree) filename = os.path.join(self.deliverloc,name) self.htmlcontent.write(tree,filename,encoding=self.encoding when I try this I get errors from the ElementTree _write method: TypeError: c

Re: insert comments into elementtree

2007-11-19 Thread Tim Arnold
"Stefan Behnel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Tim Arnold wrote: >> Hi, I'm using the TidyHTMLTreeBuilder to generate some elementtrees from >> html. One by-product is that I'm losing comments embedded in the html. > &

build tool opinions

2008-02-01 Thread Tim Arnold
Hi, I'm going through the various build tools (i.e., make-like) available and could use some advice. My documentation-build system is written in python and uses the pdflatex and plasTeX engines to create pdfs, html, and docbook XML from latex source files. All that is ok, but I can clean up a l

using scons as a library

2008-02-08 Thread Tim Arnold
I would gain by using SCons is to let my code hand-off tasks to SCons like making and cleaning directories, creating zip files, interacting with CVS, etc. Has anyone tried this before? It seems doable, but if someone has an example that would help to shorten my learning curve. thanks, --Tim Arnol

first interactive app

2008-03-26 Thread Tim Arnold
hi, I want to write a tiny interactive app for the following situation: I have books of many chapters that must be split into volumes before going to the printer. A volume can have up to 600 pages. We obviously break the book into volumes only at chapter breaks. Since some chapters make a natural

Re: first interactive app

2008-03-27 Thread Tim Arnold
"Miki" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Tim, >> >> Any ideas on a simple interface for this? >> > How about something like: > > Chapter 1 (001-200 200) > Chapter 2 (200-300 100) > -- 001-300 300 > Chapter 3 (300-450 150) > Chapter 4 (450-500 50) >

Re: python resource management

2009-01-19 Thread Tim Arnold
"Philip Semanchuk" wrote in message news:mailman.7530.1232375454.3487.python-l...@python.org... > > On Jan 19, 2009, at 3:12 AM, S.Selvam Siva wrote: > >> Hi all, >> >> I am running a python script which parses nearly 22,000 html files >> locally >> stored using BeautifulSoup. >> The problem is

Re: Using lxml to screen scrap a site, problem with charset

2009-02-02 Thread Tim Arnold
"?? ???" wrote in message news:ciqh56-ses@archaeopteryx.softver.org.mk... > So, I'm using lxml to screen scrap a site that uses the cyrillic > alphabet (windows-1251 encoding). The sites HTML doesn't have the ..content-type.. charset=..> header, but does have a HTTP header that >

Re: parse/slice/...

2009-01-07 Thread Tim Arnold
"rcmn" wrote in message news:51451b8a-6377-45d7-a8c8-54d4cadb2...@n33g2000pri.googlegroups.com... > I'm not sure how to call it sorry for the subject description. > Here what i'm trying to accomplish. > the script i'm working on, take a submitted list (for line in file) > and generate thread fo

Re: Printed Documentation

2009-01-08 Thread Tim Arnold
into Volumes, which I'd rather not have > to do. > > Has anyone tried this before? Is the documentation already available > in print? > > Thanks, > > drfloob just a datapoint, but I used lulu.com to print the latex sources (525 pages) hardbound for a cost of $25 US. --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

drive a desktop app from python?

2009-01-08 Thread Tim Arnold
browser, but I have thousands of files I need it to analyze every night. Is there any lib or recipe(s) for doing something like this via python? thanks, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

lxml removing tag, keeping text order

2008-10-24 Thread Tim Arnold
it's wrong, but not how to make it right. It returns: first text emphasized text ladida last text Maybe I should send the outside element (via tostring) to a regexp for removing the child and return that string? Regexp? Getting desperate, hey. Any pointers much appreciated, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

Re: lxml removing tag, keeping text order

2008-10-27 Thread Tim Arnold
"Stefan Behnel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Tim Arnold schrieb: >> Hi, >> Using lxml to clean up auto-generated xml to validate against a dtd; I >> need >> to remove an element tag but keep the text in order. F

Re: storing a string data in access

2008-11-03 Thread Tim Arnold
ng a data. How can I do this? > > t = "string representing a datum" > access.Fields("Time").value = t maybe OP means t = "string representing a date", but I'm just guessing. --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

modifying a codec

2008-11-05 Thread Tim Arnold
.write(line) fd1.close() The codec is doing its job, but I want to override the codepoint for this character (plus others) to use the html entity instead (from \227 to — in this case). I see hints writing your own codec and updating the decoding_map, but I could us

piping input to an external script

2009-05-11 Thread Tim Arnold
Hi, I have some html files that I want to validate by using an external script 'validate'. The html files need a doctype header attached before validation. The files are in utf8 encoding. My code: --- import os,sys import codecs,subprocess HEADER = '' filename = 'mytest.html' fd = c

Re: piping input to an external script

2009-05-12 Thread Tim Arnold
"Dave Angel" wrote in message news:mailman.25.1242113076.8015.python-l...@python.org... > Tim Arnold wrote: >> Hi, I have some html files that I want to validate by using an external >> script 'validate'. The html files need a doctype header attached before &

Re: LaTeXing python programs

2009-05-20 Thread Tim Arnold
"John Reid" wrote in message news:mailman.458.1242842132.8015.python-l...@python.org... > Edward Grefenstette wrote: >> I'm typing up my master's thesis and will be including some of the >> code used for my project in an appendix. The question is thus: is >> there a LaTeX package out there that

using PIL for good screenshots

2008-05-12 Thread Tim Arnold
for going up in size, antialias for going down in size. thanks, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

Re: using PIL for good screenshots

2008-05-13 Thread Tim Arnold
ers use to get the screenshot. They give me a 8-bit png screenshots (sometimes 24-bit) captured at 96 dpi. The part I can control comes after that--I need a workflow for getting the screenshot into print, looking as good as possible. thanks, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

pass data from optparse to other class instances

2008-06-09 Thread Tim Arnold
Hi, I'm writing a command-line interface using optparse. The cli takes several options with a single action and several parameters to be used in the resulting worker classes. I've been passing parameters from optparse to the workers in two ways: (1) creating a Globals.py module, set parameters onc

Re: pass data from optparse to other class instances

2008-06-10 Thread Tim Arnold
On Jun 9, 5:42 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Tim Arnold schrieb: > > > > > Hi, > > I'm writing a command-line interface using optparse. The cli takes > > several options with a single action and several parameters to be u

Re: regex for balanced parentheses?

2008-06-12 Thread Tim Arnold
ilk since the mid-80's so my TeXpertise is > long rusted away.) > > I know of two projects that have taken on the problem using pyparsing > - one is the mathtext module in John Hunter's matplotlib, and Tim > Arnold posted some questions on the subject a while back - try >

Re: IDE on the level of Eclipse or DEVc++?

2008-06-23 Thread Tim Arnold
"cirfu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > is there an IDE for python of the same quality as Eclipse or DEVC++? > > I am currently using the editor that coems iwth python and it is all > fine but for bigger projects it would be nice to have some way to > easier browse th

Re: Build tool for Python

2008-07-30 Thread Tim Arnold
ned SCons, http://www.scons.org/ I've used it a bit and found it pretty good, out of the box. --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

set file permission on windows

2008-04-08 Thread Tim Arnold
all I know is the Group names and the permissions I need to allow. thanks for any pointers, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

Re: set file permission on windows

2008-04-08 Thread Tim Arnold
"Mike Driscoll" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Apr 8, 12:03 pm, "Tim Arnold" <[EMAIL PROTECTED]> wrote: >> > According to the following thread, you can use os.chmod on Windows: > > http://mail.python.org/p

Re: set file permission on windows

2008-04-09 Thread Tim Arnold
"Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Tim Arnold wrote: >> "Mike Driscoll" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> On Apr 8, 12:03 pm, "Tim Arnold" <[EMAIL PROT

convert xhtml back to html

2008-04-24 Thread Tim Arnold
to figure out that lookahead stuff. I'm not sure where to start now; I looked at BeautifulSoup and BeautifulStoneSoup, but I can't see how to modify the actual tag. thanks, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

Re: convert xhtml back to html

2008-04-24 Thread Tim Arnold
"Gary Herron" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Tim Arnold wrote: >> hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop >> to create CHM files. That application really hates xhtml, so I need to >> conv

Re: convert xhtml back to html

2008-04-24 Thread Tim Arnold
"Arnaud Delobelle" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Tim Arnold" <[EMAIL PROTECTED]> writes: > >> hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop >> to >> create CHM files.

Re: convert xhtml back to html

2008-04-25 Thread Tim Arnold
xml when I move to RH linux next month. I've been using hp10.20 and never could get the requisite libraries to compile. Once I make that move, maybe I won't have as many markup related questions here! thanks again to all for the great suggestions. --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

multiple processes, private working directories

2008-09-24 Thread Tim Arnold
fixes that). Am I missing something? Is there a better way? I hate to rewrite this method as a script since I've got a lot of object metadata that I'll have to regenerate with each call of the script. thanks for any suggestions, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

multiple processes with private working dirs

2008-09-24 Thread Tim Arnold
fixes that). Am I missing something? Is there a better way? I hate to rewrite this method as a script since I've got a lot of object metadata that I'll have to regenerate with each call of the script. thanks for any suggestions, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

Re: multiple processes with private working dirs

2008-09-25 Thread Tim Arnold
On Sep 25, 12:11 am, alex23 <[EMAIL PROTECTED]> wrote: > On Sep 25, 3:37 am, "Tim Arnold" <[EMAIL PROTECTED]> wrote: > > > Am I missing something? > > Do you mean something other than the replies you got the last time you > asked the exact same q

Re: multiple processes, private working directories

2008-09-25 Thread Tim Arnold
"Tim Arnold" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have a bunch of processes to run and each one needs its own working > directory. I'd also like to know when all of the processes are > finished. Thanks for the ideas everyone--I now have

Re: Python IDE for MacOS-X

2010-01-19 Thread Tim Arnold
"Jean Guillaume Pyraksos" wrote in message news:wissme-9248e1.08090319012...@news.free.fr... > What's the best one to use with beginners ? > Something with integrated syntax editor, browser of doc... > Thanks, > >JG eclipse + pydev works well f

Re: Splitting text at whitespace but keeping the whitespace in thereturned list

2010-01-25 Thread Tim Arnold
(\s+)', "Hello world!") > ['Hello', ' ', 'world!'] also, partition works though it returns a tuple instead of a list. >>> s = 'hello world' >>> s.partition(' ') ('hello', ' ', 'world') >>> --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

subprocess hangs on reading stdout

2009-10-14 Thread Tim Arnold
p.kill() print 'skipping' # this works ok break s = '' if p: s = p.stdout.read() # trhis will hang occasionally if not s: continue --------

Re: subprocess hangs on reading stdout

2009-10-15 Thread Tim Arnold
; > > > -- > Thanks, > --Minesh Hi Minesh, Looks like I need to learn about signals--that code looks nice. I'm using python2.6. thanks, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

subprocess executing shell

2009-10-21 Thread Tim Arnold
in(action))) p.wait() if __name__ == '__main__': action = sys.argv[1:] or list() main() Since the shell is executing in the child process anyway, is the only difference when using shell=True is that environment variables can be expande

Re: subprocess executing shell

2009-10-22 Thread Tim Arnold
"Gabriel Genellina" wrote in message news:mailman.1840.1256202325.2807.python-l...@python.org... > En Wed, 21 Oct 2009 12:24:37 -0300, Tim Arnold > escribió: > >> Hi, I'm writing a script to capture a command on the commandline and run >> it >&

Re: calling server side function

2009-10-28 Thread Tim Arnold
ckling. > > -- > Gabriel Genellina > Also, have a look at RPyc. I've been playing with it for a few days and it sounds it may be what you're after. http://rpyc.wikidot.com/ http://www.ibm.com/developerworks/linux/library/l-rpyc/index.html --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

Re: a simple unicode question

2009-10-28 Thread Tim Arnold
y "related" to Unicode. > > How is that possible? > > CJ When I first saw it, my first thought was that the subjectline was an oxymoron. --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

Re: HTML Parser which allows low-keyed local changes (upon serialization)

2010-02-01 Thread Tim Arnold
"Robert" wrote in message news:hk729b$na...@news.albasani.net... > Stefan Behnel wrote: >> Robert, 01.02.2010 14:36: >>> Stefan Behnel wrote: Robert, 31.01.2010 20:57: > I tried lxml, but after walking and making changes in the element > tree, > I'm forced to do a full serializ

best way to create a dict from string

2010-02-18 Thread Tim Arnold
Hi, I've got some text to parse that looks like this text = ''' blah blah blah \Template[Name=RAD,LMRB=False,LMRG=True]{tables} ho dee ho ''' I want to extract the bit between the brackets and create a dictionary. Here's what I'm doing now: def options(text): d = dict() options = text[te

freebsd and multiprocessing

2010-03-02 Thread Tim Arnold
ut. Is anyone using multiprocessing on FreeBSD and run into any other gotchas? thanks, --Tim Arnold -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >