the output:
Command line mode: input file=censettings.xml
1358 files will be created in C:\Documents and Settings\Nate\Desktop
\freqanalysis\tilefiles\CENSUS1-tiles
1358 tiles created out of 1358 in 16 seconds
If I execute said command with subprocess, the output is not written
to mapoutput.txt -
On Jun 21, 2:12 pm, Chris Rebert wrote:
> On Sun, Jun 21, 2009 at 10:12 AM, Nate wrote:
> > I get different behavior with os.system and subprocess (no surprise
> > there I guess), but I was hoping for some clarification, namely why.
>
> > If I type this directly
On Jun 21, 3:49 pm, Christian Heimes wrote:
> Nate wrote:
> > gmapcreator = subprocess.Popen("java -Xms128M -Xmx512M -jar
> > gmapcreator.jar -dfile=censettings.xml", stdin=subprocess.PIPE,
> > stdout=subprocess.PIPE, stderr=subprocess.PIPE)
>
> Try thi
I ended up going with this:
http://code.activestate.com/recipes/440554/
seems to feed me new lines of output atleast before the subprocess
finishes, with some adjustment of the time delays. I'll guess I'll
just be packing winpy into the installer. Or something.
--
http://mail.python.org/mailma
his elegantly. I greatly enjoy Python and I look forward to
proving its use as a valuable language for a Masters student even
though everyone thinks I should use C# :-).
Thanks!
-Nate
Masters Student at Eastern Washington University
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 7, 8:32 am, Adam Tauno Williams wrote:
> On Mon, 2010-12-06 at 15:11 -0800, Nate wrote:
> > Hello,
> > I'm in the process of developing a task engine / workflow module for
> > my Python application and I'm wondering if anyone knows of existing
> > code
>>> import findertools
>>> findertools.restart()
Traceback (most recent call last):
File "", line 1, in ?
File
"/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/plat-mac/findertools.py",
line 90, in restart
finder.restart()
File
"/Library/Frameworks/Python.framework/Versio
I don't know a ton about this, but it seems to work if you use:
This.update = another_update
(instead of t.update = another_update)
after saying This.update = another_update, if you enter This.update, it
says , (it's unbound)
but if you call
t.update(5)
it will print:
another 5
--
http://mail.pyt
why are you modifying your setup.py file? can't you just run:
swig -c++ -python exampleFile.i
?
have you seen http://www.swig.org/tutorial.html , does it describe
something like what you'd like to do?
n
--
http://mail.python.org/mailman/listinfo/python-list
cdfgh'
could you use a dictionary instead? i.e.
>>> tupGlob = {'VOWELS':'aeiou', 'CONS':'bcdfgh'}
>>> tupGlob['VOWELS']
'aeiou'
>>> tupGlob['VOWELS'] = 'aeiou AndSometimesY'
>>> tupGlob['VOWELS']
'aeiou AndSometimesY'
nate
--
http://mail.python.org/mailman/listinfo/python-list
try this:
gname = 'nate'
def test():
gname = 'amy'
print gname
test()
print gname
outputs:
'amy'
'nate'
whereas this:
gname = 'nate'
def test():
global gname
gname = 'amy'
print gname
test()
print gname
outputs:
> OK, so I should include the global only if I plan to modify it.
> Otherwise, I don't need to include it. Am I right?
I guess you could say that's true. I'm hardly an expert so I couldn't
say there aren't other potential ramifications. (anyone?)
But, as a rule I would declare the global varia
I'd like a module than I'm importing to be able to use objects in the
global namespace into which it's been imported. is there a way to do
that?
thanks,
nate
--
http://mail.python.org/mailman/listinfo/python-list
uld I read something before this book? Should I ditch this book?
Thanks,
--Nate
--
http://mail.python.org/mailman/listinfo/python-list
for your responses
--Nate.
--
http://mail.python.org/mailman/listinfo/python-list
Hey everyone,
I am trying to figure out what is the largest integer I can. Lets say
for 400 megabytes of memory at my disposal.
I have tried a few things
c = 2**100
d = 2**200
print c**d
Obviously I didn't have enough memory for that, but I was able to c**3.
(I think anyways, it is sti
does anyone know if there is a way to inject keyboard events to a mac
similar to the way SendKeys works for a windows machine? (Can you point
me at it?)
thanks,
n
--
http://mail.python.org/mailman/listinfo/python-list
erstand... if the way I have above is correct, what happens
if I put a common.py in the relate directory? How would you
differentiate between that and the common package? I don't understand
why .common works from relatable. According to the docs and according
to what seems to be common sense, it really seems like it should
be ..common.
-Nate
--
http://mail.python.org/mailman/listinfo/python-list
eans, stick
them all in one file. But I don't think that's really any kind of
valid stance to argue from. Sure, if you don't need organization, it
doesn't matter what organization technique you use. But if you do
need organization, it does matter. And I think one class per fi
On Apr 5, 10:48 am, Bruno Desthuilliers wrote:
> Nate Finch a écrit :
>
> > So, here's a view from a guy who's not a python nut and has a long
> > history of professional programming in other languages (C++, C, C#,
> > Java)
>
> There are quite a few profe
this via python..
but, maybe what I've said will send you in the right direction.
-Nate
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 5, 8:33 am, "Nate Finch" <[EMAIL PROTECTED]> wrote:
> I've been trying to use fromabsolute_importand it's giving me a hell
> of a headache. I can't figure out what it's *supposed* to do, or
> maybe rather, it doesn't seem to be doing wh
Second Edition covers up to version 2.3 and
presumes a bit of knowledge with C. I've found it well written with a
rather low count of errors.
- Nate >>
--
"The optimist proclaims that we live in the best of all possible worlds,
the pessimist fears this is true."
--
http://mail.python.org/mailman/listinfo/python-list
23 matches
Mail list logo