Re: first book about python

2006-07-12 Thread Ron Rogers Jr.
On Sun, 09 Jul 2006 03:41:52 +0300
IOANNIS MANOLOUDIS <[EMAIL PROTECTED]> wrote:

> I want to learn python.
I am looking for a book which will help
> me get started and should contain the foundations. I am not
> looking for the Python bible. Any recommendations?
> Ioannis
> 

Hmm, no one has mentioned Python Programming for the Absolute
Beginner (second edition) by Michael Dawson.
http://www.amazon.com/gp/product/1598631128/102-5443736-1342538?v=glance&n=283155

Yes, it's very game oriented, but it's also very newbie oriented.

I've slso downloaded some Python tutorials:

I've got the Python version of How to Think Like a Computer
Scientist:

http://www.ibiblio.org/obp/thinkCSpy/

And Dive into Python (available online as well as paper):

http://diveintopython.org/

Hope this helps.

CronoCloud (Ron Rogers Jr.)




-- 
http://mail.python.org/mailman/listinfo/python-list


Re: help a newbie with a IDE/book combination

2006-07-12 Thread Ron Rogers Jr.
On 9 Jul 2006 16:42:27 -0700
[EMAIL PROTECTED] wrote:

> Hi,
> 
> I already have a couple of newbie books on Python itself, but
> would rather get started with a nice to use IDE and I am
> therefore looking for a good IDE to learn Python. 
> 
> Is there a good IDE which would be well documented out there?


Python comes with IDLE.  It should be in /usr/local/bin

If not try:

python2.4 /usr/local/lib/python2.4/idlelib/idle.py

I like idle as a beginner because it's easy for me to test out
my simple little learning scripts while in it. (though I figure
there's probably a way to do that from within vim or emacs)

As some suggested, as a beginner you don't need much of a super
powered IDE.  If I wasn't using IDLE, I'd be using vim or gvim.


CronoCloud (Ron Rogers Jr.)


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Learning Python

2006-02-06 Thread Ron Rogers Jr.
Byte wrote:
> Yes, sorry, didnt realise diffrence between int and input. Since i'm
> such an idiot at this, any links to sites for people who need an
> unessicerily gentle learning curve?
> 

I'm new to Python too, here's a few I've found useful:

http://www.greenteapress.com/thinkpython/

http://wiki.python.org/moin/BeginnersGuide/NonProgrammers

Python Programming for the Absolute Beginner by Michael Dawson. It is 
the book I'm using. It's different from other Python books in that it's 
examples/sample programs are games or game related.  The author uses a 
modified version of the LiveWires modules later in the book along side 
Pygame

http://www.amazon.com/gp/product/1598631128/002-1529099-9424031?v=glance&n=283155

(That's the second edtion, no reviews yet.)

http://www.amazon.com/gp/product/1592000738/002-1529099-9424031?v=glance&n=283155

(first edition with reviews)

LiveWires they've got materials to go with their modules.

http://www.livewires.org.uk/python/

You haven't mentioned using IDLE, the built in IDE, I have found it useful:

http://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/index.html

It might not be in your menus though, on my box it's at:

python2.4 /usr/local/lib/python2.4/idlelib/idle.py


CronoCloud (Ron Rogers Jr.)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Needing a WinXP Python variant of a line of code

2006-01-30 Thread Ron Rogers Jr.
John Zenger wrote:
> import os, os.path
> 
> path_to_nethack_logfile = ""
> for root, dirs, files in os.walk("c:\\"):
> if 'nethackdir' in root:
> logs = [x for x in files if 'logfile' in x]
> if len(logs) > 0:
> path_to_nethack_logfile = os.path.join(root, logs[0])
> exit
> 

Thank you.  I guess I should do more reading, since I hadn't read about 
os.walk yet. I shouldn't even be trying to do what I'm doing so early in 
my learning. It will eventually be a Nethack logfile parse script.


CronoCloud (Ron Rogers Jr.)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Needing a WinXP Python variant of a line of code

2006-01-30 Thread Ron Rogers Jr.
Tim Golden wrote:
> [Ron Rogers Jr.]
> 
> | I have this line of code that's written with Linux in mind:
> | 
> | path_to_nethack_logfile = os.popen("locate logfile | grep 
> | nethackdir").read()
> | 
> | and I'm wanting a Windows equivalent, any suestions?
> 
> Well, you could obviously use os.walk to write something 
> (cross-platform) which would search the entire filesystem 
> for a filename matching the pattern you're after.
> 

Thank you.  I'm very new to Python, only bought my first book in the 
last couple of weeks, and hadn't read about os.walk yet.

> But there's no universal Windows equivalent to the Unix
> locate database. More recent Wins do offer you the system
> indexing catalog (or whatever it's called) and I'm sure
> there are existing apps to do the same sort of thing with
> more or less flair and automation, but there's nothing
> which is guaranteed to be there.

Ah... I thought that perhaps there was a built in command line tool that 
does what that "search dog" does.that I didn't know about.  I am not as 
familiar with the Windows command prompt as I probably should be.

Thanks again.


CronoCloud (Ron Rogers Jr.)


-- 
http://mail.python.org/mailman/listinfo/python-list


Needing a WinXP Python variant of a line of code

2006-01-30 Thread Ron Rogers Jr.
I have this line of code that's written with Linux in mind:

path_to_nethack_logfile = os.popen("locate logfile | grep 
nethackdir").read()

and I'm wanting a Windows equivalent, any suestions?


Thanks.

CronoCloud (Ron Rogers Jr.)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: problems with documentation

2006-01-28 Thread Ron Rogers Jr.
BartlebyScrivener wrote:
> Specifically it's the TOPICS that I can't seem to get to work. The
> keywords and modules etc do work. But if I type, e.g.,
> help("functions") it says, "No documentation found" If I type
> help("os") I get help on the os module.
> 
> rpd
> 

The TOPICS seem to be case sensitve so

help> assertion

would not work, but

help> ASSERTION

will.


Just figured this out myself, yesterday.


CronoCloud (Ron Rogers Jr.)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: beta.python.org content

2006-01-28 Thread Ron Rogers Jr.
Steve Holden wrote:
> How does
> 
>   http://beta.python.org/about/beginners/
> 
> look?
> 
> regards
>  Steve

Hi, I'm an actualy Python beginner, decided recently to "play" with 
Python.  I'm a "user", not a professional programmer or developer of any 
sort, so I guess the "beginner's" page would be aimed at folks like me.

It looks fine, degrades pretty well in Dillo.

But.it needs more Beginners links and info.  The "Why Python" seems 
a bit out of place, more akin to something that would be on the beta 
home, which looks a little "corporate brochure site" to me.  It also 
seems a little "bland" as a beginner site goes. A little bit of "fun" 
and "friendliness" in the spirit of "Python for Everyone" might be 
something to add.  That's what brought me to Python.  The idea that 
Python was not just for people like ESR who've been programmers for 
decades, or for corporate types designing applications containing a new 
paradigm of competencies in objective oriented programming, but for high 
school students, hobbyist programmers and even those who've never 
written a line of code in their lives.

It has been suggested that a Google-like hierarchy might be useful and I 
agree, though I don't know how that might work in practice. You could 
have a bland "brochure" site with the proper buzzwords for the 
corporates, another for the devs with late breaking patches, news, RSS 
feeds, whatever they need. and one for Education and/or beginners, with 
perhaps a colorful friendly look. (but perhaps keeping the same basic 
overall base look)

I actually like the look of the current http://www.python.org  It packs 
a lot of useful links in one page and it seems "friendly"  Which 
probably sounds silly to describe an emotional reaction or "feel" to a 
site. Admittedly it doesn't look "corporate" or "slick professional" but 
that's not necessarily a bad thing.

I agree with others about the new logo. It lacks a certain, pardon the 
expression, "je ne sais quoi". (one of the things that got me interested 
in Linux was seeing that penguin associated with the word "Linux" and 
making me curious about what that Linux thing was all about)  But it 
would make a good logo for a "enterprise.python.org" 
"business.python.org"  So perhaps different logos for different purposes?

A cartoony friendly python in front of a blackboard for education 
(similar to the Pygame python)

A python reading a book at the base of a larch for a listing of books

That sort of thing.

The python.org site's been useful to me, pointing me to interesting 
software, documentation and whatnot. Though I didn't know about IDLE 
until I saw it mentioned in a post on Slashdot in a story asking for 
recommendations for Python IDE's.  I am "very" new to Python.


CronoCloud (Ron Rogers Jr.)
-- 
http://mail.python.org/mailman/listinfo/python-list