<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:osnews="http://osnews.com/rss2#">
	<channel>
		<title>OSNews: </title>
		<link>http://www.osnews.com/story/20371/Python_2_6_Released</link>
		<description>Exploring the Future of Computing</description>
		<language>en-us</language>
		<copyright>Copyright 2001-2009, David Adams</copyright>
		<webMaster>adam+nospam@osnews.com</webMaster>
		<lastBuildDate>Fri, 11 Dec 2009 13:52:09 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>Woohoo!</title>
			<link>http://osnews.com/thread?333045</link>
			<guid isPermaLink="true">http://osnews.com/thread?333045</guid>
			<description>This makes me quite happy. Python is an amazing language ... if you don't know it yet do yourself a favour and take the 20 minutes it takes to learn it ... when you have a problem and solve it elegantly with a small amount of Python code you'll thank yourself!</description>
			<pubDate>Thu, 09 Oct 2008 22:17:00 GMT</pubDate>
			<author>donotreply@osnews.com (ashcrow)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Woohoo!</title>
			<link>http://osnews.com/thread?333047</link>
			<guid isPermaLink="true">http://osnews.com/thread?333047</guid>
			<description>agreed, though i would say to anyone who plans on starting in at this point, wait for 3.0. there are some major changes to the architecute and syntax, not to mention the removal of old and unused bits. 2.6 is a stepping stone for the transition, and 3.0 is shaping up rather nicely.</description>
			<pubDate>Thu, 09 Oct 2008 22:20:00 GMT</pubDate>
			<author>donotreply@osnews.com (poundsmack)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Late News</title>
			<link>http://osnews.com/thread?333053</link>
			<guid isPermaLink="true">http://osnews.com/thread?333053</guid>
			<description>why would OSNews post something so late? how long ago was Python 2.6 releasedEdited 2008-10-09 22:56 UTC</description>
			<pubDate>Thu, 09 Oct 2008 22:56:00 GMT</pubDate>
			<author>donotreply@osnews.com (Sabz)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Late News</title>
			<link>http://osnews.com/thread?333055</link>
			<guid isPermaLink="true">http://osnews.com/thread?333055</guid>
			<description>Um, that would be last Wednesday, October 1st, 2008:<br />
<br />
<a href="http://www.python.org/download/releases/2.6/" rel="nofollow">http://www.python.org/download/releases/2.6/</a></description>
			<pubDate>Thu, 09 Oct 2008 23:09:00 GMT</pubDate>
			<author>donotreply@osnews.com (DoctorPepper)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Woohoo!</title>
			<link>http://osnews.com/thread?333058</link>
			<guid isPermaLink="true">http://osnews.com/thread?333058</guid>
			<description><div class="cquote">2.6 is a stepping stone for the transition, and 3.0 is shaping up rather nicely. </div><br />
And will be out next week or so, IIRC. I haven't RTFA'd, and it may cover that.  But no one should be left thinking that 3.0 is 6 months away or anything. ;-)<br />
<br />
3.0 fixes some niggling design issues. After 17 years, Guido and the other devs have swatted a few flies.  There is no reason not to start learning with 2.6, 2.5, or 2.4. One might want to upgrade from &lt; 2.4 before starting.</description>
			<pubDate>Thu, 09 Oct 2008 23:22:00 GMT</pubDate>
			<author>donotreply@osnews.com (sbergman27)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Yeah, greate</title>
			<link>http://osnews.com/thread?333063</link>
			<guid isPermaLink="true">http://osnews.com/thread?333063</guid>
			<description>My biggest peeve with python is the use of spaces to delimit blocks of statements.  Does somebody have something against punctuation or what?</description>
			<pubDate>Fri, 10 Oct 2008 01:13:00 GMT</pubDate>
			<author>donotreply@osnews.com (StychoKiller)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Yeah, greate</title>
			<link>http://osnews.com/thread?333064</link>
			<guid isPermaLink="true">http://osnews.com/thread?333064</guid>
			<description>I thought that would bug me when I first started using Python back in the 1.x days, and it did.  However, it really stops being an issue after just a short while.<br />
<br />
While I'm a die-hard fan of parenthesis and curly braces, I think Python's syntax forces good code formatting and makes your code very easy to read.  Also, when a problem comes my way, the first language I reach for to solve it is Python, so I think the Python team must be doing something right; at least from my point of view.</description>
			<pubDate>Fri, 10 Oct 2008 01:37:00 GMT</pubDate>
			<author>donotreply@osnews.com (Clinton)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Yeah, greate</title>
			<link>http://osnews.com/thread?333065</link>
			<guid isPermaLink="true">http://osnews.com/thread?333065</guid>
			<description>Seconded. Plus, there's a tool for those who want to program in python and still use curly brackets, IIRC. <br />
The main difficulties caused by the significant indentation thing are:<br />
<br />
a) Immediate yuck-reaction from former C programmers and those scarred by non-free-form FORTRAN.<br />
<br />
b) Copying and pasting from forums gets harder. Whether or not this is bad is up to debate.<br />
<br />
c) Mixing of tabs and spaces, especially in projects with more than one developer. If you can't get a bunch of people to follow the same coding style OR use a tool that changes the code accordingly, Python is probably the least of your problems, as in case b).<br />
<br />
I've only used Python recently because it's just so much easier to remember/relearn than e.g. C++, especially if you just program in your spare time, for fun.</description>
			<pubDate>Fri, 10 Oct 2008 02:14:00 GMT</pubDate>
			<author>donotreply@osnews.com (RandomGuy)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Yeah, greate</title>
			<link>http://osnews.com/thread?333068</link>
			<guid isPermaLink="true">http://osnews.com/thread?333068</guid>
			<description><div class="cquote">My biggest peeve with python is the use of spaces to delimit blocks of statements.  Does somebody have something against punctuation or what? </div><br />
<br />
I've programmed a decent amount of python and I still agree.  I do appreciate that it forces sane indentation and so helps readability, but the problem is that you get a source of bugs that is just about invisible.  By missing an indent (space), you can end up with an if statement where the last statement you believe to be in scope is actually outside, and thus executed regardless of the if condition.  This does not actually happen often.  But when it does, it's a bitch to find.<br />
<br />
My point?  Syntax elements should be visible.  Other than that, love python.</description>
			<pubDate>Fri, 10 Oct 2008 02:31:00 GMT</pubDate>
			<author>donotreply@osnews.com (jwwf)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Yeah, greate</title>
			<link>http://osnews.com/thread?333076</link>
			<guid isPermaLink="true">http://osnews.com/thread?333076</guid>
			<description><div class="cquote">My biggest peeve with python is the use of spaces to delimit blocks of statements.  Does somebody have something against punctuation or what? </div><br />
Well, this is <b>everybody's</b> big pet peeve with Python.  The first time I thought about switching from Perl to Python, I saw the whitespace thing and decided to ignore it for the next 3 years.  Boy, big mistake.  Now that I use Python for practically everything and love it to death, I don't notice the whitespace issues one bit.<br />
<br />
I sometimes think Guido (Python's creator) takes a perverse delight in turning away all of us shallow-minded programmers.  He thinks to himself, &quot;Oh gosh, there goes another fool passing up the greatest programming language ever, with no idea of what he/she is missing.&quot;  Well, I'm proud to have become a true believer <img src="/images/emo/smile.gif" alt=";)" /></description>
			<pubDate>Fri, 10 Oct 2008 03:57:00 GMT</pubDate>
			<author>donotreply@osnews.com (moxfyre)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Solution for indenting blocks of text</title>
			<link>http://osnews.com/thread?333077</link>
			<guid isPermaLink="true">http://osnews.com/thread?333077</guid>
			<description>Don't use a simple editor, use something that is made for python.<br />
<br />
Here are some examples:<br />
<br />
eric4 <a href="http://die-offenbachs.de/eric/index.html" rel="nofollow">http://die-offenbachs.de/eric/index.html</a><br />
<br />
Pyscripter: <a href="http://pyscripter.googlepages.com/" rel="nofollow">http://pyscripter.googlepages.com/</a><br />
(if you are running on windows this one rocks, has a few<br />
issues, but can debug in threads and has excellent code completion and help integration)<br />
<br />
Eclipse and Pydev are not bad either: <br />
<a href="http://pydev.sourceforge.net/" rel="nofollow">http://pydev.sourceforge.net/</a><br />
<br />
and if you want a commercial IDE Komodo from active state is very good.</description>
			<pubDate>Fri, 10 Oct 2008 04:22:00 GMT</pubDate>
			<author>donotreply@osnews.com (snorkel)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Yeah, greate</title>
			<link>http://osnews.com/thread?333082</link>
			<guid isPermaLink="true">http://osnews.com/thread?333082</guid>
			<description>Try: python -tt file.py<br />
<br />
And enable visible tabs in your editor to detect incompatibilities in the source.</description>
			<pubDate>Fri, 10 Oct 2008 05:20:00 GMT</pubDate>
			<author>donotreply@osnews.com (Kaali)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Woohoo!</title>
			<link>http://osnews.com/thread?333083</link>
			<guid isPermaLink="true">http://osnews.com/thread?333083</guid>
			<description>I don't think 3.0 will be adopted for a long time. So if you wish to distribute your applications, or if you do web applications (e.g. Django, Turbogears) and serve on a hosted platform, even 2.6 will be too new target.<br />
<br />
Many distributions still only have Python 2.4.<br />
<br />
For personal projects, sure, go ahead and use Python 3.0, it needs testing.</description>
			<pubDate>Fri, 10 Oct 2008 05:23:00 GMT</pubDate>
			<author>donotreply@osnews.com (Kaali)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Woohoo!</title>
			<link>http://osnews.com/thread?333089</link>
			<guid isPermaLink="true">http://osnews.com/thread?333089</guid>
			<description>It is a nice language, even often used to teach programming in general. Some links of interest:<br />
<br />
How to Think Like a Computer Scientist<br />
<a href="http://openbookproject.net/thinkCSpy/index.xhtml" rel="nofollow">http://openbookproject.net/thinkCSpy/index.xhtml</a><br />
<br />
A Byte of Python - Python eBook<br />
<a href="http://www.swaroopch.com/notes/Python" rel="nofollow">http://www.swaroopch.com/notes/Python</a><br />
<br />
Introducing mod_python<br />
<a href="http://www.onlamp.com/pub/a/python/2003/10/02/mod_python.html" rel="nofollow">http://www.onlamp.com/pub/a/python/2003/10/02/mod_python.html</a> <br />
<br />
Mod_python Manual<br />
<a href="http://www.modpython.org/live/current/doc-html/" rel="nofollow">http://www.modpython.org/live/current/doc-html/</a><br />
<br />
Some Mod_python Examples<br />
<a href="http://www.modpython.org/examples/" rel="nofollow">http://www.modpython.org/examples/</a><br />
<br />
Enjoy yourself! <img src="/images/emo/smile.gif" alt=";)" /></description>
			<pubDate>Fri, 10 Oct 2008 06:25:00 GMT</pubDate>
			<author>donotreply@osnews.com (Liquidator)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Yeah, greate</title>
			<link>http://osnews.com/thread?333093</link>
			<guid isPermaLink="true">http://osnews.com/thread?333093</guid>
			<description>I liked that in the beginning, actually, since I'm formatting and indenting my code anyway, and I liked it to be forced to do that.<br />
<br />
But now, I also see the disadvantages: Whenever you copy &amp; paste code, or you move some code block to somewhere else, it's just not as convenient, because you always have to look that you're doing it correctly, even if you're just testing something quickly.<br />
And also, it's a problem when you want to comment out an if- or while-line so that the condition is gone and the code is definitely executed. Because if you do that, you have to de-indent the code block, and things might get very messy that way.<br />
<br />
So those are the drawbacks for me, but of course it's also got some nice advantages.</description>
			<pubDate>Fri, 10 Oct 2008 07:16:00 GMT</pubDate>
			<author>donotreply@osnews.com (Glynser)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Solution for indenting blocks of text</title>
			<link>http://osnews.com/thread?333095</link>
			<guid isPermaLink="true">http://osnews.com/thread?333095</guid>
			<description>I'll second Eric 4 and PyDev as good, free editors.  I like PyDev extensions better, but it costs a bit of money.  If you're looking for the best Python editor out there and have a couple hundred dollars to spend, WingIDE is it.</description>
			<pubDate>Fri, 10 Oct 2008 07:44:00 GMT</pubDate>
			<author>donotreply@osnews.com (Clinton)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Yeah, greate</title>
			<link>http://osnews.com/thread?333096</link>
			<guid isPermaLink="true">http://osnews.com/thread?333096</guid>
			<description>That is true to some degree.  You usually notice that problem the most when you cut and paste code from one editor to the other.  Editors with good Python support usually fix any tab width inconsistencies or tabs vs. spaces for you though.</description>
			<pubDate>Fri, 10 Oct 2008 07:49:00 GMT</pubDate>
			<author>donotreply@osnews.com (Clinton)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Privates</title>
			<link>http://osnews.com/thread?333097</link>
			<guid isPermaLink="true">http://osnews.com/thread?333097</guid>
			<description>Personally, I like Python...but it has a serious shortcoming when it lack private class members. If they would just drop the ___member___ syntax for &quot;privates&quot; and add REAL privates I would be happy. They could even just make the variables private by default!</description>
			<pubDate>Fri, 10 Oct 2008 07:52:00 GMT</pubDate>
			<author>donotreply@osnews.com (J.R.)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Python</title>
			<link>http://osnews.com/thread?333100</link>
			<guid isPermaLink="true">http://osnews.com/thread?333100</guid>
			<description>I'd just like to say that I have coded in C, C++, Java, C#, Pascal, Perl, Ruby, Python, and a few other languages and Python is by far my favorite one to work with.  Sure, it doesn't do threading as well as other languages and it may not be as scalable, but I have never hit any of those barriers in my use of it and it has served me extremely well for many years.  My gratitude goes out to all those who work on and make Python available.</description>
			<pubDate>Fri, 10 Oct 2008 07:56:00 GMT</pubDate>
			<author>donotreply@osnews.com (Clinton)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>python does support curly braces</title>
			<link>http://osnews.com/thread?333101</link>
			<guid isPermaLink="true">http://osnews.com/thread?333101</guid>
			<description>the syntax is just #{ and #} instead of { and }, here, look, this is valid python code (i'm indenting with dots because osnews won't let me use &amp;lt;pre&amp;gt;)<br />
<br />
if (a == 5): #{<br />
....print &quot;foo&quot;;<br />
}#<br />
else: #{<br />
....print &quot;bar&quot;;<br />
#}<br />
<br />
ugh. when will you people realize that it's just syntax? and the less syntax you have, the better -- less visual noise, less typos, less things to learn, less special cases, one-obvious-way-to-do-it, etc. etc.<br />
<br />
do you know how many hours i've spent debugging where i forgot to place a semicolon in C? <br />
<br />
every time i program in C, i realize how much its syntax is redundant and overcomplicated. just forget to place a semicolon at the end of a struct in an include file, and you'll realize that too.</description>
			<pubDate>Fri, 10 Oct 2008 08:10:00 GMT</pubDate>
			<author>donotreply@osnews.com (ganges master)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: python does support curly braces</title>
			<link>http://osnews.com/thread?333102</link>
			<guid isPermaLink="true">http://osnews.com/thread?333102</guid>
			<description><div class="cquote"><br />
do you know how many hours i've spent debugging where i forgot to place a semicolon in C? <br />
 </div><br />
<br />
0? The lack of a semi colon makes the statement invalid and thus it will be caught by your compiler. If your compiler doesn't catch it, turn on all warnings. If that still doesn't work, your compiler is horribly broken and you should get a new one.<br />
<br />
Useless programmers complain about indentation in Python. Those same programmers complain about semicolons in C.</description>
			<pubDate>Fri, 10 Oct 2008 08:40:00 GMT</pubDate>
			<author>donotreply@osnews.com (evangs)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Yeah, greate</title>
			<link>http://osnews.com/thread?333106</link>
			<guid isPermaLink="true">http://osnews.com/thread?333106</guid>
			<description>Except that if you want to keep your code width limited to, say, 80 columns, then in many cases you are forced to use backslashes at the end of a line to inform python that you intend to continue it in the next.  I personally prefer braces or &quot;end&quot; keywords over having to do this manual dance, which sometimes makes me feel I'm writing for the C preprocessor.<br />
<br />
Example:<br />
$ cd /usr/share/blender/scripts &amp;&amp; grep '\\$' *.py | wc -l<br />
938Edited 2008-10-10 09:02 UTC</description>
			<pubDate>Fri, 10 Oct 2008 08:59:00 GMT</pubDate>
			<author>donotreply@osnews.com (unavowed)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Yeah, greate</title>
			<link>http://osnews.com/thread?333116</link>
			<guid isPermaLink="true">http://osnews.com/thread?333116</guid>
			<description><div class="cquote">And also, it's a problem when you want to comment out an if- or while-line so that the condition is gone and the code is definitely executed. Because if you do that, you have to de-indent the code block, and things might get very messy that way.<br />
 </div><br />
<br />
No, just replace the condition to True and you're done.</description>
			<pubDate>Fri, 10 Oct 2008 10:13:00 GMT</pubDate>
			<author>donotreply@osnews.com (helduel)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: Yeah, greate</title>
			<link>http://osnews.com/thread?333122</link>
			<guid isPermaLink="true">http://osnews.com/thread?333122</guid>
			<description>Yes, that's also a solution, but a green commented-out line is quicker to spot than a &quot;raped&quot; condition. Also, it's quicker to turn on and off, because it's just a # in front of the line.</description>
			<pubDate>Fri, 10 Oct 2008 10:48:00 GMT</pubDate>
			<author>donotreply@osnews.com (Glynser)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[4]: Yeah, greate</title>
			<link>http://osnews.com/thread?333126</link>
			<guid isPermaLink="true">http://osnews.com/thread?333126</guid>
			<description><div class="cquote">Yes, that's also a solution, but a green commented-out line is quicker to spot than a &quot;raped&quot; condition. </div><br />
<br />
Wenn you comment out the previous conditions, it is as easy to spot. Of course, you have to type True or 1, but this shouldn't be a real problem.<br />
<br />
<div class="cquote">Also, it's quicker to turn on and off, because it's just a # in front of the line. </div><br />
<br />
That depends greatly on coding style. If you write something like<br />
<br />
<i>if (x &lt; y) {<br />
// do something<br />
}<br />
</i><br />
<br />
it's not just placing a # in front. I don't believe either that just the possibility to just place a # in front of a line for debugging purposes is so a great time saver in view of all the curly braces you have to type and keep track of.<br />
<br />
So, it's more a matter of taste or habit. For me the Python way is the way I like it to have.</description>
			<pubDate>Fri, 10 Oct 2008 11:32:00 GMT</pubDate>
			<author>donotreply@osnews.com (helduel)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Solution for indenting blocks of text</title>
			<link>http://osnews.com/thread?333129</link>
			<guid isPermaLink="true">http://osnews.com/thread?333129</guid>
			<description>Komodo Edit is free though and I personally think it is the best scripting editor. Eclipse is very flexible and sometimes great but most of the time I want something that just works.<br />
<br />
I've had some problems earlier with Linux running Komodo because of it using Mozilla. Basically the operating system couldn't see the difference between different Mozilla applications so I could only have one open at a time. That was however distro specific and hopefully solved by now.</description>
			<pubDate>Fri, 10 Oct 2008 11:36:00 GMT</pubDate>
			<author>donotreply@osnews.com (Bending Unit)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: python does support curly braces</title>
			<link>http://osnews.com/thread?333131</link>
			<guid isPermaLink="true">http://osnews.com/thread?333131</guid>
			<description>Though a code that lacks a semicolon somewhere probably won't compile, (so debugging might be the wrong word) the compiler can sometimes give very long, and very unhelpful error messages when forgetting a semicolon. This is worse in C++.</description>
			<pubDate>Fri, 10 Oct 2008 11:37:00 GMT</pubDate>
			<author>donotreply@osnews.com (righard)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Solution for indenting blocks of text</title>
			<link>http://osnews.com/thread?333132</link>
			<guid isPermaLink="true">http://osnews.com/thread?333132</guid>
			<description>About the Eric IDE. I'm sure it is very capable and smart in every way. But the default UI. Do. Not. Want.</description>
			<pubDate>Fri, 10 Oct 2008 11:39:00 GMT</pubDate>
			<author>donotreply@osnews.com (Bending Unit)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: python does support curly braces</title>
			<link>http://osnews.com/thread?333157</link>
			<guid isPermaLink="true">http://osnews.com/thread?333157</guid>
			<description>When I was an undergraduate one of the modules I did required me to write a Java compiler. To make things &quot;easier&quot;, I logged the error messages as numeric codes. While it appeared to be a good idea at the time, it soon became obvious why this approach sucked.<br />
<br />
If you had used my compiler to compile your Java code and received an incomprehensible error message, is it Java's fault or is it my compiler's fault?</description>
			<pubDate>Fri, 10 Oct 2008 14:09:00 GMT</pubDate>
			<author>donotreply@osnews.com (evangs)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[4]: python does support curly braces</title>
			<link>http://osnews.com/thread?333185</link>
			<guid isPermaLink="true">http://osnews.com/thread?333185</guid>
			<description>I like the C and C++ syntax allot, I did not mean do blame the fault on them. But because both languages have a rather liberal syntax, it can sometimes be impossible for a compiler to guess what the user meant to do. That is just an inevitable side effect of a liberal syntax, Pyhtons syntax prevents this side effect,  with the down side that I ca'n't, in my opinion intend code properly.</description>
			<pubDate>Fri, 10 Oct 2008 16:33:00 GMT</pubDate>
			<author>donotreply@osnews.com (righard)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Yeah, greate</title>
			<link>http://osnews.com/thread?333188</link>
			<guid isPermaLink="true">http://osnews.com/thread?333188</guid>
			<description>I totally agree with you.  I used Perl for about seven years, pretty heavily, before getting into Python.<br />
<br />
I tried to learn Python a couple of times, but like others have said, the whitespace thing through me off totally.  In mid-2005, I took a contract with IBM, and the group I worked with was heavily into Python, so I bought &quot;Learning Python&quot; and the rest is history.  Like parent said, I do not even notice the whitespace thing any longer, and find the readability of Python to be head and shoulders above Perl (and most other languages as well).<br />
<br />
Advice to those who still scoff at Python because of enforced whitespace rules: Just try it.  Grab a copy of &quot;A Byte of Python&quot; or perhaps &quot;Dive into Python&quot; and just do it, you really won't be sorry.</description>
			<pubDate>Fri, 10 Oct 2008 16:41:00 GMT</pubDate>
			<author>donotreply@osnews.com (DoctorPepper)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Privates</title>
			<link>http://osnews.com/thread?333195</link>
			<guid isPermaLink="true">http://osnews.com/thread?333195</guid>
			<description><div class="cquote">Personally, I like Python...but it has a serious shortcoming when it lack private class members. If they would just drop the ___member___ syntax for &quot;privates&quot; and add REAL privates I would be happy. They could even just make the variables private by default! </div><br />
Agreed.  The fact that you can change any attribute of any class makes some things confusing.  Lack of documentation makes it hard to tell how to use classes in some cases.  This is one place where Java is nice.  Getters and Setters are explicit.  You know that calling obj.setFoo(bar) will do everything you need.  In python, you may or may not have to call obj.foo = bar and then call obj.recalc() depending on if the author of the class is looking for it in __setattr__(self)</description>
			<pubDate>Fri, 10 Oct 2008 17:09:00 GMT</pubDate>
			<author>donotreply@osnews.com (FunkyELF)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>from __future__ import division</title>
			<link>http://osnews.com/thread?333196</link>
			<guid isPermaLink="true">http://osnews.com/thread?333196</guid>
			<description>I'm disappointed that the new division model isn't in this release.<br />
In my opinion, the way that division will be handled in python 3000 is the way that every language should handle it.<br />
<br />
The result of a division operation is always a real number.  This is the way it is in real life.  If you were reading a math formula in a text book, economics book, or anything, division results in real numbers.  If you wanted integral division, it would be marked explicitly.  With Python 3000, that's the way it is.  You want integer division... do int(12/5) or 12 // 5.<br />
<br />
It just makes so much sense.  Integer division is the exception, not the rule.</description>
			<pubDate>Fri, 10 Oct 2008 17:15:00 GMT</pubDate>
			<author>donotreply@osnews.com (FunkyELF)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Late News</title>
			<link>http://osnews.com/thread?333197</link>
			<guid isPermaLink="true">http://osnews.com/thread?333197</guid>
			<description>You could have submitted this as news if you already had this extremely urgent and life changing info <img src="/images/emo/wink.gif" alt=";)" /> Edited 2008-10-10 18:16 UTC</description>
			<pubDate>Fri, 10 Oct 2008 18:11:00 GMT</pubDate>
			<author>donotreply@osnews.com (aaronb)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Fractions... </title>
			<link>http://osnews.com/thread?333199</link>
			<guid isPermaLink="true">http://osnews.com/thread?333199</guid>
			<description>Fractions in Python 2.6 are a nice addition but leave much to be desired.<br />
 <br />
The good stuff...<br />
 <br />
<b>&gt;&gt;&gt; from fractions import Fraction<br />
&gt;&gt;&gt; f1 = Fraction(1,3)<br />
&gt;&gt;&gt; f2 = Fraction(5,8)<br />
&gt;&gt;&gt; f1<br />
Fraction(1, 3)<br />
&gt;&gt;&gt; f2<br />
Fraction(5, 8)<br />
&gt;&gt;&gt; f1 * f2<br />
Fraction(5, 24)<br />
&gt;&gt;&gt; f1 / f2<br />
Fraction(8, 15)<br />
&gt;&gt;&gt; f1 + f2<br />
Fraction(23, 24)<br />
&gt;&gt;&gt; f1 - f2<br />
Fraction(-7, 24)</b><br />
 <br />
The okay stuff...<br />
 <br />
You can't have reals as numerators or denominators so you can't have pi/2<br />
But you can turn a real into a fraction...<br />
 <br />
<b>&gt;&gt;&gt; import math<br />
&gt;&gt;&gt; (math.pi).as_integer_ratio()<br />
(884279719003555, 281474976710656)<br />
&gt;&gt;&gt; mypi = Fraction(*(math.pi).as_integer_ratio())<br />
&gt;&gt;&gt; mypi<br />
Fraction(884279719003555, 281474976710656)<br />
&gt;&gt;&gt; float(mypi)<br />
3.1415926535897931<br />
&gt;&gt;&gt; mypi / 2<br />
Fraction(884279719003555, 562949953421312)</b><br />
<br />
 <br />
The bad stuff....<br />
This should be handled but it isn't....<br />
 <br />
<b>&gt;&gt;&gt; a = Fraction(1,2)<br />
&gt;&gt;&gt; b = Fraction(2,3)<br />
&gt;&gt;&gt; Fraction(a,b)<br />
<i>Traceback (most recent call last):<br />
  File &quot;&quot;, line 1, in <br />
  File &quot;/tmp/python/lib/python2.6/fractions.py&quot;, line 99, in __new__<br />
    numerator = operator.index(numerator)<br />
TypeError: 'Fraction' object cannot be interpreted as an index</i></b><br />
<br />
Maybe it will improve.</description>
			<pubDate>Fri, 10 Oct 2008 18:19:00 GMT</pubDate>
			<author>donotreply@osnews.com (FunkyELF)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: Yeah, greate</title>
			<link>http://osnews.com/thread?333205</link>
			<guid isPermaLink="true">http://osnews.com/thread?333205</guid>
			<description>Limiting code to 80 columns in this day and age is just ridiculous. There's nobody out there still programming at the console (an 80x25 console at least), and everybody else just uses more than 80 columns with no problems.<br />
<br />
You may say long lines make code more difficult to read, but if you limit yourself to lines with at most 80 characters (excluding leading whitespace), you won't that that big of a need to break statements into multiple lines.<br />
<br />
But forgetting that, most statements that can become longish can also be broken in multiple lines without backslashes (argument lists, conditional statements, ...). Every statement that requires something more can have that something more on another line without using backslashes.<br />
<br />
Actually right now I can't see anything that can't be broken, other than strings... (eg: print &quot;some&quot; \ &quot;string&quot;)</description>
			<pubDate>Fri, 10 Oct 2008 18:44:00 GMT</pubDate>
			<author>donotreply@osnews.com (CrLf)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Yeah, greate</title>
			<link>http://osnews.com/thread?333206</link>
			<guid isPermaLink="true">http://osnews.com/thread?333206</guid>
			<description>That seems to be everybody's pet peeve... everybody that hasn't programmed more than an hello world in Python, that is...<br />
<br />
I've been there, so I'm speaking from experience. But once you start using Python instead of just reading about it, you realise that the whitespace rules are mostly invisible... I don't remember the last time I had some problem related to whitespace indentation. Actually, I don't remember _ever_ having such a problem...<br />
<br />
But you end up noticing something... in other languages. I now find myself looking at C, java, etc. and thinking that they look messy (the same thing I always thought about perl). The absense of most delimiters in Python makes code look clean and concise (and easier to read).</description>
			<pubDate>Fri, 10 Oct 2008 18:51:00 GMT</pubDate>
			<author>donotreply@osnews.com (CrLf)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Privates</title>
			<link>http://osnews.com/thread?333208</link>
			<guid isPermaLink="true">http://osnews.com/thread?333208</guid>
			<description>Access control is seriously overrated...<br />
<br />
I agree that the &quot;__member__&quot; and &quot;__member&quot; conventions are not that visually elegant, but programming in Python isn't just about learning a new syntax, it is also about learning a different way of organizing your code.<br />
<br />
All those defensive measures in other languages exist because you must protect your interfaces at all costs. The dynamic nature of Python means you can more easily change those interfaces without breaking code that relies on them. Now, Im not saying that access control is unnecessary, but I can say that in, for instance, Java, it mostly forces you to write more code often for very little gain.<br />
<br />
I think one thing that really illustrates the difference between Python and other languages in this matter are properties. In other languages properties exist so you can write less (foo.x instead of foo.getX()), but in Python properties exist so you can instantly turn a direct attribute access into a method without breaking your interface or having to refactor code.<br />
<br />
And one thing makes me wonder... If Python lacks access control that much, then why are people writing robust applications in Python, and why are people writing flaky applications in other languages... The brain is a finite resource and maybe not having to obsess about protecting your interfaces from all kinds of abuse frees you to write better interfaces and better code.</description>
			<pubDate>Fri, 10 Oct 2008 19:10:00 GMT</pubDate>
			<author>donotreply@osnews.com (CrLf)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Yeah, greate</title>
			<link>http://osnews.com/thread?333245</link>
			<guid isPermaLink="true">http://osnews.com/thread?333245</guid>
			<description><div class="cquote">...the greatest programming language ever... </div><br />
<br />
I don't know man. I mean, I think Python's string formatting features are pretty bad. Look at the way Groovy handles strings and interpolation... so much more elegant.<br />
<br />
In fact, look at the way Groovy does closures. It's actually unbelievable how much you can accomplish in Groovy in just a few lines of code... and it is readable too.<br />
<br />
Now, I'm not saying Groovy is the best programming language ever, but I'm just making a point.</description>
			<pubDate>Sat, 11 Oct 2008 05:05:00 GMT</pubDate>
			<author>donotreply@osnews.com (alopecoid)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[4]: Yeah, greate</title>
			<link>http://osnews.com/thread?333246</link>
			<guid isPermaLink="true">http://osnews.com/thread?333246</guid>
			<description><div class="cquote">Limiting code to 80 columns in this day and age is just ridiculous. There's nobody out there still programming at the console (an 80x25 console at least), and everybody else just uses more than 80 columns with no problems. </div><br />
<br />
You would actually be surprised just how many people are still doing this. I'm surrounded by them. And, yeah, I think it's borderline ridiculous.</description>
			<pubDate>Sat, 11 Oct 2008 05:07:00 GMT</pubDate>
			<author>donotreply@osnews.com (alopecoid)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[5]: Yeah, greate</title>
			<link>http://osnews.com/thread?333302</link>
			<guid isPermaLink="true">http://osnews.com/thread?333302</guid>
			<description>I'm not talking about &quot;xterms&quot; here... Do your really mean there are people still using the text-mode 80x25 console for anything more than fixing stuck servers?</description>
			<pubDate>Sat, 11 Oct 2008 16:48:00 GMT</pubDate>
			<author>donotreply@osnews.com (CrLf)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Python</title>
			<link>http://osnews.com/thread?333399</link>
			<guid isPermaLink="true">http://osnews.com/thread?333399</guid>
			<description>&gt; Sure, it doesn't do threading as well as other languages and it may not be as scalable<br />
<br />
there's new multiprocessing module in 2.6 check it out.<br />
and it could scale really well in the right hands</description>
			<pubDate>Sun, 12 Oct 2008 11:38:00 GMT</pubDate>
			<author>donotreply@osnews.com (pawnhearts)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: from __future__ import division</title>
			<link>http://osnews.com/thread?333402</link>
			<guid isPermaLink="true">http://osnews.com/thread?333402</guid>
			<description><div class="cquote">I'm disappointed that the new division model isn't in this release.<br />
In my opinion, the way that division will be handled in python 3000 is the way that every language should handle it.<br />
<br />
The result of a division operation is always a real number.  This is the way it is in real life.  If you were reading a math formula in a text book, economics book, or anything, division results in real numbers.  If you wanted integral division, it would be marked explicitly.  With Python 3000, that's the way it is.  You want integer division... do int(12/5) or 12 // 5.<br />
<br />
It just makes so much sense.  Integer division is the exception, not the rule. </div><br />
<br />
How is real numbers managed in Python then? Because in most other languages the float/double is broken by design, and relying too much on the inaccuracies in its implementation can backfire bigtime. If that is the case in python as well, then I disagree that this should be the default behavior.</description>
			<pubDate>Sun, 12 Oct 2008 11:57:00 GMT</pubDate>
			<author>donotreply@osnews.com (J.R.)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[5]: Yeah, greate</title>
			<link>http://osnews.com/thread?333461</link>
			<guid isPermaLink="true">http://osnews.com/thread?333461</guid>
			<description>Well in C-style languages I usually do the following style:<br />
<br />
if (condition)<br />
....blablabla();<br />
<br />
or:<br />
<br />
if (condition)<br />
{<br />
....blablabla();<br />
}<br />
<br />
So in that case, it's also just a // in front of the line to get temporarily rid of the condition. And it would be nice if it would be that easy in Python as well. But to be honest, I never used a &quot;real&quot; Python IDE, maybe they handle it correctly.</description>
			<pubDate>Mon, 13 Oct 2008 08:29:00 GMT</pubDate>
			<author>donotreply@osnews.com (Glynser)</author>
			<category>Comments</category>
		</item>
	</channel>
</rss>
