Re: python to mssql

2005-01-14 Thread Richards Noah (IFR LIT MET)
"Robert Brewer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Brane wrote:
> can someone please give me some info regarding subject
>
>http://sourceforge.net/projects/mysql-python
>
>Ask a broad question...
>
>
>Robert Brewer

Robert, the question was about 'mssql', not 'mysql'.  As for mssql, a search
on google will give you the following as the first result:
http://pymssql.sourceforge.net/

with others on the page that include:
http://www.object-craft.com.au/projects/mssql/
http://www.egenix.com/files/python/eGenix-mx-Extensions.html


Don't be lazy, Brane.  Your first point of reference should _always_ be
google.  The fact that "I'm Feeling Lucky" points you to pymssql shows that
you didn't do any research before posting here.

-Noah


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Bad Interpreter

2005-01-03 Thread Richards Noah (IFR LIT MET)
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have seen some previous messages about such a problem. I have this
> problem but it is not clear what the solution really was.
>
> I am running FC2, python 2.3.3
>
> the script i have sock.py runs if i say something like :
>
> python sock.py
>
> but ./sock.py results in a :bad interpreter error
> how do i troubleshoot something like this?
>
> regards
>

What does the first line of your script look like?  It needs to be pointing
to the python interpreter binary, which you can locate with:

which python

(on the command line).  Check and make sure it is.  If it is and you are
still getting this problem, post some code and the complete error.

HTH.


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Developing Commercial Applications in Python

2005-01-03 Thread Richards Noah (IFR LIT MET)

"It's me" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> "Richards Noah (IFR LIT MET)" <[EMAIL PROTECTED]> wrote in
message
> news:[EMAIL PROTECTED]
> >
> > Begging your pardon, but a better resource would be the brochure
available
> > (http://www.pti-us.com/PTI/company/brochures/PSSE.pdf).  It appears that
> the
> > program was probably (originally) written in C/C++ (using MFC for the
> GUI),
> > and now employs Python for adding modules and scripting support.  Very
> > interesting stuff :)
> >
> >
>
> It was actually developed in Fortran some 35 years ago.   Then migrated to
> F77.   Then added a C/C++ layer to sit ontop.   Then converted to API
based.
> Then added a Python layer on top.
>
> The only thing unfortunate is that they went with MFC on the newest
version.
> Yuck!
>

Hahaha, sounds like a party to me.  And they didn't even throw in a layer of
Lisp for good effort?  Too bad, if you ask me :)


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Developing Commercial Applications in Python

2005-01-03 Thread Richards Noah (IFR LIT MET)
> <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hello All,
> > I am trying to convince my client to use Python in his new product. He
> > is worried about the license issues. Can somebody there to point me any
> > good commercial applications developed using python ?. The licence
> > clearly says Python can be used for commercial applications. Is there
> > any other implications like that of GPL to make the source open ?
> > Thanks for any help.
> > eeykay
> >
"It's me" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Shaw-PTI (www.pti-us.com) uses Python in their software.   See:
> http://www.pti-us.com/pti/news/index.cfm and search "2004 PSS/E User Group
> Meeting"
>

Begging your pardon, but a better resource would be the brochure available
(http://www.pti-us.com/PTI/company/brochures/PSSE.pdf).  It appears that the
program was probably (originally) written in C/C++ (using MFC for the GUI),
and now employs Python for adding modules and scripting support.  Very
interesting stuff :)


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: BASIC vs Python

2004-12-17 Thread Richards Noah (IFR LIT MET)

"Christos TZOTZIOY Georgiou" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Fri, 17 Dec 2004 01:43:56 -0600, rumours say that Mike Meyer
> <[EMAIL PROTECTED]> might have written:
>
> >Assembler was better - at least you had recursion with
> >assembler.
>
> You had recursion with BASIC --what you probably mean is that you had no
> stacked parameters (unless you imitated that with using an indexed
> array).
>
> 90 rem recursion
> 100 print "beautiful colours"
> 110 gosub 100

I think he means that you had no recursive function calls in BASIC.  I
suppose, to most of us, "recursion" doesn't mean "doing things more than
once," since by that definition, iteration is also recursion.  Recursion
generally means some type of self reference, like in functional languages,
where the simplest recursion is base case/recurring step.  BASIC didn't do
this, without a bit of unsightly hackery.  Then again, I don't believe that
it was really a concern at the time, so I don't suppose its too important of
an issue :)


-- 
http://mail.python.org/mailman/listinfo/python-list