<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-28371165.post2522199574445001692..comments</id><updated>2010-05-17T14:15:08.948+08:00</updated><category term='Python'/><category term='Fedora'/><category term='Yum'/><category term='foss.my'/><category term='Buildout'/><category term='Postfix'/><category term='UTP-OSS'/><category term='Philosophy'/><category term='Misc'/><category term='PlanetPlone'/><category term='Security'/><category term='Diazo'/><category term='Announcement'/><category term='Programming'/><category term='GNOME'/><category term='Web'/><category term='Psychology'/><category term='Anime'/><category term='KVM'/><category term='Plone'/><category term='Hakaze'/><category term='Compiz'/><category term='Framework'/><category term='OpenERP'/><category term='LXC'/><category term='UTPchat'/><category term='Zope'/><category term='Deen of God'/><category term='Virtualization'/><category term='Events'/><category term='Ideas'/><category term='News'/><category term='Funny'/><category term='HTML5'/><category term='HOWTO'/><category term='Reviews'/><category term='EventReport'/><category term='PlanetFedora'/><category term='KDE'/><category term='Grok'/><category term='Javascript'/><category term='Debian'/><category term='Hacks'/><category term='Physics'/><category term='CentOS'/><category term='Pidgin'/><category term='Devices'/><category term='HiTB'/><category term='FreeBSD'/><category term='MyOSS'/><category term='Tips'/><category term='Blogger'/><category term='Java'/><category term='Geek Log'/><category term='Google'/><category term='QT/KDE'/><category term='Dovecot'/><category term='LDAP'/><category term='Open Source'/><category term='Zenoss'/><category term='AppRepo'/><category term='Firefox'/><category term='Guide'/><category term='Ruby'/><category term='Linux'/><category term='Obviel'/><category term='Inigo'/><category term='CampusCamp'/><category term='Tools'/><category term='Ubuntu'/><category term='Rant'/><category term='repoze.bfg'/><title type='text'>Comments on :: Shadow Logs ::: list as default value in class __init__() - watcho...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.kagesenshi.org/feeds/2522199574445001692/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28371165/2522199574445001692/comments/default'/><link rel='alternate' type='text/html' href='http://blog.kagesenshi.org/2010/05/list-as-default-value-in-class-init.html'/><author><name>Izhar Ismail</name><uri>https://profiles.google.com/112593043474908198080</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-B2z2WWyASUA/AAAAAAAAAAI/AAAAAAAAAzs/r6KKO9slqKM/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-28371165.post-8954481389633860343</id><published>2010-05-17T14:15:08.939+08:00</published><updated>2010-05-17T14:15:08.939+08:00</updated><title type='text'>this behaviour happens not exclusively to __init__...</title><content type='html'>this behaviour happens not exclusively to __init__() and list. It happens when you use a mutable object as default argument in a function.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28371165/2522199574445001692/comments/default/8954481389633860343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28371165/2522199574445001692/comments/default/8954481389633860343'/><link rel='alternate' type='text/html' href='http://blog.kagesenshi.org/2010/05/list-as-default-value-in-class-init.html?showComment=1274076908939#c8954481389633860343' title=''/><author><name>AdLan</name><uri>http://www.blogger.com/profile/01633290459355398983</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.kagesenshi.org/2010/05/list-as-default-value-in-class-init.html' ref='tag:blogger.com,1999:blog-28371165.post-2522199574445001692' source='http://www.blogger.com/feeds/28371165/posts/default/2522199574445001692' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1869006252'/></entry><entry><id>tag:blogger.com,1999:blog-28371165.post-7533712995943344241</id><published>2010-05-16T22:47:46.316+08:00</published><updated>2010-05-16T22:47:46.316+08:00</updated><title type='text'></title><content type='html'>This comment has been removed by the author.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28371165/2522199574445001692/comments/default/7533712995943344241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28371165/2522199574445001692/comments/default/7533712995943344241'/><author><name>AdLan</name><uri>http://www.blogger.com/profile/01633290459355398983</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.kagesenshi.org/2010/05/list-as-default-value-in-class-init.html' ref='tag:blogger.com,1999:blog-28371165.post-2522199574445001692' source='http://www.blogger.com/feeds/28371165/posts/default/2522199574445001692' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.contentRemoved' value='true'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1869006252'/></entry><entry><id>tag:blogger.com,1999:blog-28371165.post-2504032695378156052</id><published>2010-05-12T18:03:46.606+08:00</published><updated>2010-05-12T18:03:46.606+08:00</updated><title type='text'>well, i know .. i am using that .. 

this post is ...</title><content type='html'>well, i know .. i am using that .. &lt;br /&gt;&lt;br /&gt;this post is just a little note to myself in case i forgot why this thing happened :P ..</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28371165/2522199574445001692/comments/default/2504032695378156052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28371165/2522199574445001692/comments/default/2504032695378156052'/><link rel='alternate' type='text/html' href='http://blog.kagesenshi.org/2010/05/list-as-default-value-in-class-init.html?showComment=1273658626606#c2504032695378156052' title=''/><author><name>KageSenshi</name><uri>http://www.blogger.com/profile/00019993555432609309</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://bp0.blogger.com/_0DENAyCRujw/R4ecChwdDBI/AAAAAAAAAIM/9FtwG-EwxRs/S220/hackergotchi.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.kagesenshi.org/2010/05/list-as-default-value-in-class-init.html' ref='tag:blogger.com,1999:blog-28371165.post-2522199574445001692' source='http://www.blogger.com/feeds/28371165/posts/default/2522199574445001692' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-635895198'/></entry><entry><id>tag:blogger.com,1999:blog-28371165.post-4860085878509278994</id><published>2010-05-12T17:03:50.391+08:00</published><updated>2010-05-12T17:03:50.391+08:00</updated><title type='text'>this way would be good

def __init__(self, data=No...</title><content type='html'>this way would be good&lt;br /&gt;&lt;br /&gt;def __init__(self, data=None):&lt;br /&gt;    self.data = data or [];</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28371165/2522199574445001692/comments/default/4860085878509278994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28371165/2522199574445001692/comments/default/4860085878509278994'/><link rel='alternate' type='text/html' href='http://blog.kagesenshi.org/2010/05/list-as-default-value-in-class-init.html?showComment=1273655030391#c4860085878509278994' title=''/><author><name>Jayaseelan</name><uri>http://www.blogger.com/profile/12081164781613963610</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.kagesenshi.org/2010/05/list-as-default-value-in-class-init.html' ref='tag:blogger.com,1999:blog-28371165.post-2522199574445001692' source='http://www.blogger.com/feeds/28371165/posts/default/2522199574445001692' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-808704105'/></entry></feed>
