Re: [pygtk] Re: Python 3.0 plans



Guido van Rossum warns agains breaking api while porting to python 3.0:
http://www.artima.com/weblogs/viewpost.jsp?thread=227041

2007/8/29 Behdad Esfahbod <behdad behdad org>:
> On Wed, 2007-08-29 at 13:52 -0400, Behdad Esfahbod wrote:
>>
>>   - Do things more Pythonesque.  Looking at Pango bindings, for
>> example
>> replace all to_string() methods with __str__.  Same for compare(),
>> equal(), etc.  Or should it be in addition?
>
> Other example I once really wanted was generator iterators on
> PangoLayoutIter such as lines(), clusters(), ... so I can do:
>
> i = layout.get_iter()
> for line in i.lines():
>        print line
>
> But then the iterator object becomes redundant, so maybe add lines() on
> the layout itself:
>
> for line in layout.lines():
>        print line
>
>
> --
> behdad
> http://behdad.org/
>
> "Those who would give up Essential Liberty to purchase a little
>  Temporary Safety, deserve neither Liberty nor Safety."
>        -- Benjamin Franklin, 1759
>
>
>
> _______________________________________________
> pygtk mailing list   pygtk daa com au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>



-- 
Tom Cato Amundsen <tca gnu org> http://www.solfege.org/
GNU Solfege - free ear training http://www.gnu.org/software/solfege/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]