Re: Python scripting as side job

2017-09-26 Thread Neil Cerutti
On 2017-09-26, Chris Angelico wrote: > On Tue, Sep 26, 2017 at 10:51 PM, gvim wrote: >> Has anyone had any success using Python scripting to automate >> processes for small businesses as a side job? I'd like to use >> my Python skills to supplement my income with abo

Re: Python scripting as side job

2017-09-26 Thread Chris Angelico
On Tue, Sep 26, 2017 at 10:51 PM, gvim wrote: > Has anyone had any success using Python scripting to automate processes for > small businesses as a side job? I'd like to use my Python skills to > supplement my income with about 4 hours' work a week. Python scripting for autom

Python scripting as side job

2017-09-26 Thread gvim
Has anyone had any success using Python scripting to automate processes for small businesses as a side job? I'd like to use my Python skills to supplement my income with about 4 hours' work a week. gvim -- https://mail.python.org/mailman/listinfo/python-list

Free Beta Invite for new scripting/VM technology (some survey answers required)

2017-08-22 Thread Zak Fenton
Hi everyone! I'm in the process of launching a business around a new scripting-related technology. It's not specific to Python users, but may be of interest to many of you, so I'd like to make sure Python users are represented in my initial market research. It's a v

Re: Scripting Help please

2016-10-13 Thread Steven D'Aprano
On Thursday 13 October 2016 07:37, LongHairLuke wrote: > Hi l am on my way to make a bot for the game Piano Tiles 2. > But the code l have written so far saids invalid syntax at 2nd line. Here is > my code: Folks, look at the email address of the poster: trolleri.trollface at gmail.com He's pos

Re: Scripting Help please

2016-10-12 Thread Terry Reedy
On 10/12/2016 4:37 PM, LongHairLuke wrote: Hi l am on my way to make a bot for the game Piano Tiles 2. But the code l have written so far saids invalid syntax at 2nd line. Here is my code: If you want to write Python code, start by working through the tutorial included with the docs. -- Terr

Re: Scripting Help please

2016-10-12 Thread Wildman via Python-list
On Wed, 12 Oct 2016 20:48:31 +, alister wrote: > On Wed, 12 Oct 2016 13:37:23 -0700, LongHairLuke wrote: > >> Hi l am on my way to make a bot for the game Piano Tiles 2. >> But the code l have written so far saids invalid syntax at 2nd line. >> Here is my code: >> >> >> >> while True: >>

Re: Scripting Help please

2016-10-12 Thread alister
On Wed, 12 Oct 2016 13:37:23 -0700, LongHairLuke wrote: > Hi l am on my way to make a bot for the game Piano Tiles 2. > But the code l have written so far saids invalid syntax at 2nd line. > Here is my code: > > > > while True: >If active then > FFSnapShot(areaX, areaY + height - offs

Scripting Help please

2016-10-12 Thread LongHairLuke
Hi l am on my way to make a bot for the game Piano Tiles 2. But the code l have written so far saids invalid syntax at 2nd line. Here is my code: while True: If active then FFSnapShot(areaX, areaY + height - offsetBottom, areaX + width, areaY + height - offsetBottom, sid) For

ANN: Leo 5.1-final. PIM, scripting Python IDE, Outliner

2015-04-17 Thread edreamleo
>What people are saying about Leo http://leoeditor.com/load-leo.html";>A web page that displays .leo files http://leoeditor.com/leoLinks.html";>More links Edward K. Ream: mailto:edream...@gmail.com";>email. http://leoeditor.com/";>Leo 5.1 is a PIM, a Python scripting IDE and outliner. (16-Apr-15) -- https://mail.python.org/mailman/listinfo/python-list

Re: Embedded python 'scripting engine' inside Python app

2014-11-24 Thread Chris Angelico
On Tue, Nov 25, 2014 at 6:38 PM, Patrick Stinson wrote: > Thanks for the stories in this and the other thread. I love these interesting > problems that push the limits :) I agree. How boring is life when we never push the limits! ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Embedded python 'scripting engine' inside Python app

2014-11-24 Thread Patrick Stinson
> On Nov 23, 2014, at 4:57 AM, Chris Angelico wrote: > > On Mon, Nov 24, 2014 at 12:20 AM, Patrick Stinson > wrote: >> I think this is the way I’ll take it, and for all the same reasons. The only >> way they can break it is if they really want to. I guess anything other >> Franken-apps would

Re: Embedded python 'scripting engine' inside Python app

2014-11-24 Thread Patrick Stinson
I think this is the way I’ll take it, and for all the same reasons. The only way they can break it is if they really want to. I guess anything other Franken-apps would be interesting to hear about too. And I’ll still stick it on the app store. > On Nov 23, 2014, at 1:35 AM, Chris Angelico wro

Re: Embedded python 'scripting engine' inside Python app

2014-11-24 Thread Patrick Stinson
Thanks for your great reply. I even augmented the reloading with the same dict by clearing all of the non-standard symbols from the dict. This effectively resets the dict: # try to clear out the module by deleting all global refs

Re: Embedded python 'scripting engine' inside Python app

2014-11-23 Thread Chris Angelico
On Mon, Nov 24, 2014 at 12:20 AM, Patrick Stinson wrote: > I think this is the way I’ll take it, and for all the same reasons. The only > way they can break it is if they really want to. I guess anything other > Franken-apps would be interesting to hear about too. And I’ll still stick it > on t

Re: Embedded python 'scripting engine' inside Python app

2014-11-23 Thread Stefan Behnel
upa, I know that some people have successfully and safely embedded Lua in Python as a simple, small and object-oriented scripting language in a sandbox. https://pypi.python.org/pypi/lupa The overall syntax isn't quite as great as that of Python, but as long as you mostly stick to "here's

Re: Embedded python 'scripting engine' inside Python app

2014-11-23 Thread Chris Angelico
On Sun, Nov 23, 2014 at 9:28 PM, Patrick Stinson wrote: > Thanks for your great reply. I even augmented the reloading with the same > dict by clearing all of the non-standard symbols from the dict. This > effectively resets the dict: You may as well start with an empty dict and then pick up the f

Re: Embedded python 'scripting engine' inside Python app

2014-11-23 Thread Chris Angelico
On Sun, Nov 23, 2014 at 4:48 PM, Patrick Stinson wrote: > I am writing a python app (using PyQt, but that’s not important here), and > want my users to be able to write their own scripts to automate the app’s > functioning using an engine API hat I expose. I have extensive experience > doing th

Embedded python 'scripting engine' inside Python app

2014-11-23 Thread Patrick Stinson
I am writing a python app (using PyQt, but that’s not important here), and want my users to be able to write their own scripts to automate the app’s functioning using an engine API hat I expose. I have extensive experience doing this in a C++ app with the CPython api, but have no idea how to do

ANN: Leo 4.11 final released: Python scripting IDE

2013-11-12 Thread edreamleo
Leo 4.11 final is now available at: http://sourceforge.net/projects/leo/files/Leo/ Leo 4.11 contains over a year's work on Leo. Leo is a PIM, an IDE and an outliner for programmers, authors and web designers. Leo's unique features organize data in a revolutionary way. Python scripts can easily a

Announcing Picat, the next scripting language after Python

2013-07-30 Thread neng . zhou
for not only symbolic computations, which is a traditional application domain of declarative languages, but also for scripting and modeling tasks. Example 1: The following predicate, input_data(Tri), reads rows of integers from the text file "triangle.txt" into an array. This is the first

Re: Best Scripting Language for Embedded Work?

2013-07-11 Thread Christian Gollwitzer
Hi David, Am 12.07.13 03:18, schrieb David T. Ashley: On Wed, 10 Jul 2013 09:03:54 +0200, Christian Gollwitzer wrote: > Robert's answer made me hesitate - what exactly is your platform? Are you writing the scripts for the embedded platform, or for Windows, or does the embedded controller run

Re: Best Scripting Language for Embedded Work?

2013-07-11 Thread Stefan Behnel
David T. Ashley, 12.07.2013 03:19: > On Wed, 10 Jul 2013 14:38:51 -0500, Johann Hibschman wrote: > >> David T. Ashley writes: >> >>> We develop embedded software for 32-bit micros using Windows as the >>> development platform. >> ... >>> I know that Tcl/Tk would do all of the above, but what about

Re: Best Scripting Language for Embedded Work?

2013-07-11 Thread David T . Ashley
On Wed, 10 Jul 2013 14:38:51 -0500, Johann Hibschman wrote: >David T. Ashley writes: > >> We develop embedded software for 32-bit micros using Windows as the >> development platform. >... >> I know that Tcl/Tk would do all of the above, but what about Python? >> Any other alternatives? > >Given

Re: Best Scripting Language for Embedded Work?

2013-07-11 Thread David T . Ashley
On Tue, 09 Jul 2013 21:44:48 -0400, Dave Angel wrote: >On 07/09/2013 09:29 PM, David T. Ashley wrote: >> We develop embedded software for 32-bit micros using Windows as the >> development platform. >> >> We are seeking a general purpose scripting language to auto

Re: Best Scripting Language for Embedded Work?

2013-07-10 Thread Johann Hibschman
David T. Ashley writes: > We develop embedded software for 32-bit micros using Windows as the > development platform. ... > I know that Tcl/Tk would do all of the above, but what about Python? > Any other alternatives? Given that list, I'd say just use Tcl and be done. You could force the squar

Re: Best Scripting Language for Embedded Work?

2013-07-10 Thread Grant Edwards
On 2013-07-10, David T Ashley wrote: > We develop embedded software for 32-bit micros using Windows as the > development platform. > > We are seeking a general purpose scripting language to automate > certain tasks, like cleaning out certain directories of certain type

Re: Best Scripting Language for Embedded Work?

2013-07-10 Thread Stefan Behnel
Christian Gollwitzer, 10.07.2013 09:03: > http://www.lua.org/ > > Very compact (a static binary is about ~200K), clean synatx, relatively > fast. OTOH, the standard library is of course not so extensive as for Tcl > or Python. "not so extensive" is a rather bold understatement. ISTM that most pro

Re: Best Scripting Language for Embedded Work?

2013-07-10 Thread Christian Gollwitzer
er made me hesitate - what exactly is your platform? Are you writing the scripts for the embedded platform, or for Windows, or does the embedded controller run Windows RT or something like this? We are seeking a general purpose scripting language to automate certain tasks, like cleaning o

Re: Best Scripting Language for Embedded Work?

2013-07-09 Thread Alain Ketterlin
Windows and deploy on something else (typically, some form of linux), then, well, think again. > We are seeking a general purpose scripting language to automate > certain tasks, like cleaning out certain directories of certain types > of files in preparation for ZIP'ing, generat

Re: Best Scripting Language for Embedded Work?

2013-07-09 Thread Dave Angel
On 07/09/2013 09:29 PM, David T. Ashley wrote: We develop embedded software for 32-bit micros using Windows as the development platform. We are seeking a general purpose scripting language to automate certain tasks, like cleaning out certain directories of certain types of files in preparation

Best Scripting Language for Embedded Work?

2013-07-09 Thread David T . Ashley
We develop embedded software for 32-bit micros using Windows as the development platform. We are seeking a general purpose scripting language to automate certain tasks, like cleaning out certain directories of certain types of files in preparation for ZIP'ing, generating certain source

Re: Scripting Calligra Sheets with Python

2013-06-15 Thread Mark Lawrence
On 15/06/2013 16:55, Jim Byrnes wrote: I've read all the docs I can find and worked through a lot of examples but I can't figure out how to shift the focus from one cell to another. Could someone point me to the command or an example of how to do this? Thanks, Jim Have you tried asking here

Scripting Calligra Sheets with Python

2013-06-15 Thread Jim Byrnes
I've read all the docs I can find and worked through a lot of examples but I can't figure out how to shift the focus from one cell to another. Could someone point me to the command or an example of how to do this? Thanks, Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: LinuxJournal Readers' Choice Awards 2011 Best {Programming, Scripting} Language

2011-12-05 Thread Ron
Hello Wesley, Thanks for the interesting news from Linux Journal. Now, enquring minds want to know, when will there be a Core Python 3? Ron :-) -- http://mail.python.org/mailman/listinfo/python-list

LinuxJournal Readers' Choice Awards 2011 Best {Programming, Scripting} Language

2011-12-04 Thread wesley chun
get back to building great things. wait, in other news... Python wins LinuxJournal's Readers' Choice Awards 2011 as Best Scripting Language: http://www.linuxjournal.com/slideshow/readers-choice-2011?page=28 interestingly enough, this happened last year as well: http://www.linuxjournal.com

[ANN] Android Debug Bridge (ADB) Scripting Language For Android (SL4A) convenience library

2011-11-27 Thread Stef Mientki
hello, The information on ADB / SL4A is quiet overwhelming. Despite that, especially for people, not familiar with Linux, it's not an easy task to get their first program running. This library allows you to easy upload and run Python files on a Android device, without pressing any button on the

Re: Recommendations for household finance scripting?

2011-07-19 Thread TheSaint
markolopa wrote: > I would like to find a good system to keep track of my household > finance. Do Python programmers have suggestions on that? Do you use > Python to help on this task? libreOffice doesn't do it? -- http://mail.python.org/mailman/listinfo/python-list

Re: Recommendations for household finance scripting?

2011-07-18 Thread rusi
preadsheet >   - Easy to start, but I know I will soon feel blocked by the lack of > scripting tools. > - Spreadsheets + Python scripts >   - Enter data in spreadsheets, next apply python scripts for what is > difficult to do with formulas >   - Use pythonUNO (http://wiki.se

Recommendations for household finance scripting?

2011-07-18 Thread markolopa
lack of scripting tools. - Spreadsheets + Python scripts - Enter data in spreadsheets, next apply python scripts for what is difficult to do with formulas - Use pythonUNO (http://wiki.services.openoffice.org/wiki/ PyUNO_bridge)? - Use Google spreadsheets api (http://code.google.com/apis

Re: Gnumeric scripting and license

2011-06-09 Thread Chris Angelico
On Fri, Jun 10, 2011 at 12:47 AM, Bhushit Joshipura wrote: > I am looking for some information about Gnumeric scripting licensing. > Here is my question: > "If I script for Gnumeric using Python, must I release the script > code?" > I am unable to draw a line where Gn

Re: Gnumeric scripting and license

2011-06-09 Thread Ben Finney
Bhushit Joshipura writes: > I am looking for some information about Gnumeric scripting licensing. You're asking in the wrong place; that's a question for the authors of the GPL, and for the copyright holders in Gnumeric. The authors of the GPL have an FAQ document you wil

Gnumeric scripting and license

2011-06-09 Thread Bhushit Joshipura
I am looking for some information about Gnumeric scripting licensing. Here is my question: "If I script for Gnumeric using Python, must I release the script code?" I am unable to draw a line where Gnumeric GPL ends and where proprietary nature of macros start. Thanks in advance, -Bhushi

Re: Installing Python as Scripting Language in IIS

2010-08-31 Thread Michel Claveau - MVP
Re ! More details: C:\Python26\Lib\site-packages\win32comext\axscript\Demos\client\ie\demo.htm @+ -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python as Scripting Language in IIS

2010-08-31 Thread Michel Claveau - MVP
Hi! You must register Python as ActiveScripting's language. See : C:\Python26\Lib\site-packages\win32comext\axscript @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python as Scripting Language in IIS

2010-08-31 Thread hexusne...@gmail.com
On Aug 30, 6:55 pm, naugiedoggie wrote: > Hello, > > Windows 2003, 64-bit, standard edition server with IIS 6.0.  I > followed the MS instruction sheets on setting up CGI application with > Python as scripting engine.  I'm just getting 404 for the test script, > whereas a

Installing Python as Scripting Language in IIS

2010-08-30 Thread naugiedoggie
Hello, Windows 2003, 64-bit, standard edition server with IIS 6.0. I followed the MS instruction sheets on setting up CGI application with Python as scripting engine. I'm just getting 404 for the test script, whereas an html file in the same virtual directory is properly displayed.

Re: Python as a scripting language. Alternative to bash script?

2010-07-23 Thread Tim Harig
On 2010-07-24, Lawrence D'Oliveiro wrote: > In message , Tim Harig wrote: > >> On 2010-07-05, Lawrence D'Oliveiro >> wrote: >>> >>> I???ve never come across any system where you could string together >>> multiple GUI apps, or even multiple GUI operations in the same app, in >>> any sensible or ef

Re: Python as a scripting language. Alternative to bash script?

2010-07-23 Thread Lawrence D'Oliveiro
In message , Michael Torrie wrote: > While it's possible to set up pipes and spawn programs in parallel to > operate on the pipes, in practice it's simpler to tell subprocess.Popen > to use a shell and then just rely on Bash's very nice syntax for setting > up the pipeline. Just be careful about

Re: Python as a scripting language. Alternative to bash script?

2010-07-23 Thread Lawrence D'Oliveiro
In message , Tim Harig wrote: > On 2010-07-05, Lawrence D'Oliveiro > wrote: >> >> I’ve never come across any system where you could string together >> multiple GUI apps, or even multiple GUI operations in the same app, in >> any sensible or effective way at all. GUIs just aren???t designed to wor

Re: Python as a scripting language. Alternative to bash script?

2010-07-07 Thread Chris Rebert
On Wed, Jul 7, 2010 at 8:31 AM, Michael Torrie wrote: > On 07/06/2010 09:34 PM, Chris Rebert wrote: >> On Tue, Jul 6, 2010 at 6:40 AM, Michael Torrie wrote: >>> While it's possible to set up pipes and spawn programs in parallel to >>> operate on the pipes, in practice it's simpler to tell subproc

Re: Python as a scripting language. Alternative to bash script?

2010-07-07 Thread Michael Torrie
On 07/06/2010 09:34 PM, Chris Rebert wrote: > On Tue, Jul 6, 2010 at 6:40 AM, Michael Torrie wrote: >> While it's possible to set up pipes and spawn programs in parallel to >> operate on the pipes, in practice it's simpler to tell subprocess.Popen >> to use a shell and then just rely on Bash's ver

Re: Python as a scripting language. Alternative to bash script?

2010-07-07 Thread Stefan Behnel
John Nagle, 28.06.2010 19:57: Programs have "argv" and "argc", plus environment variables, going in. So, going in, there are essentially subroutine parameters. But all that comes back is an exit code. They should have had something similar coming back, with arguments to "exit()" returning the res

Re: Python as a scripting language. Alternative to bash script?

2010-07-06 Thread Chris Rebert
On Tue, Jul 6, 2010 at 6:40 AM, Michael Torrie wrote: > On 07/06/2010 04:12 AM, sturlamolden wrote: >> On 28 Jun, 19:39, Michael Torrie wrote: >>> In python I could simply take the output of "ps ax" and use python's >>> own, superior, cutting routines (using my module): >>> >>> (err, stdout, stde

Re: Python as a scripting language. Alternative to bash script?

2010-07-06 Thread Chris Rebert
On Tue, Jul 6, 2010 at 1:35 PM, member thudfoo wrote: > On Tue, Jul 6, 2010 at 6:40 AM, Michael Torrie wrote: >> On 07/06/2010 04:12 AM, sturlamolden wrote: >>> On 28 Jun, 19:39, Michael Torrie wrote: In python I could simply take the output of "ps ax" and use python's own, superior, c

Re: Python as a scripting language. Alternative to bash script?

2010-07-06 Thread member thudfoo
On Tue, Jul 6, 2010 at 6:40 AM, Michael Torrie wrote: > On 07/06/2010 04:12 AM, sturlamolden wrote: >> On 28 Jun, 19:39, Michael Torrie wrote: >> >>> In python I could simply take the output of "ps ax" and use python's >>> own, superior, cutting routines (using my module): >>> >>> (err, stdout, s

Re: Python as a scripting language. Alternative to bash script?

2010-07-06 Thread Michael Torrie
On 07/06/2010 04:12 AM, sturlamolden wrote: > On 28 Jun, 19:39, Michael Torrie wrote: > >> In python I could simply take the output of "ps ax" and use python's >> own, superior, cutting routines (using my module): >> >> (err, stdout, stderr) = runcmd.run( [ 'ps', 'ax' ] ) >> for x in stdout.split

Re: Python as a scripting language. Alternative to bash script?

2010-07-06 Thread sturlamolden
On 28 Jun, 19:39, Michael Torrie wrote: > In python I could simply take the output of "ps ax" and use python's > own, superior, cutting routines (using my module): > > (err, stdout, stderr) = runcmd.run( [ 'ps', 'ax' ] ) > for x in stdout.split('\n'): >     print x.strip().split()[0] Or you just

Re: Python as a scripting language. Alternative to bash script?

2010-07-05 Thread Emile van Sebille
On 7/5/2010 11:02 AM Tim Harig said... Automating GUI applications requires interal access to the program through some kind of interface and, ideally, decent documention of the interface, something that is missing from many, if not most, GUIs. Anything else relies on ugly and, generally fragile

Re: Python as a scripting language. Alternative to bash script?

2010-07-05 Thread Tim Harig
e done; but, that it must be explicilty designed to be used this way. I have worked with complex business process automation centered around Excel and I have automated some really ugly AJAX style web based applications that would only work inside of IE6 by accessing IE through its COM interface. &g

Re: Python as a scripting language. Alternative to bash script?

2010-07-05 Thread Lawrence D'Oliveiro
ver meant to be. I’ve never come across any system where you could string together multiple GUI apps, or even multiple GUI operations in the same app, in any sensible or effective way at all. GUIs just aren’t designed to work that way. The command line (or scripting, the difference isn’t that import

Re: Python as a scripting language. Alternative to bash script?

2010-07-05 Thread Lawrence D'Oliveiro
In message , Mithrandir wrote: > I think that Python "could" be a alternative to bash and have some > advantages, but it's a long way off from being fully implemented. Would you prefer to do the following sort of thing in Python or Bash? AudioParms = "-f s16le -ar 48000 -ac 2" # because I

Re: Python as a scripting language. Alternative to bash script?

2010-07-04 Thread Lawrence D'Oliveiro
In message <7xpqzbj8st@ruckus.brouhaha.com>, Paul Rubin wrote: > ... and argc/argv were passed to the child process on its stack. I’ve always felt that to be a misfeature. It means you can’t implement a self-contained argument-parsing library, it still needs the mainline to explicitly pass/

Re: Python as a scripting language. Alternative to bash script?

2010-07-02 Thread Jerry Rocteur
* Dave Pawson [2010-07-02 08:22]: > I'm the OP btw. > > On 1 July 2010 18:10, Dennis Lee Bieber wrote: > > >> I think that Python "could" be a alternative to bash and have some > >> advantages, but it's a long way off from being fully implemented. > > Take a look at Python for Unix and Linux S

Re: Python as a scripting language. Alternative to bash script?

2010-07-01 Thread Dave Pawson
I'm the OP btw. On 1 July 2010 18:10, Dennis Lee Bieber wrote: >> I think that Python "could" be a alternative to bash and have some >> advantages, but it's a long way off from being fully implemented. > >        While a somewhat klutzier language in aspects (the , is both an > parameter separat

Re: Python as a scripting language. Alternative to bash script?

2010-06-30 Thread Mithrandir
gt; (such as apt- get, etc.) that would need Python equivs. However, I >> can see Python being used as a scripting alt. to C. > > OO is a plus for most things, in my book. As for "commands" they have > *nothing* to do with Bash. apt-get is not a Bash command. By your > lo

Re: Python as a scripting language. Alternative to bash script?

2010-06-29 Thread Robert Kern
On 6/29/10 4:06 AM, Jorgen Grahn wrote: On Mon, 2010-06-28, John Nagle wrote: On 6/28/2010 7:58 AM, Benjamin Kaplan wrote: How does a program return anything other than an exit code? Ah, yes, the second biggest design mistake in UNIX. Programs have "argv" and "argc", plus environme

Re: Python as a scripting language. Alternative to bash script?

2010-06-29 Thread eric dexter
On Jun 28, 5:48 am, Dave Pawson wrote: > I've a fairly long bash script and I'm wondering > how easy it would be to port to Python. > > Main queries are: > Ease of calling out to bash to use something like imageMagick or Java? > Ease of grabbing return parameters? E.g. convert can return both > he

Re: Python as a scripting language. Alternative to bash script?

2010-06-29 Thread Jorgen Grahn
On Mon, 2010-06-28, Dave Pawson wrote: > I've a fairly long bash script and I'm wondering > how easy it would be to port to Python. > > Main queries are: > Ease of calling out to bash to use something like imageMagick or Java? > Ease of grabbing return parameters? E.g. convert can return both > hei

Re: Python as a scripting language. Alternative to bash script?

2010-06-29 Thread Jorgen Grahn
On Mon, 2010-06-28, John Nagle wrote: > On 6/28/2010 7:58 AM, Benjamin Kaplan wrote: >> How does a program return anything other than an exit code? > > Ah, yes, the second biggest design mistake in UNIX. > > Programs have "argv" and "argc", plus environment variables, > going in. So, going

Re: Python as a scripting language. Alternative to bash script?

2010-06-28 Thread Peter H. Coffin
On Mon, 28 Jun 2010 23:12:47 +0100, Rhodri James wrote: > On Mon, 28 Jun 2010 18:57:45 +0100, John Nagle wrote: > >> On 6/28/2010 7:58 AM, Benjamin Kaplan wrote: >>> How does a program return anything other than an exit code? >> >> Ah, yes, the second biggest design mistake in UNIX. >> >>

Re: Python as a scripting language. Alternative to bash script?

2010-06-28 Thread Rhodri James
On Mon, 28 Jun 2010 18:57:45 +0100, John Nagle wrote: On 6/28/2010 7:58 AM, Benjamin Kaplan wrote: How does a program return anything other than an exit code? Ah, yes, the second biggest design mistake in UNIX. Programs have "argv" and "argc", plus environment variables, going in.

Re: Python as a scripting language. Alternative to bash script?

2010-06-28 Thread Michael Torrie
On 06/28/2010 02:06 PM, Mithrandir wrote: > I can't see Python as an alt. to bash. (As I recall) Python is much more > object-oriented than bash, but also there are many commands (such as apt- > get, etc.) that would need Python equivs. However, I can see Python being > used a

Re: Python as a scripting language. Alternative to bash script?

2010-06-28 Thread Stephen Hansen
On 6/28/10 1:06 PM, Mithrandir wrote: Paul Rubin wrote in news:7xpqzbj8st@ruckus.brouhaha.com: Re: Python as a scripting language. Alternative to bash script? That's interesting but I'm having a hard time seeing how it would work. I think environment variables didn't

Re: Python as a scripting language. Alternative to bash script?

2010-06-28 Thread Mithrandir
Paul Rubin wrote in news:7xpqzbj8st@ruckus.brouhaha.com: > Re: Python as a scripting language. Alternative to bash script? > That's interesting but I'm having a hard time seeing how it would work. > I think environment variables didn't exist in early versions of Un

Re: Python as a scripting language. Alternative to bash script?

2010-06-28 Thread Paul Rubin
John Nagle writes: >Programs have "argv" and "argc", plus environment variables, > going in. So, going in, there are essentially subroutine parameters. > But all that comes back is an exit code. They should have had > something similar coming back, with arguments to "exit()" returning > the r

Re: Python as a scripting language. Alternative to bash script?

2010-06-28 Thread Michael Torrie
On 06/28/2010 12:05 PM, Dave Pawson wrote: > On 28 June 2010 18:39, Michael Torrie wrote: > >> Sure. I've created a module called runcmd that does 90% of what I >> want (easy access to stdout, stderr, error code). I've attached >> it to this e-mail. Feel free to use it; this post puts my code

Re: Python as a scripting language. Alternative to bash script?

2010-06-28 Thread Dave Pawson
to use it; this post puts my code into the public domain. Thanks Michael. > >> I'd prefer the advantages of using Python, just wondering if I got so >> far with the port then found it wouldn't do something? > > Python really isn't a shell scripting language.  So

Re: Python as a scripting language. Alternative to bash script?

2010-06-28 Thread John Nagle
On 6/28/2010 7:58 AM, Benjamin Kaplan wrote: How does a program return anything other than an exit code? Ah, yes, the second biggest design mistake in UNIX. Programs have "argv" and "argc", plus environment variables, going in. So, going in, there are essentially subroutine parameters.

Re: Python as a scripting language. Alternative to bash script?

2010-06-28 Thread Michael Torrie
vantages of using Python, just wondering if I got so > far with the port then found it wouldn't do something? Python really isn't a shell scripting language. So there are things that Bash does much better, such as spawning processes and piping them together. I've tried over t

Re: Python as a scripting language. Alternative to bash script?

2010-06-28 Thread Thomas Jollans
On 06/28/2010 06:08 PM, Dave Pawson wrote: > Thanks for the replies (and Benjamin). > Not met with the subprocess idea. > > On 28 June 2010 16:29, D'Arcy J.M. Cain wrote: > >>> Main queries are: >>> Ease of calling out to bash to use something like imageMagick or Java? >> >> You don't need to ca

Re: Python as a scripting language. Alternative to bash script?

2010-06-28 Thread Dave Pawson
Thanks for the replies (and Benjamin). Not met with the subprocess idea. On 28 June 2010 16:29, D'Arcy J.M. Cain wrote: >> Main queries are: >> Ease of calling out to bash to use something like imageMagick or Java? > > You don't need to call bash to call an external program.  Check out the > sub

Re: Python as a scripting language. Alternative to bash script?

2010-06-28 Thread D'Arcy J.M. Cain
On Mon, 28 Jun 2010 12:48:51 +0100 Dave Pawson wrote: > I've a fairly long bash script and I'm wondering > how easy it would be to port to Python. That's too big a question without seeing more of what your script does. I will try to suggest some direction though. First, if you have a complicate

Re: Python as a scripting language. Alternative to bash script?

2010-06-28 Thread Benjamin Kaplan
On Mon, Jun 28, 2010 at 4:48 AM, Dave Pawson wrote: > I've a fairly long bash script and I'm wondering > how easy it would be to port to Python. > > Main queries are: > Ease of calling out to bash to use something like imageMagick or Java? Easiest way is os.system, most flexible way is subprocess

Python as a scripting language. Alternative to bash script?

2010-06-28 Thread Dave Pawson
I've a fairly long bash script and I'm wondering how easy it would be to port to Python. Main queries are: Ease of calling out to bash to use something like imageMagick or Java? Ease of grabbing return parameters? E.g. convert can return both height and width of an image. Can this be returned to t

Python scripting in Ultraspider web crawler?

2010-06-09 Thread Mickel Grönroos
Hi there! Does anybody on the list have experience on processing output from the Ultraspider web crawler with Python? I am using the Ultraspider web crawler to crawl a web site and then send the web pages' content and metadata to an Autonomy IDOL search engine. However, I want to do some processi

Re: Scripting (was Re: Python books, literature etc)

2010-01-09 Thread bartc
"Peter" wrote in message news:mailman.661.1262978839.28905.python-l...@python.org... Sounds good. Regarding the book's title: is it just me, or are Python programmers in general put off when people call it "scripting"? I won't attempt a strict definition o

Re: Scripting (was Re: Python books, literature etc)

2010-01-09 Thread McColgst
Just to kind of get back on topic: Before buying a book or making a terribly large investment, OP should consider the fact that Python 3 is out and gaining some popularity. -- http://mail.python.org/mailman/listinfo/python-list

Re: Scripting (was Re: Python books, literature etc)

2010-01-08 Thread Florian Diesch
Jorgen Grahn writes: > Regarding the book's title: is it just me, or are Python programmers > in general put off when people call it "scripting"? > > I won't attempt a strict definition of the term "scripting language", > but it seems like non-pro

Re: Scripting

2010-01-08 Thread Ben Finney
Jorgen Grahn writes: > Regarding the book's title: is it just me, or are Python programmers > in general put off when people call it "scripting"? The term “script” for a Python program is part of the official terminology, so those who would be put off by that term have to

Re: Scripting (was Re: Python books, literature etc)

2010-01-08 Thread Peter
Sounds good. Regarding the book's title: is it just me, or are Python programmers in general put off when people call it "scripting"? I won't attempt a strict definition of the term "scripting language", but it seems like non-programmers use it to mean "less

Re: Scripting (was Re: Python books, literature etc)

2010-01-08 Thread MRAB
Jorgen Grahn wrote: On Thu, 2010-01-07, Peter wrote: [...] depending on your application domain, I liked: 1) Hans Petter Langtangen: Python Scripting for Computational Science A truly excellent book, not only with respect to Python Scripting , but also on how to avoid paying license fees

Re: Scripting (was Re: Python books, literature etc)

2010-01-08 Thread J
On Fri, Jan 8, 2010 at 09:37, Jorgen Grahn wrote: > Regarding the book's title: is it just me, or are Python programmers > in general put off when people call it "scripting"? > > I won't attempt a strict definition of the term "scripting language", >

Scripting (was Re: Python books, literature etc)

2010-01-08 Thread Jorgen Grahn
On Thu, 2010-01-07, Peter wrote: > [...] depending on your > application domain, I liked: > > 1) Hans Petter Langtangen: Python Scripting for Computational Science > A truly excellent book, not only with respect to Python Scripting , but > also on how to avoid paying lic

Python win32 ActiveX scripting input box question

2009-09-28 Thread Kevin Young
I am trying to assign the user input into a variable. I am using Python as an ActiveX scripting language in a host that allows for activex scripting. I am able to create an input box with the following >> import win32ui >> from pywin.mfc.dialog import Dialog &

Re: strange python scripting error

2009-07-25 Thread Dave Angel
Dennis Lee Bieber wrote: On Sat, 25 Jul 2009 07:18:58 -0400, Dave Angel declaimed the following in gmane.comp.python.general: Another thing I'd point out is that some ftp programs will do this conversion as the file is being sent between a local DOS machine and a Unix machine on the inte

Re: strange python scripting error

2009-07-25 Thread Dave Angel
Mark Tarver wrote: Use dos2unix for conversion of the longer file and try again: http://linux.about.com/od/commands/l/blcmdl1_dos2uni.htm-Hide quoted text - - Show quoted text - That sounds the ticket - but is there anything that runs under Windows to do the trick? M

Re: strange python scripting error

2009-07-25 Thread Mark Tarver
On 25 July, 10:30, Mark Tarver wrote: > On 24 July, 15:45, nn wrote: > > > > > > > On Jul 23, 7:03 pm, Dave Angel wrote: > > > > Mark Tarver wrote: > > > > I have a very strange error.  I have two test python files test.py and > > > > python.py which contain the following code > > > > > #!/usr/b

Re: strange python scripting error

2009-07-25 Thread Mark Tarver
On 24 July, 15:45, nn wrote: > On Jul 23, 7:03 pm, Dave Angel wrote: > > > > > > > Mark Tarver wrote: > > > I have a very strange error.  I have two test python files test.py and > > > python.py which contain the following code > > > > #!/usr/bin/python > > > print "Content-type: text/html" > > >

Re: strange python scripting error

2009-07-24 Thread nn
On Jul 23, 7:03 pm, Dave Angel wrote: > Mark Tarver wrote: > > I have a very strange error.  I have two test python files test.py and > > python.py which contain the following code > > > #!/usr/bin/python > > print "Content-type: text/html" > > print > > print "" > > print "Hello, Linux.com!" > >

  1   2   3   4   5   6   >