473,799 Members | 3,158 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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...bu t 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 1352
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...bu t 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...bu t 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************ ************@ne ws.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...bu t 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_na me)
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.uc la.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
5207
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 or more 'sessions', and each session may contain one or more 'nodes'. Each session in the log has an ASCII start and stop time, as does each node. I have the basic parse part done for parameters, errors, etc., but noticed my routine for...
0
5842
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 Mandrake 9.2 and am reinstalling everything. This thing is kicking my ass and I can't seem to get past it. I could really use some help if anybody has any. Just for reference, this was my primary source for information on installation and...
16
4227
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 project in debug mode (by hitting F5) it gives an error message "Error while trying to run project: Unable to start debugging on the web server.
9
3217
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 questions are below... "David Good" wrote: > We have a network running both Win2k and Win2k3 webservers and our web sites > reside on a UNC network share that happens to be a Network Appliance NAS.
0
2255
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 with the "print"-verb. This works for me. However, I need to handle the case when a printing application doesnt't quit in a given timespan (for example a password-protected word-document). So I've tried the following:
8
23481
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 = STANDARD HADR local host name (HADR_LOCAL_HOST) = testserver HADR local service name (HADR_LOCAL_SVC) = 56000 HADR remote host name (HADR_REMOTE_HOST) = testserver
4
21766
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 webserver to see if service A needs to be updated. What service B does if it sees their is an update for service A is to download a new copy of the service A executable, stop service A, replace the executable with the new copy, and start service B...
2
3884
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 Process.start("C://test/app.exe"). I am writing this code in a C# web application, famework 1.1 How can I press ok to that started application. Any help will be apprecaited
0
1531
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 threading import Thread import thread class testThread(Thread): def __init__ (self, id): Thread.__init__(self) self.id = id def run(self):
0
8013
by: Vinod Sadanandan | last post by:
Fast-Start Failover An Overview In Dataguard Environment ============================================================================= This article describes the automatic fast start failover configuration and the conditions for trigerring a fast start failover in dataguard environment . In Faststart failover dataguard configuration if the primary database becomes unavailable, the...
0
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10247
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10214
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9067
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7561
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5583
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.