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
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
.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
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
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
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
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
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()
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
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
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
;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
"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
"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
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
>"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
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
"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
"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
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:
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'
"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
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
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
"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:
>
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
--
"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
"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
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
<[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 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
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
#=
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
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
"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
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
> 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?
>
>
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
"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:
>
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
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
"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
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
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
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.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
"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
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
"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
"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
>&
"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
"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
"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
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
"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.
>
&
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
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
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
"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)
>
"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
"?? ???" 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
>
"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
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
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
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
"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
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
.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
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
"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
&
"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
for going up in size, antialias for going down in
size.
thanks,
--Tim Arnold
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
>
"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
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
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
"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
"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
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
"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
"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.
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
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
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
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
"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
"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
(\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
p.kill()
print 'skipping' # this works ok
break
s = ''
if p:
s = p.stdout.read() # trhis will hang occasionally
if not s:
continue
--------
;
>
>
> --
> 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
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
"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
>&
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
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
"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
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
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 - 100 of 131 matches
Mail list logo