"Kirk Bailey" <[EMAIL PROTECTED]> wrote
> OK, in a script, we include a special statement telling the shell
> where
> to go find the interpeter. This is the first line of the script, and
> is
> a dpecial sort of comment, called informally the shebang.
Yes, but it is not a Python feature it is a
"Kent Johnson" <[EMAIL PROTECTED]> wrote
> Several good beginners tutorials are listed here:
> http://wiki.python.org/moin/BeginnersGuide/NonProgrammers
But very few of them will have been updated to reflect
changes in 2.5. My own tutor is accurate for 2.3.
This is precisely because, as Kent sai
>
>
> Message: 3
> Date: Sun, 1 Apr 2007 16:42:56 +0100
> From: "Alan Gauld" <[EMAIL PROTECTED]>
> Subject: Re: [Tutor] Tutor Digest, Vol 38, Issue 1
> To: tutor@python.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; format=flowed; charset="iso-8859-1";
> reply-type=original
Be aware that by default the Apache web server _WILL_ use the shebang line
even when running on Windows to try to find the Python interpreter when
python is run as a CGI script.
There is a setting in the configuration file that controls whether to use
the shebang line or to reference the window
hello, I want to use python to communicate (pluck data out of registers) with a
controller (walchem,
http://www.walchem.com/nav/CMImage.aspx?CMID=0&Name=180277_Modbus_C.pdf). I
found great documentation using python sockets and TCP/IP; however I am very
unfamiliar with modbus and how modbus TCP
Guba Castro wrote:
> The links you sent me are helpful, many thanks for that. Maybe there is
> another site you might be able to recommend to me: what I want to do
> with Python in primarily (Linux) scripting. Any ideas?
What do you mean by "Linux scripting"? If you want to work with files
and d
"Jeff Peery" <[EMAIL PROTECTED]> wrote
> sockets and TCP/IP; however I am very unfamiliar with
> modbus and how modbus TCP/IP is related to TCP/IP.
I've learned never to say never on this list but this isn't really a
novice type thing so you might get better results asking on the
main comp.
"Jay Mutter III" <[EMAIL PROTECTED]> wrote
> Whether I attempt to just strip the string or attempt to
>
> if line.endswith('No.\r'):
> line = line.rstrip()
>
> It doesn't work.
Can you try printing the string repr just before the test.
Or even the last 6 characters:
print repr(line[-6:
Jeff Peery wrote:
> hello, I want to use python to communicate (pluck data out of registers)
> with a controller (walchem,
> http://www.walchem.com/nav/CMImage.aspx?CMID=0&Name=180277_Modbus_C.pdf).
> I found great documentation using python sockets and TCP/IP; however I
> am very unfamiliar wi
Jay, PLEASE shorten your posts by removing all unnecessary quoting.
On 4/5/07, Jay Mutter III <[EMAIL PROTECTED]> wrote:
> Whether I attempt to just strip the string or attempt to
>
> if line.endswith('No.\r'):
> line = line.rstrip()
>
> It doesn't work.
That's because you assume the linef
Hi all,
I have written a Python app, a company who don't use Python want to integrate
its back end with their C++ coded GUI.
At the moment they are proposing using CSV files to communicate between the
Python & C++, ie C++ GUI generates a CSV, calls Python back end, back end
does the work and g
"Dave S" <[EMAIL PROTECTED]> wrote
> At the moment they are proposing using CSV files to communicate
> between the
> Python & C++, ie C++ GUI generates a CSV, calls Python back end,
> back end
> does the work and generates return CSV, Python exits back to C++.
>
> This would work but seems a bi
On Thursday 05 April 2007 18:54, Alan Gauld wrote:
> "Dave S" <[EMAIL PROTECTED]> wrote
>
> > At the moment they are proposing using CSV files to communicate
> > between the
> > Python & C++, ie C++ GUI generates a CSV, calls Python back end,
> > back end
> > does the work and generates return CSV,
lo there all,
i have been working with pygtk2 for a while now, and, though i do like
the look and feel of a GTK2 app, i would like to do some stuff with
wx. I know, it doesn't look as cool, but , i may have need to work on
something that i can port to a windows box, and i think that wx would
be a
When doing a try/except block, is it possible to return a list as part
of the exception?
try:
check_someting()
except CheckSomethingError, e:
for each_error in e:
# do something
Can 'e' be a list of errors? If so, how do you construct your exception
class?
Is it better to do it l
On Thu, Apr 05, 2007, Mike Hansen wrote:
>When doing a try/except block, is it possible to return a list as part
>of the exception?
>
>try:
>check_someting()
>except CheckSomethingError, e:
>for each_error in e:
> # do something
>
>Can 'e' be a list of errors? If so, how do you constr
> If the Exception is defined as a class, e will be an instance of
> that class so you can have pretty much anything available:
>
> class MyException(Exception):
> def __init__(self, msg, mylist)
> self.msg = msg
> self.mylist = mylist
> Exception.__init__(self, msg)
>
As a complete tyro, I've broken my teeth on this web-page scraping
problem. I've several times wanted to scrape pages in which the only
identifying elements are positional rather than syntactical, that is,
pages in which everything's a sibling and there's no way to predict how
many sibs there a
Hello,
I've installed Python 25 on an XP machine, installed kinterbasdb (and
eginix-mx-base). Python works fine.
However, when I try to load the firebird module in IDLE I get ...
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "cr
> I have written a Python app, a company who don't use Python want to integrate
> its back end with their C++ coded GUI.
> At the moment they are proposing using CSV files to communicate between the
> Python & C++, ie C++ GUI generates a CSV, calls Python back end, back end
> does the work and
20 matches
Mail list logo