<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A shortfall of Python: no function overloading</title>
	<atom:link href="http://ironboundsoftware.com/blog/2007/05/29/a-shortfall-of-python-no-function-overloading/feed/" rel="self" type="application/rss+xml" />
	<link>http://ironboundsoftware.com/blog/2007/05/29/a-shortfall-of-python-no-function-overloading/</link>
	<description>Droplets of Yes and No</description>
	<lastBuildDate>Fri, 31 Dec 2010 05:48:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: paddy3118</title>
		<link>http://ironboundsoftware.com/blog/2007/05/29/a-shortfall-of-python-no-function-overloading/comment-page-1/#comment-1993</link>
		<dc:creator>paddy3118</dc:creator>
		<pubDate>Thu, 31 May 2007 08:54:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.ironboundsoftware.com/blog/?p=279#comment-1993</guid>
		<description>Your welcome :-)</description>
		<content:encoded><![CDATA[<p>Your welcome <img src='http://ironboundsoftware.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://ironboundsoftware.com/blog/2007/05/29/a-shortfall-of-python-no-function-overloading/comment-page-1/#comment-1992</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Wed, 30 May 2007 15:01:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.ironboundsoftware.com/blog/?p=279#comment-1992</guid>
		<description>Hi Paddy,

While I agree with your code example, that&#039;s actually one of the things I was trying to move away from. I had a ton of code that had all kinds of conditional statements, and I felt that if certain stars aligned I could get rid of them and streamline things.

Giving default argument values for the object is a good way to get this behavior, I just kinda felt like it wasn&#039;t the &quot;OO&quot; way.

But the more and more I think about this (I just deleted a whole paragraph defending my old position), the more I&#039;m starting to think that this might be a better way. Perhaps I have my head to far in the Java world and need to think more pythonically. ;)

Thanks for the posting, I&#039;m gonna go give this a try and see what shakes out.

-Nick</description>
		<content:encoded><![CDATA[<p>Hi Paddy,</p>
<p>While I agree with your code example, that&#8217;s actually one of the things I was trying to move away from. I had a ton of code that had all kinds of conditional statements, and I felt that if certain stars aligned I could get rid of them and streamline things.</p>
<p>Giving default argument values for the object is a good way to get this behavior, I just kinda felt like it wasn&#8217;t the &#8220;OO&#8221; way.</p>
<p>But the more and more I think about this (I just deleted a whole paragraph defending my old position), the more I&#8217;m starting to think that this might be a better way. Perhaps I have my head to far in the Java world and need to think more pythonically. <img src='http://ironboundsoftware.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Thanks for the posting, I&#8217;m gonna go give this a try and see what shakes out.</p>
<p>-Nick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paddy3118</title>
		<link>http://ironboundsoftware.com/blog/2007/05/29/a-shortfall-of-python-no-function-overloading/comment-page-1/#comment-1991</link>
		<dc:creator>paddy3118</dc:creator>
		<pubDate>Wed, 30 May 2007 14:09:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.ironboundsoftware.com/blog/?p=279#comment-1991</guid>
		<description>Try http://docs.python.org/tut/node6.html#SECTION006730000000000000000 or http://www.python.org/doc/current/tut/node6.html#SECTION006710000000000000000 or http://www.python.org/doc/current/tut/node6.html#SECTION006720000000000000000 .

def a(x = None):
  if x is None:
    print &quot;Found None&quot;
  else:
   print &quot;x = &quot;, x
# then try
a()
# And contrast to
a(1)

- Paddy</description>
		<content:encoded><![CDATA[<p>Try <a href="http://docs.python.org/tut/node6.html#SECTION006730000000000000000" rel="nofollow">http://docs.python.org/tut/node6.html#SECTION006730000000000000000</a> or <a href="http://www.python.org/doc/current/tut/node6.html#SECTION006710000000000000000" rel="nofollow">http://www.python.org/doc/current/tut/node6.html#SECTION006710000000000000000</a> or <a href="http://www.python.org/doc/current/tut/node6.html#SECTION006720000000000000000" rel="nofollow">http://www.python.org/doc/current/tut/node6.html#SECTION006720000000000000000</a> .</p>
<p>def a(x = None):<br />
  if x is None:<br />
    print &#8220;Found None&#8221;<br />
  else:<br />
   print &#8220;x = &#8220;, x<br />
# then try<br />
a()<br />
# And contrast to<br />
a(1)</p>
<p>- Paddy</p>
]]></content:encoded>
	</item>
</channel>
</rss>

