473,382 Members | 1,258 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How to Start

I've decided that Python is a language/environment I'd like to learn
(I've been a professional programmer for 45+ years), but I really don't
know where and how to start! I have a number of books - and am buying
some more - but because of the bewildering number of after-market
packages, environments, and add-ons, I am really quite perplexed about
starting. 8<{{
Yes, I could fire up the interactive mode and play with some
statements...but I consider that sort of thing for programming neophytes
or experimenting with specific issues. First, I want to develop a
simple Windows application, and because of the plethora of "stuff" the
Python world offers, I don't know where to begin.
For example, what basic, easy-to-use interface might I start with to
build a simple text file parsing and analysis program? That is, I'd
like to start with a simple Windows shell that prompts for a file name,
processes it, and then displays some result.
I am certainly impressed with the apparent experience and openness of
the regular players here, but the discussions here (and in
c.l.p.announce) truly presume knowledge and experience with Python I
don't yet have. Yes, for even a very experienced programmer, entering
the Python world is very daunting - but I want to get started.
Please advise. TIA
Sep 13 '07 #1
7 1330
On Sep 13, 2:59 pm, mrc2...@cox.net (Michael R. Copeland) wrote:
I've decided that Python is a language/environment I'd like to learn
(I've been a professional programmer for 45+ years), but I really don't
know where and how to start! I have a number of books - and am buying
some more - but because of the bewildering number of after-market
packages, environments, and add-ons, I am really quite perplexed about
starting. 8<{{
Yes, I could fire up the interactive mode and play with some
statements...but I consider that sort of thing for programming neophytes
or experimenting with specific issues. First, I want to develop a
simple Windows application, and because of the plethora of "stuff" the
Python world offers, I don't know where to begin.
For example, what basic, easy-to-use interface might I start with to
build a simple text file parsing and analysis program? That is, I'd
like to start with a simple Windows shell that prompts for a file name,
processes it, and then displays some result.
I am certainly impressed with the apparent experience and openness of
the regular players here, but the discussions here (and in
c.l.p.announce) truly presume knowledge and experience with Python I
don't yet have. Yes, for even a very experienced programmer, entering
the Python world is very daunting - but I want to get started.
Please advise. TIA
I like Wing IDE ( http://www.wingware.com ) . They have a free version
and Personal and Professional versions.

The free version description says:
"Wing IDE 101

Wing IDE 101 is a free basic edition of Wing IDE that was originally
designed with the University of Toronto Computer Science Department
for teaching entry level computer science courses. It is not open
source but is free for use by educators, students, and hobbyists.

Note that Wing IDE 101 omits auto-completion and most other code
intelligence features in the other Wing IDE products. This was by
design, so that students are more conscious of the details of the
language and modules they are learning about."

Sep 13 '07 #2
On Thursday 13 September 2007 14:59, Michael R. Copeland wrote:
I've decided that Python is a language/environment I'd like to learn
(I've been a professional programmer for 45+ years), but I really don't
know where and how to start! I have a number of books - and am buying
some more - but because of the bewildering number of after-market
packages, environments, and add-ons, I am really quite perplexed about
starting. 8<{{
Yes, I could fire up the interactive mode and play with some
statements...but I consider that sort of thing for programming neophytes
or experimenting with specific issues. First, I want to develop a
simple Windows application, and because of the plethora of "stuff" the
Python world offers, I don't know where to begin.
For example, what basic, easy-to-use interface might I start with to
build a simple text file parsing and analysis program? That is, I'd
like to start with a simple Windows shell that prompts for a file name,
processes it, and then displays some result.
I am certainly impressed with the apparent experience and openness of
the regular players here, but the discussions here (and in
c.l.p.announce) truly presume knowledge and experience with Python I
don't yet have. Yes, for even a very experienced programmer, entering
the Python world is very daunting - but I want to get started.
Please advise. TIA
A good book, a link to the module index, a good text editor and a command
prompt will get you started. Sounds like you have some books. Those should
help a lot. A good text editor is a matter of taste. I prefer gvim. However,
gvim has a steep learning curve to become productive. There is eric4, which
is an IDE. I has a debugger. That may be the place to start.

Good luck,
Tom
Sep 13 '07 #3
In article <MP************************@news.cox.net>,
mr*****@cox.net (Michael R. Copeland) wrote:
I've decided that Python is a language/environment I'd like to learn
(I've been a professional programmer for 45+ years), but I really don't
know where and how to start! I have a number of books - and am buying
some more - but because of the bewildering number of after-market
packages, environments, and add-ons, I am really quite perplexed about
starting. 8<{{
For example, what basic, easy-to-use interface might I start with to
build a simple text file parsing and analysis program? That is, I'd
like to start with a simple Windows shell that prompts for a file name,
processes it, and then displays some result.
Hi Michael
I am a relative newbie to the field having only been in front of a
keyboard for about half as long as you. I've been using Python for a
couple of years now and I like it. My $.02 for someone such as yourself
is to deal with Python and as little else as possible. So write your
code in a simple text editor like UltraEdit or Notepad if you're
hardcore or edlin if you're really trying to impress someone (does that
still ship with Windows?) and run your program from the command line by
typing 'python MyProgram.py'. Once you're more familiar with the
language you can graduate to fancier tools but you will take with you a
fundamental understanding of what Python needs/gives and what the IDE
needs/gives.

I think writing code is a great way to learn a language, so it sounds
like you've already got some incentive there. Dive into Python is a
popular reference. (It's free online.)

I'm sure you'll get other good suggestions from this group.

Have fun!

--
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more
Sep 13 '07 #4
Michael R. Copeland wrote:
Yes, I could fire up the interactive mode and play with some
statements...but I consider that sort of thing for programming neophytes
or experimenting with specific issues.
The interactive interpreter is *the fastest* way to learn, expert,
novice, or somewhere in-between. Let me do a quick count of the number
of instances I have running just on the machine I'm at right now...ok,
only 1, but that's because I just switched over to a Mac at work and it
doesn't support multiple desktops--yet. I basically test just about
every idea I have in the interactive interpreter before I lay it down in
a text file.

First, I want to develop a
simple Windows application, and because of the plethora of "stuff" the
Python world offers, I don't know where to begin.
Pseudocode (~ python code).
For example, what basic, easy-to-use interface might I start with to
build a simple text file parsing and analysis program? That is, I'd
like to start with a simple Windows shell that prompts for a file name,
processes it, and then displays some result.
#! /usr/bin/env python

def main():
file_name = prompt_for_name()
result = process(file_name)
display(result)

def prompt_for_name():
[fill in here]

[etc.]
I am certainly impressed with the apparent experience and openness of
the regular players here, but the discussions here (and in
c.l.p.announce) truly presume knowledge and experience with Python I
don't yet have. Yes, for even a very experienced programmer, entering
the Python world is very daunting - but I want to get started.
Please advise. TIA
Here's your recipe:

1. begin coding until you hit a wall
2. read official tutorial until you figure out a solution
3. experiment in interactive interpreter
4. goto 1.

I know this sounds obvious, but its the best way to jumpstart.

James
Sep 14 '07 #5
On 9/14/07, James Stroud <js*****@mbi.ucla.eduwrote:
>
Here's your recipe:

1. begin coding until you hit a wall
2. read official tutorial until you figure out a solution
3. experiment in interactive interpreter
4. goto 1.

I know this sounds obvious, but its the best way to jumpstart.

James
--
What a beautiful way of putting it! That's what I do all the time,
although sometimes my bookshelf or Google is a stand-in for #2. I try
not to post to the list before I have working code.

You know, if you could make that process into a haiku, you could just
make that your sig and answer nearly every question that hits this
list. ^_^

I wonder whether lists like this hurt more people than they help,
because it's too easy to ask for help too soon. Those of you who
consistently give the best advice didn't learn by asking for help
every step along the way, did you? Is it really teaching a man to fish
if you bait his line and tell him where to cast?

Shawn
Sep 14 '07 #6
On Sep 13, 4:02 pm, Nikita the Spider <NikitaTheSpi...@gmail.com>
wrote:
My $.02 for someone such as yourself
is to deal with Python and as little else as possible. So write your
code in a simple text editor like UltraEdit or Notepad
Second that opinion. Use _your_ favorite basic text editor and run on
command line. Don't clutter your attention with complex tools, yet,
Python's not J2EE for Pete's sake. I started on Kedit, but mostly use
Eclipse + pydev now, with KEdit as a backup.

Do use one of the interactive interpreters (pythonwin, python prompts,
etc...) to try out one liners and short pieces of code. But I've
never really liked them for writing full programs.

And I would just do the tutorial or Dive Into Python (http://
www.diveintopython.org/toc/index.html). If you are as experienced as
you say, you should have very little trouble working through them,
really quickly (3-4 hours?) and you'll have a good tour of the
features. I picked up Python on a Montreal to Vancouver flight, doing
just that.

For your problem domain. Modules: optparse, regular expressions.
Perhaps the "Text Processing in Python" book by Mertz. I don't like
it much myself, but it does cover text processing in depth and it
refers to a number of existing specialized libraries.

Cheers

Sep 14 '07 #7
Paul McGuire wrote:
Do "neophytes" just dive in and try stuff?
I think a lot of us coming from other fields actually slithered in, in
true python style.
Sep 14 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: engsol | last post by:
I'm using Python to parse a bunch of s/w test files and make csv files for later report generation by MS ACCESS....(my boss loves the quick turn-around compared to C). Each log file may contain one...
0
by: Mark Adams | last post by:
I am a relative newbie to MySQL. I had a Postfix+Courier+MySQL mail server running for several months. It took me a week or so to get it up and running in September. Now, I did a clean upgrade to...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
0
by: henning.friese | last post by:
Hello NG, I'm need to write some code which creates tiff files from various document types (doc, pdf, xls). I want to do this by ShellExecuting (via System.Diagnostics.Process) the doc-files...
8
by: Challenge | last post by:
Hi, I got error, SQL1768N Unable to start HADR. Reason code = "7", when I tried to start hadr primary database. Here are the hadr configuration of my primary db: HADR database role ...
4
by: carson | last post by:
I have written two windows services: - service A does some crunching of local data files and uploads them to a central processing computer via http. - service B monitors a manifest file on a...
2
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Hello Everyone, I have an exe application that I want to start remotely.Once I start the application, I want to press ok to that application. To start the application, I did...
0
by: Yue Fei | last post by:
I have a multi thread python code, threads can start immediately if I run on command line, but I can get them started right the way if I call the same code from C/C++. test code like this: from...
0
by: Vinod Sadanandan | last post by:
Fast-Start Failover An Overview In Dataguard Environment ============================================================================= This article describes the automatic fast start failover...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.