unsubscribe

2008-12-16 Thread Mark Jordaan

> From: p.f.mo...@gmail.com> Subject: Re: Does Python3 offer a FrozenDict?> 
> Date: Tue, 16 Dec 2008 09:56:57 -0800> To: python-list@python.org> > On 16 
> Dec, 17:28, bearophileh...@lycos.com wrote:> > Johannes Bauer:> >> > > is 
> there anything like a frozen dict in Python3, so I could do a> > > foo = { 
> FrozenDict({"a" : "b"}): 3 }> >> > You can adapt this code to Python3 (and 
> post a new recipe? It may be> > positive to create a new section of the 
> Cookbook for Py3 only):http://code.activestate.com/recipes/414283/> > There's 
> actually only tiny changes needed (I believe)> - Change exception syntax: 
> raise AttributeError("A frozendict cannot> be modified.")> - (bugfix for the 
> original version): add **kw arg to __new__ (passed> to dict.__init__)> > 
> Simple testing looks OK. And the resulting code is OK for both 2.x and> 3.0.> 
> > Moral - don't assume that all code needs to be rewritten for Python> 3.0 
> :-)> > Paul.> > PS I imagine that 2to3 would have fixed this up fine, but it 
> was so> easy to do by hand that I didn't bother :-)> --> 
> http://mail.python.org/mailman/listinfo/python-list
_
Get the next generation of Free Windows Live Services
http://get.live.com--
http://mail.python.org/mailman/listinfo/python-list


RE: Newbie to python --- why should i learn !

2008-05-08 Thread Mark Jordaan

pls dont learn it
 
Move on
 
The world is full enough of 9 to 5 coders
 
Mark> From: [EMAIL PROTECTED]> Subject: Newbie to python --- why should i learn 
!> Date: Thu, 8 May 2008 03:25:17 -0700> To: python-list@python.org> > Hi,> > i 
was reading/learning some hello world program in python.> I think its very 
simillar to Java/C++/C#. What's different (except> syntax) ?> > what can i do 
easily with python which is not easy in c++/java !?> > Tnx,> Raxit> 
www.mykavita.com> --> http://mail.python.org/mailman/listinfo/python-list
_
Tired of having no room left in your inbox? Windows Live Hotmail now gives you 
5GB of FREE storage! Get your free Windows Live Hotmail account here!
http://get.live.com/mail/overview--
http://mail.python.org/mailman/listinfo/python-list