<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:osnews="http://www.osnews.com/rss2#">
	<channel>
		<title>OSNews: </title>
		<link>http://www.osnews.com/story/7764/Quick_Book_Review_Learning_Python</link>
		<description>Exploring the Future of Computing</description>
		<language>en-us</language>
		<copyright>Copyright 2001-2012, David Adams</copyright>
		<webMaster>adam+nospam@osnews.com</webMaster>
		<lastBuildDate>Mon, 13 Feb 2012 07:05:19 GMT</lastBuildDate>
		<image>
			<url>http://www.osnews.com/images/osnews.gif</url>
			<title>OSNews.com</title>
			<link>http://www.osnews.com</link>
		</image>
		<item>
			<title>Published a few weeks ago?</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>...maybe this article stood a bit too long in the queue? <img src="/images/emo/tongue.gif" alt=";)" />  I have this book, second edition and everything, for some 6 months now.<br />
<br />
Anyway, this book is very good indeed. But for those who prefer to save some money (and don't mind to read stuff in the screen or print a lot of pages), there's &quot;Dive into Python&quot; (<a href="http://diveintopython.org/toc/index.html" rel="nofollow">http://diveintopython.org/toc/index.html</a>) which is even better written, and available online.</description>
			<pubDate>Thu, 22 Jul 2004 06:21:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Published a few weeks ago?</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>I got the book 1 month ago.</description>
			<pubDate>Thu, 22 Jul 2004 06:27:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>&amp;quot;how to get around whitespace problems&amp;quot;</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>&quot;how to get around whitespace problems&quot;<br />
<br />
Care to elaborate what you mean by this?  I've used python quite a bit in recent years, and have never had problems with whitespace as long as my code was indented properly ;-p</description>
			<pubDate>Thu, 22 Jul 2004 06:41:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: &amp;quot;how to get around whitespace problems&amp;quot;</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>&gt;never had problems with whitespace as long as my code was indented properly<br />
<br />
Exactly. You always need to be careful about these and the blank lines. Bring *perfect* on formatting it's too much work for many programmers. I much prefer freedom of flow personally.</description>
			<pubDate>Thu, 22 Jul 2004 06:43:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: &amp;quot;how to get around whitespace problems&amp;quot;</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>Haha, very true.<br />
<br />
I do have to say one problem that's always bugged me about python is that commenting out an if statement can sometimes be a PITA.<br />
<br />
For example:<br />
<br />
if a:<br />
  b()<br />
else:<br />
  c()<br />
<br />
The easiest way is to change a to false like &quot;if false: # a:&quot;.  Just not something I'm used to doing, and sometimes catches me on a large if statement.  Also, I think<br />
<br />
if a:<br />
  # do nothing<br />
<br />
shouldn't require a &quot;pass&quot; if the next line is unindented.  Oh well, no language is perfect :-)</description>
			<pubDate>Thu, 22 Jul 2004 06:54:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Whitespace</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>When I first heard that Python had syntactically meaningful whitespace, I was a little apprehensive. My mind was immediately filled with all sorts of potential problems that this might cause, but I think that I was just panicking. Most programmers are used to indenting properly anyway, so it isn't too much of an issue for small programs. However, I've found that it gets confusing for larger programs, but that might just be because I'm not too used to Python. (I suppose that the same thing might be said for nesting braces in C/C++.) What'd be nice is an editor that shows you visually to which block of code the current line belongs.<br />
<br />
I picked up the same book some months ago. I thought it was pretty good, but I didn't really get too much more out of it than the tutorials on the Python website. I also picked up the Python Essential Reference, which I use a lot more. I'd like to see an updated version, though.</description>
			<pubDate>Thu, 22 Jul 2004 07:02:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Just use C# and .NET/Mono/dotGNU</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>Why use Python when you can just use C# with .NET/Mono/dotGNU.<br />
<br />
<br />
P.S. The idea for this post was inspired by the Python fanboys on the Mono threads.  Thanks!</description>
			<pubDate>Thu, 22 Jul 2004 07:35:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: &amp;quot;how to get around whitespace problems&amp;quot;</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>You don't have to be &quot;perfect&quot; in the indentation, just consistent. It's not as half rigid as people think (not like Fortran at least), you just need to do it for half an hour and then you pretty much forget about it (especially because your editor probably takes care of the indentation for you).<br />
<br />
The good thing about this feature is that the code looks pretty much the same for every programmer and it's very likely to be readable, so for team programming that's a big plus.<br />
<br />
IMHO I understand why someone who comes from a VB background would complain a bit about it, since it helps a lot to have stuff like &quot;If...End If&quot; and &quot;For..Next&quot; to enclose your blocks, but I can't see why Python's style could be any worst than having a lot of meaningless curly brackets all over the place, since they don't really give out much information (if you think about it, you end up using the indentation as a reference the same way).<br />
<br />
Finally, I don't know what Eugenia meant with &quot;blank lines&quot;...never noticed a problem with that.</description>
			<pubDate>Thu, 22 Jul 2004 07:40:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title> @Eugenia / RE: Published a few weeks ago?</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>Just cuz you got this book 1 month ago doesn't mean it was released 'a few months ago'. It was released in December 2003, over 6 months ago. By most standards that's more than 'a few months'.<br />
<br />
I appreciate the review, but having had the book since February myself, I was almost hoping this would be a new edition but alas <img src="/images/emo/smile.gif" alt=";)" /></description>
			<pubDate>Thu, 22 Jul 2004 07:47:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Is there a good book covering Python Gui programming ?</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>I've read a bit about python and I think I could like it but I am interested in GUI programming. Is there a book doing more than an introduction to Python in that context ?<br />
<br />
Othewise, the review is a bit short isn't it ? But nice nonetheless.</description>
			<pubDate>Thu, 22 Jul 2004 09:02:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Python GUI book</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>If you know some other programming language, have a look at Dive into Python (doesn't cover any GUI programming) <a href="http://diveintopython.org/" rel="nofollow">http://diveintopython.org/</a><br />
<br />
For GUIs:<br />
There is the freely available PyQT book (from 2001): <a href="http://www.opendocspublishing.com/pyqt/" rel="nofollow">http://www.opendocspublishing.com/pyqt/</a><br />
For GTK: <a href="http://www.pygtk.org/pygtk2tutorial/index.html" rel="nofollow">http://www.pygtk.org/pygtk2tutorial/index.html</a><br />
and for wxPython <a href="http://wiki.wxpython.org/index.cgi/Getting_20Started" rel="nofollow">http://wiki.wxpython.org/index.cgi/Getting_20Started</a> <br />
<br />
And concerning .Net, lets just jope IronPython will be released soon, so we can use C# and Python together <img src="/images/emo/smile.gif" alt=";)" /></description>
			<pubDate>Thu, 22 Jul 2004 09:14:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Python and CLI</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>For those that want python-like language for .net/mono: check out boo (boo.codehaus.org).</description>
			<pubDate>Thu, 22 Jul 2004 09:45:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>re: Why use Python when you can just use C# with .NET/Mono/dotGNU. </title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>C# is all cool and ok ... <br />
<br />
But python is much more flexible than a statically typed language will ever be ..<br />
<br />
Lookup what __call__ or __getattr__ does in python <img src="/images/emo/smile.gif" alt=";)" /> <br />
<br />
Programming glade+python brings productivity to a high..<br />
<br />
But my favourite python snippet is<br />
<br />
a = 10<br />
b = 20<br />
(b,a) = (a,b)<br />
<br />
PS: and yes, I work on dotgnu</description>
			<pubDate>Thu, 22 Jul 2004 09:50:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Thanks a lot jp</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>Nice links.</description>
			<pubDate>Thu, 22 Jul 2004 10:07:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Whitespace</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>What'd be nice is an editor that shows you visually to which block of code the current line belongs. <br />
<br />
Like this this you mean -<br />
<br />
<a href="http://www.die-offenbachs.de/detlev/images/eric3-screen-2.png" rel="nofollow">http://www.die-offenbachs.de/detlev/images/eric3-screen-2.png</a> <br />
<br />
Damon</description>
			<pubDate>Thu, 22 Jul 2004 10:07:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>@ t3rmin4t0r</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>I love when people designing compilers/interpreters/languages is able to look at different ones withouth the &quot;I am the right on&quot; mood, kudos to you.<br />
<br />
Anyway, you don't need parenthesis:<br />
a,b=b,a<br />
<br />
and this runs fine in ruby too. but why you think __call__ is something related to dynamic typing? it's just syntax sugar for, say, Invoke()</description>
			<pubDate>Thu, 22 Jul 2004 10:20:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Couldn't agree more</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>A week ago I bought this book. At first I though I didn't really need an introduction, because I know the Python basics. A week later I am really convinced this book learnt me a lot. The nice thing is that it provides alot of technical background information that helps understanding how things are done, and why they are done that way.<br />
<br />
Although Eugenias review is a bit short, I fully agree with her conclusions. Just buy this book! <img src="/images/emo/wink.gif" alt=";)" /></description>
			<pubDate>Thu, 22 Jul 2004 11:27:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Thanks</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>Thanks all for the article, comments and links.</description>
			<pubDate>Thu, 22 Jul 2004 13:01:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>re: Why use Python when you can just use C# with .NET/Mono/dotGNU.</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>Because C# with .NET/Mono/dotGNU is not on every unix-like platform that I use.  Right now, IMHO it is still a niche language...<br />
<br />
And as for indenting, use EMACS and it will indent automagically.</description>
			<pubDate>Thu, 22 Jul 2004 13:38:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>@Rodney</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>Don't spend your time feeding the trolls...</description>
			<pubDate>Thu, 22 Jul 2004 13:41:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Other books</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>If you're a veteran programmer, dive into python ( <a href="http://diveintopython.org" rel="nofollow">http://diveintopython.org</a> ) is the best. The author of the article also might prefer the python cookbook to this book, as the whole book is devoted to specific solutions to a set of problems.</description>
			<pubDate>Thu, 22 Jul 2004 13:47:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: &amp;quot;how to get around whitespace problems&amp;quot;</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>In writing Python programs, I've seldom had a problem with whitespace or indentation.  It's just utterly convenient to start out a function or block with def, for, etc. and just press return when you are finished with that block.  It sure beats having to keep track of curly braces like in JavaScript, PHP, etc.  A Python-oriented editor like IDLE or eric, with a highlight mode, will help keep track of this.</description>
			<pubDate>Thu, 22 Jul 2004 14:52:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Just use C# and .NET/Mono/dotGNU </title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>&quot;Why use Python when you can just use C# with .NET/Mono/dotGNU.  &quot;<br />
<br />
because python run everywhere like java and are must easy to learn</description>
			<pubDate>Thu, 22 Jul 2004 14:57:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Re: Just use C# and ...</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>Python is<br />
<br />
mature<br />
simple for trivial tasks<br />
capable of complex tasks<br />
available on many many platforms<br />
<br />
And for me, Python is aesthetically pleasing and emotionally relaxing, freeing to work with.</description>
			<pubDate>Thu, 22 Jul 2004 15:11:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>not enough about docs</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>I'm currently reading this book and my problem with it lack of references to the docs. So far (I'm on p. 95), they've been using top-level functions like len(), int(), str(), float(), list() as if they were part of some top-level module which I don't know about and they won't tell me. I'd have preferred it if the authors told me right off the bat how to find out what's in the standard library, and how to get online help on how to use said library.<br />
<br />
They even list all the string methods, but don't give further information about how to get the docs on them.<br />
<br />
Another beef I have is on p. 37 where, in a hand-waving argument, they seem to imply that the following terms are all the same:<br />
<br />
library of tools<br />
python source file<br />
module<br />
package of names<br />
namespace<br />
bunch of &quot;attributes&quot;<br />
<br />
I wish they'd clearly explain the distinctions between (and definitions of) those 6 terms.<br />
<br />
IMO, The book is *pretty good*. I'd give it a 6.5/10.</description>
			<pubDate>Thu, 22 Jul 2004 15:12:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Python</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>I've tried Python in my spare time, mainly because I'm a developer and I like to try out new languages; but I've never seen it actually used in any of the work environments I've been in.  Is there a particular industry it's popular in?  I did a search of the Atlanta area for Python on computerjobs.com and got 1 hit for a web developer.  Just wanted to know what people are mainly using it for.</description>
			<pubDate>Thu, 22 Jul 2004 15:24:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>re: RE: &amp;quot;how to get around whitespace problems&amp;quot;</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>&quot;<i>You don't have to be &quot;perfect&quot; in the indentation, just consistent. It's not as half rigid as people think (not like Fortran at least), you just need to do it for half an hour and then you pretty much forget about it.&quot;</i><br />
<br />
Funny... Being mainly a c/c++/c#/java programmer for years, i've been doing mostly php the past few months, and i still forget to put dollar signs $ in front of the variables... several times a day <img src="/images/emo/grin.gif" alt=";)" /> <br />
Anyway, programmers are picky when it comes to indentation, i myself would kill any c programmer that doesn't put curly brackets { on separate lines, people who put them on the sames lines as the keywords, functions or whatever just annoy the crap out of me.</description>
			<pubDate>Thu, 22 Jul 2004 15:51:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>re. Python</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>&gt; Just wanted to know what people are mainly using it [Python] for.<br />
<br />
I think it's gaining popularity in a backroom sort of way, the way GNU/Linux gained popularity: your boss (if you're employed) needs you to get something done but doesn't micromanage you. You choose Python, deliver your boss's solution, and he or she is happy. Next thing you know, half the web site's back-end is in Python, along with various scripts scattered all over the system(s). Maybe there's a big long Perl script that needs fixing, and you can't wrangle the thing, so you rewrite it in Python. [shrug]</description>
			<pubDate>Thu, 22 Jul 2004 15:59:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>@Justin Sane</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>I used Python/MS-SQL to replace an aging VB/MS Access program that extracts a ton of data from an oracle DB and normalizes it into a catalog for our customers.<br />
<br />
I also added a nice wxWindows gui to it and made it so that all the steps in the catalog generation could be run separately, one at a time, for debugging purposes.  Very nice!  Might I add that it also ended up running in 1/2 the time of the VB/Access program.<br />
<br />
It would process well over a million records, pulling info from a dozen tables with hyper complicated queries (our database system is over-flexible - needs some flattening) and takes about 14 to 16 hours to run, total.  The old program took 24 hours.<br />
<br />
I've been using it for over a year, but it is about to be retired...  We found a better way of getting the info. to our customers.  <img src="/images/emo/smile.gif" alt=";)" /> <br />
<br />
Mike</description>
			<pubDate>Thu, 22 Jul 2004 16:06:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>well...</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>...alright, not HALF the time.  But significantly LESS time.  <img src="/images/emo/smile.gif" alt=";)" /></description>
			<pubDate>Thu, 22 Jul 2004 16:07:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>re: Python</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>&gt; Just wanted to know what people are mainly using it [Python] for.<br />
<br />
A large portion of the Python users I see are (non-software) engineers and scientists who are using python to tie together lower level hardware interfacing or computation routines into a tool for their own work. <br />
<br />
I think this Python adoption in this group of people is higher becasue they are typically: comfortable with C (or Fortran), have legacy/third pary code they want to call,  want OO and procedural design methodologies available, are not releasing their software as a boxed up product for sale, and want a faster design cycle.   This is the same group of people, though different individuals, that use Tcl/Tk to keep their labs running.<br />
<br />
Also, a lot of scientists and engineers take one look at the Numeric or Numarray package along with something like IPython and are sold.  The packages that make things more MATLAB-like win a lot of points.</description>
			<pubDate>Thu, 22 Jul 2004 16:13:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>re: Python</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>We are using Python quite successfully in an enduser desktop application. The main program is in C++ and delegates some of the more complex tasks to Python running in an embedded interpreter. This is absolutely invisible to the enduser, unless they look into the install folder and see python23.dll, they'd never know.<br />
<br />
Overall I like Python very much. It isn't the right tool for every job, but the right tool for lots of jobs.<br />
<br />
About previously discussed indention... Any programmer worth his money should be able to handle that. I didn't like it first, but meanwhile I prefer the Python way. As a sidenote, I seem to be indenting my C++/Java code more properly now than before after developing that good habit working with Python.<br />
<br />
Concerning speed... this is mostly irrelevant. And there is Psyco which can speed up data manipulation drastically.</description>
			<pubDate>Thu, 22 Jul 2004 16:36:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>@johnMG builtins and documentation</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>john-<br />
<br />
open a python interpreter and type :dir(__builtin__)<br />
to get a list of builtin functions.<br />
<br />
to get documentation for said functions, say map type:<br />
map.__doc__<br />
<br />
hth</description>
			<pubDate>Thu, 22 Jul 2004 18:01:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>timely review</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>I was looking at this book yesterday, trying to decide whether or not I should get it. I had been leaning toward buying it, and wanted to check online reviews. I think that I will buy it now; thank you.</description>
			<pubDate>Thu, 22 Jul 2004 20:36:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>@ foo</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>Thanks.<br />
<br />
&gt;&gt;&gt; print fn_name.__doc__<br />
<br />
works, but dir(__builtin__) does not:<br />
<br />
&gt;&gt;&gt; dir(__builtin__)<br />
Traceback (most recent call last):<br />
  File &quot;&quot;, line 1, in ?<br />
NameError: name '__builtin__' is not defined</description>
			<pubDate>Fri, 23 Jul 2004 03:02:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>@JonhMG</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>Make an &quot;import __builtin__&quot; first...</description>
			<pubDate>Fri, 23 Jul 2004 04:19:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>@johnMG</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>Just use dir(). Also help(). Besides, the tutorial and especially the language reference are your friends.</description>
			<pubDate>Fri, 23 Jul 2004 11:32:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Re: Justin Sane</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>I found python (and wxPython) very useful in situations where I had to interface several different different ways of doing things work together, and get it done quickly. <br />
<br />
In a manufacturing environment I had a short time to interface with a DDE server to acquire info from everal pieces of machinery, kick off an alarm on an IO board controlled by another DDE server and store info through an ODBC interface into a database and provide a nice attractive GUI, in a couple of days, with never having used DDE before.  <br />
<br />
I would be still working on it if I had done this in C++.<br />
<br />
Python makes these kind of situations very easy, and simple.  The code was only a few pages, mostly various wx controls.</description>
			<pubDate>Fri, 23 Jul 2004 16:57:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>@johnMG builtins and documentation</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>I sympathize with your cause.  <br />
<br />
Shortly after I started to learn python, I discovered ruby, which then quickly became my favorite programming language (and now has make me all the more reluctant to dive into python.)  The way the two languages organize themselves seems to highlight your point about python's top-level functions.<br />
<br />
I might get into trouble for saying this, but I agree with you in that it feels like python's top-level functions appear (in your words) &quot;as if they were part of some top-level module which I don't know about and they won't tell me.&quot;  <br />
<br />
Sure, you can do all the nice OO stuff in python, but when you're &quot;thinking in python&quot;, you sometimes have to break out into a &quot;functions and procedural programming&quot; mindset just to make simple expressions.  By contrast, in ruby, *everything is an object*, and behaves purely as such.  You don't have to guess if something is treated as a function or a method call.  You also don't have to put all those dumb &quot;self&quot;s inside classes.<br />
<br />
Simple Example:<br />
In python:<br />
  print len(&quot;This is a string&quot;)<br />
<br />
In ruby:<br />
  puts (&quot;This is a string&quot;).length<br />
<br />
In the python statement, we call on our built-in function len(), using our string as the parameter.  In ruby, our string is an object, so we simply evoke it's &quot;length&quot; behaviour.  (And if we wish to know any of the other behaviours that are available from strings, a simple look at the reference under String class will do the trick, see: <a href="http://www.rubycentral.com/book/ref_c_string.html" rel="nofollow">http://www.rubycentral.com/book/ref_c_string.html</a>) <br />
<br />
Though an infinitely simple example, it represents ruby's consistency in treating all things as objects.  If there is anything like python's top-level functions in ruby, it would be the Object superclass<br />
(see <a href="http://www.rubycentral.com/book/ref_c_object.html" rel="nofollow">http://www.rubycentral.com/book/ref_c_object.html</a>),  from which all objects are derived.<br />
<br />
Well, so there you have it.  Nuts that my ruby scripts may never be able to be compiled into bytecode (like python can), and nuts that they will probably never run as fast as python code, nor have access to GTK+ or wxWidgets GUI toolkits, nor all the tools that python has.  Oh, ruby development may never catch up to python, so I guess I'll have to learn python.  Anyone out there interested in making a ruby-like dialect that maps onto python bytecode?<br />
<br />
Pleeeeeese <img src="/images/emo/smile.gif" alt=";)" /></description>
			<pubDate>Fri, 23 Jul 2004 17:51:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Re: Howie S</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>I agree that Ruby is a great language, and it's great to read an honest, non-flame comparison like yours, for a change.<br />
<br />
I kinda love both, so my heart is divided..but I think it's important to note that the fact that in Python &quot;not everything is an object&quot; is good when it comes to teaching, since Python allows a teacher to first teach it as a procedural, traditional programming language, and then introduce OO programming.<br />
<br />
It might be a bit harder for a beginner to grasp programming, algorithms, data structures _and_ OO all at the same time, as it happens with pure-OO languages.<br />
<br />
Anyway, both are fantastic <img src="/images/emo/smile.gif" alt=";)" />  I wish the Ruby community as &quot;vibrant&quot; as the Python though... (my personal experience of course, maybe not all would agree)</description>
			<pubDate>Fri, 23 Jul 2004 21:14:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>ops</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>I wish the Ruby community were as &quot;vibrant&quot; <br />
<br />
Sorry</description>
			<pubDate>Fri, 23 Jul 2004 21:16:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>@Rod </title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>I appreciate your feedback and comments.  <br />
<br />
Thanks.</description>
			<pubDate>Sat, 24 Jul 2004 15:43:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE:  @johnMG builtins and documentation</title>
			<link>http://www.osnews.com/thread?</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?</guid>
			<description>&gt; Simple Example:<br />
&gt; In python:<br />
&gt;print len(&quot;This is a string&quot;)<br />
&gt; In ruby:<br />
&gt; puts (&quot;This is a string&quot;).length <br />
<br />
If you really like methods better than functions, Python won't stop you from writing:<br />
<br />
print &quot;This is a string&quot;.__len__()<br />
<br />
Don't even need the extra parens around the string.</description>
			<pubDate>Mon, 26 Jul 2004 00:21:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>
	</channel>
</rss>

