Need Help Starting Out

2008-03-18 Thread jmDesktop
Hi, I would like to start using Python, but am unsure where to begin. I know how to look up a tutorial and learn the language, but not what all technologies to use. I saw references to plain Python, Django, and other things. I want to use it for web building with database access. What do I use f

Can I run a python program from within emacs?

2008-03-20 Thread jmDesktop
Hi, I'm trying to learn Python. I using Aquamac an emac implementation with mac os x. I have a program. If I go to the command prompt and type pythong myprog.py, it works. Can the program be run from within the editor or is that not how development is done? I ask because I was using Visual Stud

Re: Can I run a python program from within emacs?

2008-03-20 Thread jmDesktop
On Mar 20, 11:21 am, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2008-03-20, jmDesktop <[EMAIL PROTECTED]> wrote: > > > Hi, I'm trying to learn Python.  I using Aquamac an emac > > implementation with mac os x.  I have a program.  If I go to the > > comm

Re: Can I run a python program from within emacs?

2008-03-20 Thread jmDesktop
On Mar 20, 11:44 am, Jeff Schwab <[EMAIL PROTECTED]> wrote: > jmDesktop wrote: > > On Mar 20, 11:21 am, Grant Edwards <[EMAIL PROTECTED]> wrote: > >> On 2008-03-20, jmDesktop <[EMAIL PROTECTED]> wrote: > > >>> Hi, I'm trying to learn Python

Do any of you recommend Python as a first programming language?

2008-03-22 Thread jmDesktop
For students 9th - 12th grade, with at least Algebra I. Do you think Python is a good first programming language for someone with zero programming experience? Using Linux and Python for first exposure to programming languages and principles. Thank you. -- http://mail.python.org/mailman/listinfo

Is IronPython real Python?

2008-03-24 Thread jmDesktop
I know that IronPython and CPython are different in that one does not use the .net framework, but are they both really the same Python language. From my basic understanding, it will depend on what the programmer's goal is as to which of the two would be used, but I didn't know if they were really

Is the Python for statement the same as for each in other languages?

2008-04-08 Thread jmDesktop
Thank you. It looks like it is, but I wanted to make sure I understood. Also, I didn't see a "regular" for loop construct either (i=0;i<=10;i++), etc. I'm still new at it, but is there one of those? -- http://mail.python.org/mailman/listinfo/python-list

I am worried about Python 3

2008-04-09 Thread jmDesktop
I am a new Python programmer. I have always desired to learn Python, but have never had the opportunity. Recently this has changed, and I have an opportunity to get away from the .NET framework. I found Django (and other web frameworks) and began my quest to learn. I started reading Dive Into P

basic python question about for loop

2008-04-09 Thread jmDesktop
>From the Python.org tutorial: >>> for n in range(2, 10): ... for x in range(2, n): ... if n % x == 0: ... print n, 'equals', x, '*', n/x ... break ... else: ... # loop fell through without finding a factor ... print n, 'is a prime number' ..

Re: basic python question about for loop

2008-04-09 Thread jmDesktop
On Apr 9, 4:58 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > jmDesktop schrieb: > > > > > > > From the Python.org tutorial: > > >>>> for n in range(2, 10): > > ...     for x in range(2, n): > > ...    

Re: basic python question about for loop

2008-04-09 Thread jmDesktop
On Apr 9, 4:59 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:python- > > [EMAIL PROTECTED] On Behalf Of jmDesktop > > Sent: Wednesday, April 09, 2008 4:51 PM > > To: [EMAIL PROTECTED

Is 2006 too old for a book on Python?

2008-04-25 Thread jmDesktop
Hi, I wanted to buy a book on Python, but am concerned that some of them are too old. One I had come to after much research was Core Python by Wesley Chun. I looked at many others, but actually saw this one in the store and liked it. However, it is from 2006. I know there is free documentation

Simple import question about mac osx

2008-04-29 Thread jmDesktop
Hi, I have this code (learning from Core Python, Chun's book), module named chap2.py. class FooClass(object): version=0.1 def __init__(self, nm='John Doe'): self.name=nm print 'Created a class instance for ', nm def showname(self):

Re: Simple import question about mac osx

2008-04-29 Thread jmDesktop
On Apr 29, 1:16 pm, jmDesktop <[EMAIL PROTECTED]> wrote: > Hi, I have this code (learning from Core Python, Chun's book), module > named chap2.py. > > class FooClass(object): >         version=0.1 > >         def __init__(self, nm='John Doe'): >        

Re: Simple import question about mac osx

2008-04-29 Thread jmDesktop
On Apr 29, 1:54 pm, [EMAIL PROTECTED] wrote: > On Apr 29, 12:46 pm, jmDesktop <[EMAIL PROTECTED]> wrote: > > > > > > > On Apr 29, 1:16 pm, jmDesktop <[EMAIL PROTECTED]> wrote: > > > > Hi, I have this code (learning from Core Python, Chun's book)

Re: Simple import question about mac osx

2008-04-29 Thread jmDesktop
On Apr 29, 2:37 pm, "Jerry Hill" <[EMAIL PROTECTED]> wrote: > On Tue, Apr 29, 2008 at 2:14 PM, jmDesktop <[EMAIL PROTECTED]> wrote: > >  Thanks.  That worked on mac.  But it does work like I said in > >  Windows.  Don't know why.  Mr. Chun must also be usi

simple beginner question about lists and negative index

2008-05-01 Thread jmDesktop
This program: s = 'abcde' i = -1 for i in range (-1, -len(s), -1): print s[:i], i gives abcd -1 abc -2 ab -3 a -4 Why doesn't the first one have the e if -1 is the end of the list? In Dive Into Python it said that -1 was the end of the list. Thanks. it is from Chun's book, slightly modif

Re: simple beginner question about lists and negative index

2008-05-01 Thread jmDesktop
On May 1, 10:59 am, jmDesktop <[EMAIL PROTECTED]> wrote: > This program: > > s = 'abcde' > i = -1 > for i in range (-1, -len(s), -1): >     print s[:i], i > > gives > > abcd -1 > abc -2 > ab -3 > a -4 > > Why doesn't the first one

where do I begin with web programming in python?

2008-05-01 Thread jmDesktop
I have been to the main python site, but am still confused. I have been using .net, so it may be obvious how to do this to everyone else. I am aware there are various frameworks (Django, Pylons, etc.), but I would like to know how to create web pages without these. If I have mod_python or fastcg

Am I missing something with Python not having interfaces?

2008-05-06 Thread jmDesktop
Studying OOP and noticed that Python does not have Interfaces. Is that correct? Is my schooling for nought on these OOP concepts if I use Python. Am I losing something if I don't use the "typical" oop constructs found in other languages (Java, C# come to mind.) I'm afraid that if I never use th

Re: Am I missing something with Python not having interfaces?

2008-05-06 Thread jmDesktop
On May 6, 10:26 am, "A.T.Hofkamp" <[EMAIL PROTECTED]> wrote: > On 2008-05-06, jmDesktop <[EMAIL PROTECTED]> wrote: > > > Studying OOP and noticed that Python does not have Interfaces.  Is > > that correct?  Is my schooling for nought on these OOP concept