Re: [Python-Dev] io.BytesIO slower than monkey-patching io.RawIOBase
> > The second approach is consistently 10-20% faster than the first one > (depending on input) for trunk Python 3.3 > I think the difference is that StringIO spends extra time reallocating memory during the write loop as it grows, whereas bytes.join computes the allocation size first since it already knows the final length. ___ 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] Playing with a new theme for the docs
On Tue, Mar 20, 2012 at 6:38 PM, Georg Brandl wrote: > recently I've grown a bit tired of seeing our default Sphinx theme, > especially as so many other projects use it. I think regardless of the chosen style, giving the Python 3 docs a different look and feel also has a psychological benefit that might further encourage users to consider moving to Python 3. It could be a bit of a wake-up call. ___ 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] threading.Semaphore()'s counter can become negative for non-ints
On Sat, Jan 28, 2012 at 3:07 PM, Benjamin Peterson wrote: > But why would you want to pass a float? It seems like API abuse to me. > Agreed. Anything else seems meaningless. ___ 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] cpython (3.2): don't mention implementation detail
On Tue, Dec 20, 2011 at 6:24 AM, Dirkjan Ochtman wrote: > On Tue, Dec 20, 2011 at 11:27, Terry Reedy wrote: >> And I remember that Guido has >> asked that the manual not discuss big O() >> behavior of the methods of builtin classes. > > Do you know when/where he did that? It seems useful to know that on > CPython, list.insert(0, x) will become slow as the list grows... It > probably shouldn't be upfront, but O() hints for some of the core > stuff seems useful (though again, in some cases they should probably > be limited to CPython). I think the question of the day is whether the documentation is targeting those who wish to have an understanding of what is happening under the hood, or those that want to take such details for granted. I much prefer the little notes and performance hints. - John ___ 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] PEP 405 (proposed): Python 2.8 Release Schedule
> +1 for Cardinal Biggles as release manager. +1 ___ 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] Windows installers and %PATH%
+ 0 for automatically adding to %PATH% + 1 for providing an option to the user during install - John On Thu, Aug 25, 2011 at 9:04 PM, Andrew Pennebaker < andrew.penneba...@gmail.com> wrote: > Please have the Windows installers add the Python installation directory to > the PATH environment variable. > > Many newbies dive in without knowing that they must manually add > C:\PythonXY to PATH. It's yak shaving, something perfectly automatable that > should have been done by the installers way back in Python 1.0. > > Please also add PYTHONROOT\Scripts. It's where cool things like > easy_install.exe are stored. More yak shaving. > > The only potential downside to this is upsetting users who manage multiple > python installations. It's not a problem: they already manually adjust PATH > to their liking. > > Cheers, > > Andrew Pennebaker > www.yellosoft.us > > ___ > 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/tehjcon%40gmail.com > > ___ 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] FileSystemError or FilesystemError?
+1 FileSystemError - For already stated reasons. - John ___ 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