C.
port = 8080
BAUD_RATE = 115200
if (COMM_TYPE == 1):
asap3.TcpOpen(TCP_ip,port)
Error:
C:/Apps/dSPACE51/Common/Python22/Modules/InterfaceLibs/asap3lib.py", line
320, in TcpOpen
asap3libError: Error connect TCP/IP
Thanks if you can help.
Regards,
Baskar D.
Hey all, I'm simply trying to get my feet wet with XML parsing, and I
tried to just do something simple with ElementTree, just throw the XML
tags from a file into a list. The code is as follows (and may be
wrong):
import glob
import xml.etree.ElementTree as ET
tree = ET.parse('nameofFileh
Svenn Are Bjerkem ([EMAIL PROTECTED]) wrote:
: Hi,
: I am in the need to write an application for PyQt to visualise the
: structure of a VHDL project I am working on. Looking for a sensible
: way to parse VHDL files and putting them into a data structure that
: PyQt can represent as a tree (or what
I'm trying to construct read-only variables at the class level. I've
been unsuccessful. Any suggestions?
Mixing @classmethod and @property doesn't appear to produce workable
code. Ditto for mixing @classmethod and __getattr__. (The property
approach compiles, but execution says that you can
Arnaud Delobelle wrote:
> On Apr 12, 8:36 pm, Charles D Hixson <[EMAIL PROTECTED]>
> wrote:
>
>> I'm trying to construct read-only variables at the class level. I've
>> been unsuccessful. Any suggestions?
>>
>> Mixing @classmethod and @pr
Peter Otten wrote:
> Charles D Hixson wrote:
>
>
>> I want a hundred or so read-only variables, and I'm not sure the best
>> way to achieve it.
>>
>
> What do you really want to do? I recommend that you forget about bondage and
> rely upon displin
Lee,
have you considered using the Model-View-Presenter pattern? There is a nice
example on the wxPython wiki:
http://wiki.wxpython.org/ModelViewPresenter
This scales well to complex GUIs. Grasping the concept and writing the
initial code is the difficult part. Code is then much easier to deve
templates and css are easy to maintain. Whereas some code/markup written
with a python HTML generator is difficult to maintain.
Stephen D Evans
--
http://mail.python.org/mailman/listinfo/python-list
To whom this may concern,
Below is the source code, which
demonstrates a
problem I am having making a GUI for my python project work.
'table.txt'
is a file that is read from the same folder.
My code writes to a text file 'table.txt', and 'table.txt' is dis
Machin's Equation is
4 arctan (1/5) - arctan(1/239) = pi/4
Using Python 3.1 and the math module:
>>> from math import atan, pi
>>> pi
3.141592653589793
>>> (4*atan(.2) - atan(1/239))*4
3.1415926535897936
>>> (4*atan(.2) - atan(1/239))*4 == pi
False
>>> abs((4*atan(.2) - atan(1/239))*4) - pi < .0
On Sat, Jan 9, 2010 at 07:57, Mark Dickinson wrote:
> On Jan 9, 11:31 am, "Richard D. Moores" wrote:
>> Machin's Equation is
>>
>> 4 arctan (1/5) - arctan(1/239) = pi/4
>> [...]
>>
>> Is there a way in Python 3.1 to calculate pi to g
I recently wrote some code that prints information about the 'jukugo'
used in Japanese newspaper articles. A jukugo is a Japanese word
written with at least 2 kanji. An example of a 2-kanji jukugo is 危機
(kiki -- crisis). I found that I could not use my usual IDE to render
the Japanese correctly in
Vista
Python 3.1.3
I can't figure out how to get IDLE to wrap text pasted in from, say, a
newspaper article. Usually, a each paragraph will appear as one long
unwrapped line, with no way to read the whole line, because no
horizontal bar is created. I haven't found anything about this in
either the
On Sun, Feb 20, 2011 at 16:31, Rhodri James wrote:
> On Sat, 19 Feb 2011 23:56:45 -, Richard D. Moores
> wrote:
>
>> Vista
>> Python 3.1.3
>>
>> I can't figure out how to get IDLE to wrap text pasted in from, say, a
>> newspaper article. Usual
On Sun, Feb 20, 2011 at 18:32, Rhodri James wrote:
> On Mon, 21 Feb 2011 01:41:12 -, Richard D. Moores
> wrote:
>
>> On Sun, Feb 20, 2011 at 16:31, Rhodri James
>> wrote:
>>>
>>> On Sat, 19 Feb 2011 23:56:45 -, Richard D. Moores
>>&
Hi All!
I have a huge file and I want to extract subtext starting with "{1:" and
ending with "-}" inclusive. This subtext recurs in many places in the
file and I want the resultant to be in some output file. Any suggestions
about the best way forward.
Nedbank Limited Reg No
On Thu, Aug 5, 2010 at 16:15, Rhodri James wrote:
> On Thu, 05 Aug 2010 17:07:53 +0100, wheres pythonmonks
> wrote:
> You're not testing for equivalence there, you're testing for identity. "is"
> and "is not" test whether the two objects concerned are (or are not) the
> same object. Two object
On Fri, Aug 6, 2010 at 01:32, Bruno Desthuilliers
wrote:
> Richard D. Moores a écrit :
>>
>> On Thu, Aug 5, 2010 at 16:15, Rhodri James
>> wrote:
>>>
>>> On Thu, 05 Aug 2010 17:07:53 +0100, wheres pythonmonks
>>> wrote:
>>
>>&g
On Thu, Aug 5, 2010 at 18:47, Philip Semanchuk wrote:
>
> it's just a question of whether or not
> the module in question exposes any kind of a version attribute. There's no
> standard, unfortunately. The most popular convention seems to be via an
> attribute called __version__, but I've also seen
n). Get one of the more
recent ones, some of which I wrote.
Cheers,
Elizabeth
--
==
Elizabeth D. Rather (US & Canada) 800-55-FORTH
FORTH Inc. +1 310.999.6784
5959 West Century Blvd. Suite 700
Los Angeles, CA 90045
http:/
ssary
for general programming.
Cheers,
Elizabeth
--
==
Elizabeth D. Rather (US & Canada) 800-55-FORTH
FORTH Inc. +1 310.999.6784
5959 West Century Blvd. Suite 700
Los Angeles, CA 90045
http://www.forth.com
"Forth
t had a "snowball's chance" because it was never picked up by
the CS gurus who, AFAIK, never really took a serious look at it.
Cheers,
Elizabeth
--
==
Elizabeth D. Rather (US & Canada) 800-55-FORTH
FORTH Inc.
s, nested tables are.
You indicated that you have a copy of Forth Application Techniques.
Sections 8.1 and 8.2 cover this topic, with some drawings.
Cheers,
Elizabeth
--
==
Elizabeth D. Rather (US & Canada) 800-55-FORTH
FORTH Inc.
y to help.
Cheers,
Elizabeth
--
======
Elizabeth D. Rather (US & Canada) 800-55-FORTH
FORTH Inc. +1 310.999.6784
5959 West Century Blvd. Suite 700
Los Angeles, CA 90045
http://www.forth.com
"Forth-based products and Service
I'm looking to run a process with a limit of 3 instances, but each
execution is over a crontab interval. I've been investigating the
threading module and using daemons to limit active thread objects, but
I'm not very successful at grasping the documentation.
Is it possible to do what I'm trying to
I'm working with up to 3 process "session" per server, each process
running three threads.
I was wishing to tie back the 3 "session"/server to a semaphore, but
everything (and everyone) say semaphores are only good per process.
--
http://mail.python.org/mailman/listinfo/python-list
That was my original idea. Restricting each process by pid:
#bash
procs=`ps aux | grep script.pl | grep -v grep | wc -l`
if [ $procs -lt 3 ]; then
python2.4 script.py config.xml
else
exit 0
fi
--
http://mail.python.org/mailman/listinfo/python-list
Which is the best GUI interface builder with drag and drop
capabilities.
I am using Ubuntu GNU/Linux.
Please help me.
Thank you.
--
http://mail.python.org/mailman/listinfo/python-list
files not
getting installed. If those dlls haven't been previously installed,
they won't be on the client machine in order for python to use them.
However, I haven't had any luck installing these files manually and
getting python to work that way.
--
Kevin D. Smith
--
http://mail.python.org/mailman/listinfo/python-list
On 2009-08-21 11:43:31 -0500, Kevin D. Smith
said:
On 2009-08-21 10:39:09 -0500, "Martin v. Löwis" said:
Did you install Python to the network device from your XP box? That
would explain why you can run it: the required registry settings &
environment variables are added by
I'm working with an API that allows me to POST a zip file via HTTP and
the documentation uses a cURL example. cURL works, but when I try to
POST the file via python it fails.
I don't want to use cURL (since I'm trying to be transparent and
dependency-less), but I can't find anything online that wor
lse is 0
> False
Funny how the subject line inadvertently prefigures the answer: False
*isn't* 0. False *equals* 0. So just change "==" to "is" and "!=" to "is
not" and it should work.
Also, it can be done in a single expression, with no local variables.
--
Ciao, Paul D. DeRocco
Paulmailto:pdero...@ix.netcom.com
--
https://mail.python.org/mailman/listinfo/python-list
changed.
That said, "x is 0" is even simpler.
--
Ciao, Paul D. DeRocco
Paulmailto:pdero...@ix.netcom.com
--
https://mail.python.org/mailman/listinfo/python-list
http;//123maza.com/48/moon670/
--
http://mail.python.org/mailman/listinfo/python-list
http;//123maza.com/48/moon670/
--
http://mail.python.org/mailman/listinfo/python-list
http;//123maza.com/48/moon670/
--
http://mail.python.org/mailman/listinfo/python-list
Sharon Stone - Anna Kournikova Lindsay lohan
search engines +
cams
www.alphasearch.gr
www.alphasearch.ru--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] a écrit :
> Hi Folks,
>
> I'm thinking about writing a script that can be run over a whole site
> and produce a report about broken links etc...
>
> I've been playing with the urllib2 and httplib modules as a starting
> point and have found that with urllib2 it doesn't seem poss
501 - 538 of 538 matches
Mail list logo