Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #111078 > unrolled thread
| Started by | "Michael Smolen" <8smolen@tds.net> |
|---|---|
| First post | 2016-07-04 10:07 -0600 |
| Last post | 2016-07-04 20:20 +0300 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Structure of program development "Michael Smolen" <8smolen@tds.net> - 2016-07-04 10:07 -0600
Re: Structure of program development BartC <bc@freeuk.com> - 2016-07-04 17:56 +0100
Re: Structure of program development Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-07-04 20:20 +0300
| From | "Michael Smolen" <8smolen@tds.net> |
|---|---|
| Date | 2016-07-04 10:07 -0600 |
| Subject | Structure of program development |
| Message-ID | <mailman.72.1467649662.2295.python-list@python.org> |
Folks: I am new to this programming adventure. I've gotten past the introductory chapters in 'How to..." books and now want to start developing a much more complicated program that I will use repeated for different applications. When I worked in Perl there was an option to write a program in a text editor, save it, and then run in with Perl. Is such a thing possible in Python? If not, how do I develop a 500+ lines of code? A second question of the basic design. If I write a program, can I move it to a computer that is without any Python software, or does that machine have to download the Python software? Does Python products contain all parts of a developed program or is it a series of 'call' statements? Thanks. Mike
[toc] | [next] | [standalone]
| From | BartC <bc@freeuk.com> |
|---|---|
| Date | 2016-07-04 17:56 +0100 |
| Message-ID | <nle4gf$9l0$1@dont-email.me> |
| In reply to | #111078 |
On 04/07/2016 17:07, Michael Smolen wrote:
> Folks:
>
> I am new to this programming adventure. I've gotten past the introductory chapters in 'How to..." books and now want to start developing a much more complicated program that I will use repeated for different applications. When I worked in Perl there was an option to write a program in a text editor, save it, and then run in with Perl. Is such a thing possible in Python? If not, how do I develop a 500+ lines of code?
>
> A second question of the basic design. If I write a program, can I move it to a computer that is without any Python software, or does that machine have to download the Python software? Does Python products contain all parts of a developed program or is it a series of 'call' statements?
It can work the same way. Write the 500-line program in, say, prog.py
using any text editor.
Then run it using:
python prog.py
--
Bartc
[toc] | [prev] | [next] | [standalone]
| From | Jussi Piitulainen <jussi.piitulainen@helsinki.fi> |
|---|---|
| Date | 2016-07-04 20:20 +0300 |
| Message-ID | <lf5inwlqq02.fsf@ling.helsinki.fi> |
| In reply to | #111078 |
Michael Smolen writes: > Folks: > > I am new to this programming adventure. I've gotten past the > introductory chapters in 'How to..." books and now want to start > developing a much more complicated program that I will use repeated > for different applications. When I worked in Perl there was an option > to write a program in a text editor, save it, and then run in with > Perl. Is such a thing possible in Python? If not, how do I develop a > 500+ lines of code? This is indeed possible. If you can find your way to a command line of your operating system and launch a Python interactive session by typing "python" or "python3" to the command prompt and pressing the enter key, then you have access to the program that can execute your Python code that is in the file that you created with a text editor. All you have to do is, give the name of your file as an argument to python or python3. You get a stack trace, fix your program, and try again. Some text editors understand Python syntax, or can be set to understand Python syntax, just like they support Perl and many other languages. This is merely a convenience. Python need not know what you used to write the code. > A second question of the basic design. If I write a program, can I > move it to a computer that is without any Python software, or does > that machine have to download the Python software? Does Python > products contain all parts of a developed program or is it a series of > 'call' statements? The straightforward thing is to have Python installed. Beyond that, I don't have personal experience, so I won't offer any advice. Others will know.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web