As I understand it from the description of this list, that is exactly
its purpose--to help people who no relatively little python. As it
happens, I have been moderately successful in running other modules,
so I think it is not inappropriate for me to have posted the
questions that I have po
* Rafael Bejarano (Sun, 10 Jun 2007 19:35:32 -0500)
> On Jun 10, 2007, at 5:00 PM, Thorsten Kampe wrote:
> > It would really make sense if you learn a bit of the basics before you
> > start doing the advanced stuff like (Python) programming...
>
> What do you mean by "a bit of the basics?"
Well,
Thanks for the suggestion. I think it is a good idea to learn unix
for the Mac, and I definitely plan to do that. I thought, though,
that it would be a relatively simple matter to import the easygui
module and call its functions using the terminal window, especially
given that I have had su
Alan Gauld wrote:
> "Michael Klier" <[EMAIL PROTECTED]> wrote
>
> I'm not surecwhy but your messages are coming through to me
> as text attachments which makes quoting them tricky...
>
>> Also, what would be the right exception to raise if not
>> enough arguments were passed to a programm?
>
On Jun 10, 2007, at 5:00 PM, Thorsten Kampe wrote:
>
> It would really make sense if you learn a bit of the basics before you
> start doing the advanced stuff like (Python) programming...
What do you mean by "a bit of the basics?"
Rafael
>
> ___
> Tuto
"Michael Klier" <[EMAIL PROTECTED]> wrote
I'm not surecwhy but your messages are coming through to me
as text attachments which makes quoting them tricky...
> Also, what would be the right exception to raise if not
> enough arguments were passed to a programm?
I don't think there is a right
Suggestion: Consider
Unix for Mac
Wiley Publishing & maranGraphics.
also
Python Programming for the absolute beginner by Michael Dawson
... and don't be offended if it looks too simple.
The problem with 'beginning' a computer language is that few people agree where the beginning is. We com
Rafael Bejarano wrote:
> On Jun 10, 2007, at 9:20 AM, Alan Gauld wrote:
>> Type, on one line:
>>
>> cd '/Volumes/UNTITLED/Programming stuff/My python stuff/'
>
> I copied the above line from your e-mail and pasted it into the
> terminal window. When I hit enter, I got the following output:
>
* Rafael Bejarano (Sun, 10 Jun 2007 02:24:56 -0500)
> On Jun 9, 2007, at 5:26 AM, Kent Johnson wrote:
> > You could try running the easygui demo - just type
> > python easygui.py
> > on the command line from the directory containing easygui.
>
> At your convenience, please explain the above statem
On Jun 10, 2007, at 9:20 AM, Alan Gauld wrote:
>
> Type, on one line:
>
> cd '/Volumes/UNTITLED/Programming stuff/My python stuff/'
I copied the above line from your e-mail and pasted it into the
terminal window. When I hit enter, I got the following output:
Last login: Sun Jun 10 16:09:10 o
Okay. I typed the following two lines
cd '/Volumes/UNTITLED/Programming stuff/My python stuff/
python codetester.py
This is the output I got:
Last login: Sun Jun 10 15:44:42 on ttyp1
Welcome to Darwin!
rafael-bejaranos-ibook-g4:~ Rafael$ cd '/Volumes/UNTITLED/
Programming stuff/My python st
Alan Gauld wrote:
> 1) Best to be specific in your except clauses. Generic
> catch-anything type clauses can lead to misleading error
> messages. They are OKmat the top level of a program for
> distribution as a way of shielding innocent users from stack
> traces but during development and espe
Rafael Bejarano wrote:
> On Jun 10, 2007, at 2:48 AM, Alan Gauld wrote:
>> How/where did you install easygui.py?
>
> I installed it by copying easygui.py from the downloaded folder,
> which was on my desktop, into the folder in which the test program is
> stored. Was that not okay?
That shoul
On Jun 10, 2007, at 2:48 AM, Alan Gauld wrote:
>
> How/where did you install easygui.py?
I installed it by copying easygui.py from the downloaded folder,
which was on my desktop, into the folder in which the test program is
stored. Was that not okay?
> Does the easygui test program run OK?
>
Michael,
That's a fairly big project for a first timer, its obvious that you
are new to Python rather than to programming. It looks
pretty good to be honest, the main things I'd flag are:
1) Best to be specific in your except clauses. Generic
catch-anything type clauses can lead to misleading
"Adam Urbas" <[EMAIL PROTECTED]> wrote
>I discovered something about your revers word program here. I used
> the "for c in word" one.
> if you type an indented print after print c, then it will print the
> words vertically. Just thought I'd share that with you.
You can achieve the same by missi
"Kent Johnson" <[EMAIL PROTECTED]> wrote
> You can do better without using range; you can directly iterate the
> letters in reverse:
>
> for c in word[::-1]:
> print c,
Or even just
print word[::-1]
:-)
Alan G.
___
Tutor maillist - Tutor@pytho
Hi everyone,
I`ve started to dive into python a few weeks ago and am about to finish
my first script that surves a purpose, namely fetching podcasts on a
headless machine on a daily basis (fired up via cron). I use the pickle
module to save the information about the podcasts feeds and the script
p
I discovered something about your revers word program here. I used
the "for c in word" one.
if you type an indented print after print c, then it will print the
words vertically. Just thought I'd share that with you.
On 6/10/07, Kent Johnson <[EMAIL PROTECTED]> wrote:
> David Hamilton wrote:
> >
David Hamilton wrote:
> I just finished doing an exercise in a tutorial on the range function
> and while I got it to work, my answer seems ugly. I'm wondering if I'm
> missing something in the way I'm using the range function.
> The tutorial ask me to print a string backwards. My solution works,
"Rafael Bejarano" <[EMAIL PROTECTED]> wrote
>> You could try running the easygui demo - just type
>> python easygui.py
>> on the command line from the directory containing easygui.
>
> At your convenience, please explain the above statement. I don't
> know
> what "from the command line" means.
"Rafael Bejarano" <[EMAIL PROTECTED]> wrote
> On Jun 10, 2007, at 2:22 AM, Alan Gauld wrote:
>>
>> open a terminal window and go
>> to the directory with your python file and type
>>
>> python codetester.py
>
> Please advise me as to how to go to the directory containing the
> python file from
I just finished doing an exercise in a tutorial on the range function
and while I got it to work, my answer seems ugly. I'm wondering if I'm
missing something in the way I'm using the range function.
The tutorial ask me to print a string backwards. My solution works, but
it it just doesn't "feel
"Rafael Bejarano" <[EMAIL PROTECTED]> wrote
> Thanks for reminding me to post my code. Here it is.
>
> #easygui test program
> import easygui
> import sys
> msg = "What do you prefer?"
> choices = ["$50.00 now", "$100.00 in 6 months"]
> choice = easygui.buttonbox(msg, "", choices)
> print choice
On Jun 10, 2007, at 2:22 AM, Alan Gauld wrote:
>
> open a terminal window and go
> to the directory with your python file and type
>
> python codetester.py
Please advise me as to how to go to the directory containing the
python file from within the terminal window.
Thanks.
Rafael
On Jun 9, 2007, at 5:26 AM, Kent Johnson wrote:
>
> You could try running the easygui demo - just type
> python easygui.py
> on the command line from the directory containing easygui.
At your convenience, please explain the above statement. I don't know
what "from the command line" means.
Rafa
"Rafael Bejarano" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I wrote the script in the Smultron test editor. To open it, I've
> first been selecting it and then selecting python launcher from the
> "Open with" submenu, whicch is under the "Open" menu. Opening the
> script file i
"Adam Urbas" <[EMAIL PROTECTED]> wrote
> The problem I had before was that I was really excited to create
> something original or better or ,you know, anything, that I wasn't
> really willing to just slow down and take the time to actually learn
> python.
Yes, thats always a temptation, but its u
28 matches
Mail list logo