Re: printing indented html code

2005-06-24 Thread TechBookReport
Lowell Kirsh wrote:
> Is there a module or library anyone knows of that will print html code 
> indented? What I'd like would be for a function or class which works 
> like this:
> 
> htmlIndent(sys.stdout, 'foobar...')
> 
> and will print somethinkg like this to stdout:
> 
> 
>   
> foobar
>   
>   ...
> 
> My current way of doing this kind of stuff is less than ideal and will 
> write such a function if it doesn't exist.
> 
> Thanks,
> Lowell

There are lots of HTML pretty printers around, but for starters take a 
look at this: http://www.oreilly.com/catalog/pythonsl/chapter/ch05.html

HTH
==
TechBookReport - http://www.techbookreport.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Review of 'data crunching'

2005-07-04 Thread TechBookReport
There's a review of 'Data Crunching' by Greg Wilson over at 
TechBookReport. This is not a teach-yourself Python book but one that 
uses Python to solve various common data-related tasks with regular 
expressions, XML, SQL and so on.

The review is here: http://www.techbookreport.com/tbr0172.html

-- 
TechBookReport - Programminghttp://www.techbookreport.com/ProgIndex.html
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Good starterbook for learning Python?

2005-07-05 Thread TechBookReport
Lennart wrote:
> Hi everybody,
> 
> Can someone advice me with the following issue: i want to learn python in
> my summer vacation (i try to ...:-) So, a good start is buying a good book.
> But wich? There are many ...
> 
> I'm living in the Netherlands and I prefer a book from bol.com (see link)
> because i've to order more books by them. I'm familiar with html & php and
> basic (in the good old days). It has to be a newbie book, but not a book
> what i don't need anymore when i've got some skills. I.e. the learning
> curve of the book should be linear. A kind of book wich i could use as a
> novice.
> 
> Search here for python (sorry, there's no short link)
> http://www.nl.bol.com/is-bin/INTERSHOP.enfinity/eCS/Store/nl/-/EUR/BOL_BrowseCatalog-View;sid=nyuhO3sz8k2hODn5OfqfDJvrcywRiGQwhPU=?Section=BOOK_EN&CategoryContent=NJqR5Kpb0soAAADqmW%2eZypJb&OpenCategory=HwqR5Kpb8AUAAADqVW6ZypJb&CategoryLeftpanel=BOOK_EN%2eCATEGORY&Secondary=YES&Template=BOL_subcat_BOOK_EN_1476

Two excellent books match your criteria:

Dive Into Python (review: http://www.techbookreport.com/tbr0103.html) - 
also available as a free download.

Learning Python (review: http://www.techbookreport.com/tbr0064.html)

Both are recommended for beginners but have a reasonable level of depth. 
They're clear, enthusiastic and well-written.

HTH

-- 
TechBookReport - Programming   http://www.techbookreport.com/ProgIndex.html
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python Newbie

2005-07-14 Thread TechBookReport
linuxfreak wrote:
> Hi all,
>I came accross this article by Eric Raymond in which he has sung
> peans about the python language. Well that has whetted my appetite...
> So I decided to get down and dirty. But alas I got down but not dirty..
> i cant seem to find a good tutorial to help me get started. Whats the
> next best thing to do? Ask the pros and where do you find them...in a
> mailing list of course. So heres me asking if anyone has any pointers
> to some good basic python tutorial. Something that teaches one to get
> going.
> Thanks a ton guys,
> 
> 
> 
> Linuxfreak
>
Take a look at Dive Into Python (http://diveintopython.org/), it's a 
great place to start (there's a review of it here: 
http://www.techbookreport.com/tbr0103.html).

--
TechBookReport Programming: http://www.techbookreport.com/ProgIndex.html
-- 
http://mail.python.org/mailman/listinfo/python-list


Review of 'Python Cookbook'

2005-06-06 Thread TechBookReport
TechBookReport (http://www.techbookreport.com) has just published a 
review of the Python Cookbook. This is an extract from the full review:

We're big fans of cookbooks here at TechBookReport, whether its Java, 
XSLT or Linux, they're a great way of pulling together lots of useful 
snippets of code and technique in one place. For the beginner they 
provide instant advice, usable code and a way into new areas. They're 
also a great way to find out about coding styles, idioms, common 
workarounds and how to get the most out of your language (or operating 
system, development environment or application…).

Given all of that then it should be no surprise that we love this second 
edition of the Python Cookbook. There's no doubt about it, this is an 
indispensable resource to have around. What's more, this latest edition 
has been enhanced and updated for Python 2.4, and now features more than 
330 recipes across 20 chapters. Note that the recipes only cover Python 
2.3 and 2.4, for older versions readers should look for the first 
edition of the book.

As with the rest of O'Reilly's cookbooks, this one has a standard format 
for each recipe: state the problem, present a solution, discuss the 
solution and provide cross-references and pointers to further material. 
It's a good format, and allows each recipe to pretty much stand alone, 
even if there are pointers to other recipes in the 'see also' section. 
This makes the recipes a useful place to dip into for ideas and examples 
when hacking your own code. As with a real cookbook this is one that has 
a practical focus and belongs by your side when cooking not on some 
shelf gathering dust.

Unlike most of the other books in the cookbook series, this one is not 
the product of one or two authors but very much a community effort, 
thanks in large part to the involvement of ActiveState. While the three 
editors deserve credit for the good job they've done putting it all 
together, it's down to the Python community for creating these recipes 
and providing the feedback to hone and improve them.

Read the rest of the review here: http://www.techbookreport.com/tbr0163.html
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Learning more about "The Python Way"

2005-06-13 Thread TechBookReport
Kalle Anke wrote:
> Those who have read my posts today have probably understood that I'm 
> not a "true" Python programmer ... but I want to learn more (I think 
> that Python is rather fun).
> 
> I've read "Learning Python" pretty thoroughly, I've looked at some of 
> the tutorials, some of online documentation, etc. But I still miss a 
> lot of pieces for writing good python code, idioms, advanced 
> usage/features, etc.
> 
> I've also seen a lot of references to v3, but I haven't found any 
> real documentation of what's planned for that version.
> 
> So, I'm looking for advice/information on:
> 
> + How to write "proper" python code instead of 
>   Java/Perl/C/C++/Pascal/Modula-2/etc inspired code
> 
> + The more advanced parts/uses of Python
> 
> + Discussions about the ideas behind different Python
>   constructs
> 
> + What's going to happen with v3
> 
> I would really appriciate some pointers to where I can find info 
> about this. Web sites (I've looked at python.org but haven't manage 
> to find the stuff of what I'm looking for ... but perhaps I've missed 
> all the interesting parts) ? Books (I've got 'Learning Python' and 
> 'Programming Python')? Other things?
> 
>  jem
> 
> 

latest edition of the Python Cookbook (read a review here 
http://www.techbookreport.com/tbr0163.html). Also online at ActiveState.
-- 
http://mail.python.org/mailman/listinfo/python-list