Re: [Python-Dev] Some news from my sandbox project

2010-09-18 Thread Robert Collins
On Sat, Sep 18, 2010 at 8:24 PM, Greg Ewing wrote: > Victor Stinner wrote: > >> I'm still developing irregulary my sandbox project since last june. > >> Today, the biggest problem is the creation of a read only view of the >> __builtins__ dictionary. > > Why do you think you need to do this? What

Re: [Python-Dev] Why does TemporaryDirectory not wait for `__enter__`?

2011-02-26 Thread Robert Collins
On Sun, Feb 27, 2011 at 3:45 AM, cool-RR wrote: > I think that if someone calls `__enter__` directly, he takes the > responsibility of calling `__exit__`, so we don't really have to help him > with `__del__`. > But other than that I understand the motivation for making it start on > `__init__` ra

Re: [Python-Dev] blogroll for the new blog

2011-03-21 Thread Robert Collins
On Tue, Mar 22, 2011 at 3:10 PM, Senthil Kumaran wrote: > Doug Hellmann wrote: >> We are nearly ready to launch the new blog for python-dev. > > Cool. But I always thought planet.python.org was a kind of blog for > python-dev. How will python-dev blog be different? Will add additional > redundancy

Re: [Python-Dev] Test cases not garbage collected after run

2011-04-07 Thread Robert Collins
On Fri, Apr 8, 2011 at 4:49 AM, Michael Foord wrote: > You mean that the test run keeps the test instances alive for the whole test > run so instance attributes are also kept alive. How would you solve this - > by having calling a TestSuite (which is how a test run is executed) remove > members fr

Re: [Python-Dev] Test cases not garbage collected after run

2011-04-07 Thread Robert Collins
On Fri, Apr 8, 2011 at 8:12 AM, Michael Foord wrote: > On 07/04/2011 20:18, Robert Collins wrote: >> >> On Fri, Apr 8, 2011 at 4:49 AM, Michael Foord >>  wrote: >>> >>> You mean that the test run keeps the test instances alive for the whole >>> t

Re: [Python-Dev] Python 3.x and bytes

2011-05-17 Thread Robert Collins
On Wed, May 18, 2011 at 3:13 PM, Nick Coghlan wrote: > On Wed, May 18, 2011 at 8:27 AM, Ethan Furman wrote: >> On the one hand we have the 'bytes are ascii data' type interface, and on >> the other we have the 'bytes are a list of integers between 0 - 256' >> interface. > > No. Bytes are a list o

Re: [Python-Dev] Python 3.x and bytes

2011-05-18 Thread Robert Collins
On Thu, May 19, 2011 at 4:16 AM, Stephen J. Turnbull wrote: > Robert Collins writes: > >  > Its probably too late to change, but please don't try to argue that >  > its correct: the continued confusion of folk running into this is >  > evidence that confusion

Re: [Python-Dev] None as slice params to list.index() and tuple.index()

2011-11-06 Thread Robert Collins
On Mon, Nov 7, 2011 at 8:16 AM, Antoine Pitrou wrote: > Either that or fix the error message. I can't find much benefit in > accepting None, that said (nor in refusing it). Its very convenient when working with slices to not have to special case the end points. +1 on accepting None, FWIW. -Rob _

Re: [Python-Dev] usefulness of Python version of threading.RLock

2012-01-05 Thread Robert Collins
On Fri, Jan 6, 2012 at 11:17 AM, Antoine Pitrou wrote: >> >From what I understand, the biggest motivation for pure Python >> versions is cooperation with the other Python implementations.  See >> http://www.python.org/dev/peps/pep-0399/ > > Apologies, I didn't remember it was written down in PEP.

Re: [Python-Dev] packaging location ?

2012-09-12 Thread Robert Collins
On Thu, Sep 13, 2012 at 7:02 AM, Éric Araujo wrote: > Hi, > > Lib/packaging is in the repository history, and in my backup clones, but > it’s not visible in any branch head as we have no branch for 3.4 yet. I > can bring the directory back with a simple Mercurial command. > > However, it’s not cl

Re: [Python-Dev] Benchmarking Python 3.3 against Python 2.7 (wide build)

2012-09-30 Thread Robert Collins
On Mon, Oct 1, 2012 at 2:35 PM, Steven D'Aprano wrote: > On Sun, Sep 30, 2012 at 07:12:47PM -0400, Brett Cannon wrote: > >> > python3 perf.py -T --basedir ../benchmarks -f -b py3k >> ../cpython/builds/2.7-wide/bin/python ../cpython/builds/3.3/bin/python3.3 > >> ### call_method ### >> Min: 0.491433

<    1   2