Re: [Python-Dev] Mailbox module - timings and functionality changes

2010-06-29 Thread Miki Tebeka
Hello Steve,

> Can someone who is set up to do easily just do a timing of test_mailbox
> under 2.6 and 3.2, to verify they see the same disparity as me? The test
> takes about twice as long under 3.1 here
On Ubuntu timing was:

Python 2.6.5:  23.8sec
Python 2.7rc2: 32.7sec
Python 3.1.2:  32.3sec

All the best,
--
Miki
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Removing IDLE from the standard library

2010-07-10 Thread Miki Tebeka
Hello Tal,

> I would like to propose removing IDLE from the standard library.
-1.
One of the biggest "selling points" for me when switching to python was the
"out of the box" working IDE with REPL, syntax highliting and a debugger.
The only other candidate I think of to replace IDLE might be IPython. However
for novice users who are not used to command line it might be too intimidating.

There are my others IDEs out there, some better some worse. However IMO
to have one bundled with Python is highly important.

> Cross-platform support has degraded with the increasing popularity of OSX and 
> 64-bit
> platforms.
I use IDLE on Ubuntu 64bit and before that on OS X 64 bit, never had a
problem. Can you give
some examples on what do you mean by "cross-platform support"?

All the best,
--
Miki
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [Python-ideas] itertools.chunks(iterable, size, fill=None)

2012-09-01 Thread Miki Tebeka
See the "grouper" example in http://docs.python.org/library/itertools.html

On Friday, August 31, 2012 11:28:33 PM UTC-7, anatoly techtonik wrote:
>
> I've run into the necessity of implementing chunks() again. Here is 
> the code I've made from scratch. 
>
> def chunks(seq, size): 
>   '''Cut sequence into chunks of given size. If `seq` length is 
>  not divisible by `size` without reminder, last chunk will 
>  have length less than size. 
>
>  >>> list( chunks([1,2,3,4,5,6,7], 3) ) 
>  [[1, 2, 3], [4, 5, 6], [7]] 
>   ''' 
>   endlen = len(seq)//size 
>   for i in range(endlen): 
> yield [seq[i*size+n] for n in range(size)] 
>   if len(seq) % size: 
> yield seq[endlen*size:] 
>
> -- 
> anatoly t. 
>
>
> On Fri, Jun 29, 2012 at 11:32 PM, Georg Brandl > 
> wrote: 
> > On 26.06.2012 10:03, anatoly techtonik wrote: 
> >> 
> >> Now that Python 3 is all about iterators (which is a user killer 
> >> feature for Python according to StackOverflow - 
> >> http://stackoverflow.com/questions/tagged/python) would it be nice to 
> >> introduce more first class functions to work with them? One function 
> >> to be exact to split string into chunks. 
> >> 
> >>  itertools.chunks(iterable, size, fill=None) 
> >> 
> >> Which is the 33th most voted Python question on SO - 
> >> 
> >> 
> http://stackoverflow.com/questions/312443/how-do-you-split-a-list-into-evenly-sized-chunks-in-python/312464
>  
> >> 
> >> P.S. CC'ing to python-dev@ to notify about the thread in python-ideas. 
> >> 
> > 
> > Anatoly, so far there were no negative votes -- would you care to go 
> > another step and propose a patch? 
> > 
> > 
> > Georg 
> > 
> > ___ 
> > Python-ideas mailing list 
> > python...@python.org  
> > http://mail.python.org/mailman/listinfo/python-ideas 
> ___ 
> Python-ideas mailing list 
> python...@python.org  
> http://mail.python.org/mailman/listinfo/python-ideas 
>
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com